VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes
makVrv::DtDateAndTimeWidget Class Reference

A date and time widget. More...

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

List of all members.

Public Member Functions

 DtDateAndTimeWidget (DtDe &de, QWidget *parent=0, Qt::WindowFlags f=0)
 CTOR.
virtual ~DtDateAndTimeWidget ()
 DTOR.
virtual void activate ()
 Instantiates the widget logic.
virtual void deactivate ()
 Destroys the widget's logic.
Field value setters.

Sets the values of the widget's corresponding fields.

virtual void setDateAndTime (int year, int month, int day, int hour, int minutes, double seconds)
 Set the date and time.
virtual void setTimeScale (double timeScale)
 Set the time scale.

Protected Slots

void updateTime ()
 Updates the currently displayed time to match the current time.
User input slots.

Receives notification that the user has changed a widget's value.

void on_myCurrentTimeEdit_timeChanged (const QTime &)
void on_myCalendar_selectedDateChanged (const QDate &)
void on_myTimeScaleSpinBox_valueChanged (double)
void on_myUseCurrentSettingsButton_clicked ()

Protected Member Functions

void setupGui ()
 Sets up the widget's fields.

Protected Attributes

DtDemyDe
DtDateAndTimeLogicmyLogic
QCalendarWidget * myCalendar
DtAnalogClockmyAnalogClock
QTimeEdit * myCurrentTimeEdit
QDoubleSpinBox * myTimeScaleSpinBox
QPushButtonmyUseCurrentSettingsButton

Detailed Description

A date and time widget.


Constructor & Destructor Documentation

makVrv::DtDateAndTimeWidget::DtDateAndTimeWidget ( DtDe de,
QWidget parent = 0,
Qt::WindowFlags  f = 0 
)

CTOR.

DTOR.


Member Function Documentation

virtual void makVrv::DtDateAndTimeWidget::setDateAndTime ( int  year,
int  month,
int  day,
int  hour,
int  minutes,
double  seconds 
) [virtual]

Set the date and time.

Implements makVrv::DtDateAndTimeInterface.

virtual void makVrv::DtDateAndTimeWidget::setTimeScale ( double  timeScale) [virtual]

Set the time scale.

Implements makVrv::DtDateAndTimeInterface.

virtual void makVrv::DtDateAndTimeWidget::activate ( ) [virtual]

Instantiates the widget logic.

virtual void makVrv::DtDateAndTimeWidget::deactivate ( ) [virtual]

Destroys the widget's logic.

void makVrv::DtDateAndTimeWidget::on_myCurrentTimeEdit_timeChanged ( const QTime &  ) [protected, slot]
void makVrv::DtDateAndTimeWidget::on_myCalendar_selectedDateChanged ( const QDate &  ) [protected, slot]
void makVrv::DtDateAndTimeWidget::updateTime ( ) [protected, slot]

Updates the currently displayed time to match the current time.

Called by the widget's timer every 33 ms.

Sets up the widget's fields.

Non-virtual (Called from CTOR).


Member Data Documentation

QCalendarWidget* makVrv::DtDateAndTimeWidget::myCalendar [protected]

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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)