![]() |
VR-Forces 4.2 Class Documentation
|
Widget that allows users to enter time values, including days. More...

Public Member Functions | |
| DtTimeEntryWidget (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0) | |
| virtual | ~DtTimeEntryWidget () |
| virtual void | setLabel (const std::string &) |
| Display label. | |
| virtual void | setRange (double bottom, double top) |
| Validation range. Not applicable. | |
| virtual void | setDefaultValue (const std::string &) |
| Default value to set in control. | |
| virtual void | setVariableData (const std::string &) |
| Variable data. Unused in this widget. | |
| virtual DtReaderWriter * | createBoundVariable (const std::string &variableName) |
| Creates the reader/writer variable that will be used as part of the task statement. | |
| virtual void | setupFromBoundVariable (const DtReaderWriter *variableName) |
| Sets up the widget from the given reader/writer variables. | |
| virtual void | setTimeInSeconds (int) |
| Accessors for time (in seconds) | |
| virtual int | timeInSeconds () const |
Public Member Functions inherited from makVrf::DtTaskSetVariableWidget | |
| DtTaskSetVariableWidget (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0) | |
| virtual | ~DtTaskSetVariableWidget () |
| virtual void | setToolTip (const QString &) |
| Sets the tool tip. | |
| virtual void | setupFrom (const std::vector< makVrv::DtSimEntry * > &data) |
| Sets up widget with currently selected item. No-op. | |
| virtual void | setTopLineVisible (bool) |
| Hides top line. | |
| virtual bool | topLineVisible () const |
| virtual void | createTopLine () |
| Creates top line. | |
| virtual void | setIndent (int) |
| Sets the indent level for the contents of this widget, except for the title line. | |
Public Member Functions inherited from makVrf::DtTaskSetVariableWidgetInterface | |
| DtTaskSetVariableWidgetInterface () | |
| virtual | ~DtTaskSetVariableWidgetInterface () |
| virtual DtTaskSetVariableWidgetExtensionInterface * | parameterContents (QWidget *parent, const Qt::WindowFlags &flags=0) const |
| If there are any, returns contents for this variable for variable extension. Default is no extension. | |
| virtual bool | guiElementOnly () const |
| Returns true if this is a GUI element only. Default is false. | |
Static Public Member Functions | |
| static makVrv::DtUnicode | codeVariableType () |
Public Attributes | |
| boost::signal< void()> | signal_changed |
| Signal sent when anything about the time entry has changed. | |
| QLabel * | myTimeEntryLabel |
| QTimeEdit * | myTime |
| QSpinBox * | myDays |
| QHBoxLayout * | myContentLayout |
Public Attributes inherited from makVrf::DtTaskSetVariableWidget | |
| QVBoxLayout * | myVariableWidgetLayout |
| QHBoxLayout * | mySpacedLayout |
| QVBoxLayout * | myVariableContentLayout |
| When creating subclasses of this item, use the variable content layout to add your content. | |
| QWidget * | myTopLine |
| QLabel * | myTopLabel |
| QSpacerItem * | myTopSeparator |
| QHBoxLayout * | myTopLineLayout |
| QSpacerItem * | mySpacerItem |
Protected Slots | |
| virtual void | onTimeChanged () |
Protected Member Functions | |
| virtual void | parseTime (const std::string &s, int &days, int &hours, int &minutes, int &seconds) const |
| Parses the time string in format of "dd:hh:mm:ss" or number of seconds into days, hours, minutes, seconds. | |
Additional Inherited Members | |
Protected Attributes inherited from makVrf::DtTaskSetVariableWidget | |
| makVrv::DtDe & | myDe |
| makVrv::DtSignalConnectionManager | myConnections |
Widget that allows users to enter time values, including days.
| makVrf::DtTimeEntryWidget::DtTimeEntryWidget | ( | makVrv::DtDe & | de, |
| QWidget * | parent, | ||
| const Qt::WindowFlags & | flags = 0 |
||
| ) |
|
virtual |
|
virtual |
Display label.
Reimplemented from makVrf::DtTaskSetVariableWidget.
|
virtual |
Validation range. Not applicable.
Implements makVrf::DtTaskSetVariableWidgetInterface.
|
virtual |
Default value to set in control.
If value contains colons then treat as DD:HH:MM:SS else treat as seconds
Implements makVrf::DtTaskSetVariableWidgetInterface.
|
virtual |
Variable data. Unused in this widget.
Implements makVrf::DtTaskSetVariableWidgetInterface.
|
virtual |
Creates the reader/writer variable that will be used as part of the task statement.
Implements makVrf::DtTaskSetVariableWidgetInterface.
|
virtual |
Sets up the widget from the given reader/writer variables.
Implements makVrf::DtTaskSetVariableWidgetInterface.
|
virtual |
Accessors for time (in seconds)
|
virtual |
|
inlinestatic |
|
protectedvirtualslot |
|
protectedvirtual |
Parses the time string in format of "dd:hh:mm:ss" or number of seconds into days, hours, minutes, seconds.
| boost::signal<void ()> makVrf::DtTimeEntryWidget::signal_changed |
Signal sent when anything about the time entry has changed.
| QLabel* makVrf::DtTimeEntryWidget::myTimeEntryLabel |
| QTimeEdit* makVrf::DtTimeEntryWidget::myTime |
| QSpinBox* makVrf::DtTimeEntryWidget::myDays |
| QHBoxLayout* makVrf::DtTimeEntryWidget::myContentLayout |