FilteredTreeControl Class
A sortable tree control that accomodates a certain file type and also possibly shows their last modification dates.
Declared on: line 78 of Lua/dialogs/resizables/file_browser.lua.
Inheritance: FilteredTreeControl » TreeControl » Window
Inheritance: FilteredTreeControl » TreeControl » Window
Method Index
- addBevelPanel(x, y, w, h, colour, highlight_colour, shadow_colour, disabled_colour) (inherited from Window)
- addColourPanel(x, y, w, h, r, g, b) (inherited from Window)
- addKeyHandler(key, handler, ...) (inherited from Window)
- addPanel(sprite_index, x, y, w, h) (inherited from Window)
- addWindow(window) (inherited from Window)
- afterLoad(old, new) (inherited from Window)
- beginDrag(x, y) (inherited from Window)
- bringToTop() (inherited from Window)
- close() (inherited from Window)
- draw(canvas, x, y) (inherited from TreeControl)
- drawExtraOnRow(canvas, node, x, y) (overrides TreeControl:drawExtraOnRow)
- getSavedWindowPositionName() (inherited from Window)
- getTooltipAt(x, y) (inherited from Window)
- getTooltipForElement(elem, x, y) (inherited from Window)
- getWindow(window_class) (inherited from Window)
- getWindows(window_class) (inherited from Window)
- hitTest(x, y) (inherited from Window)
- hitTestPanel(x, y, panel) (inherited from Window)
- hitTestTree(x, y) (inherited from TreeControl)
- makeButtonOnPanel(panel, x, y, w, h, sprite, on_click, on_click_self, on_rightclick) (inherited from Window)
- makeDynamicTooltip(callback, x, y, r, b, tooltip_x, tooltip_y) (inherited from Window)
- makeScrollbarOnPanel(panel, slider_colour, callback, min_value, max_value, page_size, value) (inherited from Window)
- makeTextboxOnPanel(panel, confirm_callback, abort_callback) (inherited from Window)
- makeTooltip(text, x, y, r, b, tooltip_x, tooltip_y) (inherited from Window)
- onChangeLanguage() (inherited from Window)
- onChangeResolution() (inherited from Window)
- onCursorWorldPositionChange(x, y) (inherited from Window)
- onMouseDown(button, x, y) (inherited from TreeControl)
- onMouseMove(x, y) (inherited from TreeControl)
- onMouseUp(button, x, y) (inherited from TreeControl)
- onNumVisibleNodesChange() (inherited from TreeControl)
- onScroll() (inherited from TreeControl)
- onTick() (inherited from Window)
- onWorldTick() (inherited from Window)
- removeAllPanels() (inherited from Window)
- removeWindow(window) (inherited from Window)
- sendToBottom(window) (inherited from Window)
- sendToTop(window) (inherited from Window)
- setDefaultPosition(x, y) (inherited from Window)
- setPosition(x, y) (inherited from Window)
- setSelectCallback(callback) (inherited from TreeControl)
- sortBy(sort_by, order)
- sortByDate()
- sortByName()
- startButtonBlinking(button_index) (inherited from Window)
- stopButtonBlinking() (inherited from Window)
Member Index
- active_button (*)
- active_scrollbar (*)
- blink_counter (*)
- blinking_button (*)
- btn_repeat_delay (*)
- buttons (*)
- buttons_down (*)
- closed (*)
- default_button_sound (*)
- draggable (*)
- dragging (*)
- first_visible_node
- first_visible_ordinal (*)
- font
- height (*)
- highlighted_node (*)
- key_handlers (*)
- mouse_down_in_self (*)
- num_rows
- order
- panel_sprites (*)
- panels (*)
- parent (*)
- row_height
- scrollbar (*)
- scrollbars (*)
- select_callback (*)
- selected_node (*)
- show_dates
- sort_by
- textboxes (*)
- tooltip_regions (*)
- tree_rect
- tree_root
- tree_sprites (*)
- ui (*)
- visible (*)
- width (*)
- windows (*)
- x (*)
- x_original (*)
- y (*)
- y_offset
- y_original (*)
function FilteredTreeControl:FilteredTreeControl(root, x, y, width, height, col_bg, col_fg, has_font, show_dates)
Parameters:
Name | Type | Description |
---|---|---|
root | ? | ? |
x | ? | ? |
y | ? | ? |
width | ? | ? |
height | ? | ? |
col_bg | ? | ? |
col_fg | ? | ? |
has_font | ? | ? |
show_dates | ? | ? |
Declared on: line 82 of Lua/dialogs/resizables/file_browser.lua.
function FilteredTreeControl:drawExtraOnRow(canvas, node, x, y)
Parameters:
Name | Type | Description |
---|---|---|
canvas | ? | ? |
node | ? | ? |
x | ? | ? |
y | ? | ? |
Overrides: TreeControl:drawExtraOnRow.
Declared on: line 137 of Lua/dialogs/resizables/file_browser.lua.
function FilteredTreeControl:sortBy(sort_by, order)
Sorts the list according to the given parameters.
Parameters:
Name | Type | Description |
---|---|---|
sort_by | ? | Either "name" or "date". |
order | ? | Either "ascending" or "descending" |
Declared on: line 113 of Lua/dialogs/resizables/file_browser.lua.