VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
setStateResourcesPropertyDialog.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
11 
12 
13 #pragma once
14 
18 
20 
21 class QSlider;
22 class DtRwPropertiesMap;
23 
24 namespace makVrf
25 {
29  {
30  Q_OBJECT
31  public:
32  //CTOR
33  DtSetStateResourcesPropertyDialog(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0);
34 
35  //DTOR
36  virtual ~DtSetStateResourcesPropertyDialog() override;
37 
38  protected:
39 
40  protected:
41 
43  {
44  ResourceValue() : rootProperty(""), amountItem(0), val(0), originalValue(0.) {};
46  rootProperty(orig.rootProperty), rootItem(orig.rootItem), amountItem(0), val(0), originalValue(orig.originalValue) {};
47 
48  QSlider* slider;
52  double val;
53  double originalValue;
54  };
55 
57  typedef std::map<std::string, ResourceValue> ResourceValueMap;
58 
59  protected:
61  virtual void setupGui(const std::set<makVrv::DtUniqueID>& data) override;
62 
64  virtual void addResourcesItem(DtSimObjectReference);
65 
67  virtual void extractValues(const DtReaderWriter*, ResourceValueMap& map);
68 
69  virtual void modifyStateProperty() override;
70 
72  virtual void sendRequest() override;
73 
75  virtual void setupStatement(const DtSimStatement* stmt) override;
76 
77  virtual void revertValue() override;
78 
79  protected slots:
81  virtual void totalChanged();
82 
83  protected:
86  };
87 
89  {
90  public:
93  virtual DtTaskSetDialogInterface* createDialog(makVrv::DtDe&, QWidget* parent) override;
94  virtual bool isValidFor(
95  makVrv::DtDe& de, const makVrv::DtSelectionManager::IdSet& ids, int partOfPlanDialog) const override;
96 
97  protected:
99  virtual bool hasAValidResource(const DtRwPropertiesMap*) const;
100  };
101 
103  {
104  public:
106  virtual bool isValidFor(
107  makVrv::DtDe& de, const makVrv::DtSelectionManager::IdSet& ids, int partOfPlanDialog) const override;
108  };
109 }
Definition: taskSetDialogInterface.h:82
std::map< std::string, ResourceValue > ResourceValueMap
Values of resource by type.
Definition: setStateResourcesPropertyDialog.h:57
Definition: readerWriter.h:85
ResourceValueMap myBaseValues
Definition: setStateResourcesPropertyDialog.h:84
Definition: setStatePropertiesDialog.h:208
Definition: rwProperty.h:403
PropertyItem rootItem
Definition: setStateResourcesPropertyDialog.h:50
Definition: setStateResourcesPropertyDialog.h:102
Definition: setStateResourcesPropertyDialog.h:42
DtReaderWriter * amountItem
Definition: setStateResourcesPropertyDialog.h:51
Definition: setStatePropertyDialog.h:226
double originalValue
Definition: setStateResourcesPropertyDialog.h:53
Definition: setStatePacingTrackingDialog.h:41
Definition: setStateResourcesPropertyDialog.h:88
ResourceValue()
Definition: setStateResourcesPropertyDialog.h:44
Acts as a map for properties. A map is a definition that has a key and a prototype, with values being the key and prototype pair. The key can only be a string (DtRwStringType), int (DtRwIntType, DtRwInt8Type, DtRwInt16Type, DtRwInt32Type), or real (DtRwRealType, DtRwReal32Type, DtRwReal64Type).
Definition: rwPropertiesMap.h:41
Sets up the set dialog to be able to change all state properties. If multiple items are selected only...
Definition: setStatePropertyDialog.h:32
class DtSimStatement:
Definition: simStatement.h:38
ResourceValue(const ResourceValue &orig)
Definition: setStateResourcesPropertyDialog.h:45
Sets up the set dialog to be able to change all state properties. If multiple items are selected only...
Definition: setStateResourcesPropertyDialog.h:28
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
DtRwPropertyReal rootProperty
Definition: setStateResourcesPropertyDialog.h:49
#define DT_DLL_VRFGUITASKSETQT
Definition: vrfGuiTaskSetQt.h:22
std::set< DtUniqueID > IdSet
Definition: DtSelectionManager.h:32
double val
Definition: setStateResourcesPropertyDialog.h:52
ResourceValueMap myCurrentValues
Definition: setStateResourcesPropertyDialog.h:85

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)