selector class More...
#include <ManualSelector.h>


Public Member Functions | |
| ManualSelector () | |
| constructor | |
| virtual | ~ManualSelector () |
| destructor | |
| void | setSelected (const int item, const bool selected) |
| sets selection status More... | |
Public Member Functions inherited from kome::core::Selector | |
| Selector () | |
| constructor | |
| virtual | ~Selector () |
| destructor | |
| void | clearItems () |
| clear items | |
| void | addItem (const char *name) |
| adds item More... | |
| void | addItem (const char *name, const char *value) |
| adds item More... | |
| unsigned int | getNumberOfItems () |
| gets the number of items More... | |
| const char * | getItemName (const unsigned int index) |
| gets item name More... | |
| const char * | getItemValue (const unsigned int index) |
| gets item value More... | |
| bool | isSelected (const unsigned int index) |
| gets selection flag value More... | |
| int | getSelection () |
| [in] gets selected item More... | |
| bool | select () |
| selects item More... | |
Protected Member Functions | |
| virtual bool | onSelect (const unsigned int num, const char **items, const char **values, bool *selected) |
| This method is called by select method. (override method) More... | |
Protected Attributes | |
| std::set< int > | m_selectedItemSet |
Protected Attributes inherited from kome::core::Selector | |
| std::vector< std::pair < std::string, std::string > > | m_items |
| std::vector< bool > | m_selected |
| int | m_sel |
selector class
Definition at line 28 of file ManualSelector.h.
|
protectedvirtual |
This method is called by select method. (override method)
| [in] | num | the number of items |
| [in] | items | the array of item names |
| [in] | values | the array of item values |
| [out] | selected | the array to store selected flags |
Implements kome::core::Selector.
Definition at line 52 of file ManualSelector.cpp.
| void kome::core::ManualSelector::setSelected | ( | const int | item, |
| const bool | selected | ||
| ) |
sets selection status
| [in] | item | item index |
| [in] | selected | selection status |
Definition at line 36 of file ManualSelector.cpp.
|
protected |
selected items
Definition at line 44 of file ManualSelector.h.
1.8.6