VR-Forces 4.1 Class Documentation
List of all members | 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]

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.
- Public Member Functions inherited from makVrv::DtDateAndTimeInterface
 DtDateAndTimeInterface ()
 CTOR.
virtual ~DtDateAndTimeInterface ()
 DTOR.

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

Additional Inherited Members

- Public Attributes inherited from makVrv::DtDateAndTimeInterface
boost::signal< void()> signal_timeUpdateRequested
boost::signal< void(int hour,
int minutes, double seconds)> 
signal_changeTime
boost::signal< void(int year,
int month, double day)> 
signal_changeDate
boost::signal< void(double)> signal_changeTimeScale

Detailed Description

A date and time widget.

Constructor & Destructor Documentation

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

CTOR.

virtual makVrv::DtDateAndTimeWidget::~DtDateAndTimeWidget ( )
virtual

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 &  )
protectedslot
void makVrv::DtDateAndTimeWidget::on_myCalendar_selectedDateChanged ( const QDate &  )
protectedslot
void makVrv::DtDateAndTimeWidget::on_myTimeScaleSpinBox_valueChanged ( double  )
protectedslot
void makVrv::DtDateAndTimeWidget::on_myUseCurrentSettingsButton_clicked ( )
protectedslot
void makVrv::DtDateAndTimeWidget::updateTime ( )
protectedslot

Updates the currently displayed time to match the current time.

Called by the widget's timer every 33 ms.

void makVrv::DtDateAndTimeWidget::setupGui ( )
protected

Sets up the widget's fields.

Non-virtual (Called from CTOR).

Member Data Documentation

DtDe& makVrv::DtDateAndTimeWidget::myDe
protected
DtDateAndTimeLogic* makVrv::DtDateAndTimeWidget::myLogic
protected
QCalendarWidget* makVrv::DtDateAndTimeWidget::myCalendar
protected
DtAnalogClock* makVrv::DtDateAndTimeWidget::myAnalogClock
protected
QTimeEdit* makVrv::DtDateAndTimeWidget::myCurrentTimeEdit
protected
QDoubleSpinBox* makVrv::DtDateAndTimeWidget::myTimeScaleSpinBox
protected
QPushButton* makVrv::DtDateAndTimeWidget::myUseCurrentSettingsButton
protected

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

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)