94 QComboBox *
cbx() {
return **
this; }
97 const QComboBox *
cbx()
const{
return **
this; }
undocument this line if you encounter any issues!
Definition: Any.h:37
ICLQt_API int getSelectedIndex() const
returns the currently selected index
ICLQt_API std::string getItem(int idx) const
returns the item at given index
Handle class for combo components.
Definition: ComboHandle.h:45
ICLQt_API int getItemCount() const
returns the count of elements
QComboBox * cbx()
utility function (internally used)
Definition: ComboHandle.h:94
Abstract base class for Handle classes.
Definition: GUIHandle.h:40
ICLQt_API void setSelectedIndex(int idx)
sets the current index
ComboHandle()
create an empty handle
Definition: ComboHandle.h:48
ICLQt_API std::string getSelectedItem() const
returns the currently selected item
ICLQt_API void setSelectedItem(const std::string &item)
sets the current item
#define ICLQt_API
Definition: CompatMacros.h:178
const QComboBox * cbx() const
utility function (internally used)
Definition: ComboHandle.h:97
ICLQt_API void clear()
void remove all items
virtual void cb()
envokes all registered callbacks
Definition: GUIHandleBase.h:102
ICLQt_API void remove(const std::string &item)
remove an item
ICLQt_API int getIndex(const std::string &item) const
returns the index of a given item
ComboHandle(QComboBox *cb, GUIWidget *w)
create a new ComboHandle wrapping a given QComboBox
Definition: ComboHandle.h:51
ICLQt_API void add(const std::string &item)
add an item