VR-Forces 4.7 Class Documentation
 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
makVrf::DtTaskAggregateBombLocationDialog Class Reference
Inheritance diagram for makVrf::DtTaskAggregateBombLocationDialog:
Inheritance graph
[legend]

Public Member Functions

 DtTaskAggregateBombLocationDialog (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0)
virtual ~DtTaskAggregateBombLocationDialog ()
virtual int numberOfBombs () const
virtual void setNumberOfBombs (int)
virtual QString weapon () const
virtual void setWeapon (const QString &)
virtual DtVector targetLocation () const
virtual void setTargetLocation (const DtVector &)
virtual void setLocationValid (bool)
virtual void validate ()
- Public Member Functions inherited from makVrf::DtBaseTaskSetDialogInterface
 DtBaseTaskSetDialogInterface (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0)
virtual ~DtBaseTaskSetDialogInterface ()
virtual void run (const std::vector< makVrv::DtSimEntry * > &)
 Calls setupGui and shows the dialog.
virtual void setOKEnabled (bool)
 Enables/disables OK button.
virtual void setCancelEnabled (bool)
 Sets whether or not the Cancel button is enabled.
int accepted () const
 0 - Closed without pressing cancel or ok 1 - Closed by ok 2 - Closed by cancel
virtual void setupGui (const std::vector< makVrv::DtSimEntry * > &)
 Sets up the ok/cancel buttons.
virtual void setAutoSizeOnShow (bool)
 Whether or not to place in center of main window on show or just let Qt do it. Default is true.
virtual bool autoSizeOnShow () const
virtual void setDescription (const QString &desc)
 Adds descriptive text to the top of the dialog.
virtual QString description () const
 Returns the current descriptive text.
- Public Member Functions inherited from makVrf::DtTaskSetDialogInterface
 DtTaskSetDialogInterface (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0)
virtual ~DtTaskSetDialogInterface ()
virtual void connectSignals (const std::vector< makVrv::DtSimEntry * > &)
 Setup signals to cancel dialog if all objects deleted that this dialog is representing.
virtual void setSendToRemoteController (bool b)
 Set to true to send the message immediately to the remote controller given the currently selected entities when the dialog was created.
virtual bool sendToRemoteController () const
virtual void selectionChanged (const DtUUID &selection)
 Notify dialog of selection changes from attached dialogs.
virtual void sendSetRequest (std::vector< DtUUID > names, const DtSetDataRequest &)
 Sends signal to send out set.
virtual bool insertMapFocusHandler (DtMapFocusHandler *, int index=-1)
 If a dialog has manages map focus handlers, inserts this map focus handler into the chain.
virtual void initializeFromAction (DtVrfTaskSetAction *)
 Intializes contents from action as an action could have relevant properties assigned to it containing additional data.
DtVrfTaskSetActioninitializedAction () const
 The action this dialog was initialized for.
virtual void sendTaskRequest (std::vector< DtUUID > names, const DtSimTask &)
 Sends signal to send out task.
virtual std::vector
< makVrv::DtUniqueID
entityIds () const
 The ids that represent the objects that are part of this dialog.
virtual std::vector< DtUUIDnames () const
virtual void setPartOfPlan (int b)
 0 - Not part of plan dialog 1 - Part of plan dialog 2 - Part of command widget 3 - Part of embedded entity menu
int partOfPlan () const
virtual void cancel ()
 Sends out cancel signal.
virtual QWidget * widget ()
 Returns the widget.
const std::vector
< makVrv::DtSimEntry * > & 
connectedTo () const
virtual void noObjectsSelected ()
 No-op at this level.
- Public Member Functions inherited from makVrf::DtCommandDialogExtensionInterface
virtual ~DtCommandDialogExtensionInterface ()
virtual bool initiallyBroadcast () const
 Whether or not to initially set to broadcast. Default is false.
virtual bool allowBroadcasting () const
 Whether or not to allow broadcasting. Default is true.
virtual bool hasUserEntry () const
 Returns true if there is user entry. Default is to assume there is.
virtual QString entitySelectionGroupBoxTitle () const
 If defined, title for the group box for entity selection on command widget.
virtual void onCancel ()=0
virtual makVrv::DtUnicode broadcastTitle () const

Public Attributes

QWidget * myCanvas
QGridLayout * myGridLayout
DtLocationEntryWidgetmyTargetLocation
QLabelmyNumBombsLabel
QSpinBoxmyNumBombs
QLabelmyWeaponLabel
QComboBoxmyWeapon
QGroupBox * myWeaponInfoBox
QGridLayout * myWeaponInfoLayout
QLabelmyWeaponRangeLabel
QLabelmyWeaponRange
QLabelmyBlastRadiusLabel
QLabelmyBlastRadius
QLabelmySecondsPerBombLabel
QLabelmySecondsPerBomb
QLabelmyStrengthPerBombLabel
QLabelmyStrengthPerBomb
QLabelmyTotalBombsLabel
QLabelmyTotalBombs
QLabelmyDamageTypeAttack
QLabelmyDamageType
DtRwPropertiesMap myPowers
 Storage for properties of the entity being tasked.
DtRwPropertiesMap myAmmunition
DtVector myLocation
- Public Attributes inherited from makVrf::DtBaseTaskSetDialogInterface
QVBoxLayout * myMasterLayout
QHBoxLayout * myButtonLayout
QPushButtonmyOKButton
QPushButtonmyCancelButton
char myAccepted
QLabelmyTaskSetDescription
QFrame * myTaskSetDescriptionSeparator

Protected Slots

void slot_onWeaponChanged (const QString &weaponName)
 Updates the weapon information when the selected combo box item is changed.
void slot_onBombsChanged (int num)
 Enables or disables the ok button based on current settings when the number of bombs dropped changes.
- Protected Slots inherited from makVrf::DtBaseTaskSetDialogInterface
virtual void onOk ()
virtual void onCancel ()
- Protected Slots inherited from makVrf::DtTaskSetDialogInterface
virtual void actionDestroyed ()

Protected Member Functions

virtual QWidget * contents (const std::vector< makVrv::DtSimEntry * > &data)
 Creates set dialog contents. Called from setupGui.
virtual void setupStatement (const DtSimStatement *stmt)
virtual void sendRequest ()
 Override to send the set or task request.
virtual void setupFrom (const std::vector< makVrv::DtSimEntry * > &d)
 Sets up dialog by asking logic to do it.
virtual bool valid () const
 Override to return whether or not extension is valid.
- Protected Member Functions inherited from makVrf::DtBaseTaskSetDialogInterface
virtual void finishSizing ()
virtual void postGuiSetup (const std::vector< makVrv::DtSimEntry * > &data)
 Called after setupGui to set up other items in the gui (fill combo boxes, initial text edit, etc)
virtual void initializeItems (const std::vector< makVrv::DtSimEntry * > &data)
 Override for dialogs that need item initialization.
virtual void closeEvent (QCloseEvent *)
 Figure out if a cancelled signal needs to be sent.
virtual void hideButtons (bool)
 No buttons to hide.
virtual bool editStatement (const std::vector< makVrv::DtSimEntry * > &, const DtSimStatement *)
 Edits the current statement. Return true if the statement can be edited.
virtual bool wantsSelectionOfObjectInCommandMode () const
 Override to return false if, when this task is used as part of a simulation command, it does not want to allow to choose an object to apply the command to.
virtual void sendSetRequest (const DtSetDataRequest &)
virtual void sendTaskRequest (const DtSimTask &)
virtual void sendCommandRequest (const DtSimCommandObjectWrapper &)
 Sends signal to send out command.
virtual QSize canvasSize ()
virtual void onOK ()
- Protected Member Functions inherited from makVrf::DtTaskSetDialogInterface
virtual void slot_objectAboutToBeRemoved (makVrv::DtSimObjectEntry &)
virtual std::vector< std::string > commandDialogFiltersFor (const std::vector< makVrv::DtSimEntry * > &data, const DtSimStatement *stmt, int &initialSelection) const
 If part of a command dialog the filters to use for the command dialog selection.

Protected Attributes

bool myLocationValid
- Protected Attributes inherited from makVrf::DtBaseTaskSetDialogInterface
bool myAutoSizeOnShow
- Protected Attributes inherited from makVrf::DtTaskSetDialogInterface
makVrv::DtDemyDe
int myPartOfPlan
std::vector< makVrv::DtSimEntry * > myConnectedTo
bool mySendToRemoteController
DtVrfTaskSetActionmyAction

Constructor & Destructor Documentation

makVrf::DtTaskAggregateBombLocationDialog::DtTaskAggregateBombLocationDialog ( makVrv::DtDe de,
QWidget *  parent,
const Qt::WindowFlags &  flags = 0 
)
virtual makVrf::DtTaskAggregateBombLocationDialog::~DtTaskAggregateBombLocationDialog ( )
virtual

Member Function Documentation

virtual int makVrf::DtTaskAggregateBombLocationDialog::numberOfBombs ( ) const
virtual
virtual void makVrf::DtTaskAggregateBombLocationDialog::setNumberOfBombs ( int  )
virtual
virtual QString makVrf::DtTaskAggregateBombLocationDialog::weapon ( ) const
virtual
virtual void makVrf::DtTaskAggregateBombLocationDialog::setWeapon ( const QString &  )
virtual
virtual DtVector makVrf::DtTaskAggregateBombLocationDialog::targetLocation ( ) const
virtual
virtual void makVrf::DtTaskAggregateBombLocationDialog::setTargetLocation ( const DtVector )
virtual
virtual void makVrf::DtTaskAggregateBombLocationDialog::setLocationValid ( bool  )
virtual
virtual void makVrf::DtTaskAggregateBombLocationDialog::validate ( )
virtual
virtual QWidget* makVrf::DtTaskAggregateBombLocationDialog::contents ( const std::vector< makVrv::DtSimEntry * > &  data)
protectedvirtual

Creates set dialog contents. Called from setupGui.

Implements makVrf::DtBaseTaskSetDialogInterface.

virtual void makVrf::DtTaskAggregateBombLocationDialog::setupStatement ( const DtSimStatement stmt)
protectedvirtual
virtual void makVrf::DtTaskAggregateBombLocationDialog::sendRequest ( )
protectedvirtual

Override to send the set or task request.

Implements makVrf::DtBaseTaskSetDialogInterface.

virtual void makVrf::DtTaskAggregateBombLocationDialog::setupFrom ( const std::vector< makVrv::DtSimEntry * > &  )
protectedvirtual

Sets up dialog by asking logic to do it.

Reimplemented from makVrf::DtBaseTaskSetDialogInterface.

virtual bool makVrf::DtTaskAggregateBombLocationDialog::valid ( ) const
protectedvirtual

Override to return whether or not extension is valid.

Reimplemented from makVrf::DtBaseTaskSetDialogInterface.

void makVrf::DtTaskAggregateBombLocationDialog::slot_onWeaponChanged ( const QString &  weaponName)
protectedslot

Updates the weapon information when the selected combo box item is changed.

Also enables or disables the ok button based on current selections.

void makVrf::DtTaskAggregateBombLocationDialog::slot_onBombsChanged ( int  num)
protectedslot

Enables or disables the ok button based on current settings when the number of bombs dropped changes.

Member Data Documentation

QWidget* makVrf::DtTaskAggregateBombLocationDialog::myCanvas
QGridLayout* makVrf::DtTaskAggregateBombLocationDialog::myGridLayout
DtLocationEntryWidget* makVrf::DtTaskAggregateBombLocationDialog::myTargetLocation
QLabel* makVrf::DtTaskAggregateBombLocationDialog::myNumBombsLabel
QSpinBox* makVrf::DtTaskAggregateBombLocationDialog::myNumBombs
QLabel* makVrf::DtTaskAggregateBombLocationDialog::myWeaponLabel
QComboBox* makVrf::DtTaskAggregateBombLocationDialog::myWeapon
QGroupBox* makVrf::DtTaskAggregateBombLocationDialog::myWeaponInfoBox
QGridLayout* makVrf::DtTaskAggregateBombLocationDialog::myWeaponInfoLayout
QLabel* makVrf::DtTaskAggregateBombLocationDialog::myWeaponRangeLabel
QLabel* makVrf::DtTaskAggregateBombLocationDialog::myWeaponRange
QLabel* makVrf::DtTaskAggregateBombLocationDialog::myBlastRadiusLabel
QLabel* makVrf::DtTaskAggregateBombLocationDialog::myBlastRadius
QLabel* makVrf::DtTaskAggregateBombLocationDialog::mySecondsPerBombLabel
QLabel* makVrf::DtTaskAggregateBombLocationDialog::mySecondsPerBomb
QLabel* makVrf::DtTaskAggregateBombLocationDialog::myStrengthPerBombLabel
QLabel* makVrf::DtTaskAggregateBombLocationDialog::myStrengthPerBomb
QLabel* makVrf::DtTaskAggregateBombLocationDialog::myTotalBombsLabel
QLabel* makVrf::DtTaskAggregateBombLocationDialog::myTotalBombs
QLabel* makVrf::DtTaskAggregateBombLocationDialog::myDamageTypeAttack
QLabel* makVrf::DtTaskAggregateBombLocationDialog::myDamageType
DtRwPropertiesMap makVrf::DtTaskAggregateBombLocationDialog::myPowers

Storage for properties of the entity being tasked.

DtRwPropertiesMap makVrf::DtTaskAggregateBombLocationDialog::myAmmunition
DtVector makVrf::DtTaskAggregateBombLocationDialog::myLocation
bool makVrf::DtTaskAggregateBombLocationDialog::myLocationValid
protected

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

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)