VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtElementEditorLogic.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2018 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
6 #pragma once
8 #include <vrvCoreQt/vrvCoreQt.h>
12 #include <vrvUtil/DtUnicode.h>
13 
14 namespace makVrv
15 {
16  class DtElementDefinitionManager;
17  class DtElementEditorInterface;
18  class DtVisualizerAttributeEditorInterface;
19  class DtPage;
20  class DtUnicode;
21 
24  {
25  public:
26 
29  DtDe& de,DtElementEditorInterface* iface, DtPersistenceControlsInterface* persistenceControls,
30  DtPage* page = 0);
31 
33  virtual ~DtElementEditorLogic();
34 
36  void selectElement(const DtUnicode& elementName);
37 
39  virtual void checkIfModified();
40 
41  protected:
42 
43  void selectVisualizerDefinition(int index);
44  void selectAttribute(int index, const std::string& attrName);
45  void deselectAttribute(int index, const std::string& attrName);
46 
48  void refreshElementDefinitions();
49 
50  void refreshVisualizerDefinitionView();
51 
53  void clearElementSelection();
54 
55  void addVisualizerDefinition();
56  void removeVisualizerDefinition(int index);
57  void deselectVisualizerDefinition(int index);
58 
59  void addElement(const DtUnicode& name);
60  void removeElement();
61  void renameElement(const DtUnicode& oldName,const DtUnicode& newName);
62 
63  void addAttributeRequested(int index);
64  void removeAttribute(int index, const std::string& name);
65  void removeLocalAttribute(int index, const std::string& name);
66  void refreshAttribute(const DtUnicode& origin,int index, const std::string& name);
67 
68  void refreshModelSets();
69 
70  void updateAttributeEditorInterface(int index, const std::string& name,
72 
73  void changeModelSet(int index);
74 
76  virtual void on_import();
77 
79  virtual void on_restoreFactory();
80 
82  virtual void on_restoreStartup();
83 
85  virtual void on_export();
86 
89  virtual void on_exportHier();
90 
94  virtual void on_exportLeaves();
95 
99  virtual void on_exportSelectedLeaves();
100 
102  virtual void on_merge();
103 
106  virtual void on_exportSelected();
107 
109  virtual void on_importFilePathChosen(const std::string& filePath);
110 
112  virtual void on_exportFilePathChosen(const std::string& filePath);
113 
115  virtual void on_mergeFilePathChosen(const std::string& filePath);
116 
118  virtual void on_exportSelectedFilePathChosen(const std::string& filePath);
119 
121  virtual void on_exportHierFilePathChosen(const std::string& filePath);
122 
124  virtual void on_exportLeafFilePathChosen(const std::string& filePath);
125 
127  virtual void on_exportSelectedLeafFilePathChosen(const std::string& filePath);
128 
131  virtual void on_saveDefaults();
132 
134  virtual bool shouldDisableSave();
135 
137  virtual void mapTypeToDirectoryPath(DtElementDefinitionTypeManager::ElementDefinitionType type);
138 
141  virtual void slot_managerAboutToBeDeleted();
142 
144  virtual DtElementDefinitionManager& elementDefinitionManager();
145 
146  protected:
147 
149  unsigned int mySelectedModelSet;
151 
159  std::string myDirectoryPath;
160  };
161 
162 }

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)