|
libyui-qt
|
#include <YQCustomStatusItemSelector.h>


Public Member Functions | |
| YQCustomStatusItemSelector (YWidget *parent, const YItemCustomStatusVector &customStates) | |
| virtual | ~YQCustomStatusItemSelector () |
| virtual void | addItem (YItem *item) |
| virtual void | selectItem (YItem *item, bool selected=true) |
| const QIcon & | statusIcon (int status) const |
| virtual void | activateItem (YItem *item) |
Public Member Functions inherited from YQItemSelector | |
| YQItemSelector (YWidget *parent, bool enforceSingleSelection=true) | |
| virtual | ~YQItemSelector () |
| virtual void | addItems (const YItemCollection &itemCollection) |
| virtual void | deselectAllItems () |
| virtual void | deleteAllItems () |
| virtual void | setEnabled (bool enabled) |
| virtual int | preferredWidth () |
| virtual int | preferredHeight () |
| virtual void | setSize (int newWidth, int newHeight) |
| virtual bool | setKeyboardFocus () |
| QWidget * | itemContainer () const |
| QButtonGroup * | buttonGroup () const |
| void | addItemWidget (YQSelectorItemWidget *itemWidget) |
| virtual void | shortcutChanged () |
Protected Slots | |
| void | itemClicked (YQCustomStatusSelectorItemWidget *itemWidget) |
Protected Slots inherited from YQItemSelector | |
| void | slotSelectionChanged (YQSelectorItemWidget *itemWidget, bool selected) |
Protected Member Functions | |
| void | preloadStatusIcons () |
| virtual void | updateCustomStatusIndicator (YItem *item) |
Protected Member Functions inherited from YQItemSelector | |
| YQItemSelector (YWidget *parent, const YItemCustomStatusVector &customStates) | |
| void | init () |
| void | deselectOtherItems (YItem *selectedItem) |
Protected Attributes | |
| QList< QIcon > | _statusIcons |
Protected Attributes inherited from YQItemSelector | |
| QWidget * | _itemContainer |
| QButtonGroup * | _buttonGroup |
| QVBoxLayout * | _itemLayout |
| QMap< YItem *, YQSelectorItemWidget * > | _itemWidgets |
ItemSelector widget with support for custom status values, not just 0 or 1.
This does not use a standard QCheckBox or QRadioButton, but a QToolButton with an icon that is exchanged whenever the status changes.
| YQCustomStatusItemSelector::YQCustomStatusItemSelector | ( | YWidget * | parent, |
| const YItemCustomStatusVector & | customStates | ||
| ) |
Constructor.
|
virtual |
Destructor.
|
virtual |
Activate selected item. Can be used in tests to simulate user input.
Derived classes are required to implement this.
Reimplemented from YQItemSelector.
|
virtual |
Add an item.
Reimplemented from YQItemSelector / YSelectionWidget.
Reimplemented from YQItemSelector.
|
protectedslot |
Cycle the status of an item and report the click to the calling application.
|
protected |
Preload and cache the status icons.
|
virtual |
| const QIcon & YQCustomStatusItemSelector::statusIcon | ( | int | status | ) | const |
Return the status icon for the specified status.
|
protectedvirtual |
Update the status indicator (the status icon) for an item.
Reimplemented from YItemSelector.