VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtElementEditorLogic.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2011 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 
22  {
23  public:
24 
27  DtDe& de,DtElementEditorInterface* iface, DtPersistenceControlsInterface* persistenceControls);
28 
31 
33  void selectElement(const DtUnicode& elementName);
34 
35  protected:
36 
37  void selectVisualizerDefinition(int index);
38  void selectAttribute(int index, const std::string& attrName);
39  void deselectAttribute(int index, const std::string& attrName);
40 
42  void refreshElementDefinitions();
43 
44  void refreshVisualizerDefinitionView();
45 
47  void clearElementSelection();
48 
49  void addVisualizerDefinition();
50  void removeVisualizerDefinition(int index);
51  void deselectVisualizerDefinition(int index);
52 
53  void addElement(const DtUnicode& name);
54  void removeElement();
55  void renameElement(const DtUnicode& oldName,const DtUnicode& newName);
56 
57  void addAttributeRequested(int index);
58  void removeAttribute(int index, const std::string& name);
59  void removeLocalAttribute(int index, const std::string& name);
60  void refreshAttribute(int index, const std::string& name);
61 
62  void refreshModelSets();
63 
64  void updateAttributeEditorInterface(int index, const std::string& name,
66 
67  void changeModelSet(int index);
68 
70  virtual void on_import();
71 
73  virtual void on_restoreFactory();
74 
76  virtual void on_restoreStartup();
77 
79  virtual void on_export();
80 
82  virtual void on_merge();
83 
86  virtual void on_exportSelected();
87 
89  virtual void on_importFilePathChosen(const std::string& filePath);
90 
92  virtual void on_exportFilePathChosen(const std::string& filePath);
93 
95  virtual void on_mergeFilePathChosen(const std::string& filePath);
96 
98  virtual void on_exportSelectedFilePathChosen(const std::string& filePath);
99 
100 
101  protected:
102 
104  unsigned int mySelectedModelSet;
105 
111  };
112 
113 }

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)