Version: 8.3.0
StdMeshersGUI_RadioButtonsGrpWdg Class Reference

A QGroupBox holding several radio buttons. More...

#include <StdMeshersGUI_RadioButtonsGrpWdg.h>

Inheritance diagram for StdMeshersGUI_RadioButtonsGrpWdg:

Public Member Functions

 StdMeshersGUI_RadioButtonsGrpWdg (const QString &title)
 Creates a QGroupBox with a given title. More...
 
void setButtonLabels (const QStringList &buttonLabels, const QStringList &buttonIcons=QStringList())
 Creates a given number of button labels with given labels (QString's) More...
 
void setChecked (int id)
 Set checked a radio button with a give id. More...
 
int checkedId () const
 Return id (zero based) of a checked radio button. More...
 
QButtonGroup * getButtonGroup ()
 

Private Attributes

QButtonGroup * myButtonGrp
 

Detailed Description

A QGroupBox holding several radio buttons.

Constructor & Destructor Documentation

StdMeshersGUI_RadioButtonsGrpWdg::StdMeshersGUI_RadioButtonsGrpWdg ( const QString &  title)

Creates a QGroupBox with a given title.

References myButtonGrp.

Member Function Documentation

int StdMeshersGUI_RadioButtonsGrpWdg::checkedId ( ) const

Return id (zero based) of a checked radio button.

References myButtonGrp.

Referenced by StdMeshersGUI_StdHypothesisCreator::getParamFromCustomWidget().

QButtonGroup* StdMeshersGUI_RadioButtonsGrpWdg::getButtonGroup ( )
void StdMeshersGUI_RadioButtonsGrpWdg::setButtonLabels ( const QStringList &  buttonLabels,
const QStringList &  buttonIcons = QStringList() 
)

Creates a given number of button labels with given labels (QString's)

References MARGIN, myButtonGrp, SMESHGUI::resourceMgr(), and SPACING.

Referenced by StdMeshersGUI_StdHypothesisCreator::stdParams().

void StdMeshersGUI_RadioButtonsGrpWdg::setChecked ( int  id)

Set checked a radio button with a give id.

References myButtonGrp.

Referenced by StdMeshersGUI_StdHypothesisCreator::stdParams().

Field Documentation

QButtonGroup* StdMeshersGUI_RadioButtonsGrpWdg::myButtonGrp
private