#include <YMultiSelectionBox.h>
Inheritance diagram for YMultiSelectionBox:

Public Member Functions | |
| YMultiSelectionBox (const YWidgetOpt &opt, YCPString label) | |
| virtual char * | widgetClass () |
| YCPValue | changeWidget (const YCPSymbol &property, const YCPValue &newvalue) |
| YCPValue | queryWidget (const YCPSymbol &property) |
| const char * | userInputProperty () |
Protected Member Functions | |
| virtual bool | itemIsSelected (int index)=0 |
| virtual void | selectItem (int index)=0 |
| virtual void | deselectAllItems ()=0 |
| virtual int | getCurrentItem ()=0 |
| virtual void | setCurrentItem (int index)=0 |
Private Member Functions | |
| virtual void | saveUserInput (YMacroRecorder *macroRecorder) |
MultiSelectionBox
The MultiSelectionBox displays a ( scrollable ) list of items from which any number (even nothing!) can be selected. Use the MultiSelectionBox's SelectedItems property to find out which.
Each item can be specified either as a simple string or as `item( ... ) which includes an ( optional ) ID and an (optional) 'selected' flag that specifies the initial selected state ('not selected', i.e. 'false', is default).
| YMultiSelectionBox::YMultiSelectionBox | ( | const YWidgetOpt & | opt, | |
| YCPString | label | |||
| ) |
Constructor
| text | the initial text of the MultiSelectionBox label | |
| opt | the widget options |
| virtual char* YMultiSelectionBox::widgetClass | ( | ) | [inline, virtual] |
Returns a descriptive name of this widget class for logging, debugging etc.
Reimplemented from YSelectionWidget.
| YCPValue YMultiSelectionBox::changeWidget | ( | const YCPSymbol & | property, | |
| const YCPValue & | newvalue | |||
| ) | [virtual] |
Implements the ui command changeWidget.
The label above the list describing what it is all about
Reimplemented from YWidget.
Implements the ui command queryWidget
Reimplemented from YWidget.
| const char* YMultiSelectionBox::userInputProperty | ( | ) | [inline, virtual] |
| virtual bool YMultiSelectionBox::itemIsSelected | ( | int | index | ) | [protected, pure virtual] |
Check whether or not item index is selected.
Reimplement this in derived classes!
| virtual void YMultiSelectionBox::selectItem | ( | int | index | ) | [protected, pure virtual] |
Select item index.
Reimplement this in derived classes!
| virtual void YMultiSelectionBox::deselectAllItems | ( | ) | [protected, pure virtual] |
Deselect all items.
Reimplement this in derived classes!
| virtual int YMultiSelectionBox::getCurrentItem | ( | ) | [protected, pure virtual] |
Returns the index of the item that currently has the keyboard focus.
Reimplement this in derived classes!
| virtual void YMultiSelectionBox::setCurrentItem | ( | int | index | ) | [protected, pure virtual] |
Set the keyboard focus to one item.
Reimplement this in derived classes!
| void YMultiSelectionBox::saveUserInput | ( | YMacroRecorder * | macroRecorder | ) | [private, virtual] |
1.5.0