VR-Forces 4.3.1 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 | Protected Attributes
makVrf::DtMsdlImporter Class Reference

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

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

Public Member Functions

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

Public Attributes

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

Protected Slots

virtual void selectEntityType ()
 Select the entity type to map for missing entity types.

Protected Member Functions

virtual void processMsdlSidcMessage (DtSimMessage *m)
virtual void addMissingEquipment (DtMsdlScenarioDescriptionImporterExporter *)
 Adds missing equipment and/or tactical graphics into list to be processed by user, or, adds into mappings to send to back-end if already defined but not yet known in back-end.
virtual void addMissingTacticalGraphics (DtMsdlScenarioDescriptionImporterExporter *)
virtual void addMissingForcesToCountryMappings (DtMsdlScenarioDescriptionImporterExporter *)
 If there are force to country mappings missing, add them here for later processing.
virtual void importScenarioDescription ()
 Sends message off to back-end to import the scenario description.
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 QComboBoxtacticalGraphicsCombo ()
 Returns a new combo box with all potential tactical graphics items that can be selected.
virtual QComboBoxcountryCombo ()
 Creates a combo box of long country names and item data of country code.
virtual void createEnumerationSelectionWidget (QTreeWidgetItem *)
 Creates an enumeration selection widget and attaches it to the given tree widget item.
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 setupMissingForceToCountryMappings ()
 Setup section for missing mappings forces to country codes.

Protected Attributes

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

Detailed Description

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

If everything is properly mapped then the process of import will begin without user interaction. The back-end will be queried for the current mappings file and the scenario imported locally and checked for any missing mapped items. Importer will take control of the DtScenarioDescriptionImporterExporter memory once passed into the constructor

Constructor & Destructor Documentation

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

Member Function Documentation

virtual void makVrf::DtMsdlImporter::import ( const QString &  )
virtual

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

The MSDL scenario will then be imported. 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 import

virtual void makVrf::DtMsdlImporter::processMsdlSidcMessage ( DtSimMessage m)
protectedvirtual
virtual void makVrf::DtMsdlImporter::addMissingEquipment ( DtMsdlScenarioDescriptionImporterExporter )
protectedvirtual

Adds missing equipment and/or tactical graphics into list to be processed by user, or, adds into mappings to send to back-end if already defined but not yet known in back-end.

virtual void makVrf::DtMsdlImporter::addMissingTacticalGraphics ( DtMsdlScenarioDescriptionImporterExporter )
protectedvirtual
virtual void makVrf::DtMsdlImporter::addMissingForcesToCountryMappings ( DtMsdlScenarioDescriptionImporterExporter )
protectedvirtual

If there are force to country mappings missing, add them here for later processing.

The addition will be a list of force handles that do not have a country code

virtual void makVrf::DtMsdlImporter::importScenarioDescription ( )
protectedvirtual

Sends message off to back-end to import the scenario description.

Will also add to inputData the new mappings contents with the special keyword for updating the new item (defined in ifImportScenarioDescriptionFile)

virtual void makVrf::DtMsdlImporter::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::DtMsdlImporter::accept ( )
protectedvirtual

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

virtual QComboBox* makVrf::DtMsdlImporter::tacticalGraphicsCombo ( )
protectedvirtual

Returns a new combo box with all potential tactical graphics items that can be selected.

virtual QComboBox* makVrf::DtMsdlImporter::countryCombo ( )
protectedvirtual

Creates a combo box of long country names and item data of country code.

virtual void makVrf::DtMsdlImporter::createEnumerationSelectionWidget ( QTreeWidgetItem )
protectedvirtual

Creates an enumeration selection widget and attaches it to the given tree widget item.

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

Setup section for missing entities to pick enumerations for.

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

Setup section for missing tactical graphics to pick enumerations for.

virtual void makVrf::DtMsdlImporter::setupMissingForceToCountryMappings ( )
protectedvirtual

Setup section for missing mappings forces to country codes.

virtual void makVrf::DtMsdlImporter::selectEntityType ( )
protectedvirtualslot

Select the entity type to map for missing entity types.

Member Data Documentation

QLabel* makVrf::DtMsdlImporter::myDescription
QVBoxLayout* makVrf::DtMsdlImporter::myCountryMappingLayout
QLabel* makVrf::DtMsdlImporter::myCountryMappingLabel
QFrame* makVrf::DtMsdlImporter::myCountryMappingLine
QTreeWidget* makVrf::DtMsdlImporter::myCountryMappingsTree
QVBoxLayout* makVrf::DtMsdlImporter::myEntitiesLayout
QLabel* makVrf::DtMsdlImporter::myEntitiesLabel
QFrame* makVrf::DtMsdlImporter::myEntitiesLine
QTreeWidget* makVrf::DtMsdlImporter::myMissingEntitiesTree
QVBoxLayout* makVrf::DtMsdlImporter::myTacticalGraphicsLayout
QLabel* makVrf::DtMsdlImporter::myTacticalGraphicsLabel
QFrame* makVrf::DtMsdlImporter::myTacticalGraphicsLine
QTreeWidget* makVrf::DtMsdlImporter::myMissingTacticalGraphicsTree
QHBoxLayout* makVrf::DtMsdlImporter::myButtonLayout
QPushButton* makVrf::DtMsdlImporter::myOKButton
QPushButton* makVrf::DtMsdlImporter::myCancelButton
makVrv::DtDe& makVrf::DtMsdlImporter::myDe
protected
DtFilename makVrf::DtMsdlImporter::myMsdlFile
protected
int makVrf::DtMsdlImporter::myRequestId
protected
DtMsdlHierarchyPropertyMappings makVrf::DtMsdlImporter::myCurrentMappings
protected
DtMsdlHierarchyPropertyMappings makVrf::DtMsdlImporter::myNewMappings
protected
std::map<std::string, QTreeWidgetItem*> makVrf::DtMsdlImporter::myMissingItems
protected
std::vector<DtMsdlSimulatedElement*> makVrf::DtMsdlImporter::myMissingEntities
protected
std::vector<DtMsdlSimulatedTacticalGraphic> makVrf::DtMsdlImporter::myMissingTacticalGraphics
protected
std::map<std::string, std::string> makVrf::DtMsdlImporter::myMissingForceToCountryMappings
protected
DtScenarioDescriptionImporterExporter* makVrf::DtMsdlImporter::myImporter
protected

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

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)