VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtMapEditorInterface.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #ifndef DtMapEditorInterface_H_
11 #define DtMapEditorInterface_H_
12 
14 
15 namespace makVrv
16 {
20  {
21  public:
22  virtual ~DtMapEditorInterface();
23 
26  virtual void setPossibleValues(QStringList values,int column = 1) = 0;
27 
29  virtual void setValue(const std::string& key, const std::string& value, int index = 1,
31 
33  virtual void deleteValue(const std::string& key) = 0;
34 
36  virtual void clearValues() = 0;
37 
39  virtual void unableToRenameParameter(const std::string& oldName) = 0;
40 
42  virtual void selectValue(const std::string& key) = 0;
43 
47  virtual void renameKey(const std::string& oldkey, const std::string& newkey) = 0;
48 
50  virtual void setLabelText(const std::string&) = 0;
51 
54  virtual void setUseSpacer(bool) = 0;
55 
57  virtual void sortValues() = 0;
58 
60  virtual void setKeyTextColour( const std::string& key, int r, int g, int b, int a, int index = 1 ) = 0;
61 
63  boost::signalslib::signal<void (const std::string& oldName,const std::string& newName)> signal_renameValue;
64 
67  boost::signalslib::signal<void (const std::string& key,const std::string& value, int index)> signal_addValue;
68 
69  boost::signalslib::signal<void()> signal_changeFileName;
70 
71  boost::signalslib::signal<void()> signal_changeFileFilter;
72 
74  boost::signalslib::signal<void (const std::string& key)> signal_deleteValue;
75 
77  boost::signalslib::signal<void (const std::string& key)> signal_itemSelected;
78  };
79 }
80 
81 #endif
82 
boost::signalslib::signal< void(const std::string &key, const std::string &value, int index)> signal_addValue
Signal emitted when the user wants to add a new key/value. Optionally there is an index provided for ...
Definition: DtMapEditorInterface.h:67
boost::signalslib::signal< void()> signal_changeFileFilter
Definition: DtMapEditorInterface.h:71
EditorType
Definition: DtCustomTreeWidgetEditor.h:32
Contains makVrv::DtCustomTreeWidgetEditor class.
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
boost::signalslib::signal< void()> signal_changeFileName
Definition: DtMapEditorInterface.h:69
boost::signalslib::signal< void(const std::string &key)> signal_deleteValue
Signal emitted when the user wants to delete a key value.
Definition: DtMapEditorInterface.h:74
Interface for a key/value pair editor GUI.
Definition: DtMapEditorInterface.h:19
Definition: DtCustomTreeWidgetEditor.h:34
boost::signalslib::signal< void(const std::string &oldName, const std::string &newName)> signal_renameValue
Signal emitted when the user wants to rename a key.
Definition: DtMapEditorInterface.h:63
boost::signalslib::signal< void(const std::string &key)> signal_itemSelected
Signal emitted when a value is selected.
Definition: DtMapEditorInterface.h:77

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)