![]() |
VR-Forces 4.1 Class Documentation
|
Widget that allows users to select resources for the given entity. More...

Public Member Functions | |
| DtResourceSelectionEntryWidget (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0) | |
| virtual | ~DtResourceSelectionEntryWidget () |
| 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. Will contain initial resource to select. | |
| virtual void | setVariableData (const std::string &) |
| Variable data. Unused in this widget. | |
| virtual void | setupFrom (const std::vector< makVrv::DtSimEntry * > &data) |
| Sets up widget with currently selected item. Requests data. | |
| 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. | |
Public Member Functions inherited from makVrf::DtVrfResourceRequestor | |
| DtVrfResourceRequestor (makVrv::DtDe &) | |
| virtual | ~DtVrfResourceRequestor () |
| virtual void | requestResourcesFor (const std::vector< makVrv::DtSimEntry * > &data, bool entitiesOnly=true) |
| Requests resources for all items in the vector. | |
| virtual void | startMonitoring (const std::string &, int rate=-1) |
| Start monitoring for this entity. | |
| virtual void | stopMonitoring (const std::string &) |
| Stop monitoring for the specified entity. | |
| virtual void | setUpdateRate (const std::string &entity, int) |
| Sets the update rate for entity being monitored. | |
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 | 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 | |
| QLabel * | myResourceLabel |
| QComboBox * | myResources |
| QHBoxLayout * | myContentLayout |
| QString | myDefaultValue |
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 Member Functions | |
| virtual void | addResource (const DtResource &) |
| Called to add a new resource. | |
| virtual void | resourceUpdated (const DtResource &) |
| Called when a particular resource has been updated. | |
| virtual void | resourcesChanged () |
| Virtual overrides to complete class. | |
| virtual void | resourceCheckingDisabled () |
| Called when this item can not longer set resources. | |
| virtual void | resourceCheckComplete () |
| Called when resource checking is complete. | |
Protected Member Functions inherited from makVrf::DtVrfResourceRequestor | |
| virtual void | slot_resourceResponse (const DtIfServerRequestResponse &) |
Additional Inherited Members | |
Protected Attributes inherited from makVrf::DtVrfResourceRequestor | |
| makVrv::DtDe & | myDe |
| std::vector< std::string > | myResourceRequests |
| bool | myCanSetResources |
| DtEntityResourceList | myResources |
Protected Attributes inherited from makVrf::DtTaskSetVariableWidget | |
| makVrv::DtDe & | myDe |
| makVrv::DtSignalConnectionManager | myConnections |
Widget that allows users to select resources for the given entity.
| makVrf::DtResourceSelectionEntryWidget::DtResourceSelectionEntryWidget | ( | 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. Will contain initial resource to select.
Implements makVrf::DtTaskSetVariableWidgetInterface.
|
virtual |
Variable data. Unused in this widget.
Implements makVrf::DtTaskSetVariableWidgetInterface.
|
virtual |
Sets up widget with currently selected item. Requests data.
Reimplemented from makVrf::DtTaskSetVariableWidget.
|
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.
|
inlinestatic |
References makVrv::DtUnicode::tr().
|
protectedvirtual |
Called to add a new resource.
Implements makVrf::DtVrfResourceRequestor.
Reimplemented in makVrf::DtBombResourceSelectionEntryWidget, and makVrf::DtMunitionResourceSelectionEntryWidget.
|
protectedvirtual |
Called when a particular resource has been updated.
Implements makVrf::DtVrfResourceRequestor.
|
protectedvirtual |
Virtual overrides to complete class.
Called when resources received has changed
Implements makVrf::DtVrfResourceRequestor.
|
protectedvirtual |
Called when this item can not longer set resources.
This will happen when multiple requests are made through this class and there are no common resources
Implements makVrf::DtVrfResourceRequestor.
|
protectedvirtual |
Called when resource checking is complete.
Implements makVrf::DtVrfResourceRequestor.
| QLabel* makVrf::DtResourceSelectionEntryWidget::myResourceLabel |
| QComboBox* makVrf::DtResourceSelectionEntryWidget::myResources |
| QHBoxLayout* makVrf::DtResourceSelectionEntryWidget::myContentLayout |
| QString makVrf::DtResourceSelectionEntryWidget::myDefaultValue |