VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
damageTableConfigurationDialog.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2018 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
12 #include <vlutil/vlString.h>
14 
15 #include <QtWidgets/QDialog>
16 
17 class QHBoxLayout;
18 class QVBoxLayout;
19 class QGridLayout;
20 class QPushButton;
21 class QLabel;
22 class QLineEdit;
23 class QListWidget;
24 class QRadioButton;
25 class QDoubleValidator;
27 class DtDmgSurfaceEntry;
29 
33 {
34  Q_OBJECT
35 
36 public:
37  DtDamageTableConfigurationDialog(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = Qt::Tool);
39 
41  virtual DtDamageProbabilityTable* damageTable() const;
42 
43  virtual void init(const DtString& selectedPower, bool isHumanDamage);
44 
45  virtual void setPower(const DtString&);
46 
47  virtual DtString selectedPower() const;
48 
49 protected:
50  virtual DtDmgSurfaceEntry* createDamageLookupSurface(const DtString&) const;
51  virtual DtDmgSurfaceEntry* createDamageCalcSurface(const DtString&) const;
52  virtual void addCalcKillType(DtDmgAngleOfIncidenceCalcTable*, const DtString&, QLineEdit*) const;
53 
54 protected slots:
55  virtual void updateOKButton();
56  virtual void functionTypeChanged();
57  virtual void onPowerSelected();
58 
59 public:
60  QVBoxLayout* myMainLayout;
61  QHBoxLayout* myButtonLayout;
64 
66  QListWidget* myPowers;
67 
68  QRadioButton* myRangeListCaclulation;
70 
71  QGridLayout* myDataLayout;
74 
81 
82  QDoubleValidator* myPowerValidator;
83  QDoubleValidator* myPercentValidator;
84 
85 protected:
89 };
90 
93 {
94 public:
97 
100 
103 
105  static void registerInstance(makVrv::DtDe&, DtDamageTableConfigurationDialogCreator*);
106 
108  virtual DtDamageTableConfigurationDialog* create(QWidget* parent);
109 
110 protected:
112 };

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)