| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 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 |
|
| 18 |
|
| 19 |
|
| 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 |