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,
YItemCollection::const_iterator YItemConstIterator
Const iterator over YItemCollection.
Author: Stefan Hundhammer sh@suse.de
Simple item class for SelectionBox, ComboBox, MultiSelectionBox etc.
A set of properties to check names and types against.
Transport class for the value of simple properties.
One cell (one column in one row) of a YTableItem.
Table: Selection list with multiple columns.
virtual ~YTable()
Destructor.
bool keepSorting() const
Return 'true' if the sort order is to be kept in item insertion order, i.e.
virtual YPropertyValue getProperty(const std::string &propertyName)
Get a property.
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...
void setTableHeader(YTableHeader *newHeader)
Exchange the previous table header with a new one.
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...
int columns() const
Return the number of columns of this table.
YAlignmentType alignment(int column) const
Return the alignment for the specified column.
virtual bool setProperty(const std::string &propertyName, const YPropertyValue &val)
Set a property.
virtual const YPropertySet & propertySet()
Return this class's property set.
virtual const char * widgetClass() const
Return a descriptive name of this widget class for logging, debugging etc.
void setImmediateMode(bool immediateMode=true)
Set immediateMode() on or off.
bool hasMultiSelection() const
Return 'true' if the user can select multiple items at the same time (e.g., with shift-click or ctrl-...
std::string header(int column) const
Return the header text for the specified column.
bool immediateMode() const
Deliver even more events than with notify() set.
virtual void cellChanged(const YTableCell *cell)=0
Notification that a cell (its text, its icon and/or sort-key) was changed from the outside.
const char * userInputProperty()
The name of the widget property that will return user input.
bool hasColumn(int column) const
Return 'true' if this table has a column no.