VR-Forces 4.0.4 Class Documentation
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]

List of all members.

Public Member Functions

 DtSetRadarModeDialog (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0)
 Constructor.
virtual ~DtSetRadarModeDialog ()
 Destructor.

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 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 (std::string entityName, int emitterId)
 When new radar modes are updated to cache, we find out about it and should update the dialog.

Protected Attributes

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

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.

Destructor.


Member Function Documentation

virtual void makVrf::DtSetRadarModeDialog::onIdChanged ( const QString &  s) [protected, virtual, slot]

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

virtual void makVrf::DtSetRadarModeDialog::onModeChanged ( const QString &  s) [protected, virtual, slot]

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) [protected, virtual]

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) [protected, virtual]

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) [protected, virtual]

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) [protected, virtual]

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) [protected, virtual]

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

virtual void makVrf::DtSetRadarModeDialog::updateComboBoxes ( ) [protected, virtual]

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 
) [protected, virtual]

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 
) [protected, virtual]

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

virtual void makVrf::DtSetRadarModeDialog::sendRequest ( ) [protected, virtual]

Sends the request to set the radar mode.

Implements makVrf::DtBaseTaskSetDialogInterface.

virtual void makVrf::DtSetRadarModeDialog::slot_receivedRadarModes ( std::string  entityName,
int  emitterId 
) [protected, virtual]

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


Member Data Documentation

std::vector<std::string> makVrf::DtSetRadarModeDialog::myCurrSelected [protected]
std::map<std::string, std::vector<makVrv::DtSimEntry*> > makVrf::DtSetRadarModeDialog::myAwaitingEmitters [protected]

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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)