29 #include "YSelectionWidget.h"
31 #include "YTableHeader.h"
100 std::string
header(
int column )
const;
105 YAlignmentType
alignment(
int column )
const;
153 YItem *
findItem(
const std::string & wantedItemLabel,
int column )
const;
184 virtual bool setProperty(
const std::string & propertyName,
virtual bool setProperty(const std::string &propertyName, const YPropertyValue &val)
Set a property.
YItem * findItem(const std::string &wantedItemLabel, int column) const
Try to find an item with label 'wantedItemLabel' in column 'column' between iterators 'begin' and 'en...
const char * userInputProperty()
The name of the widget property that will return user input.
int columns() const
Return the number of columns of this table.
void setImmediateMode(bool immediateMode=true)
Set immediateMode() on or off.
virtual YPropertyValue getProperty(const std::string &propertyName)
Get a property.
A set of properties to check names and types against.
virtual const YPropertySet & propertySet()
Return this class's property set.
bool keepSorting() const
Return 'true' if the sort order is to be kept in item insertion order, i.e.
Table: Selection list with multiple columns.
void setTableHeader(YTableHeader *newHeader)
Exchange the previous table header with a new one.
YTable(YWidget *parent, YTableHeader *header, bool multiSelection)
Constructor.
virtual void setKeepSorting(bool keepSorting)
Switch between sorting by item insertion order (keepSorting: true) or allowing the user to sort by an...
virtual const char * widgetClass() const
Return a descriptive name of this widget class for logging, debugging etc.
bool hasColumn(int column) const
Return 'true' if this table has a column no.
std::string header(int column) const
Return the header text for the specified column.
Transport class for the value of simple properties.
bool immediateMode() const
Deliver even more events than with notify() set.
bool hasMultiSelection() const
Return 'true' if the user can select multiple items at the same time (e.g., with shift-click or ctrl-...
One cell (one column in one row) of a YTableItem.
virtual ~YTable()
Destructor.
YAlignmentType alignment(int column) const
Return the alignment for the specified column.
YItemCollection::const_iterator YItemConstIterator
Const iterator over YItemCollection.
virtual void cellChanged(const YTableCell *cell)=0
Notification that a cell (its text, its icon and/or sort-key) was changed from the outside.
Simple item class for SelectionBox, ComboBox, MultiSelectionBox etc.