VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
37  virtual void addElement(const DtUnicode& name, bool valid,bool bold = false) = 0;
38 
42  virtual void addElement(const DtUnicode& name,
43  const DtUnicode& parent, bool valid, bool bold = false) = 0;
44  virtual void removeElement(const DtUnicode& name) = 0;
45  virtual void changeElementsStop() = 0;
46  virtual void clearElements() = 0;
47  virtual void selectElement(const DtUnicode& name) = 0;
48 
49  virtual void setModelSets(const std::vector<DtUnicode>& modelSets) = 0;
50  virtual void setCurrentModelSet(int index) = 0;
51 
52  virtual void changeDefinitionStart() = 0;
53  virtual void clearDefinitions() = 0;
54  virtual void addDefinition(int index, const DtUnicode& name,
55  bool inherited) = 0;
56  virtual void removeDefinition(int index) = 0;
57  virtual void changeDefinitionStop() = 0;
58 
59  virtual void changeAttributeStart() = 0;
60  virtual void addAttribute(int defIndex, const std::string& name,
61  const DtUnicode& value, bool inherited) = 0;
62  virtual void updateAttribute(int defIndex, const std::string& name,
63  const DtUnicode& value) = 0;
64  virtual void removeAttribute(int defIndex, const std::string& name) = 0;
65  virtual void changeAttributeStop() = 0;
66  virtual void selectAttribute(int defIndex, const std::string& name) = 0;
67  virtual void setAttributeDescription(const DtUnicode& desc) = 0;
68  virtual void createAttributeEditor(int defIndex, const std::string& name,
69  const std::string& attrClass) = 0;
70  virtual void destroyAttributeEditor(int defIndex,
71  const std::string& name) = 0;
72  virtual bool wasAttributeEditorValueModified(int defIndex,
73  const std::string& name) = 0;
74 
79  virtual std::string chooseNewVisualizerDefinitionType() = 0;
80 
81  virtual int chooseNewAttributeName(const std::vector< std::pair< std::string, DtUnicode> >& nameTypePairs) = 0;
82 
84  virtual void setRemoveElementEnabled( bool b ) = 0;
85 
87  virtual void setAddVisualDefEnabled( bool b ) = 0;
88 
90  virtual void setRemoveVisualDefEnabled( bool b ) = 0;
91 
93  virtual void setAddAttributeEnabled( bool b ) = 0;
94 
96  virtual void setRemoveAttributeEnabled( bool b ) = 0;
97 
99  virtual void showAddedElements(std::vector<DtUnicode>& addedNames,
100  std::vector<DtUnicode>& skippedNames) = 0;
101 
103  virtual std::vector<std::string> selectedInstancesNames() = 0;
104 
106  virtual bool isEmpty() = 0;
107 
110  virtual const DtUnicode getElementNameAbove(const DtUnicode& name) = 0;
111 
114  virtual const DtUnicode getElementNameBelow(const DtUnicode& name) = 0;
115 
117  virtual bool isLastElementUnder(const DtUnicode& name, const DtUnicode& parentName) = 0;
118 
120  virtual bool isFirstElementUnder(const DtUnicode& name, const DtUnicode& parentName) = 0;
121 
123  virtual void expandItem(const DtUnicode& name) = 0;
124 
125  boost::signal<void (const DtUnicode&)> signal_addElement;
126  boost::signal<void ()> signal_removeElement;
127  boost::signal<void (const DtUnicode&, const DtUnicode&)> signal_renameElement;
128  boost::signal<void (const DtUnicode&)> signal_elementSelected;
129  boost::signal<void (const DtUnicode&)> signal_elementDeselected;
130  boost::signal<void ()> signal_noElementSelected;
131 
132  boost::signal<void (int index)> signal_modelSetChanged;
133 
134  boost::signal<void (int index)> signal_visualizerDefSelected;
135  boost::signal<void (int index)> signal_visualizerDefDeselected;
136  boost::signal<void (int index, const std::string&)> signal_attributeSelected;
137  boost::signal<void (int index, const std::string&)> signal_attributeDeselected;
139 
140  boost::signal<void ()> signal_addVisualizer;
141  boost::signal<void (int index)> signal_removeVisualizer;
142 
143  boost::signal<void (int index)> signal_addAttribute;
144  boost::signal<void (int index, const std::string&)> signal_removeAttribute;
145  boost::signal<void (int index, const std::string&)> signal_removeLocalAttribute;
146 
147  boost::signal<void (int index, const std::string&,
149  };
150 }
151 

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)