![]() |
Image Component Library (ICL)
|
Handle class for combo components. More...
#include <ComboHandle.h>
Public Member Functions | |
| ComboHandle () | |
| create an empty handle More... | |
| ComboHandle (QComboBox *cb, GUIWidget *w) | |
| create a new ComboHandle wrapping a given QComboBox More... | |
| ICLQt_API void | add (const std::string &item) |
| add an item More... | |
| ICLQt_API void | remove (const std::string &item) |
| remove an item More... | |
| ICLQt_API void | remove (int idx) |
| remove item at given index More... | |
| ICLQt_API void | clear () |
| void remove all items More... | |
| ICLQt_API std::string | getItem (int idx) const |
| returns the item at given index More... | |
| ICLQt_API int | getIndex (const std::string &item) const |
| returns the index of a given item More... | |
| ICLQt_API int | getSelectedIndex () const |
| returns the currently selected index More... | |
| ICLQt_API std::string | getSelectedItem () const |
| returns the currently selected item More... | |
| ICLQt_API int | getItemCount () const |
| returns the count of elements More... | |
| ICLQt_API void | setSelectedIndex (int idx) |
| sets the current index More... | |
| ICLQt_API void | setSelectedItem (const std::string &item) |
| sets the current item More... | |
| operator int () const | |
| convenience operator wrapping getSelectedIndex More... | |
| operator std::string () const | |
| convenience operator wrapping getSelectedItem More... | |
Public Member Functions inherited from icl::qt::GUIHandle< QComboBox > | |
| const QComboBox * | operator * () const |
| use the *-oprator to get the wrapped component (const) More... | |
| QComboBox *& | operator * () |
| use the *-oprator to get the wrapped component (unconst) More... | |
| QComboBox * | operator-> () |
| this can be used for direct access to wrapped type More... | |
| const QComboBox * | operator-> () const |
| this can be used for direct access to wrapped type More... | |
| bool | isNull () const |
| returns whether wrapped pointer is null or not More... | |
| void | enable () |
| enables the wrapped GUI component More... | |
| void | disable () |
| disables the wrapped GUI component More... | |
Public Member Functions inherited from icl::qt::GUIHandleBase | |
| virtual | ~GUIHandleBase () |
| virtual destructor More... | |
| GUIWidget * | getGUIWidget () |
| returns parent GUIWidget pointer More... | |
| virtual void | registerCallback (const GUI::Callback &cb, const std::string &events="all") |
| registers a callback on this gui widget More... | |
| virtual void | registerCallback (const GUI::ComplexCallback &cb, const std::string &events="all") |
| registers a complex callback on this gui component More... | |
| virtual void | removeCallbacks () |
| removes all callbacks from parent GUIWidget component More... | |
| virtual void | cb () |
| envokes all registered callbacks More... | |
Private Member Functions | |
| QComboBox * | cbx () |
| utility function (internally used) More... | |
| const QComboBox * | cbx () const |
| utility function (internally used) More... | |
Additional Inherited Members | |
Protected Member Functions inherited from icl::qt::GUIHandle< QComboBox > | |
| GUIHandle () | |
| as GUIHandle is just an interface, its base constructor is protected More... | |
| GUIHandle (QComboBox *t, GUIWidget *w) | |
| as GUIHandle is just an interface, its base constructor is protected More... | |
Protected Member Functions inherited from icl::qt::GUIHandleBase | |
| GUIHandleBase (GUIWidget *w=0) | |
| create a new GUIHandleBase More... | |
Handle class for combo components.
|
inline |
create an empty handle
|
inline |
create a new ComboHandle wrapping a given QComboBox
| ICLQt_API void icl::qt::ComboHandle::add | ( | const std::string & | item | ) |
add an item
|
inlineprivate |
utility function (internally used)
|
inlineprivate |
utility function (internally used)
| ICLQt_API void icl::qt::ComboHandle::clear | ( | ) |
void remove all items
| ICLQt_API int icl::qt::ComboHandle::getIndex | ( | const std::string & | item | ) | const |
returns the index of a given item
| ICLQt_API std::string icl::qt::ComboHandle::getItem | ( | int | idx | ) | const |
returns the item at given index
| ICLQt_API int icl::qt::ComboHandle::getItemCount | ( | ) | const |
returns the count of elements
| ICLQt_API int icl::qt::ComboHandle::getSelectedIndex | ( | ) | const |
returns the currently selected index
| ICLQt_API std::string icl::qt::ComboHandle::getSelectedItem | ( | ) | const |
returns the currently selected item
|
inline |
convenience operator wrapping getSelectedIndex
|
inline |
convenience operator wrapping getSelectedItem
| ICLQt_API void icl::qt::ComboHandle::remove | ( | const std::string & | item | ) |
remove an item
| ICLQt_API void icl::qt::ComboHandle::remove | ( | int | idx | ) |
remove item at given index
| ICLQt_API void icl::qt::ComboHandle::setSelectedIndex | ( | int | idx | ) |
sets the current index
| ICLQt_API void icl::qt::ComboHandle::setSelectedItem | ( | const std::string & | item | ) |
sets the current item
1.8.15