VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 
17 namespace makVrv
18 {
23  {
24  public:
25  virtual ~DtMultiMapEditorInterface();
26 
29  virtual void setPossibleValues(QStringList values,int column = 1) = 0;
30 
32  virtual void addValue(const std::string& key, const std::string& value,
33  int index = 1) = 0;
34 
36  virtual void changeValue(const std::string& key, const std::string& oldValue,
37  const std::string& value, int index = 1) = 0;
38 
40  virtual void deleteValue(const std::string& key, const std::string& value) = 0;
41 
43  virtual void replaceValue(const std::string& key,
44  const std::string& oldValue, const std::string& newValue) = 0;
45 
47  virtual void clearValues() = 0;
48 
50  virtual void unableToRenameParameter(const std::string& oldName) = 0;
51 
53  virtual void sortItems() = 0;
54 
56  virtual void selectValue(const std::string& key,const std::string& value) = 0;
57 
59  virtual void selectFirstValue(const std::string& key) = 0;
60 
64  virtual void renameKey(const std::string& oldkey, const std::string& value,
65  const std::string& newkey) = 0;
66 
68  virtual void setTitle(const QString&) = 0;
69 
72  virtual bool selectedInstanceNameAndValue(QString& key, QString& value) const = 0;
73 
75  virtual QWidget* widget() = 0;
76 
79  virtual void setValid(const std::string& name, const std::string& value, bool valid, const QString& errorText) = 0;
80 
82  boost::signal<void (const std::string& oldName,const std::string& value, const std::string& newName)> signal_renameValue;
83 
86  boost::signal<void (const std::string& key,const std::string& value, int index)> signal_addValue;
87 
90  boost::signal<void (const std::string& key,const std::string& oldValue, const std::string& value, int index)> signal_valueChanged;
91 
93  boost::signal<void (const std::string& key, const std::string& value)> signal_deleteValue;
94 
95  boost::signal<void (const std::string& key)> signal_itemSelected;
96  };
97 }

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)