![]() |
VR-Forces 4.8 Class Documentation
|
This class will define the interface needed for being a task set variable that can be used in task dialogs and scripted task dialogs. More...

Public Types | |
| enum | CreationFlags { NormalMode = 0x00000000, QtDesignerMode = 0x00000001 } |
Public Member Functions | |
| DtTaskSetVariableWidgetInterface () | |
| virtual | ~DtTaskSetVariableWidgetInterface () |
| virtual void | setLabel (const std::string &)=0 |
| Display label. More... | |
| virtual void | setLabel (const QString &)=0 |
| virtual void | setToolTip (const QString &)=0 |
| Sets the tool tip for the widget. More... | |
| virtual void | setTopLineVisible (bool) |
| Hides top line. More... | |
| virtual bool | topLineVisible () const |
| virtual bool | isValid () const =0 |
| Indicates the current selection is valid. More... | |
| virtual void | widgetInitializedForDialog (DtScriptedTaskDialog *, const std::vector< makVrv::DtSimEntry * > &data) |
| Called when the widget is initialized from a scripted task dialog. Default implementation is to do nothing. More... | |
| virtual void | setRange (double bottom, double top)=0 |
| virtual void | setDefaultValue (const std::string &)=0 |
| Default value to set in control. More... | |
| virtual void | setVariableData (const std::string &)=0 |
| Variable data that can be used by this control to initialize values (i.e. More... | |
| virtual void | setupFrom (const std::vector< makVrv::DtSimEntry * > &data)=0 |
| Sets up widget with currently selected item. More... | |
| virtual DtReaderWriter * | createBoundVariable (const std::string &variableName)=0 |
| Creates the reader/writer variable that will be used as part of the task statement. More... | |
| virtual void | setupFromBoundVariable (const DtReaderWriter *variableName)=0 |
| Sets up the widget from the given reader/writer variables. More... | |
| 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. More... | |
| virtual bool | guiElementOnly () const |
| Returns true if this is a GUI element only. Default is false. More... | |
| virtual void | setIndent (int)=0 |
| Sets the indent level for the contents of this widget. More... | |
| virtual std::string | variableDataFromUiDesigner (const QDomElement &, const DtScriptedTaskVariableLayoutConverter &) const =0 |
| Given the Ui designer properties create a string that will represent the variable data for those properties. More... | |
| virtual std::string | scriptedTaskVariableName () const =0 |
| In most cases this is the objectName of the object, however, in some cases (as in radio button) this could be a name that is shared amongst like objects, so, that is returned instead. More... | |
| static bool | canBeUsedAsWidget () |
| Whether or not this shows up as a usable variable widget. More... | |
| static void | initializeForQtDesignerExtension (makVrv::DtDe &de, QDesignerFormEditorInterface *core) |
| Implement at class level to perform Qt Designer custom widget initialization. Please refer to Qt documentation for designer modifications. More... | |
| static bool | includeInQtDesigner () |
This class will define the interface needed for being a task set variable that can be used in task dialogs and scripted task dialogs.
Subclass of QGroupBox to be able to implement label creation. If a label is set, then the group box will be used, else it will be no frame and no title.
|
inline |
|
inlinevirtual |
|
pure virtual |
Display label.
This will create the top label line if not overriden by a default.
Implemented in makVrf::DtSimpleSingleRadioButtonVariableWidget, makVrf::DtTaskSetVariableWidget, makVrf::DtForceSelectionEntryWidget, makVrf::DtCountrySelectionEntryWidget, makVrf::DtSimpleVariableWidget, makVrf::DtSimpleMapDataWidget, makVrf::DtOverlayParentEntryWidget, makVrf::DtEmitterModesSelectionEntryWidget, makVrf::DtOffsetLocationEntryWidget, and makVrf::DtOrientationEntryWidget.
|
pure virtual |
Implemented in makVrf::DtSimpleSingleRadioButtonVariableWidget, makVrf::DtSimpleCheckBoxVariableWidget, makVrf::DtSimpleComboVariableWidget, makVrf::DtSimpleEntityTypesVariableWidget, makVrf::DtTaskSetVariableWidget, makVrf::DtDiGuyGestureSelectionEntryWidget, makVrf::DtDiGuyAppearanceSelectionEntryWidget, makVrf::DtForceSelectionEntryWidget, makVrf::DtSimpleVariableWidget, makVrf::DtSimpleMapDataWidget, makVrf::DtCountrySelectionEntryWidget, makVrf::DtWeaponSelectionWidget, makVrf::DtOverlayParentEntryWidget, makVrf::DtTimeEntryWidget, makVrf::DtColorEntryWidget, makVrf::DtEmitterModesSelectionEntryWidget, makVrf::DtResourceSelectionEntryWidget, DtIntegerListEntryWidget, makVrf::DtEmbeddedEntitySelectionWidget, makVrf::DtFormationSelectionEntryWidget, makVrf::DtHeadingEntryWidget, makVrf::DtRangeEntryWidget, makVrf::DtAltitudeEntryWidget, makVrf::DtDepthEntryWidget, makVrf::DtRateEntryWidget, makVrf::DtTurnRateEntryWidget, makVrf::DtDateTimeEntryWidget, makVrf::DtEmitterSelectionEntryWidget, makVrf::DtStealthViewModesWidget, makVrf::DtDiGuyAnimationSelectionEntryWidget, makVrf::DtPitchEntryWidget, makVrf::DtLoadoutSelectionWidget, and makVrf::DtSimpleLabelWidget.
|
pure virtual |
Sets the tool tip for the widget.
Implemented in makVrf::DtSimpleEntityTypesVariableWidget, makVrf::DtTaskSetVariableWidget, makVrf::DtForceSelectionEntryWidget, makVrf::DtCountrySelectionEntryWidget, makVrf::DtOverlayParentEntryWidget, and makVrf::DtEmitterModesSelectionEntryWidget.
|
inlinevirtual |
Hides top line.
Reimplemented in makVrf::DtTaskSetVariableWidget.
|
inlinevirtual |
Reimplemented in makVrf::DtTaskSetVariableWidget.
|
pure virtual |
Indicates the current selection is valid.
Implemented in makVrf::DtTaskSetVariableWidget, makVrf::DtVrfFilteredListView, makVrf::DtVisualMetaDataSelectionWidget, makVrf::DtSimpleSeparatorWidget, makVrf::DtForceSelectionEntryWidget, makVrf::DtCountrySelectionEntryWidget, makVrf::DtOverlayParentEntryWidget, makVrf::DtEmitterModesSelectionEntryWidget, makVrf::DtNewTacticalGraphicEntryWidget, makVrf::DtLoadoutSelectionWidget, and makVrf::DtSimpleLabelWidget.
|
pure virtual |
These methods must be implemented in order to be considered a DtTaskSetVariable that can be used as part of a scripted task Validation range. Might not be applicable to all items
Implemented in makVrf::DtSimpleSingleRadioButtonVariableWidget, makVrf::DtSimpleRadioButtonVariableWidget, makVrf::DtSimpleCheckBoxVariableWidget, makVrf::DtSimpleComboVariableWidget, makVrf::DtSimpleEntityTypesVariableWidget, makVrf::DtSimpleStringVariableWidget, makVrf::DtSimpleDoubleVariableWidget, makVrf::DtTaskSetVariableWidget, makVrf::DtLocationEntryWidget, makVrf::DtSimpleIntegerVariableWidget, makVrf::DtSimpleStringMapWidget, makVrf::DtDiGuyGestureSelectionEntryWidget, makVrf::DtSimpleDoubleMapWidget, makVrf::DtAltitudeRateEntryWidget, makVrf::DtNewTacticalGraphicEntryWidget, makVrf::DtDiGuyAppearanceSelectionEntryWidget, makVrf::DtSimpleIntegerMapWidget, makVrf::DtSimpleSeparatorWidget, makVrf::DtForceSelectionEntryWidget, makVrf::DtVisualMetaDataSelectionWidget, makVrf::DtCountrySelectionEntryWidget, makVrf::DtOffsetLocationEntryWidget, makVrf::DtOverlayParentEntryWidget, makVrf::DtWeaponSelectionWidget, makVrf::DtEmitterModesSelectionEntryWidget, makVrf::DtSimpleLabelWidget, makVrf::DtTimeEntryWidget, makVrf::DtColorEntryWidget, makVrf::DtHeadingEntryWidget, makVrf::DtOrientationEntryWidget, makVrf::DtRangeEntryWidget, makVrf::DtResourceSelectionEntryWidget, makVrf::DtAltitudeEntryWidget, makVrf::DtDepthEntryWidget, makVrf::DtRateEntryWidget, makVrf::DtSphereEntryWidget, makVrf::DtTurnRateEntryWidget, makVrf::DtEmbeddedEntitySelectionWidget, makVrf::DtFormationSelectionEntryWidget, makVrf::DtPitchEntryWidget, makVrf::DtPrecisionMovementEntryWidget, DtIntegerListEntryWidget, makVrf::DtStealthViewModesWidget, makVrf::DtDateTimeEntryWidget, makVrf::DtEmbarkationSlotEntryWidget, makVrf::DtEmitterSelectionEntryWidget, makVrf::DtDiGuyAnimationSelectionEntryWidget, makVrf::DtStealthObserverViewModesWidget, and makVrf::DtLoadoutSelectionWidget.
|
pure virtual |
Default value to set in control.
Implemented in makVrf::DtSimpleSingleRadioButtonVariableWidget, makVrf::DtSimpleRadioButtonVariableWidget, makVrf::DtSimpleCheckBoxVariableWidget, makVrf::DtSimpleComboVariableWidget, makVrf::DtSimpleEntityTypesVariableWidget, makVrf::DtSimpleEntityTypeVariableWidget, makVrf::DtLocationEntryWidget, makVrf::DtDiGuyGestureSelectionEntryWidget, makVrf::DtNewTacticalGraphicEntryWidget, makVrf::DtDiGuyAppearanceSelectionEntryWidget, makVrf::DtSimpleSeparatorWidget, makVrf::DtForceSelectionEntryWidget, makVrf::DtVisualMetaDataSelectionWidget, makVrf::DtTimeEntryWidget, makVrf::DtCountrySelectionEntryWidget, makVrf::DtOffsetLocationEntryWidget, makVrf::DtOverlayParentEntryWidget, makVrf::DtSimpleVariableWidget, makVrf::DtWeaponSelectionWidget, makVrf::DtEmitterModesSelectionEntryWidget, makVrf::DtSimpleMapDataWidget, makVrf::DtColorEntryWidget, makVrf::DtHeadingEntryWidget, makVrf::DtOrientationEntryWidget, makVrf::DtRangeEntryWidget, makVrf::DtResourceSelectionEntryWidget, makVrf::DtAltitudeEntryWidget, makVrf::DtDepthEntryWidget, makVrf::DtRateEntryWidget, makVrf::DtSphereEntryWidget, makVrf::DtTurnRateEntryWidget, makVrf::DtFormationSelectionEntryWidget, makVrf::DtPitchEntryWidget, makVrf::DtPrecisionMovementEntryWidget, DtIntegerListEntryWidget, makVrf::DtEmbeddedEntitySelectionWidget, makVrf::DtStealthViewModesWidget, makVrf::DtDateTimeEntryWidget, makVrf::DtDiGuyAnimationSelectionEntryWidget, makVrf::DtEmbarkationSlotEntryWidget, makVrf::DtEmitterSelectionEntryWidget, makVrf::DtSimpleLabelWidget, makVrf::DtStealthObserverViewModesWidget, and makVrf::DtLoadoutSelectionWidget.
|
pure virtual |
Variable data that can be used by this control to initialize values (i.e.
filtered list box, combo box). Items should be separated by a semi-colon
Implemented in makVrf::DtSimpleImageComboVariableWidget, makVrf::DtTaskSetVariableWidget, makVrf::DtForceSelectionEntryWidget, makVrf::DtSimpleSeparatorWidget, makVrf::DtCountrySelectionEntryWidget, makVrf::DtEmitterModesSelectionEntryWidget, makVrf::DtOverlayParentEntryWidget, DtIntegerListEntryWidget, and makVrf::DtSimpleLabelWidget.
|
pure virtual |
Sets up widget with currently selected item.
Implemented in makVrf::DtSimpleEntityTypesVariableWidget, makVrf::DtTaskSetVariableWidget, makVrf::DtLocationEntryWidget, makVrf::DtDiGuyGestureSelectionEntryWidget, makVrf::DtDiGuyAppearanceSelectionEntryWidget, makVrf::DtSimpleSeparatorWidget, makVrf::DtForceSelectionEntryWidget, makVrf::DtVisualMetaDataSelectionWidget, makVrf::DtCountrySelectionEntryWidget, makVrf::DtHeadingEntryWidget, makVrf::DtOverlayParentEntryWidget, makVrf::DtPitchEntryWidget, makVrf::DtWeaponSelectionWidget, makVrf::DtEmitterModesSelectionEntryWidget, makVrf::DtEmbarkationSlotEntryWidget, makVrf::DtResourceSelectionEntryWidget, makVrf::DtEmbeddedEntitySelectionWidget, makVrf::DtDiGuyAnimationSelectionEntryWidget, makVrf::DtFormationSelectionEntryWidget, makVrf::DtEmitterSelectionEntryWidget, makVrf::DtLoadoutSelectionWidget, and makVrf::DtSimpleLabelWidget.
|
pure virtual |
Creates the reader/writer variable that will be used as part of the task statement.
Implemented in makVrf::DtSimpleSingleRadioButtonVariableWidget, makVrf::DtSimpleRadioButtonVariableWidget, makVrf::DtSimpleCheckBoxVariableWidget, makVrf::DtSimpleComboVariableWidget, makVrf::DtVrfBroadcastFilteredListView, makVrf::DtSimpleEntityTypesVariableWidget, makVrf::DtSimpleEntityTypeVariableWidget, makVrf::DtSimpleStringVariableWidget, makVrf::DtSimpleDoubleVariableWidget, makVrf::DtVrfFilteredListView, makVrf::DtSimpleIntegerVariableWidget, makVrf::DtSimpleStringMapWidget, makVrf::DtDiGuyGestureSelectionEntryWidget, makVrf::DtLocationEntryWidget, makVrf::DtSimpleDoubleMapWidget, makVrf::DtDiGuyAppearanceSelectionEntryWidget, makVrf::DtSimpleSeparatorWidget, makVrf::DtSimpleIntegerMapWidget, makVrf::DtForceSelectionEntryWidget, makVrf::DtOffsetLocationEntryWidget, makVrf::DtVisualMetaDataSelectionWidget, makVrf::DtTimeEntryWidget, makVrf::DtCountrySelectionEntryWidget, makVrf::DtOverlayParentEntryWidget, makVrf::DtNewTacticalGraphicEntryWidget, makVrf::DtEmitterModesSelectionEntryWidget, makVrf::DtWeaponSelectionWidget, makVrf::DtRateEntryWidget, makVrf::DtDepthEntryWidget, makVrf::DtHeadingEntryWidget, makVrf::DtOrientationEntryWidget, makVrf::DtAltitudeEntryWidget, makVrf::DtSphereEntryWidget, makVrf::DtTurnRateEntryWidget, makVrf::DtPitchEntryWidget, makVrf::DtPrecisionMovementEntryWidget, makVrf::DtColorEntryWidget, makVrf::DtRangeEntryWidget, makVrf::DtResourceSelectionEntryWidget, makVrf::DtSimpleLabelWidget, makVrf::DtFormationSelectionEntryWidget, makVrf::DtStealthViewModesWidget, makVrf::DtEmbeddedEntitySelectionWidget, makVrf::DtDiGuyAnimationSelectionEntryWidget, makVrf::DtStealthObserverViewModesWidget, DtIntegerListEntryWidget, makVrf::DtEmitterSelectionEntryWidget, makVrf::DtLoadoutSelectionWidget, makVrf::DtDateTimeEntryWidget, and makVrf::DtEmbarkationSlotEntryWidget.
|
pure virtual |
Sets up the widget from the given reader/writer variables.
Implemented in makVrf::DtSimpleSingleRadioButtonVariableWidget, makVrf::DtSimpleRadioButtonVariableWidget, makVrf::DtSimpleCheckBoxVariableWidget, makVrf::DtSimpleComboVariableWidget, makVrf::DtVrfBroadcastFilteredListView, makVrf::DtSimpleEntityTypesVariableWidget, makVrf::DtSimpleEntityTypeVariableWidget, makVrf::DtSimpleStringVariableWidget, makVrf::DtSimpleDoubleVariableWidget, makVrf::DtVrfFilteredListView, makVrf::DtSimpleIntegerVariableWidget, makVrf::DtSimpleStringMapWidget, makVrf::DtDiGuyGestureSelectionEntryWidget, makVrf::DtLocationEntryWidget, makVrf::DtSimpleDoubleMapWidget, makVrf::DtDiGuyAppearanceSelectionEntryWidget, makVrf::DtSimpleSeparatorWidget, makVrf::DtSimpleIntegerMapWidget, makVrf::DtForceSelectionEntryWidget, makVrf::DtOffsetLocationEntryWidget, makVrf::DtVisualMetaDataSelectionWidget, makVrf::DtTimeEntryWidget, makVrf::DtCountrySelectionEntryWidget, makVrf::DtOverlayParentEntryWidget, makVrf::DtNewTacticalGraphicEntryWidget, makVrf::DtEmitterModesSelectionEntryWidget, makVrf::DtWeaponSelectionWidget, makVrf::DtRateEntryWidget, makVrf::DtDepthEntryWidget, makVrf::DtHeadingEntryWidget, makVrf::DtOrientationEntryWidget, makVrf::DtPrecisionMovementEntryWidget, makVrf::DtAltitudeEntryWidget, makVrf::DtSphereEntryWidget, makVrf::DtTurnRateEntryWidget, makVrf::DtPitchEntryWidget, makVrf::DtSimpleLabelWidget, makVrf::DtColorEntryWidget, makVrf::DtRangeEntryWidget, makVrf::DtResourceSelectionEntryWidget, makVrf::DtFormationSelectionEntryWidget, makVrf::DtStealthViewModesWidget, makVrf::DtDiGuyAnimationSelectionEntryWidget, makVrf::DtStealthObserverViewModesWidget, makVrf::DtEmbeddedEntitySelectionWidget, DtIntegerListEntryWidget, makVrf::DtEmitterSelectionEntryWidget, makVrf::DtLoadoutSelectionWidget, makVrf::DtDateTimeEntryWidget, and makVrf::DtEmbarkationSlotEntryWidget.
|
inlinevirtual |
If there are any, returns contents for this variable for variable extension. Default is no extension.
Reimplemented in makVrf::DtSimpleSingleRadioButtonVariableWidget, makVrf::DtSimpleRadioButtonVariableWidget, makVrf::DtSimpleCheckBoxVariableWidget, makVrf::DtSimpleImageComboVariableWidget, makVrf::DtSimpleComboVariableWidget, makVrf::DtSimpleEntityTypesVariableWidget, makVrf::DtSimpleStringVariableWidget, makVrf::DtSimpleDoubleVariableWidget, makVrf::DtVrfFilteredListView, makVrf::DtSimpleIntegerVariableWidget, makVrf::DtSimpleDoubleMapWidget, makVrf::DtSimpleIntegerMapWidget, makVrf::DtResourceSelectionEntryWidget, makVrf::DtOffsetLocationEntryWidget, makVrf::DtColorEntryWidget, makVrf::DtNewTacticalGraphicEntryWidget, makVrf::DtHeadingEntryWidget, makVrf::DtRateEntryWidget, makVrf::DtDepthEntryWidget, makVrf::DtOrientationEntryWidget, makVrf::DtAltitudeEntryWidget, makVrf::DtPrecisionMovementEntryWidget, makVrf::DtSphereEntryWidget, makVrf::DtPitchEntryWidget, makVrf::DtTurnRateEntryWidget, and makVrf::DtRangeEntryWidget.
|
inlinevirtual |
Returns true if this is a GUI element only. Default is false.
Reimplemented in makVrf::DtSimpleSeparatorWidget, and makVrf::DtSimpleLabelWidget.
|
inlinestatic |
Whether or not this shows up as a usable variable widget.
|
pure virtual |
Sets the indent level for the contents of this widget.
Implemented in makVrf::DtTaskSetVariableWidget, makVrf::DtForceSelectionEntryWidget, makVrf::DtOverlayParentEntryWidget, makVrf::DtCountrySelectionEntryWidget, and makVrf::DtEmitterModesSelectionEntryWidget.
|
pure virtual |
Given the Ui designer properties create a string that will represent the variable data for those properties.
Implemented in makVrf::DtSimpleSingleRadioButtonVariableWidget, makVrf::DtSimpleRadioButtonVariableWidget, makVrf::DtSimpleImageComboVariableWidget, makVrf::DtSimpleComboVariableWidget, makVrf::DtVrfFilteredListView, makVrf::DtTaskSetVariableWidget, makVrf::DtForceSelectionEntryWidget, makVrf::DtCountrySelectionEntryWidget, makVrf::DtNewTacticalGraphicEntryWidget, makVrf::DtOverlayParentEntryWidget, makVrf::DtTimeEntryWidget, makVrf::DtSphereEntryWidget, makVrf::DtOffsetLocationEntryWidget, makVrf::DtWeaponSelectionWidget, makVrf::DtOrientationEntryWidget, makVrf::DtColorEntryWidget, makVrf::DtEmitterModesSelectionEntryWidget, and makVrf::DtPrecisionMovementEntryWidget.
|
inlinestatic |
Implement at class level to perform Qt Designer custom widget initialization. Please refer to Qt documentation for designer modifications.
|
inlinestatic |
|
pure virtual |
In most cases this is the objectName of the object, however, in some cases (as in radio button) this could be a name that is shared amongst like objects, so, that is returned instead.
If the blank name is returned then just use the variable name
Implemented in makVrf::DtSimpleSingleRadioButtonVariableWidget, makVrf::DtTaskSetVariableWidget, makVrf::DtForceSelectionEntryWidget, makVrf::DtCountrySelectionEntryWidget, makVrf::DtOverlayParentEntryWidget, and makVrf::DtEmitterModesSelectionEntryWidget.
|
inlinevirtual |
Called when the widget is initialized from a scripted task dialog. Default implementation is to do nothing.
Reimplemented in makVrf::DtSimpleSingleRadioButtonVariableWidget, makVrf::DtSimpleRadioButtonVariableWidget, makVrf::DtSimpleCheckBoxVariableWidget, makVrf::DtVrfFilteredListView, and makVrf::DtEmbarkationSlotEntryWidget.