VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes | Protected Slots | Protected Member Functions | Protected Attributes
DtDamageTableConfigurationDialog Class Reference

The main dialog that allows the user to set up some values for the formula to they wish to use to create a basic damage table.

Inheritance diagram for DtDamageTableConfigurationDialog:
Inheritance graph
[legend]

Public Member Functions

 DtDamageTableConfigurationDialog (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=Qt::Tool)
 
virtual ~DtDamageTableConfigurationDialog () override
 
virtual DtDamageProbabilityTable * damageTable () const
 
virtual DtDamagePointsTable * damagePointsTable () const
 
virtual void setupGui ()
 
virtual void init (const DtString &selectedPower, bool isHumanDamage, bool isMultihitDamage)
 
virtual void setPower (const DtString &)
 
virtual DtString selectedPower () const
 

Public Attributes

QVBoxLayout * myMainLayout
 
QHBoxLayout * myButtonLayout
 
QPushButton * myOKButton
 
QPushButton * myCancelButton
 
QLabel * myPowersLabel
 
QListWidget * myPowers
 
QRadioButton * myRangeListCaclulation
 
QRadioButton * myRangeCoefficientCalculation
 
QGridLayout * myDataLayout
 
QLabel * myLargestPowerLabel
 
QLineEdit * myLargestPower
 
QLabel * myCatastrophicKillLabel
 
QLineEdit * myCatastrophicKill
 
QLabel * myFirepowerKillLabel
 
QLineEdit * myFirepowerKill
 
QLabel * myMobilityKillLabel
 
QLineEdit * myMobilityKill
 
QLabel * mySensorsKillLabel
 
QLineEdit * mySensorsKill
 
QLabel * mySlightInjuryLabel
 
QLineEdit * mySlightInjury
 
QLabel * myModerateInjuryLabel
 
QLineEdit * myModerateInjury
 
QLabel * myMaximumDamagePointsLabel
 
QLineEdit * myMaximumDamagePoints
 
QLabel * myMinimumDamagePointsLabel
 
QLineEdit * myMinimumDamagePoints
 
QDoubleValidator * myPowerValidator
 
QDoubleValidator * myPercentValidator
 

Protected Slots

virtual void updateOKButton ()
 
virtual void functionTypeChanged ()
 
virtual void onPowerSelected ()
 

Protected Member Functions

virtual DtDmgSurfaceEntry * createDamageLookupSurface (const DtString &) const
 
virtual DtDmgSurfaceEntry * createDamageCalcSurface (const DtString &) const
 
virtual DtDmgSurfaceEntry * createDamagePointsLookupSurface (const DtString &) const
 
virtual DtDmgSurfaceEntry * createDamagePointsCalcSurface (const DtString &) const
 
virtual void addCalcKillType (DtDmgAngleOfIncidenceCalcTable *, const DtString &, QLineEdit *) const
 

Protected Attributes

makVrv::DtDe & myDe
 
DtString mySelectedPower
 
bool myIsHumanDamage
 
bool myIsMultiHitDamage
 

Constructor & Destructor Documentation

DtDamageTableConfigurationDialog::DtDamageTableConfigurationDialog ( makVrv::DtDe &  de,
QWidget *  parent,
const Qt::WindowFlags &  flags = Qt::Tool 
)
virtual DtDamageTableConfigurationDialog::~DtDamageTableConfigurationDialog ( )
overridevirtual

Member Function Documentation

virtual DtDamageProbabilityTable* DtDamageTableConfigurationDialog::damageTable ( ) const
virtual

This will return a newly allocated damage table.

virtual DtDamagePointsTable* DtDamageTableConfigurationDialog::damagePointsTable ( ) const
virtual

For multihit damage systems they will have an additional associated damage points table.

virtual void DtDamageTableConfigurationDialog::setupGui ( )
virtual

Sets upt he dialog depending on type of damage system.

virtual void DtDamageTableConfigurationDialog::init ( const DtString &  selectedPower,
bool  isHumanDamage,
bool  isMultihitDamage 
)
virtual
virtual void DtDamageTableConfigurationDialog::setPower ( const DtString &  )
virtual
virtual DtString DtDamageTableConfigurationDialog::selectedPower ( ) const
virtual
virtual DtDmgSurfaceEntry* DtDamageTableConfigurationDialog::createDamageLookupSurface ( const DtString &  ) const
protectedvirtual
virtual DtDmgSurfaceEntry* DtDamageTableConfigurationDialog::createDamageCalcSurface ( const DtString &  ) const
protectedvirtual
virtual DtDmgSurfaceEntry* DtDamageTableConfigurationDialog::createDamagePointsLookupSurface ( const DtString &  ) const
protectedvirtual

For multihit damage systems.

virtual DtDmgSurfaceEntry* DtDamageTableConfigurationDialog::createDamagePointsCalcSurface ( const DtString &  ) const
protectedvirtual
virtual void DtDamageTableConfigurationDialog::addCalcKillType ( DtDmgAngleOfIncidenceCalcTable *  ,
const DtString &  ,
QLineEdit *   
) const
protectedvirtual
virtual void DtDamageTableConfigurationDialog::updateOKButton ( )
protectedvirtualslot
virtual void DtDamageTableConfigurationDialog::functionTypeChanged ( )
protectedvirtualslot
virtual void DtDamageTableConfigurationDialog::onPowerSelected ( )
protectedvirtualslot

Member Data Documentation

QVBoxLayout* DtDamageTableConfigurationDialog::myMainLayout
QHBoxLayout* DtDamageTableConfigurationDialog::myButtonLayout
QPushButton* DtDamageTableConfigurationDialog::myOKButton
QPushButton* DtDamageTableConfigurationDialog::myCancelButton
QLabel* DtDamageTableConfigurationDialog::myPowersLabel
QListWidget* DtDamageTableConfigurationDialog::myPowers
QRadioButton* DtDamageTableConfigurationDialog::myRangeListCaclulation
QRadioButton* DtDamageTableConfigurationDialog::myRangeCoefficientCalculation
QGridLayout* DtDamageTableConfigurationDialog::myDataLayout
QLabel* DtDamageTableConfigurationDialog::myLargestPowerLabel
QLineEdit* DtDamageTableConfigurationDialog::myLargestPower
QLabel* DtDamageTableConfigurationDialog::myCatastrophicKillLabel
QLineEdit* DtDamageTableConfigurationDialog::myCatastrophicKill
QLabel* DtDamageTableConfigurationDialog::myFirepowerKillLabel
QLineEdit* DtDamageTableConfigurationDialog::myFirepowerKill
QLabel* DtDamageTableConfigurationDialog::myMobilityKillLabel
QLineEdit* DtDamageTableConfigurationDialog::myMobilityKill
QLabel* DtDamageTableConfigurationDialog::mySensorsKillLabel
QLineEdit* DtDamageTableConfigurationDialog::mySensorsKill
QLabel* DtDamageTableConfigurationDialog::mySlightInjuryLabel

If lifeform damage add slight/major injury.

QLineEdit* DtDamageTableConfigurationDialog::mySlightInjury
QLabel* DtDamageTableConfigurationDialog::myModerateInjuryLabel
QLineEdit* DtDamageTableConfigurationDialog::myModerateInjury
QLabel* DtDamageTableConfigurationDialog::myMaximumDamagePointsLabel

If Multihit damage add maximum and minor damage points.

QLineEdit* DtDamageTableConfigurationDialog::myMaximumDamagePoints
QLabel* DtDamageTableConfigurationDialog::myMinimumDamagePointsLabel
QLineEdit* DtDamageTableConfigurationDialog::myMinimumDamagePoints
QDoubleValidator* DtDamageTableConfigurationDialog::myPowerValidator
QDoubleValidator* DtDamageTableConfigurationDialog::myPercentValidator
makVrv::DtDe& DtDamageTableConfigurationDialog::myDe
protected
DtString DtDamageTableConfigurationDialog::mySelectedPower
protected
bool DtDamageTableConfigurationDialog::myIsHumanDamage
protected
bool DtDamageTableConfigurationDialog::myIsMultiHitDamage
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)