VR-Forces 4.0.4 Class Documentation
include/vrvCoreQt/DtSchemaEditorLogic.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2008 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: DtSchemaEditorLogic.h,v $ $Revision: 1.8 $ $State: Exp $
00007 ******************************************************************************/
00008 
00012 
00013 #ifndef DtSchemaEditorLogic_H_
00014 #define DtSchemaEditorLogic_H_
00015 
00016 #include <vrvCoreQt/vrvCoreQt.h>
00017 #include <vrvUtil/DtSignalConnectionManager.h>
00018 
00019 namespace makArchives
00020 {
00021    class DtSchema;
00022    class DtSchemaEntry;
00023 }
00024 
00025 namespace makVrv
00026 {
00027    class DtDe;
00028    class DtInstanceEditorInterface;
00029    class DtMapEditorInterface;
00030    class DtPersistenceControlsInterface;
00031    class DtSettingsBackup;
00032 
00035    class DT_DLL_VRVCOREQT DtSchemaEditorLogic
00036    {
00037    public:
00038 
00040       DtSchemaEditorLogic(DtDe& de,DtInstanceEditorInterface* instanceEditor,
00041          DtMapEditorInterface* mapEditor, DtPersistenceControlsInterface* toolbar);
00042 
00044       ~DtSchemaEditorLogic();
00045      
00046    protected:
00047 
00048       virtual void createSchema(const std::string& schemaName);
00049       virtual void copySchema(const std::string& oldName,const std::string& newName);
00050       virtual void deleteSchema(const std::string& schemaName);
00051       virtual void setSelectedSchema(const std::string& schemaName);
00052       virtual void setupSchemas();
00053 
00054       virtual void renameParameter( const std::string& oldName, const std::string& newName);
00055       virtual void renameSchema( const std::string& oldName, const std::string& newName);
00056       virtual void modifyValue(const std::string& key, const std::string& val, int index);
00057       virtual void deleteValue(const std::string& key);
00058 
00060       virtual void schemaRestored(const DtSettingsBackup*);
00061 
00062       
00064       void setupInstances();
00065       void setupMap();
00066 
00067       static std::string parameterTypeToString(unsigned int type);
00068       static unsigned int parameterTypeFromString(const std::string& str);
00069 
00070       static std::string requiredToString(bool required);
00071       static bool requiredFromString(const std::string& str);
00072 
00074       virtual void onExport();
00075 
00077       virtual void onExportSelected();
00078 
00081       virtual void onExportFilenameChosen(const std::string&);
00082 
00085       virtual void onExportSelectedChosen(const std::string&);
00086 
00088       virtual void onImport();
00089 
00092       virtual void onImportFilenameChosen(const std::string&);
00093 
00096       virtual void onMerge();
00097 
00100       virtual void onMergeFilenameChosen(const std::string&);
00101 
00102    protected:
00103       DtDe& myDe;
00104       DtInstanceEditorInterface* myInstanceInterface;
00105       DtMapEditorInterface* myMapInterface;
00106       DtPersistenceControlsInterface* myToolbarInterface;
00107       DtSignalConnectionManager mySignals;
00108    };
00109 }
00110 
00111 #endif
00112 

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)