VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtCockpitMappingEditorLogic Class Reference

Logic for editing mappings from entities to cockpits. More...

Public Member Functions

 DtCockpitMappingEditorLogic (DtDe &de, const std::string &definitionSchema, DtEntityMappingEditorInterface &editorInterface, DtEntityTypeMapEditorInterface &entityTypeMapInterface, DtMultiMapEditorInterface &mapInterface, DtPersistenceControlsInterface &toolbarInterface, DtPage *page=0)
 CTOR. More...
 
virtual ~DtCockpitMappingEditorLogic ()
 
virtual void rebuildDefinitions ()
 
DtEntityTypeMappercurrentMapper (DtWriteSettingsLock< DtSharedCockpitSettings > &settings)
 
const DtEntityTypeMappercurrentMapper (const DtReadSettingsLock< DtSharedCockpitSettings > &settings) const
 
virtual void on_modelDefinitionAdded (const DtModelDefinition &definition)
 
virtual void on_modelDefinitionToBeDestroyed (const DtModelDefinition &definition)
 
virtual void modelDefinitionChanged (const DtSettingsChangeObject *)
 
virtual void checkIfModified ()
 check if the type mapping have changed since the start up More...
 

Protected Member Functions

void updatePossibleValues ()
 
void on_changeFilePath ()
 Called to change the saved file path of the selected mapping to the path displayed in the dropdown box. More...
 
void updateSettings ()
 
void refreshPage ()
 
void reloadFileLocationBar ()
 Fills the file path dropdown bar with a list of all mappings files in the current directory. More...
 
void buildFiltersFromDefinitions ()
 
virtual void on_addValue (const std::string &name, const std::string &value, int index)
 
virtual void on_changeValue (const std::string &name, const std::string &oldValue, const std::string &value, int index)
 
virtual void on_deleteValue (const std::vector< std::string > &name, const std::vector< std::string > &value)
 
virtual void on_renameValue (const std::string &oldName, const std::string &value, const std::string &newName)
 
virtual void on_itemSelected (const std::string &itemName)
 
virtual void on_import ()
 
virtual void on_merge ()
 
virtual void on_export ()
 
virtual void on_exportSelected ()
 
virtual void on_importFilePathChosen (const std::string &filePath)
 
virtual void on_mergeFilePathChosen (const std::string &filePath)
 
virtual void on_exportFilePathChosen (const std::string &filePath)
 
virtual void on_exportSelectedFilePathChosen (const std::string &filePath)
 
virtual void on_filterChanged (const DtUnicode &filter)
 
virtual void on_lookupChanged (bool filterByType, const std::string &filter)
 
virtual void on_resetFilters ()
 
void entityTypeMappingsRestored (const DtSettingsBackup *s)
 
void askForNewElementDefinitionForEntityType (std::string entType)
 

Protected Attributes

DtDemyDe
 
DtSignalConnectionManager myConnections
 
DtSharedSimulationSettingsManagermyManager
 
DtEntityMappingEditorInterfacemyEditorInterface
 
DtEntityTypeMapEditorInterfacemyEntityTypeMapInterface
 
DtMultiMapEditorInterfacemyMapInterface
 
DtPersistenceControlsInterfacemyToolbarInterface
 
QStringList myDefinitions
 
std::string myDefinitionSchema
 
DtEntityType myLookupType
 
DtSharedCockpitTypeMapper * myMapperObject
 
DtPagemyPage
 

Detailed Description

Logic for editing mappings from entities to cockpits.

Constructor & Destructor Documentation

makVrv::DtCockpitMappingEditorLogic::DtCockpitMappingEditorLogic ( DtDe de,
const std::string &  definitionSchema,
DtEntityMappingEditorInterface editorInterface,
DtEntityTypeMapEditorInterface entityTypeMapInterface,
DtMultiMapEditorInterface mapInterface,
DtPersistenceControlsInterface toolbarInterface,
DtPage page = 0 
)

CTOR.

virtual makVrv::DtCockpitMappingEditorLogic::~DtCockpitMappingEditorLogic ( )
virtual

Member Function Documentation

virtual void makVrv::DtCockpitMappingEditorLogic::rebuildDefinitions ( )
virtual
DtEntityTypeMapper& makVrv::DtCockpitMappingEditorLogic::currentMapper ( DtWriteSettingsLock< DtSharedCockpitSettings > &  settings)
const DtEntityTypeMapper& makVrv::DtCockpitMappingEditorLogic::currentMapper ( const DtReadSettingsLock< DtSharedCockpitSettings > &  settings) const
virtual void makVrv::DtCockpitMappingEditorLogic::on_modelDefinitionAdded ( const DtModelDefinition definition)
virtual
virtual void makVrv::DtCockpitMappingEditorLogic::on_modelDefinitionToBeDestroyed ( const DtModelDefinition definition)
virtual
virtual void makVrv::DtCockpitMappingEditorLogic::modelDefinitionChanged ( const DtSettingsChangeObject )
virtual
virtual void makVrv::DtCockpitMappingEditorLogic::checkIfModified ( )
virtual

check if the type mapping have changed since the start up

void makVrv::DtCockpitMappingEditorLogic::updatePossibleValues ( )
protected
void makVrv::DtCockpitMappingEditorLogic::on_changeFilePath ( )
protected

Called to change the saved file path of the selected mapping to the path displayed in the dropdown box.

void makVrv::DtCockpitMappingEditorLogic::updateSettings ( )
protected
void makVrv::DtCockpitMappingEditorLogic::refreshPage ( )
protected
void makVrv::DtCockpitMappingEditorLogic::reloadFileLocationBar ( )
protected

Fills the file path dropdown bar with a list of all mappings files in the current directory.

void makVrv::DtCockpitMappingEditorLogic::buildFiltersFromDefinitions ( )
protected
virtual void makVrv::DtCockpitMappingEditorLogic::on_addValue ( const std::string &  name,
const std::string &  value,
int  index 
)
protectedvirtual
virtual void makVrv::DtCockpitMappingEditorLogic::on_changeValue ( const std::string &  name,
const std::string &  oldValue,
const std::string &  value,
int  index 
)
protectedvirtual
virtual void makVrv::DtCockpitMappingEditorLogic::on_deleteValue ( const std::vector< std::string > &  name,
const std::vector< std::string > &  value 
)
protectedvirtual
virtual void makVrv::DtCockpitMappingEditorLogic::on_renameValue ( const std::string &  oldName,
const std::string &  value,
const std::string &  newName 
)
protectedvirtual
virtual void makVrv::DtCockpitMappingEditorLogic::on_itemSelected ( const std::string &  itemName)
protectedvirtual
virtual void makVrv::DtCockpitMappingEditorLogic::on_import ( )
protectedvirtual
virtual void makVrv::DtCockpitMappingEditorLogic::on_merge ( )
protectedvirtual
virtual void makVrv::DtCockpitMappingEditorLogic::on_export ( )
protectedvirtual
virtual void makVrv::DtCockpitMappingEditorLogic::on_exportSelected ( )
protectedvirtual
virtual void makVrv::DtCockpitMappingEditorLogic::on_importFilePathChosen ( const std::string &  filePath)
protectedvirtual
virtual void makVrv::DtCockpitMappingEditorLogic::on_mergeFilePathChosen ( const std::string &  filePath)
protectedvirtual
virtual void makVrv::DtCockpitMappingEditorLogic::on_exportFilePathChosen ( const std::string &  filePath)
protectedvirtual
virtual void makVrv::DtCockpitMappingEditorLogic::on_exportSelectedFilePathChosen ( const std::string &  filePath)
protectedvirtual
virtual void makVrv::DtCockpitMappingEditorLogic::on_filterChanged ( const DtUnicode filter)
protectedvirtual
virtual void makVrv::DtCockpitMappingEditorLogic::on_lookupChanged ( bool  filterByType,
const std::string &  filter 
)
protectedvirtual
virtual void makVrv::DtCockpitMappingEditorLogic::on_resetFilters ( )
protectedvirtual
void makVrv::DtCockpitMappingEditorLogic::entityTypeMappingsRestored ( const DtSettingsBackup s)
protected
void makVrv::DtCockpitMappingEditorLogic::askForNewElementDefinitionForEntityType ( std::string  entType)
protected

Member Data Documentation

DtDe& makVrv::DtCockpitMappingEditorLogic::myDe
protected
DtSignalConnectionManager makVrv::DtCockpitMappingEditorLogic::myConnections
protected
DtSharedSimulationSettingsManager& makVrv::DtCockpitMappingEditorLogic::myManager
protected
DtEntityMappingEditorInterface& makVrv::DtCockpitMappingEditorLogic::myEditorInterface
protected
DtEntityTypeMapEditorInterface& makVrv::DtCockpitMappingEditorLogic::myEntityTypeMapInterface
protected
DtMultiMapEditorInterface& makVrv::DtCockpitMappingEditorLogic::myMapInterface
protected
DtPersistenceControlsInterface& makVrv::DtCockpitMappingEditorLogic::myToolbarInterface
protected
QStringList makVrv::DtCockpitMappingEditorLogic::myDefinitions
protected
std::string makVrv::DtCockpitMappingEditorLogic::myDefinitionSchema
protected
DtEntityType makVrv::DtCockpitMappingEditorLogic::myLookupType
protected
DtSharedCockpitTypeMapper* makVrv::DtCockpitMappingEditorLogic::myMapperObject
protected
DtPage* makVrv::DtCockpitMappingEditorLogic::myPage
protected

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

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)