OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
UserSettings.h
Go to the documentation of this file.
1#pragma once
2
3#include "OTCore/JSON.h"
5
6#include <qobject.h>
7#include <qstring.h>
8#include <qstringlist.h>
9
10#include <map>
11#include <list>
12
13namespace ot { class Property; }
14
15class UserSettings : public QObject {
16 Q_OBJECT
18public:
19 static UserSettings& instance(void);
20
21 void showDialog(void);
22
23 void showDialog(const QString& _group);
24
25 // #######################################################################################
26
27 // Data management
28
29 void clear(void);
30
31 void addSettings(const std::string& _serviceName, const ot::PropertyGridCfg& _config);
32
33 // #######################################################################################
34
35private Q_SLOTS:
36 void slotItemChanged(const std::string& _owner, const ot::Property* _property);
37
38private:
40
41};
#define OT_DECL_NOCOPY(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:14
Definition UserSettings.h:15
void clear(void)
Definition UserSettings.cpp:22
void addSettings(const std::string &_serviceName, const ot::PropertyGridCfg &_config)
Definition UserSettings.cpp:26
static UserSettings & instance(void)
Definition UserSettings.cpp:9
void showDialog(void)
Definition UserSettings.cpp:14
Definition PropertyGridCfg.h:21
The Property class is used as a base class for all Properties that can be displayed and modified in t...
Definition Property.h:21
Definition Connector.h:8