VR-Forces 4.0.4 Class Documentation
include/vrvCigiQt/DtCigiEntityMappingLogic.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2009 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: DtCigiEntityMappingLogic.h,v $ $Revision: 1.1 $ $State: Exp $
00007 *********************************************************************/
00008 
00012 
00013 #ifndef DtCigiEntityMappingLogic_H_
00014 #define DtCigiEntityMappingLogic_H_
00015 
00016 #include <vrvCigiQt/vrvCigiQt.h>
00017 #include <vrvCigiQt/DtCigiSettingsLogic.h>
00018 
00019 #include <QtCore/QStringList>
00020 
00021 namespace makVrv
00022 {
00023    class DtCigiEntityMappingInterface;
00024    class DtCigiEntityMappingInterface;
00025    class DtMapEditorInterface;
00026    class DtPersistenceControlsInterface;
00027    class DtSharedCigiSettingsManager;
00028    class DtPersistenceControlsInterface; 
00029    class DtSettingsBackup;
00030    class DtSettingsChangeObject;
00031 
00036    class DT_DLL_VRVCIGIQT DtCigiEntityMappingLogic : public DtCigiSettingsLogic
00037    {
00038    public:
00040       DtCigiEntityMappingLogic(DtDe& de, DtCigiEntityMappingInterface* entMapIf, 
00041          DtCigiSettingsInterface* settingsIf,
00042          DtMapEditorInterface* entTypeIf, DtMapEditorInterface* artPartIf,
00043          DtPersistenceControlsInterface* importExportIf);
00044 
00046       virtual ~DtCigiEntityMappingLogic();
00047 
00048    protected:
00050       virtual void updateValues();
00051 
00053       virtual void updatePossibleValues();
00054 
00056       virtual void rebuildDefinitions();
00057 
00059       virtual void updateEntityMappings();
00060 
00062       virtual void updateArtParts();
00063       virtual void cigiMappingsRestored(const DtSettingsBackup* s);
00064 
00066       void on_deleteEntityTypeValue(const std::string& key);
00067 
00069       void on_addEntityTypeValue(const std::string& key,const std::string& value, int index);
00070 
00072       void on_renameEntityTypeValue(const std::string& oldName, const std::string& newName );
00073       
00076       void on_newEntityTypeSelected(const std::string& entType);
00077 
00079       void on_addArtPartValue(const std::string& key, const std::string& value, int index);
00080 
00082       void on_renameArtPartValue(const std::string& oldName, const std::string& newName);
00083       
00085       void on_deleteArtPartValue(const std::string& key);
00086 
00088       virtual void on_currentSettingsChanged(const std::string& name);
00089 
00091       std::string schemaForModel(const std::string& modelName);
00092 
00093       virtual void modelDefinitionChanged( const DtSettingsChangeObject* definition );
00094 
00095    protected:
00096       DtMapEditorInterface&      myEntityTypeInterface;
00097       DtMapEditorInterface&      myArtPartInterface;
00098       DtCigiEntityMappingInterface&        mySettingsInterface;
00099       QStringList                     myModelDefinitions;
00100       QStringList                     myArtPartPossibleValues;
00101       int                             myCurrentEntityTypeSelected;
00102    };
00103 }
00104 
00105 #endif

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)