![]() |
VR-Forces 4.6.1 Class Documentation
|
A date and time widget. More...

Public Member Functions | |
| DtDateAndTimeWidget (DtDe &de, QWidget *parent=0, Qt::WindowFlags f=0) | |
| CTOR. | |
| virtual | ~DtDateAndTimeWidget () |
| DTOR. | |
| virtual void | setWidgetsEnabled (bool isEnabled) |
| Enable or disable all the date and time widgets on this widget Widgets are disabled when listening to remote weather. | |
Field value setters. | |
Sets the values of the widget's corresponding fields. | |
| virtual void | setDateAndTime (int year, int month, int day, int hours, int minutes, double seconds) |
| Set the date and time of the widget. | |
| virtual void | setDate (int year, int month, int day) |
| Set the date of the widget. | |
| virtual void | setTime (int hours, int minutes, double seconds) |
| Set the time of the widget. | |
| virtual void | setTimeScale (double timeScale) |
| Changed the time scale. | |
Widget activation states. | |
Sets the activation states of the widget, typically when system is ready for receiving updates from the widget. | |
| virtual void | activate () |
| Activate the update timer for this widget. | |
| virtual void | deactivate () |
| Deactivate the timer for this widget. | |
Public Member Functions inherited from makVrv::DtDateAndTimeInterface | |
| DtDateAndTimeInterface () | |
| Default CTOR. | |
| virtual | ~DtDateAndTimeInterface () |
| Virtual DTOR. | |
Protected Slots | |
| virtual 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. | |
| virtual void | on_myHourChanged (int hour) |
| virtual void | on_myMinuteChanged (int minute) |
| virtual void | on_myTimeChanged (const QTime &) |
| virtual void | on_myDateChanged (const QDate &) |
| virtual void | on_myTimeScaleChanged (double) |
| virtual void | on_myUseCurrentSettingsClicked () |
Protected Member Functions | |
| void | setupGui () |
| Sets up the widget's fields. | |
| int | getSeconds (double seconds) |
| Helper function to get the whole number of seconds from a double. | |
| int | getMilliseconds (double seconds) |
| Helper function to get the whole number of milliseconds from a double. | |
| double | getSeconds (int sec, int millisec) |
| Helper function to join seconds and milliseconds as integers into a single double of seconds with fraction of seconds. | |
Protected Attributes | |
| DtDe & | myDe |
| DtAnalogClock * | myAnalogClock |
| QCalendarWidget * | myCalendar |
| QDoubleSpinBox * | myTimeScaleSpinBox |
| QTimeEdit * | myCurrentTimeEdit |
| QLabel * | myHourLabel |
| QSlider * | myHourSlider |
| QLabel * | myMinuteLabel |
| QSlider * | myMinuteSlider |
| QTimer * | myTimer |
| QPushButton * | myUseCurrentSettingsButton |
| QLabel * | myCurrentTimeLabel |
| QLabel * | myTimeScaleLabel |
| QLabel * | myHelpLabel |
Additional Inherited Members | |
Public Attributes inherited from makVrv::DtDateAndTimeInterface | |
| boost::signal< void()> | signal_timeUpdateRequested |
| boost::signal< void(int, int, double)> | signal_changeTime |
| boost::signal< void(int, int, int)> | signal_changeDate |
| boost::signal< void(double)> | signal_changeTimeScale |
A date and time widget.
| makVrv::DtDateAndTimeWidget::DtDateAndTimeWidget | ( | DtDe & | de, |
| QWidget * | parent = 0, |
||
| Qt::WindowFlags | f = 0 |
||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Set the date and time of the widget.
| [in] | year | is the numerical year (all digits required). |
| [in] | month | is the numerical month of the year (1 - 12). |
| [in] | day | is the numerical day of the month (1 - 31). |
| [in] | hours | is the numerical hour of the day (0 - 23). |
| [in] | minutes | is the numerical minutes of the day (0 - 59). |
| [in] | seconds | is the seconds of the day (0.0 - 59.999). |
Implements makVrv::DtDateAndTimeInterface.
Set the date of the widget.
| [in] | year | is the numerical year (all digits required). |
| [in] | month | is the numerical month of the year (1 - 12). |
| [in] | day | is the numerical day of the month (1 - 31). |
|
virtual |
Set the time of the widget.
| [in] | hours | is the numerical hour of the day (0 - 23). |
| [in] | minutes | is the numerical minutes of the day (0 - 59). |
| [in] | seconds | is the seconds of the day (0.0 - 59.999). |
|
virtual |
Changed the time scale.
| [in] | timeScale | is a multiplier for scaling time (default 1.0). |
Implements makVrv::DtDateAndTimeInterface.
Reimplemented in makVrf::DtVrfEnvironmentConditionsDateAndTimeWidget.
|
virtual |
Activate the update timer for this widget.
Implements makVrv::DtDateAndTimeInterface.
Reimplemented in makVrf::DtVrfEnvironmentConditionsDateAndTimeWidget.
|
virtual |
Deactivate the timer for this widget.
Implements makVrv::DtDateAndTimeInterface.
Reimplemented in makVrf::DtVrfEnvironmentConditionsDateAndTimeWidget.
|
virtual |
Enable or disable all the date and time widgets on this widget Widgets are disabled when listening to remote weather.
| [in] | isEnabled | determines whether or not the widgets are activated |
Implements makVrv::DtDateAndTimeInterface.
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
Updates the currently displayed time to match the current time.
Called by the widget's timer every 33 ms.
|
protected |
Sets up the widget's fields.
Non-virtual (Called from CTOR).
Helper function to get the whole number of seconds from a double.
| [in] | seconds | is the double value to split. |
Helper function to get the whole number of milliseconds from a double.
| [in] | seconds | is the double value to split. |
Helper function to join seconds and milliseconds as integers into a single double of seconds with fraction of seconds.
| [in] | sec | is the integer value of seconds. |
| [in] | millisec | is the integer value of milliseconds. |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |