VR-Forces 4.1 Class Documentation
DtElementEditorInterface.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2011 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: $ $Revision: $ $State: $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 #include <vrvCoreQt/vrvCoreQt.h>
15 #include <vrvUtil/DtUnicode.h>
16 
17 namespace makVrv
18 {
19  class DtVisualizerAttributeEditorInterface;
20 
23  {
24  public:
25 
28 
30  virtual ~DtElementEditorInterface();
31 
32  virtual void changeElementsStart() = 0;
33  virtual void addElement(const DtUnicode& name) = 0;
34  virtual void addElement(const DtUnicode& name,
35  const DtUnicode& parent) = 0;
36  virtual void removeElement(const DtUnicode& name) = 0;
37  virtual void changeElementsStop() = 0;
38  virtual void clearElements() = 0;
39  virtual void selectElement(const DtUnicode& name) = 0;
40 
41  virtual void setModelSets(const std::vector<DtUnicode>& modelSets) = 0;
42  virtual void setCurrentModelSet(int index) = 0;
43 
44  virtual void changeDefinitionStart() = 0;
45  virtual void clearDefinitions() = 0;
46  virtual void addDefinition(int index, const DtUnicode& name,
47  bool inherited) = 0;
48  virtual void removeDefinition(int index) = 0;
49  virtual void changeDefinitionStop() = 0;
50 
51  virtual void changeAttributeStart() = 0;
52  virtual void addAttribute(int defIndex, const std::string& name,
53  const DtUnicode& value, bool inherited) = 0;
54  virtual void updateAttribute(int defIndex, const std::string& name,
55  const DtUnicode& value) = 0;
56  virtual void removeAttribute(int defIndex, const std::string& name) = 0;
57  virtual void changeAttributeStop() = 0;
58  virtual void selectAttribute(int defIndex, const std::string& name) = 0;
59  virtual void setAttributeDescription(const DtUnicode& desc) = 0;
60  virtual void createAttributeEditor(int defIndex, const std::string& name,
61  const std::string& attrClass) = 0;
62  virtual void destroyAttributeEditor(int defIndex,
63  const std::string& name) = 0;
64 
69  virtual std::string chooseNewVisualizerDefinitionType() = 0;
70 
71  virtual int chooseNewAttributeName(const std::vector< std::pair< std::string, DtUnicode> >& nameTypePairs) = 0;
72 
74  virtual void setRemoveElementEnabled( bool b ) = 0;
75 
77  virtual void setAddVisualDefEnabled( bool b ) = 0;
78 
80  virtual void setRemoveVisualDefEnabled( bool b ) = 0;
81 
83  virtual void setAddAttributeEnabled( bool b ) = 0;
84 
86  virtual void setRemoveAttributeEnabled( bool b ) = 0;
87 
89  virtual void showAddedElements(std::vector<DtUnicode>& addedNames,
90  std::vector<DtUnicode>& skippedNames) = 0;
91 
92  boost::signal<void (const DtUnicode&)> signal_addElement;
93  boost::signal<void ()> signal_removeElement;
94  boost::signal<void (const DtUnicode&, const DtUnicode&)> signal_renameElement;
95  boost::signal<void (const DtUnicode&)> signal_elementSelected;
96  boost::signal<void (const DtUnicode&)> signal_elementDeselected;
97  boost::signal<void ()> signal_noElementSelected;
98 
99  boost::signal<void (int index)> signal_modelSetChanged;
100 
101  boost::signal<void (int index)> signal_visualizerDefSelected;
102  boost::signal<void (int index)> signal_visualizerDefDeselected;
103  boost::signal<void (int index, const std::string&)> signal_attributeSelected;
104  boost::signal<void (int index, const std::string&)> signal_attributeDeselected;
106 
107  boost::signal<void ()> signal_addVisualizer;
108  boost::signal<void (int index)> signal_removeVisualizer;
109 
110  boost::signal<void (int index)> signal_addAttribute;
111  boost::signal<void (int index, const std::string&)> signal_removeAttribute;
112  boost::signal<void (int index, const std::string&)> signal_removeLocalAttribute;
113 
114  boost::signal<void (int index, const std::string&,
116  };
117 }
118 

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)