VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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  protected:
43  virtual void setupGui(const std::vector<makVrv::DtSimEntry*>& data);
44 
46  virtual void addResetKilledCapturedWoundedMissing();
47 
48  virtual void addHealthItems(DtVrlinkSimulatedAggregateState*);
49 
51  virtual void setupBaseValues(const PropertyItem&);
52 
54  virtual void modifyStateProperty();
55  virtual void modifyBasedOnHealth(PropertyItem&);
56 
59  virtual DtRwProperties modifiedProperties() const;
60 
61  virtual void updateHealthSlider();
62 
63  virtual void setupStateProperties(DtSetStateProperties* col);
64 
67  virtual void setupHealthPercentage();
68 
70  virtual void setupGuiWhenNoSelection() {};
71  virtual void setupGuiWhenSelectionInvalid() {};
72 
73  protected slots:
74  virtual void healthSliderChanged();
75  virtual void healthPercentageSliderChanged();
76  virtual void healthPercentageTextChanged();
77 
78  public:
79  QSlider* myHealthSlider;
83 
84  protected:
85  typedef std::map<const DtPropertyInterface*, double> BaseValues;
86  typedef std::map<std::string, PropertyItem> AggregateProperties;
87 
90 
91  double myBaseHealth;
92  };
93 
95  {
96  public:
98  virtual DtTaskSetDialogInterface* create(makVrv::DtDe&, QWidget* parent);
99  };
100 }

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)