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. | |
void | select (int id) |
select a button with given index | |
int | getSelected () const |
get the selected index | |
std::string | getSelectedText () const |
get the text of the currently selected button | |
std::string | getText (int id) const |
returns the text of a button with given index | |
void | setText (int id, const std::string &text) |
sets the text of a button with index ot a given text | |
void | disable () |
disables all radio buttons | |
void | enable () |
enables all radio buttons | |
void | disable (int index) |
disables button at index | |
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.
void icl::qt::ButtonGroupHandle::disable | ( | ) |
disables all radio buttons
Reimplemented from icl::qt::GUIHandle< RadioButtonVec >.
void icl::qt::ButtonGroupHandle::disable | ( | int | index | ) |
disables button at index
void icl::qt::ButtonGroupHandle::enable | ( | ) |
enables all radio buttons
Reimplemented from icl::qt::GUIHandle< RadioButtonVec >.
void icl::qt::ButtonGroupHandle::enable | ( | int | index | ) |
enables button at index
int icl::qt::ButtonGroupHandle::getSelected | ( | ) | const |
get the selected index
std::string icl::qt::ButtonGroupHandle::getSelectedText | ( | ) | const |
get the text of the currently selected button
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)
void icl::qt::ButtonGroupHandle::select | ( | int | id | ) |
select a button with given index
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)