/* * SPDX-FileCopyrightText: 2014 Dmitry Kazakov * SPDX-FileCopyrightText: 2014 Mohit Goyal * * SPDX-License-Identifier: LGPL-2.1-or-later */ #ifndef KIS_LOCKED_PROPERTIES_SERVER_H #define KIS_LOCKED_PROPERTIES_SERVER_H #include #include "kis_properties_configuration.h" class KisLockedPropertiesProxy; /** * The KisLockedPropertiesServer class * This static class stores an object of KisLockedProperties and generates a KisLockedPropertiesProxy used * by other classes/objects to access the LockedProperties object. */ class KRITAIMAGE_EXPORT KisLockedPropertiesServer: public QObject { public: KisLockedPropertiesServer(); ~KisLockedPropertiesServer() override; static KisLockedPropertiesServer* instance(); KisLockedPropertiesSP lockedProperties(); void addToLockedProperties(KisPropertiesConfigurationSP p); void removeFromLockedProperties(KisPropertiesConfigurationSP p); void setPropertiesFromLocked(bool value); bool propertiesFromLocked(); KisLockedPropertiesProxySP createLockedPropertiesProxy(KisPropertiesConfiguration *settings); KisLockedPropertiesProxySP createLockedPropertiesProxy(KisPropertiesConfigurationSP settings); bool hasProperty(const QString &p); private: KisLockedPropertiesSP m_lockedProperties; bool m_propertiesFromLocked; }; #endif // KIS_LOCKED_PROPERTIES_SERVER_H