![]() |
VR-Forces Developer's Guide
|
This class is the base for setting state properties. In and of itself it does not populate itself with items to change. Derived classes must add items to this dialog.

Classes | |
| struct | PropertyItem |
Public Member Functions | |
| DtSetStatePropertiesDialog (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0) | |
| virtual | ~DtSetStatePropertiesDialog () |
| virtual void | addProperty (const DtPropertyInterface *, bool merge=false, bool hasStar=false) |
| virtual void | setupGui (const std::vector< makVrv::DtSimEntry * > &data) |
| virtual void | setDefaultPlatformFile (const DtString &) |
| const DtString & | defaultPlatformFile () const |
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 * > &) |
| virtual void | setOKEnabled (bool) |
| virtual void | setApplyVisible (bool) |
| virtual void | setCancelEnabled (bool) |
| virtual void | setCancelButtonText (const QString &) override |
| virtual bool | valid () const |
| virtual void | setReadOnlyMode (bool) override |
| virtual bool | okEnabled () const override |
| int | accepted () const |
| virtual void | setAutoSizeOnShow (bool) |
| virtual bool | autoSizeOnShow () const |
| virtual void | setDescription (const QString &desc) |
| virtual QString | description () const |
| virtual bool | editStatement (const std::vector< makVrv::DtSimEntry * > &, const DtSimStatement *) |
| virtual void | finishSizing () |
| virtual void | setPartOfPlan (int b) override |
| virtual void | hideButtons (bool) |
| virtual bool | applyWithoutGoingBack () const |
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 * > &) |
| virtual void | setSendToRemoteController (bool b) |
| virtual bool | sendToRemoteController () const |
| virtual void | selectionChanged (const DtUUID &selection) |
| virtual void | sendSetRequest (std::vector< DtUUID > names, const DtSetDataRequest &) |
| virtual bool | insertMapFocusHandler (DtMapFocusHandlerInterface *, int index=-1) |
| virtual void | initializeFromAction (DtVrfTaskSetAction *) |
| DtVrfTaskSetAction * | initializedAction () const |
| virtual void | sendTaskRequest (std::vector< DtUUID > names, const DtSimTask &) |
| virtual std::vector < makVrv::DtUniqueID > | entityIds () const |
| virtual std::vector< DtUUID > | names () const |
| virtual void | setupFromExtendedData (const std::map< std::string, std::string > &) |
| int | partOfPlan () const |
| virtual void | cancel () |
| virtual QWidget * | widget () |
| const std::vector < makVrv::DtSimEntry * > & | connectedTo () const |
| virtual void | noObjectsSelected () |
| virtual QWidget * | sizeToParent () const |
Public Member Functions inherited from makVrf::DtCommandDialogExtensionInterface | |
| virtual | ~DtCommandDialogExtensionInterface () |
| virtual bool | initiallyBroadcast () const |
| virtual bool | alwaysPopOut () const |
| virtual bool | allowBroadcasting () const |
| virtual bool | hasUserEntry () const |
| virtual QString | entitySelectionGroupBoxTitle () const |
| virtual void | filterAboutToBeAdded (DtVrfSelectionFilter *) |
| virtual void | parentShown (QWidget *) |
| virtual void | onCancel ()=0 |
| virtual makVrv::DtUnicode | broadcastTitle () const |
Protected Types | |
| typedef std::map< DtString, PropertyItem > | PropertyItems |
Protected Slots | |
| virtual void | modifyStateProperty () |
| virtual void | updateOkButton () |
| virtual void | revertValue () |
Protected Slots inherited from makVrf::DtBaseTaskSetDialogInterface | |
| virtual void | resizeToContents () |
| virtual void | applyWithoutGoingBackClicked () |
Protected Slots inherited from makVrf::DtTaskSetDialogInterface | |
| virtual void | actionDestroyed () |
Protected Member Functions | |
| virtual QWidget * | contents (const std::vector< makVrv::DtSimEntry * > &data) |
| virtual void | setupFrom (const std::vector< makVrv::DtSimEntry * > &s) |
| virtual void | sendRequest () |
| virtual void | cleanupPropertyItem (PropertyItem &) const |
| virtual void | clearProperties () |
| virtual void | markAsReadOnly (PropertyItem &) |
| virtual bool | addPropertyItemForDataEntry (PropertyItem &, const DtReaderWriter *, const DtString &pathSoFar, int level, bool updateExistingValue=false, bool recurse=true) |
| virtual int | addPropertyItemToDataSheet (PropertyItem &, const DtReaderWriter *, const DtString &pathSoFar, int level) |
| virtual void | itemHasBeenUpdated (PropertyItem &, bool) |
| virtual bool | hasMoreThanDefaultValueInRegistry (const DtReaderWriter *rw) const |
| virtual bool | wantsSpacer () const |
| virtual void | setupStatement (const DtSimStatement *) |
| virtual DtRwProperties | modifiedProperties () const |
| virtual bool | modifiedProperties (const PropertyItem &, DtReaderWriter *rw, bool parentItList=false) const |
| virtual void | setupStateProperties (DtSetStateProperties *col) |
| virtual const DtReaderWriter * | baseValueFor (const DtString &pathSoFar) const |
| virtual bool | hasValue (const DtRwProperties &props, const DtString &val) const |
| virtual void | extract (std::vector< DtReaderWriter * > &allCounts, const DtString &extractionType, DtReaderWriter *curItem, const DtString &pathSoFar) const |
| virtual void | extractItemsFor (DtReaderWriter *, const DtString &extractionType, const DtString &title, DtRwProperties *container) const |
| virtual void | addDataEntryIfModifiableValue (PropertyItem &item, const DtReaderWriter *rw, const DtString &pathSoFar, int level, bool updateExistingValue, int row) |
| virtual void | valueFromWidget (const PropertyItem &item, DtReaderWriter *rw) const |
| virtual DtString | properties () const |
| virtual bool | replace () const |
| virtual DtString | translationModule () const |
| virtual bool | valuesArePercentages (const std::vector< makVrv::DtSimEntry * > &data) const |
| virtual bool | sendValuesAsPercentages () const |
| virtual bool | isValid () const |
| virtual void | checkHasNoItems () |
| virtual bool | updateProperty (QObject *, PropertyItems &) |
| virtual bool | revertValue (QObject *, PropertyItems &) |
| virtual void | revertValue (PropertyItem &) |
| virtual void | propertiesUpdated (PropertyItem &) |
Protected Member Functions inherited from makVrf::DtBaseTaskSetDialogInterface | |
| virtual void | updateApplyButtonVisibility () |
| virtual void | updateButtonText () |
| virtual void | postGuiSetup (const std::vector< makVrv::DtSimEntry * > &data) |
| virtual void | initializeItems (const std::vector< makVrv::DtSimEntry * > &data) |
| virtual void | closeEvent (QCloseEvent *) |
| virtual bool | wantsSelectionOfObjectInCommandMode (const std::vector< makVrv::DtSimEntry * > &) const |
| virtual void | sendSetRequest (const DtSetDataRequest &) |
| virtual void | sendTaskRequest (const DtSimTask &) |
| virtual void | sendCommandRequest (const DtSimCommandObjectWrapper &) |
| virtual QSize | canvasSize () |
| virtual void | onOK () |
| virtual QWidget * | takeOKCancelButtonCanvas (QWidget *newParent) override |
| virtual void | giveOKCancelButtonCanvas (QWidget *) override |
Protected Member Functions inherited from makVrf::DtTaskSetDialogInterface | |
| virtual void | slot_objectAboutToBeRemoved (makVrv::DtSimObjectEntry &) |
| virtual std::vector< std::string > | commandDialogFiltersFor (const std::vector< makVrv::DtSimEntry * > &data, const DtSimStatement *stmt, int &initialSelection) const |
Protected Attributes | |
| DtString | myDefaultPlatformFile |
| bool | myUsingGeneric |
| PropertyItems | myPropertyItems |
| DtString | myProperty |
| bool | myValuesArePercentages |
| bool | myCreatePropertySlider |
| bool | myValuesAreRanged |
| bool | myIgnoreMaximum |
| DtRwProperties | myStateProperties |
| DtRwProperties | myParameterData |
| std::map< DtString, std::set < DtString > > | myIgnorePropertyMapColumns |
Protected Attributes inherited from makVrf::DtBaseTaskSetDialogInterface | |
| bool | myAutoSizeOnShow |
| bool | myValidInitialization |
| bool | myReadOnlyMode = false |
| bool | myOKEnabled = false |
Protected Attributes inherited from makVrf::DtTaskSetDialogInterface | |
| makVrv::DtDe & | myDe |
| int | myPartOfPlan |
| std::vector< makVrv::DtSimEntry * > | myConnectedTo |
| bool | mySendToRemoteController |
| DtVrfTaskSetAction * | myAction |
Additional Inherited Members | |
Public Slots inherited from makVrf::DtBaseTaskSetDialogInterface | |
| virtual void | onOk () |
| virtual void | onCancel () |
| virtual void | onApply () |
| virtual void | updateOKButtonText () |
Signals inherited from makVrf::DtBaseTaskSetDialogInterface | |
| void | resizedToContents () |
Signals inherited from makVrf::DtTaskSetDialogInterface | |
| void | unlockPlan () |
|
protected |
The key is the propertyItem root name.
| makVrf::DtSetStatePropertiesDialog::DtSetStatePropertiesDialog | ( | makVrv::DtDe & | de, |
| QWidget * | parent, | ||
| const Qt::WindowFlags & | flags = 0 |
||
| ) |
|
virtual |
|
virtual |
Adds a property to be able to be modified via the set command into the interface. If merge is true, then, if something is passed in that has a similar named property item it will only keep similar named items. Items that are in the dialog but are not in the interface will be removed.
Reimplemented in makVrf::DtSetStateAviationFuelPropertyDialog.
|
virtual |
Initializes state and parameter data based on selection.
Reimplemented from makVrf::DtBaseTaskSetDialogInterface.
Reimplemented in makVrf::DtSetStateAmmunitionPropertyDialog, makVrf::DtSetStateResourcesPropertyDialog, makVrf::DtSetStatePropertyDialog, makVrf::DtSetStateHealthPropertyDialog, makVrf::DtSetStatePropertyDialog, makVrf::DtSetStatePreferredTargetsPropertyDialog, makVrf::DtSetStateMoppLevelPropertyDialog, makVrf::DtSetAllStatePropertiesDialog, makVrf::DtSetAirBasePersonnelAndSuppliesDialog, makVrf::DtSetStatePercentCompletePropertyDialog, and makVrf::DtSetStateFlattenedPropertyDialog.
Referenced by makVrf::DtSetStatePropertyDialog::setupGui().
|
virtual |
|
inline |
|
protectedvirtual |
Creates set dialog contents. Called from setupGui.
Implements makVrf::DtBaseTaskSetDialogInterface.
|
protectedvirtual |
Edits the current statement. Return true if the statement can be edited.
Reimplemented from makVrf::DtBaseTaskSetDialogInterface.
|
protectedvirtual |
Override to send the set or task request.
Implements makVrf::DtBaseTaskSetDialogInterface.
Reimplemented in makVrf::DtSetStateAmmunitionPropertyDialog, makVrf::DtSetStateResourcesPropertyDialog, makVrf::DtSetStateAviationFuelPropertyDialog, and makVrf::DtSetStateFlattenedPropertyDialog.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Marks item and all children as read only. Hides check boxes and makes them unchecked.
|
protectedvirtual |
Adds in the property and all it's children. If the child is one that will take a data entry then a line edit will be created, else only a label. If updateExistingValue is true updates value with supplied rw and sets modified to true.
|
protectedvirtual |
Adds property item to data sheet except for data entry QLineEdit. adds only as a label. Returns the row added to.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtualslot |
Set to modify the property that has just been changed.
Reimplemented in makVrf::DtSetStateAmmunitionPropertyDialog, makVrf::DtSetStateResourcesPropertyDialog, makVrf::DtSetStateHealthPropertyDialog, and makVrf::DtSetStatePercentCompletePropertyDialog.
|
protectedvirtualslot |
Reimplemented in makVrf::DtSetStatePreferredTargetsPropertyDialog.
|
protectedvirtualslot |
|
protectedvirtual |
|
protectedvirtual |
Reimplemented from makVrf::DtBaseTaskSetDialogInterface.
Reimplemented in makVrf::DtSetStateAmmunitionPropertyDialog, makVrf::DtSetStateResourcesPropertyDialog, and makVrf::DtSetStateFlattenedPropertyDialog.
|
protectedvirtual |
Reimplemented in makVrf::DtSetStateHealthPropertyDialog, and makVrf::DtSetStateAviationFuelPropertyDialog.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Returns true if the state properties have a non-zero top level value for the given item.
|
protectedvirtual |
Returns all DtReaderWriter items that are extractionTypes items with the name set to the parent.
|
protectedvirtual |
Sets up the property to only show the specified item with the item name that it is a count of.
|
protectedvirtual |
|
protectedvirtual |
Fills in the reader/writer value from the appropriate widget.
Reimplemented in makVrf::DtSetStatePreferredTargetsPropertyDialog, makVrf::DtSetStatePacingTrackingDialog, makVrf::DtSetStateContaminationPropertyDialog, makVrf::DtSetStateMoppLevelPropertyDialog, makVrf::DtSetStatePosturePropertyDialog, and makVrf::DtSetStatePercentCompletePropertyDialog.
|
protectedvirtual |
Properties used to check against to make sure this is an editable dialog.
Reimplemented in makVrf::DtSetStateFlattenedPropertyDialog.
|
protectedvirtual |
Determines whether or not a set replaces a property wholesale or simply look for matching items (in a list or map). Default is to look for matching items.
Reimplemented in makVrf::DtSetStatePreferredTargetsPropertyDialog.
|
protectedvirtual |
The module to use for translation of strings.
Reimplemented in makVrf::DtSetStateAmmunitionPropertyDialog.
|
protectedvirtual |
Returns whether or not the values should be displayed as percentages.
Reimplemented in makVrf::DtSetStateMoraleLevelPropertyDialog.
|
protectedvirtual |
When sending the modification message, are the values contained a percentage of the current value? Default is myValuesArePercentages.
Reimplemented in makVrf::DtSetStateMoraleLevelPropertyDialog.
|
protectedvirtual |
Returns true if this dialog is valid.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Reimplemented in makVrf::DtSetStateFlattenedPropertyDialog.
| QWidget* makVrf::DtSetStatePropertiesDialog::myCanvas |
| QVBoxLayout* makVrf::DtSetStatePropertiesDialog::myMainLayout |
| QScrollArea* makVrf::DtSetStatePropertiesDialog::myScrollArea |
| QWidget* makVrf::DtSetStatePropertiesDialog::myScrollAreaCanvas |
| QGridLayout* makVrf::DtSetStatePropertiesDialog::myGridLayout |
| QLabel* makVrf::DtSetStatePropertiesDialog::myNoItems |
|
protected |
If specified, and there is no data because the item that wants to be set does not exist, use this to look up state data.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
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. Default is false.
|
protected |
|
protected |
|
protected |
|
protected |
If there are property maps, and you wish to ignore columns in those maps when they are set up, fill in this map (by reader/writer name) with the columns to ignore.