![]() |
VR-Forces 4.0.4 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 | 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 | |
| DtDe & | myDe |
| DtDateAndTimeLogic * | myLogic |
| QCalendarWidget * | myCalendar |
| DtAnalogClock * | myAnalogClock |
| QTimeEdit * | myCurrentTimeEdit |
| QDoubleSpinBox * | myTimeScaleSpinBox |
| QPushButton * | myUseCurrentSettingsButton |
A date and time widget.
| makVrv::DtDateAndTimeWidget::DtDateAndTimeWidget | ( | DtDe & | de, |
| QWidget * | parent = 0, |
||
| Qt::WindowFlags | f = 0 |
||
| ) |
CTOR.
| virtual makVrv::DtDateAndTimeWidget::~DtDateAndTimeWidget | ( | ) | [virtual] |
DTOR.
| 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::on_myTimeScaleSpinBox_valueChanged | ( | double | ) | [protected, slot] |
| void makVrv::DtDateAndTimeWidget::on_myUseCurrentSettingsButton_clicked | ( | ) | [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.
| void makVrv::DtDateAndTimeWidget::setupGui | ( | ) | [protected] |
Sets up the widget's fields.
Non-virtual (Called from CTOR).
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] |