![]() |
VR-Forces 5.0.2 Developer's Guide
|
A widget for pairing a wind direction dial with a double spin box.
The wind direction dial shows the wind direction. The double spin box allows the user to enter an exact wind direction value.

Public Slots | |
| void | setDirection (int degrees) |
| void | setDirection (double degrees) |
Signals | |
| void | directionChanged (int) |
| void | directionChanged (double) |
Public Member Functions | |
| DtWindDirectionWidget (DtDe &de, QWidget *parent=NULL, Qt::WindowFlags flags=Qt::Widget) | |
| virtual | ~DtWindDirectionWidget () |
Field value setters. | |
Sets the values of the widget's corresponding fields. | |
| int | direction () const |
| double | directionF () const |
Accessors to the underlying widgets. | |
Gets the handle to each of the child widgets. | |
| QHBoxLayout * | mainLayout () |
| DtWindDirectionDialWidget * | compassDialWidget () |
| QSpinBox * | spinBoxWidget () |
Protected Slots | |
User input slots. | |
Slots connected to the signals of the internal widgets. | |
| virtual void | onDialDirectionChanged (double value) |
| virtual void | onHeadingSpinboxChanged (int value) |
Protected Member Functions | |
Event handlers. | |
Extending base-class event handlers to propagate to children. | |
| virtual void | changeEvent (QEvent *evt) |
| virtual void | showEvent (QShowEvent *evt) |
| virtual void | hideEvent (QHideEvent *evt) |
Protected Attributes | |
| DtDe & | myDe |
| QHBoxLayout * | myLayout |
| DtWindDirectionDialWidget * | myDial |
| DtThreeDigitSpinBox * | mySpinBox |
Private Member Functions | |
| void | setupGui () |
| void | connectToSignals () |
Friends | |
| class | DtWindDirectionWidgetCreator |
| makVrv::DtWindDirectionWidget::DtWindDirectionWidget | ( | DtDe & | de, |
| QWidget * | parent = NULL, |
||
| Qt::WindowFlags | flags = Qt::Widget |
||
| ) |
CTOR.
| [in] | parent | is the parent to manage this widget. |
| [in] | flags | is a set of windowing flags for display. |
|
virtual |
virtual DTOR
| int makVrv::DtWindDirectionWidget::direction | ( | ) | const |
Get the direction.
| double makVrv::DtWindDirectionWidget::directionF | ( | ) | const |
Get the direction as a double value.
| QHBoxLayout* makVrv::DtWindDirectionWidget::mainLayout | ( | ) |
Get the main layout for this widget. Returns a handle to the main layout.
| DtWindDirectionDialWidget* makVrv::DtWindDirectionWidget::compassDialWidget | ( | ) |
Get the compass-dial for this widget. Returns a handle to the compass-dial.
| QSpinBox* makVrv::DtWindDirectionWidget::spinBoxWidget | ( | ) |
Get the double spin box for this widget. Returns a handle to the double spin box. Can return NULL.
|
signal |
Signal emitted when the direction changed.
|
signal |
Signal emitted when the direction changed.
|
slot |
Set the direction.
| [in] | degrees | is the new direction (wrapped to range 1-360). |
|
slot |
Set the direction as a double value.
| [in] | degrees | is the new direction (wrapped to range 1-360). |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtual |
Handle the enabled/disabled event.
| [in] | evt | is the event to handle. |
|
protectedvirtual |
Handle the show/hide events.
| [in] | evt | is the event to handle. |
|
protectedvirtual |
Handle the enabled/disabled event.
| [in] | evt | is the event to handle. |
|
private |
Sets up the widget's fields. Non-virtual (Called from CTOR).
|
private |
Connects widget signals to slots. Non-virtual (Called from CTOR).
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |