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

The makVrf::DtMsdlExporter class will allow the user to specify any mappings that do not exist for entities/tactical graphics that appear in the VR-Forcees scenario. More...

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

Public Member Functions

 DtMsdlExporter (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0)
virtual ~DtMsdlExporter ()
virtual void exportFile (const QString &)
 Will request of the currently selected back-end the current MSDL to SIDC code mappings.

Public Attributes

QLabelmyDescription
QVBoxLayout * myEntitiesLayout
QLabelmyEntitiesLabel
QFrame * myEntitiesLine
QTreeWidgetmyMissingEntitiesTree
QVBoxLayout * myTacticalGraphicsLayout
QLabelmyTacticalGraphicsLabel
QFrame * myTacticalGraphicsLine
QTreeWidgetmyMissingTacticalGraphicsTree
QHBoxLayout * myButtonLayout
QPushButtonmyOKButton
QPushButtonmyCancelButton

Protected Member Functions

virtual bool exportableObject (const DtEntityType &t) const
 Returns true if object is exportable.
virtual void processMsdlSidcMessage (DtSimMessage *m)
virtual void processMissingItems ()
 Processes the missing items and puts this dialog into exec mode to allow user to select mappings for tactical graphics and entities.
virtual void accept ()
 Called to accept this dialog, will start the import process.
virtual QComboBoxcreateSidcSelectionWidget (bool forEntities)
 Returns a new combo box with all potential SIDC codes items that can be selected.
virtual void setupMissingEntities ()
 Setup section for missing entities to pick enumerations for.
virtual void setupMissingTacticalGraphics ()
 Setup section for missing tactical graphics to pick enumerations for.
virtual void exportScenarioDescription ()
 Sends message to back-end to export scenario description, including any mappings.
virtual void addMissingEntities ()
 Iterates over entity states and adds missing entities to SIDC code mappings.
virtual void addMissingTacticalGraphics ()
 Iterates over tactical graphics and adds missing tactical graphics to SIDC code mappings.

Protected Attributes

makVrv::DtDemyDe
DtFilename myMsdlFile
int myRequestId
DtMsdlHierarchyPropertyMappings myCurrentMappings
DtMsdlHierarchyPropertyMappings myNewMappings
std::map< std::string,
QTreeWidgetItem * > 
myMissingItems
std::map< std::string,
std::string > 
myMissingEntities
std::map< std::string,
std::string > 
myMissingTacticalGraphics

Detailed Description

The makVrf::DtMsdlExporter class will allow the user to specify any mappings that do not exist for entities/tactical graphics that appear in the VR-Forcees scenario.

If everything is properly mapped then the process of export will begin without user interaction. The back-end will be queried for the current mappings file and the current entities/tactical graphics will be checked to see if there are mappings between dis enumeration and SIDC code

Constructor & Destructor Documentation

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

Member Function Documentation

virtual void makVrf::DtMsdlExporter::exportFile ( const QString &  )
virtual

Will request of the currently selected back-end the current MSDL to SIDC code mappings.

The MSDL scenario will then be exported. Any equipment or tactical graphics that do not have a valid mapping will be presented to the user for mapping. If no mappings are needed then the scenario will be sent to the back-end for export

virtual bool makVrf::DtMsdlExporter::exportableObject ( const DtEntityType &  t) const
protectedvirtual

Returns true if object is exportable.

virtual void makVrf::DtMsdlExporter::processMsdlSidcMessage ( DtSimMessage m)
protectedvirtual
virtual void makVrf::DtMsdlExporter::processMissingItems ( )
protectedvirtual

Processes the missing items and puts this dialog into exec mode to allow user to select mappings for tactical graphics and entities.

virtual void makVrf::DtMsdlExporter::accept ( )
protectedvirtual

Called to accept this dialog, will start the import process.

virtual QComboBox* makVrf::DtMsdlExporter::createSidcSelectionWidget ( bool  forEntities)
protectedvirtual

Returns a new combo box with all potential SIDC codes items that can be selected.

virtual void makVrf::DtMsdlExporter::setupMissingEntities ( )
protectedvirtual

Setup section for missing entities to pick enumerations for.

virtual void makVrf::DtMsdlExporter::setupMissingTacticalGraphics ( )
protectedvirtual

Setup section for missing tactical graphics to pick enumerations for.

virtual void makVrf::DtMsdlExporter::exportScenarioDescription ( )
protectedvirtual

Sends message to back-end to export scenario description, including any mappings.

virtual void makVrf::DtMsdlExporter::addMissingEntities ( )
protectedvirtual

Iterates over entity states and adds missing entities to SIDC code mappings.

virtual void makVrf::DtMsdlExporter::addMissingTacticalGraphics ( )
protectedvirtual

Iterates over tactical graphics and adds missing tactical graphics to SIDC code mappings.

Member Data Documentation

QLabel* makVrf::DtMsdlExporter::myDescription
QVBoxLayout* makVrf::DtMsdlExporter::myEntitiesLayout
QLabel* makVrf::DtMsdlExporter::myEntitiesLabel
QFrame* makVrf::DtMsdlExporter::myEntitiesLine
QTreeWidget* makVrf::DtMsdlExporter::myMissingEntitiesTree
QVBoxLayout* makVrf::DtMsdlExporter::myTacticalGraphicsLayout
QLabel* makVrf::DtMsdlExporter::myTacticalGraphicsLabel
QFrame* makVrf::DtMsdlExporter::myTacticalGraphicsLine
QTreeWidget* makVrf::DtMsdlExporter::myMissingTacticalGraphicsTree
QHBoxLayout* makVrf::DtMsdlExporter::myButtonLayout
QPushButton* makVrf::DtMsdlExporter::myOKButton
QPushButton* makVrf::DtMsdlExporter::myCancelButton
makVrv::DtDe& makVrf::DtMsdlExporter::myDe
protected
DtFilename makVrf::DtMsdlExporter::myMsdlFile
protected
int makVrf::DtMsdlExporter::myRequestId
protected
DtMsdlHierarchyPropertyMappings makVrf::DtMsdlExporter::myCurrentMappings
protected
DtMsdlHierarchyPropertyMappings makVrf::DtMsdlExporter::myNewMappings
protected
std::map<std::string, QTreeWidgetItem*> makVrf::DtMsdlExporter::myMissingItems
protected
std::map<std::string, std::string> makVrf::DtMsdlExporter::myMissingEntities
protected
std::map<std::string, std::string> makVrf::DtMsdlExporter::myMissingTacticalGraphics
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)