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 | Protected Slots | Protected Member Functions | Protected Attributes
makVrf::DtSetRadarModeDialog Class Reference

The dialog for setting Radar Mode on entities with emitter systems. More...

Inheritance diagram for makVrf::DtSetRadarModeDialog:
Inheritance graph
[legend]

Public Member Functions

 DtSetRadarModeDialog (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0)
 Constructor.
virtual ~DtSetRadarModeDialog ()
 Destructor.
- 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.
virtual bool valid () const
 Override to return whether or not extension is valid.
int accepted () const
 0 - Closed without pressing cancel or ok 1 - Closed by ok 2 - Closed by cancel
- 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< 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

Protected Slots

virtual void onIdChanged (const QString &s)
 When the emitter id combo box changes, this function is called with the new selection.
virtual void onModeChanged (const QString &s)
 When the mode combo box changes, this function is called with the new selection.
- 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 QWidgetcontents (const std::vector< makVrv::DtSimEntry * > &data)
 The default function called to setup the dialog box based on the entity data.
virtual void setupGui (const std::vector< makVrv::DtSimEntry * > &data)
 Called whenever a dialog is created to setup the dialog box based on entity data.
virtual void setupFrom (const std::vector< makVrv::DtSimEntry * > &data)
 Called whenever a dialog is created in the context of things like the radio task set.
virtual void initializeItems (const std::vector< makVrv::DtSimEntry * > &data)
 Initialize the entity data for the dialog and requests data to the sim for data if it is not in cache.
virtual void resetDialog (bool resetModesOnly=false)
 Used internally to reset the dialgo box. The flag can be used to only reset the mode combo box.
virtual void updateComboBoxes ()
 Updates the combo boxes based on cache data. This assumes cache data is up to date.
virtual bool editStatement (const std::vector< makVrv::DtSimEntry * > &states, const DtSimStatement *s)
 Called in plan dialogs when edit is selected.
virtual void setupStatement (const std::vector< makVrv::DtSimEntry * > &data, const DtSimStatement *stmt)
 Called in plan dialogs when the set is stored in the plan.
virtual void sendRequest ()
 Sends the request to set the radar mode.
virtual void slot_receivedRadarModes (const DtUUID &entity, int emitterId)
 When new radar modes are updated to cache, we find out about it and should update the dialog.
- 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)
virtual void setupStatement (const DtSimStatement *stmt)
virtual void closeEvent (QCloseEvent *)
 Figure out if a cancelled signal needs to be sent.
virtual void hideButtons (bool)
 No buttons to hide.
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.

Protected Attributes

std::vector< DtUUIDmyCurrSelected
std::map< DtUUID, std::vector
< makVrv::DtSimEntry * > > 
myAwaitingEmitters
makVrv::DtSignalConnectionManager myConnections
QWidgetmyCanvas
QComboBoxmyIdCombo
QComboBoxmyModeCombo

Additional Inherited Members

- Public Attributes inherited from makVrf::DtBaseTaskSetDialogInterface
QVBoxLayout * myMasterLayout
QHBoxLayout * myButtonLayout
QPushButtonmyOKButton
QPushButtonmyCancelButton
char myAccepted

Detailed Description

The dialog for setting Radar Mode on entities with emitter systems.

Constructor & Destructor Documentation

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

Constructor.

virtual makVrf::DtSetRadarModeDialog::~DtSetRadarModeDialog ( )
virtual

Destructor.

Member Function Documentation

virtual void makVrf::DtSetRadarModeDialog::onIdChanged ( const QString &  s)
protectedvirtualslot

When the emitter id combo box changes, this function is called with the new selection.

virtual void makVrf::DtSetRadarModeDialog::onModeChanged ( const QString &  s)
protectedvirtualslot

When the mode combo box changes, this function is called with the new selection.

virtual QWidget* makVrf::DtSetRadarModeDialog::contents ( const std::vector< makVrv::DtSimEntry * > &  data)
protectedvirtual

The default function called to setup the dialog box based on the entity data.

Implements makVrf::DtBaseTaskSetDialogInterface.

virtual void makVrf::DtSetRadarModeDialog::setupGui ( const std::vector< makVrv::DtSimEntry * > &  data)
protectedvirtual

Called whenever a dialog is created to setup the dialog box based on entity data.

Reimplemented from makVrf::DtBaseTaskSetDialogInterface.

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

Called whenever a dialog is created in the context of things like the radio task set.

Reimplemented from makVrf::DtBaseTaskSetDialogInterface.

virtual void makVrf::DtSetRadarModeDialog::initializeItems ( const std::vector< makVrv::DtSimEntry * > &  data)
protectedvirtual

Initialize the entity data for the dialog and requests data to the sim for data if it is not in cache.

Reimplemented from makVrf::DtBaseTaskSetDialogInterface.

virtual void makVrf::DtSetRadarModeDialog::resetDialog ( bool  resetModesOnly = false)
protectedvirtual

Used internally to reset the dialgo box. The flag can be used to only reset the mode combo box.

virtual void makVrf::DtSetRadarModeDialog::updateComboBoxes ( )
protectedvirtual

Updates the combo boxes based on cache data. This assumes cache data is up to date.

virtual bool makVrf::DtSetRadarModeDialog::editStatement ( const std::vector< makVrv::DtSimEntry * > &  states,
const DtSimStatement s 
)
protectedvirtual

Called in plan dialogs when edit is selected.

Reimplemented from makVrf::DtBaseTaskSetDialogInterface.

virtual void makVrf::DtSetRadarModeDialog::setupStatement ( const std::vector< makVrv::DtSimEntry * > &  data,
const DtSimStatement stmt 
)
protectedvirtual

Called in plan dialogs when the set is stored in the plan.

virtual void makVrf::DtSetRadarModeDialog::sendRequest ( )
protectedvirtual

Sends the request to set the radar mode.

Implements makVrf::DtBaseTaskSetDialogInterface.

virtual void makVrf::DtSetRadarModeDialog::slot_receivedRadarModes ( const DtUUID entity,
int  emitterId 
)
protectedvirtual

When new radar modes are updated to cache, we find out about it and should update the dialog.

Member Data Documentation

std::vector<DtUUID> makVrf::DtSetRadarModeDialog::myCurrSelected
protected
std::map<DtUUID, std::vector<makVrv::DtSimEntry*> > makVrf::DtSetRadarModeDialog::myAwaitingEmitters
protected
makVrv::DtSignalConnectionManager makVrf::DtSetRadarModeDialog::myConnections
protected
QWidget* makVrf::DtSetRadarModeDialog::myCanvas
protected
QComboBox* makVrf::DtSetRadarModeDialog::myIdCombo
protected
QComboBox* makVrf::DtSetRadarModeDialog::myModeCombo
protected

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)