Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Member Functions
icl::qt::ButtonGroupHandle Class Reference

Class for handling button goups. More...

#include <ButtonGroupHandle.h>

Inheritance diagram for icl::qt::ButtonGroupHandle:
icl::qt::GUIHandle< RadioButtonVec > icl::qt::GUIHandleBase

List of all members.

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)
RadioButtonVecvec ()
 utitliy function returns the underlying vector
const RadioButtonVecvec () const
 utitliy function returns the underlying vector (const)

Detailed Description

Class for handling button goups.


Constructor & Destructor Documentation

Create an empty handle.

Craete a valid handle.


Member Function Documentation

disables all radio buttons

Reimplemented from icl::qt::GUIHandle< RadioButtonVec >.

disables button at index

enables all radio buttons

Reimplemented from icl::qt::GUIHandle< RadioButtonVec >.

enables button at index

get the selected index

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)

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)

utitliy function returns the underlying vector

const RadioButtonVec& icl::qt::ButtonGroupHandle::vec ( ) const [inline, private]

utitliy function returns the underlying vector (const)


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines