Debian Codegraph @

libs/image/brushengine/kis_locked_properties_server.h

raw symbols SCIP
1 /*
2 * SPDX-FileCopyrightText: 2014 Dmitry Kazakov <[email protected]>
3 * SPDX-FileCopyrightText: 2014 Mohit Goyal <[email protected]>
4 *
5 * SPDX-License-Identifier: LGPL-2.1-or-later
6 */
7
8 #ifndef KIS_LOCKED_PROPERTIES_SERVER_H
9 #define KIS_LOCKED_PROPERTIES_SERVER_H
10
11 #include <brushengine/kis_locked_properties_proxy.h>
12 #include "kis_properties_configuration.h"
13
14 class KisLockedPropertiesProxy;
15
16 /**
17 * The KisLockedPropertiesServer class
18 * This static class stores an object of KisLockedProperties and generates a KisLockedPropertiesProxy used
19 * by other classes/objects to access the LockedProperties object.
20 */
21
22 class KRITAIMAGE_EXPORT KisLockedPropertiesServer: public QObject
23 {
24 public:
25 KisLockedPropertiesServer();
26 ~KisLockedPropertiesServer() override;
27 static KisLockedPropertiesServer* instance();
28
29 KisLockedPropertiesSP lockedProperties();
30 void addToLockedProperties(KisPropertiesConfigurationSP p);
31 void removeFromLockedProperties(KisPropertiesConfigurationSP p);
32 void setPropertiesFromLocked(bool value);
33 bool propertiesFromLocked();
34 KisLockedPropertiesProxySP createLockedPropertiesProxy(KisPropertiesConfiguration *settings);
35 KisLockedPropertiesProxySP createLockedPropertiesProxy(KisPropertiesConfigurationSP settings);
36 bool hasProperty(const QString &p);
37
38 private:
39
40 KisLockedPropertiesSP m_lockedProperties;
41 bool m_propertiesFromLocked;
42 };
43
44 #endif // KIS_LOCKED_PROPERTIES_SERVER_H