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

Public Member Functions | |
| 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)=0 |
| This method is called by select method. (abstract method) More... | |
Protected Attributes | |
| 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 Selector.h.
| void kome::core::Selector::addItem | ( | const char * | name | ) |
| void kome::core::Selector::addItem | ( | const char * | name, |
| const char * | value | ||
| ) |
adds item
| [in] | name | item name |
| [in] | value | item value |
Definition at line 48 of file Selector.cpp.
| const char * kome::core::Selector::getItemName | ( | const unsigned int | index | ) |
gets item name
| [in] | index | item index |
Definition at line 59 of file Selector.cpp.
| const char * kome::core::Selector::getItemValue | ( | const unsigned int | index | ) |
gets item value
| [in] | index | item index |
Definition at line 67 of file Selector.cpp.
| unsigned int kome::core::Selector::getNumberOfItems | ( | ) |
gets the number of items
Definition at line 54 of file Selector.cpp.
| int kome::core::Selector::getSelection | ( | ) |
| bool kome::core::Selector::isSelected | ( | const unsigned int | index | ) |
gets selection flag value
| [in] | index | item index |
Definition at line 75 of file Selector.cpp.
|
protectedpure virtual |
This method is called by select method. (abstract 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 |
Implemented in kome::core::RangeListSelector, and kome::core::ManualSelector.
| bool kome::core::Selector::select | ( | ) |
selects item
Definition at line 96 of file Selector.cpp.

|
protected |
item value
Definition at line 44 of file Selector.h.
|
protected |
selected item
Definition at line 50 of file Selector.h.
|
protected |
selected flags
Definition at line 47 of file Selector.h.
1.8.6