![]() |
VR-Forces 4.5 Class Documentation
|
Sets up the set dialog to be able to change all state properties. More...

Public Member Functions | |
| DtSetStateHealthPropertyDialog (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0) | |
| virtual | ~DtSetStateHealthPropertyDialog () |
Public Member Functions inherited from makVrf::DtSetStatePropertyDialog | |
| DtSetStatePropertyDialog (makVrv::DtDe &de, QWidget *parent, const DtString &property, const Qt::WindowFlags &flags=0) | |
| virtual | ~DtSetStatePropertyDialog () |
Public Member Functions inherited from makVrf::DtSetStatePropertiesDialog | |
| DtSetStatePropertiesDialog (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0) | |
| virtual | ~DtSetStatePropertiesDialog () |
| virtual void | addProperty (const DtPropertyInterface *, bool merge=false) |
| Adds a property to be able to be modified via the set command into the interface. | |
Public Member Functions inherited from makVrf::DtBaseTaskSetDialogInterface | |
| DtBaseTaskSetDialogInterface (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0) | |
| virtual | ~DtBaseTaskSetDialogInterface () |
| virtual void | run (const std::vector< makVrv::DtSimEntry * > &) |
| Calls setupGui and shows the dialog. | |
| virtual void | setOKEnabled (bool) |
| Enables/disables OK button. | |
| virtual void | setCancelEnabled (bool) |
| Sets whether or not the Cancel button is enabled. | |
| virtual bool | valid () const |
| Override to return whether or not extension is valid. | |
| int | accepted () const |
| 0 - Closed without pressing cancel or ok 1 - Closed by ok 2 - Closed by cancel | |
Public Member Functions inherited from makVrf::DtTaskSetDialogInterface | |
| DtTaskSetDialogInterface (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0) | |
| virtual | ~DtTaskSetDialogInterface () |
| virtual void | connectSignals (const std::vector< makVrv::DtSimEntry * > &) |
| Setup signals to cancel dialog if all objects deleted that this dialog is representing. | |
| virtual void | setSendToRemoteController (bool b) |
| Set to true to send the message immediately to the remote controller given the currently selected entities when the dialog was created. | |
| virtual bool | sendToRemoteController () const |
| virtual void | selectionChanged (const DtUUID &selection) |
| Notify dialog of selection changes from attached dialogs. | |
| virtual void | sendSetRequest (std::vector< DtUUID > names, const DtSetDataRequest &) |
| Sends signal to send out set. | |
| virtual bool | insertMapFocusHandler (DtMapFocusHandler *, int index=-1) |
| If a dialog has manages map focus handlers, inserts this map focus handler into the chain. | |
| virtual void | initializeFromAction (DtVrfTaskSetAction *) |
| Intializes contents from action as an action could have relevant properties assigned to it containing additional data. | |
| DtVrfTaskSetAction * | initializedAction () const |
| The action this dialog was initialized for. | |
| virtual void | sendTaskRequest (std::vector< DtUUID > names, const DtSimTask &) |
| Sends signal to send out task. | |
| virtual std::vector< DtUUID > | names () const |
| virtual void | setPartOfPlan (int b) |
| 0 - Not part of plan dialog 1 - Part of plan dialog 2 - Part of command widget 3 - Part of embedded entity menu | |
| int | partOfPlan () const |
| virtual void | cancel () |
| Sends out cancel signal. | |
| virtual QWidget * | widget () |
| Returns the widget. | |
| const std::vector < makVrv::DtSimEntry * > & | connectedTo () const |
| virtual void | noObjectsSelected () |
| No-op at this level. | |
Public Member Functions inherited from makVrf::DtCommandDialogExtensionInterface | |
| virtual | ~DtCommandDialogExtensionInterface () |
| virtual bool | initiallyBroadcast () const |
| Whether or not to initially set to broadcast. Default is false. | |
| virtual bool | allowBroadcasting () const |
| Whether or not to allow broadcasting. Default is true. | |
| virtual bool | hasUserEntry () const |
| Returns true if there is user entry. Default is to assume there is. | |
| virtual QString | entitySelectionGroupBoxTitle () const |
| If defined, title for the group box for entity selection on command widget. | |
| virtual void | onCancel ()=0 |
| virtual makVrv::DtUnicode | broadcastTitle () const |
Public Attributes | |
| QSlider * | myHealthSlider |
| QCheckBox * | myResetKilledCapturedWoundedMissing |
| QLabel * | myHealthPercentageLabel |
| QLineEdit * | myHealthPercentage |
Protected Types | |
| typedef std::map< const DtPropertyInterface *, double > | BaseValues |
| typedef std::map< std::string, PropertyItem > | AggregateProperties |
Protected Slots | |
| virtual void | healthSliderChanged () |
| virtual void | healthPercentageSliderChanged () |
| virtual void | healthPercentageTextChanged () |
Protected Member Functions | |
| virtual void | setupGui (const std::vector< makVrv::DtSimEntry * > &data) |
| If there is a single entry, find it's location and convert to local to set. | |
| virtual void | addResetKilledCapturedWoundedMissing () |
| Adds the option to reset killed/captured/wounded/missing counts. | |
| virtual void | addHealthItems (DtVrlinkSimulatedAggregateState *) |
| virtual void | setupBaseValues (const PropertyItem &) |
| Keeps a map of all the current base values to be able to adjust by health. | |
| virtual void | modifyStateProperty () |
| Modify base values based on new health percentage. | |
| virtual void | modifyBasedOnHealth (PropertyItem &) |
| virtual DtRwProperties | modifiedProperties () const |
| Returns only the updated Health property, since the other values simply derive from it. | |
| virtual void | updateHealthSlider () |
| virtual void | setupStateProperties (DtSetStateProperties *col) |
| virtual void | setupHealthPercentage () |
| When the item trying to set the health is an psuedo aggregate this routine is called to set up the health selection as a percentage of the base health on an individual subordinate level. | |
| virtual void | setupGuiWhenNoSelection () |
| This dialog assumes you are setting values for a correct object. | |
| virtual void | setupGuiWhenSelectionInvalid () |
| Sets up the GUI to handle the case where the selected sim object is not valid for this property. | |
Protected Attributes | |
| BaseValues | myBaseValues |
| AggregateProperties | myAggregateProperties |
| double | myBaseHealth |
Protected Attributes inherited from makVrf::DtSetStatePropertyDialog | |
| QLabel * | myInvalidSelectionLabel |
| Label displaying text indicating currently selected simulation objects are not valid for this property. | |
Protected Attributes inherited from makVrf::DtSetStatePropertiesDialog | |
| PropertyItems | myPropertyItems |
| DtString | myProperty |
| bool | myValuesArePercentages |
| bool | myCreatePropertySlider |
| bool | myValuesAreRanged |
| Set this value to true in the class constructor to show a slider to set the values bounded by the range of the item rather than a straight data entry field. | |
| DtRwProperties | myStateProperties |
| DtRwProperties | myParameterData |
Sets up the set dialog to be able to change all state properties.
If multiple items are selected only the common items are going to be shown
|
protected |
|
protected |
| makVrf::DtSetStateHealthPropertyDialog::DtSetStateHealthPropertyDialog | ( | makVrv::DtDe & | de, |
| QWidget * | parent, | ||
| const Qt::WindowFlags & | flags = 0 |
||
| ) |
|
virtual |
|
protectedvirtual |
If there is a single entry, find it's location and convert to local to set.
If there is no entry, setup a generic line edit and hope the user knows what they are doing.
Reimplemented from makVrf::DtSetStatePropertyDialog.
|
protectedvirtual |
Adds the option to reset killed/captured/wounded/missing counts.
|
protectedvirtual |
|
protectedvirtual |
Keeps a map of all the current base values to be able to adjust by health.
|
protectedvirtual |
Modify base values based on new health percentage.
Reimplemented from makVrf::DtSetStatePropertiesDialog.
|
protectedvirtual |
|
protectedvirtual |
Returns only the updated Health property, since the other values simply derive from it.
Reimplemented from makVrf::DtSetStatePropertiesDialog.
|
protectedvirtual |
|
protectedvirtual |
Reimplemented from makVrf::DtSetStatePropertiesDialog.
|
protectedvirtual |
When the item trying to set the health is an psuedo aggregate this routine is called to set up the health selection as a percentage of the base health on an individual subordinate level.
|
inlineprotectedvirtual |
This dialog assumes you are setting values for a correct object.
Reimplemented from makVrf::DtSetStatePropertyDialog.
|
inlineprotectedvirtual |
Sets up the GUI to handle the case where the selected sim object is not valid for this property.
Reimplemented from makVrf::DtSetStatePropertyDialog.
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
| QSlider* makVrf::DtSetStateHealthPropertyDialog::myHealthSlider |
| QCheckBox* makVrf::DtSetStateHealthPropertyDialog::myResetKilledCapturedWoundedMissing |
| QLabel* makVrf::DtSetStateHealthPropertyDialog::myHealthPercentageLabel |
| QLineEdit* makVrf::DtSetStateHealthPropertyDialog::myHealthPercentage |
|
protected |
|
protected |
|
protected |