![]() |
VR-Forces 4.10 Class Documentation
|
DtReleaseBombTask dialog is the base class for all the other release bomb task dialogs. More...

Public Member Functions | |
| DtReleaseBombTaskDialog (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0) | |
| Constructor. More... | |
| virtual | ~DtReleaseBombTaskDialog () |
| Destructor. More... | |
| virtual void | disable (const QString &reason) |
| Disables all controls in the dialog dialog (except for cancel button). More... | |
| virtual void | enable () |
| Enables all controls in the dialog. More... | |
| virtual void | setDetonationProximity (const double proximity) |
| Set/get the detonation proximity for the warhead. More... | |
| virtual const double | detonationProximity () const |
Public Member Functions inherited from makVrf::DtBaseComboTaskSetDialog | |
| DtBaseComboTaskSetDialog (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0) | |
| virtual | ~DtBaseComboTaskSetDialog () |
| virtual void | setSelectedIndex (int) |
| virtual int | selectedIndex () const |
| virtual void | setSelectedText (const QString &) |
| virtual QString | selectedText () const |
| virtual void | setSelectedData (const QVariant &) |
| virtual QVariant | selectedData () const |
| virtual QVariant | itemData (int iIndex) const |
| virtual QVariant | selectedItemData () const |
| virtual void | addItem (const QString &, const QVariant &data=QVariant()) |
| virtual void | removeItem (const QString &) |
| virtual void | clear () |
| Clears combo. More... | |
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. More... | |
| virtual void | setOKEnabled (bool) |
| Enables/disables OK button. More... | |
| virtual void | setCancelEnabled (bool) |
| Sets whether or not the Cancel button is enabled. More... | |
| virtual bool | valid () const |
| Override to return whether or not extension is valid. More... | |
| int | accepted () const |
| 0 - Closed without pressing cancel or ok 1 - Closed by ok 2 - Closed by cancel More... | |
| 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. More... | |
| virtual bool | autoSizeOnShow () const |
| virtual void | setDescription (const QString &desc) |
| Adds descriptive text to the top of the dialog. More... | |
| virtual QString | description () const |
| Returns the current descriptive text. More... | |
| virtual void | finishSizing () |
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. More... | |
| 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. More... | |
| virtual bool | sendToRemoteController () const |
| virtual void | selectionChanged (const DtUUID &selection) |
| Notify dialog of selection changes from attached dialogs. More... | |
| virtual void | sendSetRequest (std::vector< DtUUID > names, const DtSetDataRequest &) |
| Sends signal to send out set. More... | |
| virtual bool | insertMapFocusHandler (DtMapFocusHandler *, int index=-1) |
| If a dialog has manages map focus handlers, inserts this map focus handler into the chain. More... | |
| virtual void | initializeFromAction (DtVrfTaskSetAction *) |
| Intializes contents from action as an action could have relevant properties assigned to it containing additional data. More... | |
| DtVrfTaskSetAction * | initializedAction () const |
| The action this dialog was initialized for. More... | |
| virtual void | sendTaskRequest (std::vector< DtUUID > names, const DtSimTask &) |
| Sends signal to send out task. More... | |
| virtual std::vector < makVrv::DtUniqueID > | entityIds () const |
| The ids that represent the objects that are part of this dialog. More... | |
| virtual std::vector< DtUUID > | names () const |
| virtual void | setupFromExtendedData (const std::map< std::string, std::string > &) |
| 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 4 - Part of move along with actions dialog More... | |
| int | partOfPlan () const |
| virtual void | cancel () |
| Sends out cancel signal. More... | |
| virtual QWidget * | widget () |
| Returns the widget. More... | |
| const std::vector < makVrv::DtSimEntry * > & | connectedTo () const |
| virtual void | noObjectsSelected () |
| No-op at this level. More... | |
Public Member Functions inherited from makVrf::DtCommandDialogExtensionInterface | |
| virtual | ~DtCommandDialogExtensionInterface () |
| virtual bool | initiallyBroadcast () const |
| Whether or not to initially set to broadcast. Default is false. More... | |
| virtual bool | allowBroadcasting () const |
| Whether or not to allow broadcasting. Default is true. More... | |
| virtual bool | hasUserEntry () const |
| Returns true if there is user entry. Default is to assume there is. More... | |
| virtual QString | entitySelectionGroupBoxTitle () const |
| If defined, title for the group box for entity selection on command widget. More... | |
| virtual void | filterAboutToBeAdded (DtVrfSelectionFilter *) |
| virtual void | parentShown (QWidget *) |
| virtual void | onCancel ()=0 |
| virtual makVrv::DtUnicode | broadcastTitle () const |
Public Member Functions inherited from makVrf::DtVrfResourceRequestor | |
| DtVrfResourceRequestor (makVrv::DtDe &) | |
| virtual | ~DtVrfResourceRequestor () |
| virtual void | requestResourcesFor (const std::vector< makVrv::DtSimEntry * > &data, bool entitiesOnly=true) |
| Requests resources for all items in the vector. More... | |
| virtual void | startMonitoring (const DtUUID &, int rate=-1) |
| Start monitoring for this entity. More... | |
| virtual void | stopMonitoring (const DtUUID &) |
| Stop monitoring for the specified entity. More... | |
| virtual void | setUpdateRate (const DtUUID &entity, int) |
| Sets the update rate for entity being monitored. More... | |
Public Attributes | |
| QGridLayout * | myLayout |
| QLabel * | myCounterMeasuresTypesLabel |
| QLabel * | myDetonationProximityLabel |
| QDoubleSpinBox * | myDetonationProximity |
| DtReleaseBombTask * | myReleaseBombTask |
Public Attributes inherited from makVrf::DtBaseComboTaskSetDialog | |
| QWidget * | myCanvas |
| QBoxLayout * | myCanvasLayout |
| QBoxLayout * | myFiltersLayout |
| layout for an extra set of filter combos – only used in some subclasses More... | |
| QBoxLayout * | myComboLayout |
| QComboBox * | myCombo |
| QLabel * | myLabel |
Public Attributes inherited from makVrf::DtBaseTaskSetDialogInterface | |
| QVBoxLayout * | myMasterLayout |
| QHBoxLayout * | myButtonLayout |
| QPushButton * | myOKButton |
| QPushButton * | myCancelButton |
| char | myAccepted |
| QLabel * | myTaskSetDescription |
| QFrame * | myTaskSetDescriptionSeparator |
Public Attributes inherited from makVrf::DtCommandDialogExtensionInterface | |
| boost::signals2::signal< void()> | signal_cancelled |
| boost::signals2::signal< void(bool)> | signal_enableCommandModeSelection |
| Signal sent when the task becomes valid (or invalid) More... | |
| boost::signals2::signal< void(bool)> | signal_validStateChanged |
| boost::signals2::signal< void(bool)> | signal_disableCancel |
| boost::signals2::signal< void(std::vector < DtUUID > names, const DtSetDataRequest &)> | signal_sendSetRequest |
| boost::signals2::signal< void(std::vector < DtUUID > names, const DtSimTask &)> | signal_sendTaskRequest |
| boost::signals2::signal< void(const DtSimCommandObjectWrapper &)> | signal_sendCommandRequest |
| boost::signals2::signal< void(const std::vector< DtUUID > &, const DtSimTask &, DtVrfTaskSetMenu *)> | signal_commandActivated |
| boost::signals2::signal< void(const DtSimCommandObjectWrapper &)> | signal_simCommandActivated |
| boost::signals2::signal< void(const std::vector < makVrv::DtSimEntry * > &)> | signal_stopWatching |
Protected Member Functions | |
| virtual bool | editStatement (const std::vector< makVrv::DtSimEntry * > &states, const DtSimStatement *s) |
| Edits the current statement. More... | |
| virtual QWidget * | contents (const std::vector< makVrv::DtSimEntry * > &data) |
| Creates and lays out all controls. More... | |
| virtual QBoxLayout * | createMainLayout () |
| Creates a new QVBoxLayout. More... | |
| virtual void | sendRequest ()=0 |
| The subclasses must create and send the proper type of DtReleaseBombTask. More... | |
| virtual void | populateTaskFromDialog (DtReleaseBombTask *task) |
| Takes the ammunition resource name and detonationProximity from the dialog and copies it into the task. More... | |
| virtual void | setupStatement (const std::vector< makVrv::DtSimEntry * > &data, const DtSimStatement *stmt) |
| If the task is a DtReleaseBombTask, calls setupGui with the data to set the ammunition resource name and then sets the detonation proximity from the task. More... | |
| virtual void | setupFrom (const std::vector< makVrv::DtSimEntry * > &d) |
| Clears myResources and myCombo and requests resources for the given DtSimEntry. More... | |
| virtual void | setupGui (const std::vector< makVrv::DtSimEntry * > &data) |
| Calls down to the base class and requests resources for the given DtSimEntry. More... | |
| virtual void | addResource (const DtResource &) |
| If the given resource has a kind of DtMunition, a domain of DtBattlefieldSupport and a category of DtMunitionGuided it will be added by calling addItem(). More... | |
| virtual void | resourceUpdated (const DtResource &) |
| Called when a particular resource has been updated. More... | |
| virtual void | resourcesChanged () |
| Calls clear(). More... | |
| virtual void | resourceCheckingDisabled () |
| Sets myCanSetResources to false and calls disable(). More... | |
| virtual void | resourceCheckComplete () |
| If myReleaseBombTask is not null, calls setSeletectedText() with the name of the ammo from myReleaseBombTask, calls comboChange() and then deletes the task. More... | |
Protected Member Functions inherited from makVrf::DtBaseComboTaskSetDialog | |
| virtual void | comboChanged (const QString &) |
Protected Member Functions inherited from makVrf::DtBaseTaskSetDialogInterface | |
| 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) More... | |
| virtual void | setupStatement (const DtSimStatement *stmt) |
| virtual void | initializeItems (const std::vector< makVrv::DtSimEntry * > &data) |
| Override for dialogs that need item initialization. More... | |
| virtual void | closeEvent (QCloseEvent *) |
| Figure out if a cancelled signal needs to be sent. More... | |
| virtual void | hideButtons (bool) |
| No buttons to hide. More... | |
| virtual bool | wantsSelectionOfObjectInCommandMode (const std::vector< makVrv::DtSimEntry * > &) 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. More... | |
| virtual void | sendSetRequest (const DtSetDataRequest &) |
| virtual void | sendTaskRequest (const DtSimTask &) |
| virtual void | sendCommandRequest (const DtSimCommandObjectWrapper &) |
| Sends signal to send out command. More... | |
| 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. More... | |
Protected Member Functions inherited from makVrf::DtVrfResourceRequestor | |
| virtual void | slot_resourceResponse (const DtIfServerRequestResponse &) |
Additional Inherited Members | |
Protected Slots inherited from makVrf::DtBaseComboTaskSetDialog | |
| virtual void | onComboChanged (const QString &) |
Protected Slots inherited from makVrf::DtBaseTaskSetDialogInterface | |
| virtual void | onOk () |
| virtual void | onCancel () |
Protected Slots inherited from makVrf::DtTaskSetDialogInterface | |
| virtual void | actionDestroyed () |
Protected Attributes inherited from makVrf::DtBaseTaskSetDialogInterface | |
| bool | myAutoSizeOnShow |
| bool | myValidInitialization |
Protected Attributes inherited from makVrf::DtTaskSetDialogInterface | |
| makVrv::DtDe & | myDe |
| int | myPartOfPlan |
| std::vector< makVrv::DtSimEntry * > | myConnectedTo |
| bool | mySendToRemoteController |
| DtVrfTaskSetAction * | myAction |
Protected Attributes inherited from makVrf::DtVrfResourceRequestor | |
| makVrv::DtDe & | myDe |
| std::set< DtUUID > | myResourceRequests |
| bool | myCanSetResources |
| DtEntityResourceList | myResources |
| makVrv::DtSignalConnectionManager | myConnectionManager |
DtReleaseBombTask dialog is the base class for all the other release bomb task dialogs.
It allows the user to configure the parameters which are common to all the tasks; the ammo selection and detonation proximity.
| makVrf::DtReleaseBombTaskDialog::DtReleaseBombTaskDialog | ( | makVrv::DtDe & | de, |
| QWidget * | parent, | ||
| const Qt::WindowFlags & | flags = 0 |
||
| ) |
Constructor.
|
virtual |
Destructor.
|
virtual |
Disables all controls in the dialog dialog (except for cancel button).
Reimplemented in makVrf::DtReleaseBombOnTargetTaskDialog, and makVrf::DtReleaseBombOnLocationTaskDialog.
|
virtual |
Enables all controls in the dialog.
Reimplemented in makVrf::DtReleaseBombOnTargetTaskDialog, and makVrf::DtReleaseBombOnLocationTaskDialog.
|
virtual |
Set/get the detonation proximity for the warhead.
|
virtual |
|
protectedvirtual |
Edits the current statement.
Calls setupStatement and show(). Returns true if statement can be edited.
Reimplemented from makVrf::DtBaseTaskSetDialogInterface.
|
protectedvirtual |
Creates and lays out all controls.
Reimplemented from makVrf::DtBaseComboTaskSetDialog.
Reimplemented in makVrf::DtReleaseBombOnTargetTaskDialog, and makVrf::DtReleaseBombOnLocationTaskDialog.
|
protectedvirtual |
Creates a new QVBoxLayout.
Reimplemented from makVrf::DtBaseComboTaskSetDialog.
|
protectedpure virtual |
The subclasses must create and send the proper type of DtReleaseBombTask.
Implements makVrf::DtBaseTaskSetDialogInterface.
Implemented in makVrf::DtReleaseBombOnTargetTaskDialog, makVrf::DtReleaseBombOnLocationTaskDialog, and makVrf::DtReleaseBombOnLaserSpotTaskDialog.
|
protectedvirtual |
Takes the ammunition resource name and detonationProximity from the dialog and copies it into the task.
Called by subclasses' implementation of sendRequest() after they create a DtReleaseBombTask subclass.
Reimplemented in makVrf::DtReleaseBombOnTargetTaskDialog, and makVrf::DtReleaseBombOnLocationTaskDialog.
|
protectedvirtual |
If the task is a DtReleaseBombTask, calls setupGui with the data to set the ammunition resource name and then sets the detonation proximity from the task.
Subclasses which override this function must cache a pointer to the (derived) task in myReleaseBombTask.
Reimplemented in makVrf::DtReleaseBombOnTargetTaskDialog, and makVrf::DtReleaseBombOnLocationTaskDialog.
|
protectedvirtual |
Clears myResources and myCombo and requests resources for the given DtSimEntry.
Reimplemented from makVrf::DtBaseTaskSetDialogInterface.
|
protectedvirtual |
Calls down to the base class and requests resources for the given DtSimEntry.
Reimplemented from makVrf::DtBaseTaskSetDialogInterface.
|
protectedvirtual |
If the given resource has a kind of DtMunition, a domain of DtBattlefieldSupport and a category of DtMunitionGuided it will be added by calling addItem().
Implements makVrf::DtVrfResourceRequestor.
|
protectedvirtual |
Called when a particular resource has been updated.
Implements makVrf::DtVrfResourceRequestor.
|
protectedvirtual |
Calls clear().
Implements makVrf::DtVrfResourceRequestor.
|
protectedvirtual |
Sets myCanSetResources to false and calls disable().
Implements makVrf::DtVrfResourceRequestor.
|
protectedvirtual |
If myReleaseBombTask is not null, calls setSeletectedText() with the name of the ammo from myReleaseBombTask, calls comboChange() and then deletes the task.
Otherwise setSelectedIndex(0) and comboChanged() is called.
Implements makVrf::DtVrfResourceRequestor.
| QGridLayout* makVrf::DtReleaseBombTaskDialog::myLayout |
| QLabel* makVrf::DtReleaseBombTaskDialog::myCounterMeasuresTypesLabel |
| QLabel* makVrf::DtReleaseBombTaskDialog::myDetonationProximityLabel |
| QDoubleSpinBox* makVrf::DtReleaseBombTaskDialog::myDetonationProximity |
| DtReleaseBombTask* makVrf::DtReleaseBombTaskDialog::myReleaseBombTask |