|
wex v24.10.0
|
Adds a del::frame to listview. More...
#include <wex/del/listview.h>

Public Member Functions | |
| listview (const data::listview &data=data::listview()) | |
| Default constructor. | |
| bool | Destroy () override |
| Destroys the window safely. | |
Public Member Functions inherited from wex::listview | |
| listview (const data::listview &data=data::listview()) | |
| Default constructor. | |
| virtual bool | item_from_text (const std::string &text) |
| Inserts new item with column values from text. | |
| virtual const std::string | item_to_text (long item_number) const |
| Copies the specified item (all columns) to text. | |
| virtual void | items_update () |
| Implement this one if you have images that might be changed after sorting etc. | |
| void | clear () |
| Clears all items. | |
| void | config_get () |
| Sets the configurable parameters to values currently in config. | |
| const auto & | data () const |
| Returns associated data. | |
| const auto & | field_separator () const |
| Returns the field separator. | |
| int | find_column (const std::string &name) const |
| If column is not found, -1 is returned,. | |
| const std::string | get_item_text (long item_number, const std::string &col_name=std::string()) const |
| Returns the item text using item number and column name. | |
| bool | insert_item (const std::vector< std::string > &item, long index=-1) |
| Inserts item with provided columns. | |
| bool | load (const strings_t &l) |
| Loads listview from list. | |
| const strings_t | save () const |
| Saves listview to list. | |
| bool | set_item (long index, int column, const std::string &label) |
| Sets an item string field at a particular column. | |
| bool | set_item_image (long item_number, const wxArtID &artid) |
| Sets the item image, using the image list. | |
| bool | sort_column (const std::string &column_name, sort_t sort_method=SORT_TOGGLE) |
| Sorts on a column specified by column name. | |
| bool | sort_column (int column_no, sort_t sort_method=SORT_TOGGLE) |
| Sorts on a column. | |
| void | sort_column_reset () |
| Resets column that was used for sorting. | |
| int | sorted_column_no () const |
| Returns current sorted column no. | |
| bool | append_columns (const std::vector< column > &cols) override |
| Appends new columns. | |
| bool | find_next (const std::string &text, bool find_next=true) override |
| Finds next. | |
| void | print () override |
| Prints the list. | |
| void | print_preview () override |
| Previews the list. | |
Public Member Functions inherited from wex::factory::listview | |
| listview (const data::window &w=data::window(), const data::control &c=data::control()) | |
| Default constructor. | |
Static Public Member Functions | |
| static data::listview::type_t | type_tool (const tool &tool) |
| Returns list type from tool id. | |
Static Public Member Functions inherited from wex::listview | |
| static int | config_dialog (const data::window &data=data::window()) |
| Shows a dialog with options, returns dialog return code. | |
Protected Member Functions | |
| void | build_popup_menu (menu &menu) override |
| Builds the popup menu. | |
Protected Member Functions inherited from wex::listview | |
| virtual void | after_sorting () |
| Invoked after sorting, allows you to do something extra. | |
Adds a del::frame to listview.
It also adds a tool menu if appropriate.