A widget for arranging push-buttons in a grid and have them behave as a set of radio buttons.
More...
Signals |
| void | clicked (int index) |
| | Signal when a button is pressed.
|
| void | rightClicked (int index) |
| | Signal when a button is pressed with the right mouse button.
|
Detailed Description
A widget for arranging push-buttons in a grid and have them behave as a set of radio buttons.
Constructor & Destructor Documentation
| makVrv::DtRadioPushButtonsWidget::DtRadioPushButtonsWidget |
( |
DtPushButtonList & |
buttons, |
|
|
int |
colums = 5, |
|
|
QWidget * |
parent = NULL, |
|
|
Qt::WindowFlags |
flags = Qt::Widget |
|
) |
| |
CTOR.
- Parameters
-
| [in] | buttons | is a list of buttons to add to this widget. |
| [in] | columns | is the max number of columns in the grid. |
| [in] | parent | is the parent to manage this widget. |
| [in] | flags | is a set of windowing flags for display. |
| virtual makVrv::DtRadioPushButtonsWidget::~DtRadioPushButtonsWidget |
( |
| ) |
|
|
virtual |
Member Function Documentation
| virtual void makVrv::DtRadioPushButtonsWidget::pressButton |
( |
int |
index | ) |
|
|
virtual |
Function to programmatically press a button.
Pressing a button will uncheck all buttons then check the button at the given index. Giving an out of range index or an index less than zero will uncheck all buttons. Un-checking buttons will not send any signals.
- Parameters
-
| [in] | index | is the list-index of the button to press. |
| virtual int makVrv::DtRadioPushButtonsWidget::numButtons |
( |
| ) |
const |
|
virtual |
Get the number of buttons.
- Returns
- the size of the list of buttons.
| virtual int makVrv::DtRadioPushButtonsWidget::checkedButton |
( |
| ) |
const |
|
virtual |
Get the index of the checked button.
- Returns
- the index of the checked button or -1 if none are checked.
| void makVrv::DtRadioPushButtonsWidget::clicked |
( |
int |
index | ) |
|
|
signal |
Signal when a button is pressed.
- Parameters
-
| [in] | index | is the list-index of the button that was pressed. |
| void makVrv::DtRadioPushButtonsWidget::rightClicked |
( |
int |
index | ) |
|
|
signal |
Signal when a button is pressed with the right mouse button.
- Parameters
-
| [in] | index | is the list-index of the button that was pressed. |
Member Data Documentation
| QGridLayout* makVrv::DtRadioPushButtonsWidget::myLayout |
|
protected |
| QSignalMapper* makVrv::DtRadioPushButtonsWidget::myLeftSignalMapper |
|
protected |
| QSignalMapper* makVrv::DtRadioPushButtonsWidget::myRightSignalMapper |
|
protected |
The documentation for this class was generated from the following file: