12 #include <vlutil/vlString.h>
15 #include <QtWidgets/QDialog>
26 class QDoubleValidator;
39 virtual bool isValid()
const = 0;
81 virtual void setLabel(
const QString&);
133 const DtString& initialDeterminant =
"");
135 virtual DtString selectedPower()
const;
136 virtual DtString selectedDeterminant()
const;
142 virtual void selectDeterminant(
const DtString&);
143 virtual void selectDeterminantBasedOnCurrentPower();
144 virtual QString determinantsTitle(
const DtString& det,
const DtString& power)
const;
152 virtual void powerTypeChanged();
153 virtual void determinantTypeChanged();
154 virtual void updateOKButton();
QLabel * myLargestPowerLabel
Definition: powerAndDeterminantDialog.h:89
Definition: powerAndDeterminantDialog.h:72
QLineEdit * mySmallestRange
Definition: powerAndDeterminantDialog.h:88
std::map< DtString, DtDeterminant * > Determinants
Definition: powerAndDeterminantDialog.h:174
Virtual base class.
Definition: DtVirtualBaseClass.h:22
Definition: powerAndDeterminantDialog.h:94
std::map< DtString, QRadioButton * > DeterminantsButtons
Definition: powerAndDeterminantDialog.h:171
QHBoxLayout * myDataLayout
Definition: powerAndDeterminantDialog.h:117
QWidget * myDeterminantsCanvas
Definition: powerAndDeterminantDialog.h:165
makVrv::DtDe & myDe
Definition: powerAndDeterminantDialog.h:51
QLineEdit * myEquivalentTNTLineEdit
Definition: powerAndDeterminantDialog.h:119
QDoubleValidator * myPowerValidator
Definition: powerAndDeterminantDialog.h:91
The main dialog that allows the user to pick a power and determinant.
Definition: powerAndDeterminantDialog.h:124
QVBoxLayout * myMainLayout
Definition: powerAndDeterminantDialog.h:157
DtDeterminant * myCurrentDeterminant
Definition: powerAndDeterminantDialog.h:180
Creator for the dialog.
Definition: powerAndDeterminantDialog.h:185
DeterminantsButtons myDeterminantsButtons
Definition: powerAndDeterminantDialog.h:172
QListWidget * myPowers
Definition: powerAndDeterminantDialog.h:163
virtual bool isValid() const =0
QLabel * mySmallestRangeLabel
Definition: powerAndDeterminantDialog.h:87
makVrv::DtDe & myDe
Definition: powerAndDeterminantDialog.h:204
A readable/writable object that indicates the power of a detonation of a given type, potentially at different ranges from the point of impact.
Definition: powerRangeDeterminant.h:17
QLabel * myPowersLabel
Definition: powerAndDeterminantDialog.h:162
QGridLayout * myDataLayout
Definition: powerAndDeterminantDialog.h:86
QHBoxLayout * myDataLayout
Definition: powerAndDeterminantDialog.h:67
Contains makVrv::DtVirtualBaseClass class.
QDoubleValidator * myRangeValidator
Definition: powerAndDeterminantDialog.h:52
QPushButton * myCancelButton
Definition: powerAndDeterminantDialog.h:160
QLineEdit * myLargestPower
Definition: powerAndDeterminantDialog.h:90
virtual DtPowerRangeDeterminant * determinant(const DtString &power) const =0
These classes will determine the layout of the data entry for the determinant and whether or not it i...
Definition: powerAndDeterminantDialog.h:31
QLabel * myDirectLabel
Definition: powerAndDeterminantDialog.h:68
QLabel * myEquivalentTNTLabel
Definition: powerAndDeterminantDialog.h:118
virtual void setLabel(const QString &)
Definition: powerAndDeterminantDialog.h:40
DtMunitionDetonationPowerEntry.
Definition: munitionDetonationPowerEntry.h:19
QHBoxLayout * myButtonLayout
Definition: powerAndDeterminantDialog.h:158
Definition: powerAndDeterminantDialog.h:55
Determinants myDeterminants
Definition: powerAndDeterminantDialog.h:175
QWidget * myDeterminantValueCanvas
Definition: powerAndDeterminantDialog.h:168
QVBoxLayout * myLayout
Definition: powerAndDeterminantDialog.h:48
DtMunitionDetonationPowerEntry * myPowerEntry
Definition: powerAndDeterminantDialog.h:179
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
QVBoxLayout * myDeterminantValueCanvasLayout
Definition: powerAndDeterminantDialog.h:169
virtual void setup(const DtString &power)
Definition: powerAndDeterminantDialog.h:41
QLineEdit * myDirectLineEdit
Definition: powerAndDeterminantDialog.h:69
QPushButton * myOKButton
Definition: powerAndDeterminantDialog.h:159
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
Definition: powerAndDeterminantDialog.h:105
virtual void setup(const DtString &power)
makVrv::DtDe & myDe
Definition: powerAndDeterminantDialog.h:178
std::map< DtString, std::map< DtString, QString > > myDeterminantTitles
Definition: powerAndDeterminantDialog.h:181
#define DT_DLL_simulationObjectEditorimpl
This file is used to determine how to build.
Definition: simulationObjectEditorImplDefines.h:32
QVBoxLayout * myDeterminantsCanvasLayout
Definition: powerAndDeterminantDialog.h:166
virtual DtPowerRangeDeterminant * determinant(const DtString &power) const