|
wex v24.04.0
|
Offers a list item associated with a file on an wex::listview. More...
#include <wex/ui/listitem.h>
Inherits wxListItem.
Public Member Functions | |
| listitem (listview *listview, long itemnumber) | |
| Constructor using existing item number. | |
| listitem (listview *listview, const path &filename, const std::string &filespec=std::string()) | |
| Constructor using a path, to be inserted later on. | |
| const auto | file_spec () const |
| Returns the file spec. | |
| auto * | get_listview () const |
| Returns the listview. | |
| void | insert (long index=-1) |
| Inserts the item at index (if -1 at the end of the listview), and sets all attributes. | |
| bool | is_readonly () const |
| Returns true if this item is readonly (on the listview). | |
| std::stringstream | log () const |
| Logs info about this item. | |
| const auto & | path () const |
| Returns the path. | |
| bool | set_item (const std::string &col_name, const std::string &text) |
| Sets the item text using column name. | |
| void | update () |
| Updates all attributes. | |
Offers a list item associated with a file on an wex::listview.
| bool wex::listitem::set_item | ( | const std::string & | col_name, |
| const std::string & | text ) |
Sets the item text using column name.
Returns false if text could not be set.