VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtMultiMapEditorInterface.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtMultiMapEditorInterface.h,v $ $Revision: 1.6 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 #include <vrvCoreQt/vrvCoreQt.h>
15 #include <QtCore/QStringList>
16 #include <QtWidgets/QWidget>
17 
18 namespace makVrv
19 {
24  {
25  public:
26  virtual ~DtMultiMapEditorInterface();
27 
30  virtual void setPossibleValues(QStringList values, int column = 1) = 0;
31 
33  virtual void addValue(const std::string& key, const std::string& value,
34  int index = 1) = 0;
35 
37  virtual void changeValue(const std::string& key, const std::string& oldValue,
38  const std::string& value, int index = 1) = 0;
39 
41  virtual void deleteValue(const std::string& key, const std::string& value) = 0;
42 
44  virtual void deleteValues(const std::vector<std::string>& key, const std::vector<std::string>& value) = 0;
45 
47  virtual void replaceValue(const std::string& key,
48  const std::string& oldValue, const std::string& newValue) = 0;
49 
51  virtual void clearValues() = 0;
52 
54  virtual void unableToRenameParameter(const std::string& oldName) = 0;
55 
57  virtual void sortItems() = 0;
58 
60  virtual void selectValue(const std::string& key, const std::string& value) = 0;
61 
63  virtual void selectFirstValue(const std::string& key) = 0;
64 
68  virtual void renameKey(const std::string& oldkey, const std::string& value,
69  const std::string& newkey) = 0;
70 
72  virtual void setTitle(const QString&) = 0;
73 
76  virtual bool selectedInstanceNameAndValue(std::vector<std::string>& keys, std::vector<std::string>& values) const = 0;
77 
79  virtual QWidget* widget() = 0;
80 
83  virtual void setValid(const std::string& name, const std::string& value, bool valid, const QString& errorText) = 0;
84 
86  virtual void showErrors() = 0;
87 
89  virtual std::vector<std::string> selectedInstancesNames() = 0;
90 
92  boost::signal<void (const std::string& oldName,const std::string& value, const std::string& newName)> signal_renameValue;
93 
96  boost::signal<void (const std::string& key,const std::string& value, int index)> signal_addValue;
97 
100  boost::signal<void (const std::string& key,const std::string& oldValue, const std::string& value, int index)> signal_valueChanged;
101 
103  boost::signal<void(const std::vector<std::string>& keys, const std::vector<std::string>& values)> signal_deleteValue;
104 
106  boost::signal<void (const std::string& key)> signal_itemSelected;
107  };
108 }

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)