![]() |
VR-Forces 5.0.3 Developer's Guide
|
Widget that allows users to select weapons for the given entity.

Public Member Functions | |
| DtWeaponSelectionWidget (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0, const CreationFlags &cflags=NormalMode) | |
| virtual | ~DtWeaponSelectionWidget () |
| virtual void | setLabel (const QString &) |
| virtual QString | label () const |
| virtual void | setWeaponFilterType (DtWeaponSystemType type) |
| virtual DtWeaponSystemType | weaponFilterType () const |
| virtual void | setRange (double bottom, double top) |
| virtual void | setDefaultValue (const std::string &) |
| virtual void | setVariableData (const QString &) |
| virtual void | setupFrom (const std::vector< makVrv::DtSimEntry * > &data) |
| virtual DtReaderWriter * | createBoundVariable (const std::string &variableName) |
| virtual void | setupFromBoundVariable (const DtReaderWriter *variableName) |
| virtual void | requestWeaponsFor (const std::vector< makVrv::DtSimEntry * > &data) |
| virtual void | slot_receivedWeaponList (const DtUUID &entity) |
| virtual void | setAllowMultipleSelection (bool) |
| virtual bool | allowMultipleSelection () const |
| virtual QStringList | selectedWeapons () const |
| virtual void | selectWeapons (const QStringList &) |
| virtual bool | includeResources () const |
| virtual void | setIncludeResources (const bool doInclude) |
Public Member Functions inherited from makVrf::DtTaskSetVariableWidget | |
| DtTaskSetVariableWidget (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0, const CreationFlags &cflags=NormalMode) | |
| virtual | ~DtTaskSetVariableWidget () |
| virtual void | setToolTip (const QString &) |
| virtual void | setLabel (const std::string &) |
| virtual void | setVariableData (const std::string &) |
| virtual QString | variableData () const |
| virtual void | setIsInternal (bool) |
| virtual bool | isInternal () const |
| virtual void | setTopLineVisible (bool) |
| virtual bool | topLineVisible () const |
| virtual void | createTopLine () |
| virtual void | setIndent (int) |
| virtual int | indent () const |
| virtual bool | isValid () const |
| virtual void | setTopLabelChecked (bool) |
| virtual bool | topLabelChecked () const |
| virtual void | setRange (const DtRange &) |
| virtual void | setRangeTop (double) |
| virtual void | setRangeTop (int) |
| virtual double | rangeTop () const |
| virtual void | setRangeBottom (double) |
| virtual void | setRangeBottom (int) |
| virtual double | rangeBottom () const |
| virtual const DtRange & | getRange () const |
| virtual void | setTopLabelIsCheckable (bool) |
| virtual bool | topLabelIsCheckable () const |
| virtual void | getDefaultSpecificTitles (QString &defaultTitle, QString &specificTitle) const |
| virtual void | setDefaultSpecificTitles (const QString &defaultTitle, const QString &specificTitle) |
| virtual void | setupDefaultSpecificFromVariableData (const DtString &var) |
| virtual std::string | scriptedTaskVariableName () const |
| 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 |
Public Member Functions inherited from makVrf::DtTaskSetVariableWidgetInterface | |
| DtTaskSetVariableWidgetInterface () | |
| virtual | ~DtTaskSetVariableWidgetInterface () |
| virtual void | widgetInitializedForDialog (DtScriptedTaskDialog *, const std::vector< makVrv::DtSimEntry * > &data) |
| virtual DtTaskSetVariableWidgetExtensionInterface * | parameterContents (QWidget *parent, const Qt::WindowFlags &flags=0) const |
| virtual bool | guiElementOnly () const |
Static Public Member Functions | |
| static makVrv::DtUnicode | codeVariableType () |
| static std::string | designerGroup () |
| static std::string | headerFile () |
| static std::string | variableName () |
Static Public Member Functions inherited from makVrf::DtTaskSetVariableWidget | |
| static bool | includeInQtDesigner () |
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()> | signal_receivedWeaponsList |
| boost::signals2::signal< void()> | signal_weaponSelectionChanged |
| QLabel * | myWeaponLabel |
| QComboBox * | myWeaponSystemsCombo |
| QListWidget * | myWeaponSystemsList |
| QHBoxLayout * | myWeaponSystemsListLayout |
| QBoxLayout * | myContentLayout |
| QString | myDefaultValue |
Public Attributes inherited from makVrf::DtTaskSetVariableWidget | |
| boost::signals2::signal< void(bool)> | signal_topLevelCheckStateChanged |
| int | myIndent |
| QVBoxLayout * | myVariableWidgetLayout |
| QHBoxLayout * | mySpacedLayout |
| QVBoxLayout * | myVariableContentLayout |
| QWidget * | myTopLine |
| QLabel * | myTopLabel |
| QWidget * | myChoiceCanvas |
| QRadioButton * | myUseDefault |
| QRadioButton * | myUseSpecific |
| QSpacerItem * | myTopSeparator |
| QHBoxLayout * | myTopLineLayout |
| QSpacerItem * | mySpacerItem |
Protected Slots | |
| virtual void | weaponSelectionChanged () |
Protected Slots inherited from makVrf::DtTaskSetVariableWidget | |
| virtual void | topLabelCheckStateChanged () |
Protected Member Functions | |
| virtual std::string | variableDataFromUiDesigner (const QDomElement &element, const DtScriptedTaskVariableLayoutConverter &converter) const |
| virtual void | addWeapon (const WeaponSystem &) |
| virtual void | weaponUpdated (const WeaponSystem &) |
| virtual void | weaponChanged () |
| virtual void | weaponCheckingDisabled () |
| virtual void | weaponCheckComplete () |
| virtual void | updateWeapons () |
| virtual void | nextRequest () |
| virtual void | setupForComboBox () |
| virtual void | setupForListBox () |
Protected Member Functions inherited from makVrf::DtTaskSetVariableWidget | |
| virtual void | selectionChanged (const std::set< makVrv::DtUniqueID > &oldSelection) |
Protected Attributes | |
| std::set< DtUUID > | myToRequest |
| std::set< DtUUID > | myAwaitingWeaponSystemResponse |
| std::set< DtUUID > | myDidRequest |
| std::vector< DtUUID > | myCurrSelected |
| bool | myIncludeResources |
| DtWeaponSystemType | myWeaponFilterType |
| bool | myMultipleSelection |
| QString | myTitle |
Protected Attributes inherited from makVrf::DtTaskSetVariableWidget | |
| makVrv::DtDe & | myDe |
| makVrv::DtSignalConnectionManager | myConnections |
| bool | myTopLabelIsCheckable |
| DtRange | myRange |
| bool | myIsInternal |
| CreationFlags | myCreationFlags |
| QString | myVariableData |
| std::set< makVrv::DtUniqueID > | mySelection |
Properties | |
| bool | allowMultipleSelecion |
Properties inherited from makVrf::DtTaskSetVariableWidget | |
| QString | label |
| bool | isInternal |
| int | indent |
| QString | variableData |
Additional Inherited Members | |
Public Types inherited from makVrf::DtTaskSetVariableWidgetInterface | |
| enum | CreationFlags { NormalMode = 0x00000000, QtDesignerMode = 0x00000001 } |
Signals inherited from makVrf::DtTaskSetVariableWidget | |
| void | validityUpdated () |
| makVrf::DtWeaponSelectionWidget::DtWeaponSelectionWidget | ( | makVrv::DtDe & | de, |
| QWidget * | parent, | ||
| const Qt::WindowFlags & | flags = 0, |
||
| const CreationFlags & | cflags = NormalMode |
||
| ) |
|
virtual |
|
virtual |
Display label.
Reimplemented from makVrf::DtTaskSetVariableWidget.
|
virtual |
Reimplemented from makVrf::DtTaskSetVariableWidget.
|
virtual |
Optionally allow user to filter type of weapon to display.
|
virtual |
Validation range. Not applicable.
Reimplemented from makVrf::DtTaskSetVariableWidget.
|
virtual |
Default value to set in control. Will contain initial weapon to select.
Implements makVrf::DtTaskSetVariableWidgetInterface.
|
virtual |
Variable data. Unused in this widget.
Reimplemented from makVrf::DtTaskSetVariableWidget.
|
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.
|
virtual |
Add all the entities (vector of sim entries) to myAwaitingWeaponSystemResponse list, and then call the DtWeaponListRequestor instance's updateWeaponSystem() on the first entity in the list. If the list is empty, call updateWeapons().
|
virtual |
|
virtual |
Set/get whether resources are requested along with weapon names when making a weapon list request from the back end. Used in requestWeaponsFor().
|
virtual |
Set/get whether resources are requested along with weapon names when making a weapon list request from the back end. Used in requestWeaponsFor().
|
virtual |
Call before setup – allows multiple selection of weapons.
|
virtual |
|
virtual |
List of currently selected weapons.
|
virtual |
Selects weapons in the list. If combo box will only look at first one.
|
inlinestatic |
References makVrv::DtUnicode::tr().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
protectedvirtual |
Given the Ui designer properties create a string that will represent the variable data for those properties.
Reimplemented from makVrf::DtTaskSetVariableWidget.
|
protectedvirtual |
Reimplemented in makVrf::DtIndirectFireWeaponSelectionWidget, and makVrf::DtDirectFireWeaponSelectionWidget.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtualslot |
| boost::signals2::signal<void ()> makVrf::DtWeaponSelectionWidget::signal_receivedWeaponsList |
| boost::signals2::signal<void ()> makVrf::DtWeaponSelectionWidget::signal_weaponSelectionChanged |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Indicates whether the back end will be asked to include resources with the weapon names it returns; also whether they will be included in the display list.
|
protected |
Option to allow user to filter by a particular category of weapon.
| QLabel* makVrf::DtWeaponSelectionWidget::myWeaponLabel |
| QComboBox* makVrf::DtWeaponSelectionWidget::myWeaponSystemsCombo |
| QListWidget* makVrf::DtWeaponSelectionWidget::myWeaponSystemsList |
| QHBoxLayout* makVrf::DtWeaponSelectionWidget::myWeaponSystemsListLayout |
| QBoxLayout* makVrf::DtWeaponSelectionWidget::myContentLayout |
| QString makVrf::DtWeaponSelectionWidget::myDefaultValue |
|
protected |
|
protected |
|
readwrite |