Image Component Library (ICL)
|
Class for handling button goups. More...
#include <ButtonGroupHandle.h>
Public Member Functions | |
ButtonGroupHandle () | |
Create an empty handle. | |
ButtonGroupHandle (RadioButtonVec *buttons, GUIWidget *w) | |
Craete a valid handle. | |
ICLQt_API void | select (int id) |
select a button with given index | |
ICLQt_API int | getSelected () const |
get the selected index | |
ICLQt_API std::string | getSelectedText () const |
get the text of the currently selected button | |
ICLQt_API std::string | getText (int id) const |
returns the text of a button with given index | |
ICLQt_API void | setText (int id, const std::string &text) |
sets the text of a button with index ot a given text | |
ICLQt_API void | disable () |
disables all radio buttons | |
ICLQt_API void | enable () |
enables all radio buttons | |
ICLQt_API void | disable (int index) |
disables button at index | |
ICLQt_API void | enable (int index) |
enables button at index | |
Private Member Functions | |
int | n () const |
utility function (number of elements) | |
bool | valid (int id) const |
utility function (check indices for being valid) | |
RadioButtonVec & | vec () |
utitliy function returns the underlying vector | |
const RadioButtonVec & | vec () const |
utitliy function returns the underlying vector (const) |
Class for handling button goups.
icl::qt::ButtonGroupHandle::ButtonGroupHandle | ( | ) | [inline] |
Create an empty handle.
icl::qt::ButtonGroupHandle::ButtonGroupHandle | ( | RadioButtonVec * | buttons, |
GUIWidget * | w | ||
) | [inline] |
Craete a valid handle.
disables all radio buttons
Reimplemented from icl::qt::GUIHandle< RadioButtonVec >.
ICLQt_API void icl::qt::ButtonGroupHandle::disable | ( | int | index | ) |
disables button at index
enables all radio buttons
Reimplemented from icl::qt::GUIHandle< RadioButtonVec >.
ICLQt_API void icl::qt::ButtonGroupHandle::enable | ( | int | index | ) |
enables button at index
ICLQt_API int icl::qt::ButtonGroupHandle::getSelected | ( | ) | const |
get the selected index
ICLQt_API std::string icl::qt::ButtonGroupHandle::getSelectedText | ( | ) | const |
get the text of the currently selected button
ICLQt_API std::string icl::qt::ButtonGroupHandle::getText | ( | int | id | ) | const |
returns the text of a button with given index
int icl::qt::ButtonGroupHandle::n | ( | ) | const [inline, private] |
utility function (number of elements)
ICLQt_API void icl::qt::ButtonGroupHandle::select | ( | int | id | ) |
select a button with given index
ICLQt_API void icl::qt::ButtonGroupHandle::setText | ( | int | id, |
const std::string & | text | ||
) |
sets the text of a button with index ot a given text
bool icl::qt::ButtonGroupHandle::valid | ( | int | id | ) | const [inline, private] |
utility function (check indices for being valid)
RadioButtonVec& icl::qt::ButtonGroupHandle::vec | ( | ) | [inline, private] |
utitliy function returns the underlying vector
const RadioButtonVec& icl::qt::ButtonGroupHandle::vec | ( | ) | const [inline, private] |
utitliy function returns the underlying vector (const)