Public Member Functions | |
QGuiRadioSelector (const TGWindow *parent) | |
constructor | |
virtual | ~QGuiRadioSelector () |
destructor | |
void | SetEntries (const std::vector< std::string > &entries) |
set the entries to be shown by this widget | |
Bool_t | SetPictures (const std::vector< TGPicture * > &pictures) |
set pictures to be associated to the buttons | |
Bool_t | SetSelected (size_t id) |
set selected button | |
size_t | GetSelected () const |
get id of selected item | |
void | ValueChanged () |
updates the widget and emits the ValueChanged() signal | |
void | Lock (Bool_t doLock) |
Private Member Functions | |
void | Display () |
void | UpdateSelected () |
ClassDef (QGuiRadioSelector, 0) | |
Private Attributes | |
std::vector< std::string > | fEntries |
std::vector< TGPicture * > | fPictures |
std::vector< TGRadioButton * > | fButtons |
size_t | fSelected |
QGuiRadioSelector::QGuiRadioSelector | ( | const TGWindow * | parent | ) |
constructor
parent | parent window for this frame |
void QGuiRadioSelector::SetEntries | ( | const std::vector< std::string > & | entries | ) |
set the entries to be shown by this widget
entries | list of entries to be shown |
References SetSelected().
Bool_t QGuiRadioSelector::SetPictures | ( | const std::vector< TGPicture * > & | pictures | ) |
set pictures to be associated to the buttons
pictures | vector containing the pictures |
Bool_t QGuiRadioSelector::SetSelected | ( | size_t | id | ) |
set selected button
id | id of the selected button |
Referenced by QGEBiasFrame::SetBiasPolarity(), SetEntries(), QGEBiasFrame::SetGroundStatus(), QGEOffsetFrame::SetOffsetPolarity(), and ValueChanged().
size_t QGuiRadioSelector::GetSelected | ( | ) | const [inline] |
get id of selected item
Referenced by QGEOffsetFrame::GetOffsetPolarity().