VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes | Protected Slots | Protected Member Functions
makVrf::DtTaskAggregateIndirectFireDialog Class Reference
Inheritance diagram for makVrf::DtTaskAggregateIndirectFireDialog:
Inheritance graph
[legend]

Public Member Functions

 DtTaskAggregateIndirectFireDialog (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0)
virtual ~DtTaskAggregateIndirectFireDialog ()
virtual int numberOfAttacks () const
virtual void setNumberOfAttacks (int)
virtual QString weapon () const
virtual void setWeapon (const QString &)
virtual double sheafRadius () const
virtual void setSheafRadius (double)
- Public Member Functions inherited from makVrf::DtBaseFilteredListViewTaskSetDialog
 DtBaseFilteredListViewTaskSetDialog (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0)
virtual ~DtBaseFilteredListViewTaskSetDialog ()
virtual void addFilter (const DtVrfSelectionFilter *)
 Adds a new filter into the interface by calling down to the filtered list view.
virtual DtUUID selectedName () const
 Returns the name selected in the filtered list.
virtual void setSelectedName (const DtUUID &)
virtual void setSelectedNames (const QStringList &)
 Only valid for multi-select mode.
virtual void setSelectedNames (const std::vector< DtUUID > &)
virtual std::vector
< DtVrfObjectListViewItem::DtVrfObjectState
selectedObjects () const
virtual void setFilterViewEnabled (bool)
DtVrfFilteredListViewfilteredListView ()
virtual void selectObject (const DtVrfObjectListViewItem::DtVrfObjectState &obj)
virtual void clearSelection ()
virtual bool canSelect (const DtVrfObjectListViewItem::DtVrfObjectState &obj)
virtual bool insertMapFocusHandler (DtMapFocusHandler *, int index=-1)
 If a dialog has manages map focus handlers, inserts this map focus handler into the chain.
- 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.
- 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 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< 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 QWidgetwidget ()
 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

QWidgetmyFullCanvas
QGridLayout * myGridLayout
QLabelmyAttacksLabel
QSpinBoxmyAttacks
QLabelmySheafRadiusLabel
QLineEditmySheafRadius
QLabelmyWeaponLabel
QComboBoxmyWeapon
QGroupBox * myWeaponInfoBox
QGridLayout * myWeaponInfoLayout
QLabelmyWeaponRangeLabel
QLabelmyWeaponRange
QLabelmyMaxSheafRadiusLabel
QLabelmyMaxSheafRadius
QLabelmySecondsPerAttackLabel
QLabelmySecondsPerAttack
QLabelmyStrengthPerAttackLabel
QLabelmyStrengthPerAttack
QLabelmyRoundsPerAttackLabel
QLabelmyRoundsPerAttack
QLabelmyTotalRoundsLabel
QLabelmyTotalRounds
QLabelmyDamageTypeAttack
QLabelmyDamageType
double myWeaponRangeValue
DtRwPropertiesMap myPowers
 Storage for properties of the entity being tasked.
DtRwPropertiesMap myAmmunition
DtVector myLocation
- Public Attributes inherited from makVrf::DtBaseFilteredListViewTaskSetDialog
QWidgetmyMainCanvas
QBoxLayout * myMainLayout
DtVrfFilteredListViewmyFilteredListView
- Public Attributes inherited from makVrf::DtBaseTaskSetDialogInterface
QVBoxLayout * myMasterLayout
QHBoxLayout * myButtonLayout
QPushButtonmyOKButton
QPushButtonmyCancelButton
char myAccepted

Protected Slots

void slot_onWeaponChanged (const QString &weaponName)
 Updates the weapon information when the selected combo box item is changed.
void slot_onAttacksChanged (int num)
 Enables or disables the ok button based on current settings when the number of attacks changes.
void slot_onRadiusChanged (const QString &radius)

Protected Member Functions

virtual QWidgetcontents (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 initializeSelectionFilters ()
 Initializes filters used for selection view.
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.
virtual void slot_onNameChanged (const DtUUID &)
 Received when the filter lists view name has changed. Enables OK button if name is not blanl.
bool validWeaponAndAttacks (const QString &weaponName, int numAttacks) const
 Determines whether the given weapon and attacks settings are valid.
bool areaIsInRange () const
 Determines whether the selected area is in range of the selected weapon.
- Protected Member Functions inherited from makVrf::DtBaseFilteredListViewTaskSetDialog
virtual QBoxLayout * createMainLayout ()
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 addEntityFilters ()
virtual void addAggregateFilters ()
virtual void addPlanVariablesFilter ()
virtual void addFiltersFromCollection (const std::string &filterCollection)
virtual void addFiltersFromCollection (const std::string &filterCollection, DtVrfFilteredListView *)
- Protected Member Functions inherited from makVrf::DtBaseTaskSetDialogInterface
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 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.

Additional Inherited Members

- Protected Attributes inherited from makVrf::DtBaseFilteredListViewTaskSetDialog
DtMapFocusHandlerManager myFilteredListViewManager
makVrv::DtSignalConnectionManager myConnections

Constructor & Destructor Documentation

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

Member Function Documentation

virtual int makVrf::DtTaskAggregateIndirectFireDialog::numberOfAttacks ( ) const
virtual
virtual void makVrf::DtTaskAggregateIndirectFireDialog::setNumberOfAttacks ( int  )
virtual
virtual QString makVrf::DtTaskAggregateIndirectFireDialog::weapon ( ) const
virtual
virtual void makVrf::DtTaskAggregateIndirectFireDialog::setWeapon ( const QString &  )
virtual
virtual double makVrf::DtTaskAggregateIndirectFireDialog::sheafRadius ( ) const
virtual
virtual void makVrf::DtTaskAggregateIndirectFireDialog::setSheafRadius ( double  )
virtual
virtual QWidget* makVrf::DtTaskAggregateIndirectFireDialog::contents ( const std::vector< makVrv::DtSimEntry * > &  data)
protectedvirtual

Creates set dialog contents. Called from setupGui.

Reimplemented from makVrf::DtBaseFilteredListViewTaskSetDialog.

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

Override to send the set or task request.

Implements makVrf::DtBaseTaskSetDialogInterface.

virtual void makVrf::DtTaskAggregateIndirectFireDialog::initializeSelectionFilters ( )
protectedvirtual

Initializes filters used for selection view.

Implements makVrf::DtBaseFilteredListViewTaskSetDialog.

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

Sets up dialog by asking logic to do it.

Reimplemented from makVrf::DtBaseTaskSetDialogInterface.

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

Override to return whether or not extension is valid.

Reimplemented from makVrf::DtBaseFilteredListViewTaskSetDialog.

virtual void makVrf::DtTaskAggregateIndirectFireDialog::slot_onNameChanged ( const DtUUID s)
protectedvirtual

Received when the filter lists view name has changed. Enables OK button if name is not blanl.

Reimplemented from makVrf::DtBaseFilteredListViewTaskSetDialog.

bool makVrf::DtTaskAggregateIndirectFireDialog::validWeaponAndAttacks ( const QString &  weaponName,
int  numAttacks 
) const
protected

Determines whether the given weapon and attacks settings are valid.

bool makVrf::DtTaskAggregateIndirectFireDialog::areaIsInRange ( ) const
protected

Determines whether the selected area is in range of the selected weapon.

void makVrf::DtTaskAggregateIndirectFireDialog::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::DtTaskAggregateIndirectFireDialog::slot_onAttacksChanged ( int  num)
protectedslot

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

void makVrf::DtTaskAggregateIndirectFireDialog::slot_onRadiusChanged ( const QString &  radius)
protectedslot

Member Data Documentation

QWidget* makVrf::DtTaskAggregateIndirectFireDialog::myFullCanvas
QGridLayout* makVrf::DtTaskAggregateIndirectFireDialog::myGridLayout
QLabel* makVrf::DtTaskAggregateIndirectFireDialog::myAttacksLabel
QSpinBox* makVrf::DtTaskAggregateIndirectFireDialog::myAttacks
QLabel* makVrf::DtTaskAggregateIndirectFireDialog::mySheafRadiusLabel
QLineEdit* makVrf::DtTaskAggregateIndirectFireDialog::mySheafRadius
QLabel* makVrf::DtTaskAggregateIndirectFireDialog::myWeaponLabel
QComboBox* makVrf::DtTaskAggregateIndirectFireDialog::myWeapon
QGroupBox* makVrf::DtTaskAggregateIndirectFireDialog::myWeaponInfoBox
QGridLayout* makVrf::DtTaskAggregateIndirectFireDialog::myWeaponInfoLayout
QLabel* makVrf::DtTaskAggregateIndirectFireDialog::myWeaponRangeLabel
QLabel* makVrf::DtTaskAggregateIndirectFireDialog::myWeaponRange
QLabel* makVrf::DtTaskAggregateIndirectFireDialog::myMaxSheafRadiusLabel
QLabel* makVrf::DtTaskAggregateIndirectFireDialog::myMaxSheafRadius
QLabel* makVrf::DtTaskAggregateIndirectFireDialog::mySecondsPerAttackLabel
QLabel* makVrf::DtTaskAggregateIndirectFireDialog::mySecondsPerAttack
QLabel* makVrf::DtTaskAggregateIndirectFireDialog::myStrengthPerAttackLabel
QLabel* makVrf::DtTaskAggregateIndirectFireDialog::myStrengthPerAttack
QLabel* makVrf::DtTaskAggregateIndirectFireDialog::myRoundsPerAttackLabel
QLabel* makVrf::DtTaskAggregateIndirectFireDialog::myRoundsPerAttack
QLabel* makVrf::DtTaskAggregateIndirectFireDialog::myTotalRoundsLabel
QLabel* makVrf::DtTaskAggregateIndirectFireDialog::myTotalRounds
QLabel* makVrf::DtTaskAggregateIndirectFireDialog::myDamageTypeAttack
QLabel* makVrf::DtTaskAggregateIndirectFireDialog::myDamageType
double makVrf::DtTaskAggregateIndirectFireDialog::myWeaponRangeValue
DtRwPropertiesMap makVrf::DtTaskAggregateIndirectFireDialog::myPowers

Storage for properties of the entity being tasked.

DtRwPropertiesMap makVrf::DtTaskAggregateIndirectFireDialog::myAmmunition
DtVector makVrf::DtTaskAggregateIndirectFireDialog::myLocation

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

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)