![]() |
VR-Forces 4.8 Class Documentation
|
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. More... | |
| void | rightClicked (int index) |
| Signal when a button is pressed with the right mouse button. More... | |
Public Member Functions | |
| DtRadioPushButtonsWidget (DtPushButtonList &buttons, int colums=5, QWidget *parent=NULL, Qt::WindowFlags flags=Qt::Widget) | |
| CTOR. More... | |
| virtual | ~DtRadioPushButtonsWidget () |
| virtual DTOR More... | |
| virtual void | pressButton (int index) |
| Function to programmatically press a button. More... | |
| virtual int | numButtons () const |
| Get the number of buttons. More... | |
| virtual int | checkedButton () const |
| Get the index of the checked button. More... | |
Protected Attributes | |
| DtPushButtonList | myButtons |
| QGridLayout * | myLayout |
| QSignalMapper * | myLeftSignalMapper |
| QSignalMapper * | myRightSignalMapper |
A widget for arranging push-buttons in a grid and have them behave as a set of radio buttons.
| makVrv::DtRadioPushButtonsWidget::DtRadioPushButtonsWidget | ( | DtPushButtonList & | buttons, |
| int | colums = 5, |
||
| QWidget * | parent = NULL, |
||
| Qt::WindowFlags | flags = Qt::Widget |
||
| ) |
CTOR.
| [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 |
virtual DTOR
|
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.
| [in] | index | is the list-index of the button to press. |
|
virtual |
Get the number of buttons.
|
virtual |
Get the index of the checked button.
|
signal |
Signal when a button is pressed.
| [in] | index | is the list-index of the button that was pressed. |
|
signal |
Signal when a button is pressed with the right mouse button.
| [in] | index | is the list-index of the button that was pressed. |
|
protected |
|
protected |
|
protected |
|
protected |