VR-Forces 4.10 Class Documentation
 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 DtVrlinkSimulatedAggregateState;
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(DtVrlinkSimulatedAggregateState*);
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:83
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:207
Definition: rwProperty.h:335
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.
Definition: rwPropertiesMap.h:41
Sets up the set dialog to be able to change all state properties.
Definition: setStatePropertyDialog.h:31
class DtSimStatement:
Definition: simStatement.h:35
ResourceValue(const ResourceValue &orig)
Definition: setStateResourcesPropertyDialog.h:47
Sets up the set dialog to be able to change all state properties.
Definition: setStateResourcesPropertyDialog.h:30
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
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
ResourceValueMap myCurrentValues
Definition: setStateResourcesPropertyDialog.h:87

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)