VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Slots | Signals | Public Member Functions | Protected Attributes | Private Member Functions | Friends
makVrv::DtWindDirectionWidget Class Reference

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.

Inheritance diagram for makVrv::DtWindDirectionWidget:
Inheritance graph
[legend]

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 ()
 
DtWindDirectionDialWidgetcompassDialWidget ()
 
QSpinBoxspinBoxWidget ()
 

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

DtDemyDe
 
QHBoxLayout * myLayout
 
DtWindDirectionDialWidgetmyDial
 
DtThreeDigitSpinBoxmySpinBox
 

Private Member Functions

void setupGui ()
 
void connectToSignals ()
 

Friends

class DtWindDirectionWidgetCreator
 

Constructor & Destructor Documentation

makVrv::DtWindDirectionWidget::DtWindDirectionWidget ( DtDe de,
QWidget *  parent = NULL,
Qt::WindowFlags  flags = Qt::Widget 
)

CTOR.

Parameters
[in]parentis the parent to manage this widget.
[in]flagsis a set of windowing flags for display.
virtual makVrv::DtWindDirectionWidget::~DtWindDirectionWidget ( )
virtual

virtual DTOR

Member Function Documentation

int makVrv::DtWindDirectionWidget::direction ( ) const

Get the direction.

Returns
the direction as an integer (in degrees).
double makVrv::DtWindDirectionWidget::directionF ( ) const

Get the direction as a double value.

Returns
the direction as a double (in degrees).
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.

void makVrv::DtWindDirectionWidget::directionChanged ( int  )
signal

Signal emitted when the direction changed.

void makVrv::DtWindDirectionWidget::directionChanged ( double  )
signal

Signal emitted when the direction changed.

void makVrv::DtWindDirectionWidget::setDirection ( int  degrees)
slot

Set the direction.

Parameters
[in]degreesis the new direction (wrapped to range 1-360).
Note
Does not emit any signals.
void makVrv::DtWindDirectionWidget::setDirection ( double  degrees)
slot

Set the direction as a double value.

Parameters
[in]degreesis the new direction (wrapped to range 1-360).
Note
Does not emit any signals.
virtual void makVrv::DtWindDirectionWidget::onDialDirectionChanged ( double  value)
protectedvirtualslot
virtual void makVrv::DtWindDirectionWidget::onHeadingSpinboxChanged ( int  value)
protectedvirtualslot
virtual void makVrv::DtWindDirectionWidget::changeEvent ( QEvent evt)
protectedvirtual

Handle the enabled/disabled event.

Parameters
[in]evtis the event to handle.
virtual void makVrv::DtWindDirectionWidget::showEvent ( QShowEvent *  evt)
protectedvirtual

Handle the show/hide events.

Parameters
[in]evtis the event to handle.
virtual void makVrv::DtWindDirectionWidget::hideEvent ( QHideEvent *  evt)
protectedvirtual

Handle the enabled/disabled event.

Parameters
[in]evtis the event to handle.
void makVrv::DtWindDirectionWidget::setupGui ( )
private

Sets up the widget's fields. Non-virtual (Called from CTOR).

void makVrv::DtWindDirectionWidget::connectToSignals ( )
private

Connects widget signals to slots. Non-virtual (Called from CTOR).

Friends And Related Function Documentation

friend class DtWindDirectionWidgetCreator
friend

Member Data Documentation

DtDe& makVrv::DtWindDirectionWidget::myDe
protected
QHBoxLayout* makVrv::DtWindDirectionWidget::myLayout
protected
DtWindDirectionDialWidget* makVrv::DtWindDirectionWidget::myDial
protected
DtThreeDigitSpinBox* makVrv::DtWindDirectionWidget::mySpinBox
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)