![]() |
VR-Forces Developer's Guide
|
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.

Public Member Functions | |
| DtMsdlImporter (makVrv::DtDe &de, DtScenarioDescriptionImporterExporter *importer, QWidget *parent, const Qt::WindowFlags &flags=0) | |
| virtual | ~DtMsdlImporter () |
| virtual void | import (const QString &) |
Public Attributes | |
| QLabel * | myDescription |
| QVBoxLayout * | myCountryMappingLayout |
| QLabel * | myCountryMappingLabel |
| QFrame * | myCountryMappingLine |
| QTreeWidget * | myCountryMappingsTree |
| QVBoxLayout * | myEntitiesLayout |
| QLabel * | myEntitiesLabel |
| QFrame * | myEntitiesLine |
| QTreeWidget * | myMissingEntitiesTree |
| QVBoxLayout * | myTacticalGraphicsLayout |
| QLabel * | myTacticalGraphicsLabel |
| QFrame * | myTacticalGraphicsLine |
| QTreeWidget * | myMissingTacticalGraphicsTree |
| QHBoxLayout * | myButtonLayout |
| QPushButton * | myOKButton |
| QPushButton * | myCancelButton |
Protected Slots | |
| virtual void | selectEntityType () |
Protected Member Functions | |
| virtual void | processMsdlSidcMessage (DtSimMessage *m) |
| virtual void | addMissingEquipment (DtMsdlScenarioDescriptionImporterExporter *) |
| virtual void | addMissingTacticalGraphics (DtMsdlScenarioDescriptionImporterExporter *) |
| virtual void | addMissingForcesToCountryMappings (DtMsdlScenarioDescriptionImporterExporter *) |
| virtual void | importScenarioDescription () |
| virtual void | processMissingItems () |
| virtual void | accept () |
| virtual QComboBox * | tacticalGraphicsCombo () |
| virtual DtCountrySelectionEntryWidget * | countryCombo () |
| virtual void | createEnumerationSelectionWidget (QTreeWidgetItem *) |
| virtual void | setupMissingEntities () |
| virtual void | setupMissingTacticalGraphics () |
| virtual void | setupMissingForceToCountryMappings () |
Protected Attributes | |
| makVrv::DtDe & | myDe |
| 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 |
| DtScenarioDescriptionImporterExporter * | myImporter |
| makVrf::DtMsdlImporter::DtMsdlImporter | ( | makVrv::DtDe & | de, |
| DtScenarioDescriptionImporterExporter * | importer, | ||
| QWidget * | parent, | ||
| const Qt::WindowFlags & | flags = 0 |
||
| ) |
|
virtual |
|
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.
|
protectedvirtual |
|
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.
|
protectedvirtual |
|
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.
|
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)
|
protectedvirtual |
Processes the missing items and puts this dialog into exec mode to allow user to select mappings for tactical graphics and entities.
|
protectedvirtual |
Called to accept this dialog, will start the import process.
|
protectedvirtual |
Returns a new combo box with all potential tactical graphics items that can be selected.
|
protectedvirtual |
Creates a combo box of long country names and item data of country code.
|
protectedvirtual |
Creates an enumeration selection widget and attaches it to the given tree widget item.
|
protectedvirtual |
Setup section for missing entities to pick enumerations for.
|
protectedvirtual |
Setup section for missing tactical graphics to pick enumerations for.
|
protectedvirtual |
Setup section for missing mappings forces to country codes.
|
protectedvirtualslot |
Select the entity type to map for missing entity types.
| 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 |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |