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 {
26  struct DtVrfObjectDataState;
27 
31  {
32  Q_OBJECT
33  public:
34  //CTOR
35  DtSetStateResourcesPropertyDialog(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0);
36 
37  //DTOR
39 
40  protected:
41 
42  protected:
43 
45  {
46  ResourceValue() : rootProperty(""), amountItem(0), val(0), originalValue(0.) {};
48  rootProperty(orig.rootProperty), rootItem(orig.rootItem), amountItem(0), val(0), originalValue(orig.originalValue) {};
49 
50  QSlider* slider;
54  double val;
55  double originalValue;
56  };
57 
59  typedef std::map<std::string, ResourceValue> ResourceValueMap;
60 
61  protected:
63  virtual void setupGui(const std::vector<makVrv::DtSimEntry*>& data);
64 
66  virtual void addResourcesItem(DtVrfObjectDataState*);
67 
69  virtual void extractValues(DtReaderWriter*, ResourceValueMap& map);
70 
71  virtual void modifyStateProperty();
72 
74  virtual void sendRequest();
75 
77  virtual void setupStatement(const DtSimStatement* stmt);
78 
79  virtual void revertValue();
80 
81  protected slots:
83  virtual void totalChanged();
84 
85  protected:
88  };
89 
91  {
92  public:
95  virtual DtTaskSetDialogInterface* createDialog(makVrv::DtDe&, QWidget* parent);
96  virtual bool isValidFor(makVrv::DtDe& de, const makVrv::DtSelectionManager::IdSet& ids, int partOfPlanDialog) const;
97 
98  protected:
100  virtual bool hasAValidResource(const DtRwPropertiesMap*) const;
101  };
102 
104  {
105  public:
107  virtual bool isValidFor(makVrv::DtDe& de, const makVrv::DtSelectionManager::IdSet& ids, int partOfPlanDialog) const;
108  };
109 }
Definition: taskSetDialogInterface.h:84
std::map< std::string, ResourceValue > ResourceValueMap
Values of resource by type.
Definition: setStateResourcesPropertyDialog.h:59
Definition: readerWriter.h:85
ResourceValueMap myBaseValues
Definition: setStateResourcesPropertyDialog.h:86
Definition: setStatePropertiesDialog.h:208
Definition: rwProperty.h:399
PropertyItem rootItem
Definition: setStateResourcesPropertyDialog.h:52
Definition: setStateResourcesPropertyDialog.h:103
Definition: setStateResourcesPropertyDialog.h:44
DtReaderWriter * amountItem
Definition: setStateResourcesPropertyDialog.h:53
Definition: setStatePropertyDialog.h:226
double originalValue
Definition: setStateResourcesPropertyDialog.h:55
Definition: setStatePacingTrackingDialog.h:41
Definition: setStateResourcesPropertyDialog.h:90
ResourceValue()
Definition: setStateResourcesPropertyDialog.h:46
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:31
class DtSimStatement:
Definition: simStatement.h:38
ResourceValue(const ResourceValue &orig)
Definition: setStateResourcesPropertyDialog.h:47
Sets up the set dialog to be able to change all state properties. If multiple items are selected only...
Definition: setStateResourcesPropertyDialog.h:30
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:72
DtRwPropertyReal rootProperty
Definition: setStateResourcesPropertyDialog.h:51
#define DT_DLL_VRFGUITASKSETQT
Definition: vrfGuiTaskSetQt.h:22
std::set< DtUniqueID > IdSet
Definition: DtSelectionManager.h:32
double val
Definition: setStateResourcesPropertyDialog.h:54
Definition: vrfObjectDataState.h:87
ResourceValueMap myCurrentValues
Definition: setStateResourcesPropertyDialog.h:87

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)