![]() |
VR-Forces 5.0.1 Developer's Guide
|
Widget that allows the selection of a force.

Public Member Functions | |
| DtUnitPatchSelectionEntryWidget (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0, const CreationFlags &cflags=NormalMode) | |
| virtual | ~DtUnitPatchSelectionEntryWidget () |
| virtual void | setPrimaryUnitPatch (const DtPatchIdentifier &patchId) |
| virtual DtPatchIdentifier | primaryUnitPatch () const |
| virtual void | setSecondaryUnitPatch (const DtPatchIdentifier &patchId) |
| virtual DtPatchIdentifier | secondaryUnitPatch () const |
| virtual void | setLabel (const std::string &val) override |
| virtual void | setLabel (const QString &val) override |
| virtual void | setToolTip (const QString &tooltip) override |
| virtual bool | isValid () const override |
| virtual void | setRange (double bottom, double top) override |
| virtual void | setVariableData (const std::string &data) override |
| virtual void | setupFrom (const std::vector< makVrv::DtSimEntry * > &data) override |
| virtual DtReaderWriter * | createBoundVariable (const std::string &variableName) |
| virtual void | setupFromBoundVariable (const DtReaderWriter *variableName) |
| virtual void | setIndent (int) |
| virtual std::string | variableDataFromUiDesigner (const QDomElement &, const DtScriptedTaskVariableLayoutConverter &) const override |
| virtual std::string | scriptedTaskVariableName () const override |
Default value setters. | |
Value is expected to be an integer pair specifying the patch set and patch id. Optional secondary patch can be specified by providing another integer pair after a space. E.g. "225:0:3" or "225:0:3 225:0:4" | |
| virtual void | setDefaultValue (const std::string &value) override |
| virtual void | setDefaultValue (const QString &value) |
Public Member Functions inherited from makVrf::DtTaskSetVariableWidgetInterface | |
| DtTaskSetVariableWidgetInterface () | |
| virtual | ~DtTaskSetVariableWidgetInterface () |
| virtual void | setTopLineVisible (bool) |
| virtual bool | topLineVisible () const |
| virtual void | widgetInitializedForDialog (DtScriptedTaskDialog *, const std::vector< makVrv::DtSimEntry * > &data) |
| virtual void | setSelection (const std::set< makVrv::DtUniqueID > &selection) |
| virtual void | setSelection (const std::vector< makVrv::DtSimEntry * > &data) |
| virtual const std::set < makVrv::DtUniqueID > & | selection () const |
| virtual DtTaskSetVariableWidgetExtensionInterface * | parameterContents (QWidget *parent, const Qt::WindowFlags &flags=0) const |
| virtual bool | guiElementOnly () const |
Static Public Member Functions | |
Methods needed for DtTaskSetVariableWidgetCreator. | |
| static makVrv::DtUnicode | codeVariableType () |
| static std::string | designerGroup () |
| static std::string | headerFile () |
| static std::string | variableName () |
Static Public Member Functions inherited from makVrf::DtTaskSetVariableWidgetInterface | |
| static bool | canBeUsedAsWidget () |
| static void | initializeForQtDesignerExtension (makVrv::DtDe &de, QDesignerFormEditorInterface *core) |
| static bool | includeInQtDesigner () |
Public Attributes | |
| boost::signals2::signal< void(const DtPatchIdentifier &, const DtPatchIdentifier &)> | signal_patchSelectionChanged |
Protected Slots | |
| virtual void | slot_onCountryChanged () |
| virtual void | slot_onPatchComboBox_currentIndexChanged (int index) |
Protected Member Functions | |
| void | setupGui () |
| virtual void | initialize () |
| virtual void | initializePatchLists () |
| virtual void | reinitializePatchLists () |
| virtual void | clear () |
Protected Attributes | |
| makVrv::DtDe & | myDe |
| makVrv::DtSignalConnectionManager | myConnections |
| std::string | myAppearance |
| QSpacerItem * | myIndentationSpacer |
| QComboBox * | myPrimaryPatchComboBox |
| QComboBox * | mySecondaryPatchComboBox |
| QCheckBox * | myApplyImmediatelyCheckBox |
| bool | myInitialized |
Additional Inherited Members | |
Public Types inherited from makVrf::DtTaskSetVariableWidgetInterface | |
| enum | CreationFlags { NormalMode = 0x00000000, QtDesignerMode = 0x00000001 } |
| makVrf::DtUnitPatchSelectionEntryWidget::DtUnitPatchSelectionEntryWidget | ( | makVrv::DtDe & | de, |
| QWidget * | parent, | ||
| const Qt::WindowFlags & | flags = 0, |
||
| const CreationFlags & | cflags = NormalMode |
||
| ) |
CTOR.
|
virtual |
Virtual DTOR.
|
virtual |
Sets the primary unit patch selected in the widget.
|
virtual |
Get the primary unit patch selected in the widget.
|
virtual |
Sets the secondary unit patch selected in the widget.
|
virtual |
Get the secondary unit patch selected in the widget.
|
overridevirtual |
Display label. This will create the top label line if not overriden by a default.
Implements makVrf::DtTaskSetVariableWidgetInterface.
|
overridevirtual |
Implements makVrf::DtTaskSetVariableWidgetInterface.
|
overridevirtual |
Sets the tool tip for the widget.
Implements makVrf::DtTaskSetVariableWidgetInterface.
|
inlineoverridevirtual |
Indicates the current selection is valid.
Implements makVrf::DtTaskSetVariableWidgetInterface.
|
overridevirtual |
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.
Implements makVrf::DtTaskSetVariableWidgetInterface.
|
overridevirtual |
Default value to set in control.
Implements makVrf::DtTaskSetVariableWidgetInterface.
|
virtual |
|
overridevirtual |
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.
Implements makVrf::DtTaskSetVariableWidgetInterface.
|
overridevirtual |
Sets up widget with currently selected item. Requests data.
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 |
Sets the indent level for the contents of this widget.
Implements makVrf::DtTaskSetVariableWidgetInterface.
|
overridevirtual |
Given the Ui designer properties create a string that will represent the variable data for those properties.
Implements makVrf::DtTaskSetVariableWidgetInterface.
|
overridevirtual |
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.
Implements makVrf::DtTaskSetVariableWidgetInterface.
|
inlinestatic |
References makVrv::DtUnicode::tr().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protected |
Set up the widget contents. Non-virtual (called from CTOR).
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
| boost::signals2::signal<void(const DtPatchIdentifier&,const DtPatchIdentifier&)> makVrf::DtUnitPatchSelectionEntryWidget::signal_patchSelectionChanged |
Signal data values are the patch IDs for the primary and secondary patches, respectively.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |