VR-Forces 4.6 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 
19 #include <vrfutil/rwProperties.h>
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) {};
48  rootProperty(orig.rootProperty), rootItem(orig.rootItem), amountItem(0), val(0) {};
49 
50  QSlider* slider;
54  double val;
55  };
56 
58  typedef std::map<std::string, ResourceValue> ResourceValueMap;
59 
60  protected:
62  virtual void setupGui(const std::vector<makVrv::DtSimEntry*>& data);
63 
65  virtual void addResourcesItem(DtVrlinkSimulatedAggregateState*);
66 
68  virtual void extractValues(DtReaderWriter*, ResourceValueMap& map);
69 
70  virtual void modifyStateProperty();
71 
73  virtual void sendRequest();
74 
76  virtual void setupStatement(const DtSimStatement* stmt);
77 
78  protected slots:
80  virtual void totalChanged();
81 
82  protected:
85  };
86 
88  {
89  public:
92  virtual DtTaskSetDialogInterface* create(makVrv::DtDe&, QWidget* parent);
93  virtual bool isValidFor(makVrv::DtDe& de, const makVrv::DtSelectionManager::IdSet& ids, int partOfPlanDialog) const;
94 
95  protected:
97  virtual bool hasAValidResource(const DtRwPropertiesMap*) const;
98  };
99 
101  {
102  public:
104  virtual bool isValidFor(makVrv::DtDe& de, const makVrv::DtSelectionManager::IdSet& ids, int partOfPlanDialog) const;
105  };
106 }

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)