wex  v21.04.0
Public Member Functions | List of all members
wex::listitem Class Reference

Offers a list item associated with a file on an wex::listview. More...

#include <wex/listitem.h>

Inherits wxListItem.

Public Member Functions

 listitem (listview *listview, long itemnumber)
 Constructor.
 
 listitem (listview *listview, const path &filename, const std::string &filespec=std::string())
 Constructor.
 
const auto file_spec () const
 Returns the file spec.
 
const auto & get_filename () const
 Returns the filename.
 
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.
 
bool set_item (const std::string &col_name, const std::string &text)
 Sets the item text using column name. More...
 
void update ()
 Updates all attributes.
 

Detailed Description

Offers a list item associated with a file on an wex::listview.

Member Function Documentation

◆ set_item()

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.