OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
SettingsManager.h
Go to the documentation of this file.
1
4// ###########################################################################################################################################################################################################################################################################################################################
5
6#pragma once
7
8// OpenTwin header
11
12// Qt header
13#include <QtCore/qobject.h>
14
15// std header
16#include <string>
17
18class AppBase;
19
20namespace ot { class Property; }
21
22class SettingsManager : public QObject {
23 Q_OBJECT
26public:
28 virtual ~SettingsManager();
29
30 bool showDialog(void);
31
32 const QString& getExternalToolsPath(void) const { return m_externalToolsPath; };
33 const QString& getExternalToolsDebugPath(void) const { return m_externalToolsDebugPath; };
34
35private Q_SLOTS:
36 void slotPropertyChanged(const std::string& _owner, const ot::Property* const _property);
37 void slotPropertyDeleteRequested(const std::string& _owner, const ot::Property* const _property);
38
39private:
40 void generalSettingsChanged(const std::string& _propertyPath, const ot::Property* const _property);
41 void updateSettings(void);
42 void updateGeneralSettings(void);
43
44 AppBase* m_app;
45 ot::ColorStyleName m_currentColorStyle;
46 QString m_externalToolsPath;
47 QString m_externalToolsDebugPath;
48};
This file contains defines that may be used simplyfy class creation.
#define OT_DECL_NODEFAULT(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:22
#define OT_DECL_NOCOPY(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:14
The API manager is used to manage the global objects required for this API to work.
Definition AppBase.h:21
Definition SettingsManager.h:22
virtual ~SettingsManager()
Definition SettingsManager.cpp:31
const QString & getExternalToolsDebugPath(void) const
Definition SettingsManager.h:33
SettingsManager(AppBase *_app)
Definition SettingsManager.cpp:22
bool showDialog(void)
Definition SettingsManager.cpp:35
const QString & getExternalToolsPath(void) const
Definition SettingsManager.h:32
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
ColorStyleName
Contains default OpenTwin color style names.
Definition ColorStyleTypes.h:18