VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Member Functions | Protected Types | Protected Slots | Protected Member Functions | Protected Attributes
makVrf::DtSetStateResourcesPropertyDialog Class Reference

Sets up the set dialog to be able to change all state properties. More...

Inheritance diagram for makVrf::DtSetStateResourcesPropertyDialog:
Inheritance graph
[legend]

Classes

struct  ResourceValue
 

Public Member Functions

 DtSetStateResourcesPropertyDialog (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0)
 
virtual ~DtSetStateResourcesPropertyDialog ()
 
- 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, bool hasStar=false)
 Adds a property to be able to be modified via the set command into the interface. More...
 
virtual void setDefaultPlatformFile (const DtString &)
 
const DtStringdefaultPlatformFile () 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 * > &)
 Calls setupGui and shows the dialog. More...
 
virtual void setOKEnabled (bool)
 Enables/disables OK button. More...
 
virtual void setCancelEnabled (bool)
 Sets whether or not the Cancel button is enabled. More...
 
virtual bool valid () const
 Override to return whether or not extension is valid. More...
 
int accepted () const
 0 - Closed without pressing cancel or ok 1 - Closed by ok 2 - Closed by cancel More...
 
virtual void setAutoSizeOnShow (bool)
 Whether or not to place in center of main window on show or just let Qt do it. Default is true. More...
 
virtual bool autoSizeOnShow () const
 
virtual void setDescription (const QString &desc)
 Adds descriptive text to the top of the dialog. More...
 
virtual QString description () const
 Returns the current descriptive text. More...
 
virtual bool editStatement (const std::vector< makVrv::DtSimEntry * > &, const DtSimStatement *)
 Edits the current statement. Return true if the statement can be edited. More...
 
virtual void finishSizing ()
 
- 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. More...
 
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. More...
 
virtual bool sendToRemoteController () const
 
virtual void selectionChanged (const DtUUID &selection)
 Notify dialog of selection changes from attached dialogs. More...
 
virtual void sendSetRequest (std::vector< DtUUID > names, const DtSetDataRequest &)
 Sends signal to send out set. More...
 
virtual bool insertMapFocusHandler (DtMapFocusHandler *, int index=-1)
 If a dialog has manages map focus handlers, inserts this map focus handler into the chain. More...
 
virtual void initializeFromAction (DtVrfTaskSetAction *)
 Intializes contents from action as an action could have relevant properties assigned to it containing additional data. More...
 
DtVrfTaskSetActioninitializedAction () const
 The action this dialog was initialized for. More...
 
virtual void sendTaskRequest (std::vector< DtUUID > names, const DtSimTask &)
 Sends signal to send out task. More...
 
virtual std::vector
< makVrv::DtUniqueID
entityIds () const
 The ids that represent the objects that are part of this dialog. More...
 
virtual std::vector< DtUUIDnames () const
 
virtual void setupFromExtendedData (const std::map< std::string, std::string > &)
 
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 More...
 
int partOfPlan () const
 
virtual void cancel ()
 Sends out cancel signal. More...
 
virtual QWidget * widget ()
 Returns the widget. More...
 
const std::vector
< makVrv::DtSimEntry * > & 
connectedTo () const
 
virtual void noObjectsSelected ()
 No-op at this level. More...
 
- Public Member Functions inherited from makVrf::DtCommandDialogExtensionInterface
virtual ~DtCommandDialogExtensionInterface ()
 
virtual bool initiallyBroadcast () const
 Whether or not to initially set to broadcast. Default is false. More...
 
virtual bool allowBroadcasting () const
 Whether or not to allow broadcasting. Default is true. More...
 
virtual bool hasUserEntry () const
 Returns true if there is user entry. Default is to assume there is. More...
 
virtual QString entitySelectionGroupBoxTitle () const
 If defined, title for the group box for entity selection on command widget. More...
 
virtual void filterAboutToBeAdded (DtVrfSelectionFilter *)
 
virtual void parentShown (QWidget *)
 
virtual void onCancel ()=0
 
virtual makVrv::DtUnicode broadcastTitle () const
 

Protected Types

typedef std::map< std::string,
ResourceValue
ResourceValueMap
 Values of resource by type. More...
 
- Protected Types inherited from makVrf::DtSetStatePropertiesDialog
typedef std::map< DtString,
PropertyItem
PropertyItems
 The key is the propertyItem root name. More...
 

Protected Slots

virtual void totalChanged ()
 Called when slider changes. More...
 
- Protected Slots inherited from makVrf::DtSetStatePropertiesDialog
virtual void updateOkButton ()
 
- Protected Slots inherited from makVrf::DtBaseTaskSetDialogInterface
virtual void onOk ()
 
virtual void onCancel ()
 
- Protected Slots inherited from makVrf::DtTaskSetDialogInterface
virtual void actionDestroyed ()
 

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. More...
 
virtual void addResourcesItem (DtVrlinkSimulatedAggregateState *)
 Adds all the Resources for the given state view and controls to manipulate. More...
 
virtual void extractValues (DtReaderWriter *, ResourceValueMap &map)
 Extracts all the resource values. Keeps around reader/writer items to make display items from. More...
 
virtual void modifyStateProperty ()
 Set to modify the property that has just been changed. More...
 
virtual void sendRequest ()
 Override to set into Resources-Categories. More...
 
virtual void setupStatement (const DtSimStatement *stmt)
 Take values from Resources-Categories and place into current values. More...
 
virtual void revertValue ()
 
- Protected Member Functions inherited from makVrf::DtSetStatePropertyDialog
virtual QSize canvasSize ()
 
virtual void setupGuiWhenNoSelection ()
 Sets up the GUI to handle the case where there is no sim object currently selected to be set. More...
 
virtual void setupGuiWhenSelectionInvalid ()
 Sets up the GUI to handle the case where the selected sim object is not valid for this property. More...
 
- Protected Member Functions inherited from makVrf::DtSetStatePropertiesDialog
virtual QWidget * contents (const std::vector< makVrv::DtSimEntry * > &data)
 Creates set dialog contents. Called from setupGui. More...
 
virtual void setupFrom (const std::vector< makVrv::DtSimEntry * > &s)
 Edits the current statement. Return true if the statement can be edited. More...
 
virtual void cleanupPropertyItem (PropertyItem &) const
 
virtual void clearProperties ()
 
virtual void markAsReadOnly (PropertyItem &)
 Marks item and all children as read only. Hides check boxes and makes them unchecked. More...
 
virtual bool addPropertyItemForDataEntry (PropertyItem &, const DtReaderWriter *, const DtString &pathSoFar, int level, bool updateExistingValue=false, bool recurse=true)
 Adds in the property and all it's children. More...
 
virtual int addPropertyItemToDataSheet (PropertyItem &, const DtReaderWriter *, const DtString &pathSoFar, int level)
 Adds property item to data sheet except for data entry QLineEdit. adds only as a label. Returns the row added to. More...
 
virtual void itemHasBeenUpdated (PropertyItem &, bool)
 
virtual bool hasMoreThanDefaultValueInRegistry (const DtReaderWriter *rw) const
 
virtual bool wantsSpacer () const
 
virtual DtRwProperties modifiedProperties () const
 
virtual bool modifiedProperties (const PropertyItem &, DtReaderWriter *rw, bool parentItList=false) const
 
virtual void setupStateProperties (DtSetStateProperties *col)
 
virtual const DtReaderWriterbaseValueFor (const DtString &pathSoFar) const
 
virtual bool hasValue (const DtRwProperties &props, const DtString &val) const
 Returns true if the state properties have a non-zero top level value for the given item. More...
 
virtual void extract (std::vector< DtReaderWriter * > &allCounts, const DtString &extractionType, DtReaderWriter *curItem, const DtString &pathSoFar) const
 Returns all DtReaderWriter items that are extractionTypes items with the name set to the parent. More...
 
virtual void extractItemsFor (DtReaderWriter *, const DtString &extractionType, const DtString &title, DtRwProperties *container) const
 Sets up the property to only show the specified item with the item name that it is a count of. More...
 
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
 Fills in the reader/writer value from the appropriate widget. More...
 
virtual DtString properties () const
 Properties used to check against to make sure this is an editable dialog. More...
 
virtual bool replace () const
 Determines whether or not a set replaces a property wholesale or simply look for matching items (in a list or map). More...
 
virtual DtString translationModule () const
 The module to use for translation of strings. More...
 
virtual bool valuesArePercentages (const std::vector< makVrv::DtSimEntry * > &data) const
 Returns whether or not the values should be displayed as percentages. More...
 
virtual bool sendValuesAsPercentages () const
 When sending the modification message, are the values contained a percentage of the current value? Default is myValuesArePercentages. More...
 
virtual bool isValid () const
 Returns true if this dialog is valid. More...
 
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 postGuiSetup (const std::vector< makVrv::DtSimEntry * > &data)
 Called after setupGui to set up other items in the gui (fill combo boxes, initial text edit, etc) More...
 
virtual void initializeItems (const std::vector< makVrv::DtSimEntry * > &data)
 Override for dialogs that need item initialization. More...
 
virtual void closeEvent (QCloseEvent *)
 Figure out if a cancelled signal needs to be sent. More...
 
virtual void hideButtons (bool)
 No buttons to hide. More...
 
virtual bool wantsSelectionOfObjectInCommandMode (const std::vector< makVrv::DtSimEntry * > &) const
 Override to return false if, when this task is used as part of a simulation command, it does not want to allow to choose an object to apply the command to. More...
 
virtual void sendSetRequest (const DtSetDataRequest &)
 
virtual void sendTaskRequest (const DtSimTask &)
 
virtual void sendCommandRequest (const DtSimCommandObjectWrapper &)
 Sends signal to send out command. More...
 
virtual void onOK ()
 
- 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
 If part of a command dialog the filters to use for the command dialog selection. More...
 

Protected Attributes

ResourceValueMap myBaseValues
 
ResourceValueMap myCurrentValues
 
- Protected Attributes inherited from makVrf::DtSetStatePropertyDialog
QLabelmyInvalidSelectionLabel
 Label displaying text indicating currently selected simulation objects are not valid for this property. More...
 
- Protected Attributes inherited from makVrf::DtSetStatePropertiesDialog
DtString myDefaultPlatformFile
 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. More...
 
bool myUsingGeneric
 
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. More...
 
bool myIgnoreMaximum
 
DtRwProperties myStateProperties
 
DtRwProperties myParameterData
 
std::map< DtString, std::set
< DtString > > 
myIgnorePropertyMapColumns
 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. More...
 
- Protected Attributes inherited from makVrf::DtBaseTaskSetDialogInterface
bool myAutoSizeOnShow
 
bool myValidInitialization
 
- Protected Attributes inherited from makVrf::DtTaskSetDialogInterface
makVrv::DtDemyDe
 
int myPartOfPlan
 
std::vector< makVrv::DtSimEntry * > myConnectedTo
 
bool mySendToRemoteController
 
DtVrfTaskSetActionmyAction
 

Additional Inherited Members

- Public Attributes inherited from makVrf::DtSetStatePropertiesDialog
QWidget * myCanvas
 
QVBoxLayout * myMainLayout
 
QScrollArea * myScrollArea
 
QWidget * myScrollAreaCanvas
 
QGridLayout * myGridLayout
 
QLabelmyNoItems
 
- Public Attributes inherited from makVrf::DtBaseTaskSetDialogInterface
QVBoxLayout * myMasterLayout
 
QHBoxLayout * myButtonLayout
 
QPushButtonmyOKButton
 
QPushButtonmyCancelButton
 
char myAccepted
 
QLabelmyTaskSetDescription
 
QFrame * myTaskSetDescriptionSeparator
 
- Public Attributes inherited from makVrf::DtCommandDialogExtensionInterface
boost::signals2::signal< void()> signal_cancelled
 
boost::signals2::signal< void(bool)> signal_enableCommandModeSelection
 Signal sent when the task becomes valid (or invalid) More...
 
boost::signals2::signal< void(bool)> signal_validStateChanged
 
boost::signals2::signal< void(bool)> signal_disableCancel
 
boost::signals2::signal< void(std::vector
< DtUUID > names, const
DtSetDataRequest &)> 
signal_sendSetRequest
 
boost::signals2::signal< void(std::vector
< DtUUID > names, const
DtSimTask &)> 
signal_sendTaskRequest
 
boost::signals2::signal< void(const
DtSimCommandObjectWrapper &)> 
signal_sendCommandRequest
 
boost::signals2::signal< void(const
std::vector< DtUUID > &, const
DtSimTask &, DtVrfTaskSetMenu *)> 
signal_commandActivated
 
boost::signals2::signal< void(const
DtSimCommandObjectWrapper &)> 
signal_simCommandActivated
 
boost::signals2::signal< void(const
std::vector
< makVrv::DtSimEntry * > &)> 
signal_stopWatching
 

Detailed Description

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

Member Typedef Documentation

Values of resource by type.

Constructor & Destructor Documentation

makVrf::DtSetStateResourcesPropertyDialog::DtSetStateResourcesPropertyDialog ( makVrv::DtDe de,
QWidget *  parent,
const Qt::WindowFlags &  flags = 0 
)
virtual makVrf::DtSetStateResourcesPropertyDialog::~DtSetStateResourcesPropertyDialog ( )
virtual

Member Function Documentation

virtual void makVrf::DtSetStateResourcesPropertyDialog::setupGui ( const std::vector< makVrv::DtSimEntry * > &  data)
protectedvirtual

If there is a single entry, find it's location and convert to local to set.

Reimplemented from makVrf::DtSetStatePropertyDialog.

virtual void makVrf::DtSetStateResourcesPropertyDialog::addResourcesItem ( DtVrlinkSimulatedAggregateState )
protectedvirtual

Adds all the Resources for the given state view and controls to manipulate.

virtual void makVrf::DtSetStateResourcesPropertyDialog::extractValues ( DtReaderWriter ,
ResourceValueMap map 
)
protectedvirtual

Extracts all the resource values. Keeps around reader/writer items to make display items from.

virtual void makVrf::DtSetStateResourcesPropertyDialog::modifyStateProperty ( )
protectedvirtual

Set to modify the property that has just been changed.

Reimplemented from makVrf::DtSetStatePropertiesDialog.

virtual void makVrf::DtSetStateResourcesPropertyDialog::sendRequest ( )
protectedvirtual

Override to set into Resources-Categories.

Reimplemented from makVrf::DtSetStatePropertiesDialog.

virtual void makVrf::DtSetStateResourcesPropertyDialog::setupStatement ( const DtSimStatement stmt)
protectedvirtual

Take values from Resources-Categories and place into current values.

Reimplemented from makVrf::DtSetStatePropertiesDialog.

virtual void makVrf::DtSetStateResourcesPropertyDialog::revertValue ( )
protectedvirtual
virtual void makVrf::DtSetStateResourcesPropertyDialog::totalChanged ( )
protectedvirtualslot

Called when slider changes.

Member Data Documentation

ResourceValueMap makVrf::DtSetStateResourcesPropertyDialog::myBaseValues
protected
ResourceValueMap makVrf::DtSetStateResourcesPropertyDialog::myCurrentValues
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)