VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
setStateHealthPropertyDialog.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
12 
13 
14 #pragma once
15 
18 
19 class QSlider;
20 class QLabel;
21 class QLineEdit;
22 
23 namespace makVrf
24 {
25  struct DtVrlinkSimulatedAggregateState;
26 
30  {
31  Q_OBJECT
32  public:
33  //CTOR
34  DtSetStateHealthPropertyDialog(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0);
35 
36  //DTOR
38 
39  virtual void revertValue();
40 
41  protected:
45  virtual void setupGui(const std::vector<makVrv::DtSimEntry*>& data);
46 
48  virtual void addResetKilledCapturedWoundedMissing();
49 
50  virtual void addHealthItems(DtVrlinkSimulatedAggregateState*);
51 
53  virtual void setupBaseValues(const PropertyItem&);
54 
56  virtual void modifyStateProperty();
57  virtual void modifyBasedOnHealth(PropertyItem&);
58 
61  virtual DtRwProperties modifiedProperties() const;
62 
63  virtual void updateHealthSlider();
64 
65  virtual void setupStateProperties(DtSetStateProperties* col);
66 
69  virtual void setupHealthPercentage();
70 
72  virtual void setupGuiWhenNoSelection() {};
73  virtual void setupGuiWhenSelectionInvalid() {};
74 
75  protected slots:
76  virtual void healthSliderChanged();
77  virtual void healthPercentageSliderChanged();
78  virtual void healthPercentageTextChanged();
79 
80  public:
81  QSlider* myHealthSlider;
85 
86  protected:
87  typedef std::map<const DtPropertyInterface*, double> BaseValues;
88  typedef std::map<std::string, PropertyItem> AggregateProperties;
89 
92 
93  double myBaseHealth;
94  };
95 
97  {
98  public:
100  virtual DtTaskSetDialogInterface* createDialog(makVrv::DtDe&, QWidget* parent);
101  };
102 }

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)