20 #ifndef ModuleBase_ChoiceCtrl_H
21 #define ModuleBase_ChoiceCtrl_H
23 #include "ModuleBase.h"
26 #include <QStringList>
59 const QStringList& theChoiceList,
60 const QStringList& theIconsList,
61 ControlType theType = RadioButtons,
62 Qt::Orientation theButtonsDir = Qt::Horizontal);
67 void setLabel(
const QString& theText);
71 void setLabelIcon(
const QString& theIcon);
75 void setValue(
int theVal);
79 void setValue(
const QString& theVal);
82 void setTooltip(QString theTip);
88 QString textValue()
const;
94 QList<QWidget*> getControls()
const;
98 void setChoiceList(
const QStringList& theChoiceList);
118 QButtonGroup* myButtons;
A Choice control.
Definition: ModuleBase_ChoiceCtrl.h:42
void valueChanged(int theVal)
A signal raised on change of current value.