VR-Forces 4.1 Class Documentation
DtSchemaEditorLogic.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtSchemaEditorLogic.h,v $ $Revision: 1.8 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #ifndef DtSchemaEditorLogic_H_
14 #define DtSchemaEditorLogic_H_
15 
16 #include <vrvCoreQt/vrvCoreQt.h>
18 
19 namespace makArchives
20 {
21  class DtSchema;
22  class DtSchemaEntry;
23 }
24 
25 namespace makVrv
26 {
27  class DtDe;
28  class DtInstanceEditorInterface;
29  class DtMapEditorInterface;
30  class DtPersistenceControlsInterface;
31  class DtSettingsBackup;
32 
36  {
37  public:
38 
42 
45 
46  protected:
47 
48  virtual void createSchema(const std::string& schemaName);
49  virtual void copySchema(const std::string& oldName,const std::string& newName);
50  virtual void deleteSchema(const std::string& schemaName);
51  virtual void setSelectedSchema(const std::string& schemaName);
52  virtual void setupSchemas();
53 
54  virtual void renameParameter( const std::string& oldName, const std::string& newName);
55  virtual void renameSchema( const std::string& oldName, const std::string& newName);
56  virtual void modifyValue(const std::string& key, const std::string& val, int index);
57  virtual void deleteValue(const std::string& key);
58 
60  virtual void schemaRestored(const DtSettingsBackup*);
61 
62 
64  void setupInstances();
65  void setupMap();
66 
67  static std::string parameterTypeToString(unsigned int type);
68  static unsigned int parameterTypeFromString(const std::string& str);
69 
70  static std::string requiredToString(bool required);
71  static bool requiredFromString(const std::string& str);
72 
74  virtual void onExport();
75 
77  virtual void onExportSelected();
78 
81  virtual void onExportFilenameChosen(const std::string&);
82 
85  virtual void onExportSelectedChosen(const std::string&);
86 
88  virtual void onImport();
89 
92  virtual void onImportFilenameChosen(const std::string&);
93 
96  virtual void onMerge();
97 
100  virtual void onMergeFilenameChosen(const std::string&);
101 
102  protected:
108  };
109 }
110 
111 #endif
112 

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)