VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtSchemaEditorLogic.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCoreQt/vrvCoreQt.h>
14 
15 namespace makArchives
16 {
17  class DtSchema;
18  class DtSchemaEntry;
19 }
20 
21 namespace makVrv
22 {
23  class DtDe;
24  class DtInstanceEditorInterface;
25  class DtMapEditorInterface;
26  class DtPersistenceControlsInterface;
27  class DtSettingsBackup;
28 
32  {
33  public:
34 
38 
40  virtual ~DtSchemaEditorLogic();
41 
42  protected:
43 
44  virtual void createSchema(const std::string& schemaName);
45  virtual void copySchema(const std::string& oldName,const std::string& newName);
46  virtual void deleteSchema(const std::vector<std::string>& schemaName);
47  virtual void setSelectedSchema(const std::string& schemaName);
48  virtual void setupSchemas();
49 
50  virtual void renameParameter( const std::string& oldName, const std::string& newName);
51  virtual void renameSchema( const std::string& oldName, const std::string& newName);
52  virtual void modifyValue(const std::string& key, const std::string& val, int index);
53  virtual void deleteValue(const std::string& key);
54 
56  virtual void schemaRestored(const DtSettingsBackup*);
57 
58 
60  void setupInstances();
61  void setupMap();
62 
63  static std::string parameterTypeToString(unsigned int type);
64  static unsigned int parameterTypeFromString(const std::string& str);
65 
66  static std::string requiredToString(bool required);
67  static bool requiredFromString(const std::string& str);
68 
70  virtual void onExport();
71 
73  virtual void onExportSelected();
74 
77  virtual void onExportFilenameChosen(const std::string&);
78 
81  virtual void onExportSelectedChosen(const std::string&);
82 
84  virtual void onImport();
85 
88  virtual void onImportFilenameChosen(const std::string&);
89 
92  virtual void onMerge();
93 
96  virtual void onMergeFilenameChosen(const std::string&);
97 
98  protected:
104  };
105 }

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)