Warning, file /graphics/krita/libs/image/brushengine/kis_locked_properties.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 * SPDX-FileCopyrightText: 2014 Dmitry Kazakov <dimula73@gmail.com> 0003 * SPDX-FileCopyrightText: 2014 Mohit Goyal <mohit.bits2011@gmail.com> 0004 * 0005 * SPDX-License-Identifier: LGPL-2.1-or-later 0006 */ 0007 #ifndef KISLOCKEDPROPERTIES_H 0008 #define KISLOCKEDPROPERTIES_H 0009 0010 #include "kis_properties_configuration.h" 0011 0012 /** 0013 * This class maintains a list of all the PaintOp Options that are supposed to be 0014 * constant across all paintops and presets. 0015 * addToLockedProperties() adds all the settings mentioned in the parameter to the list 0016 * removeFromLockedProperties() removes a particular set of properties from the list 0017 * hasProperty() checks for a particular property in the list 0018 */ 0019 class KisLockedProperties : public KisShared 0020 { 0021 public: 0022 KisLockedProperties(); 0023 ~KisLockedProperties(); 0024 0025 /**Whenever any setting is made locked**/ 0026 void addToLockedProperties(KisPropertiesConfigurationSP p); 0027 void addToLockedProperties(const KisPropertiesConfiguration *p); 0028 0029 /**Whenever any property is unlocked**/ 0030 void removeFromLockedProperties(KisPropertiesConfigurationSP p); 0031 void removeFromLockedProperties(const KisPropertiesConfiguration *p); 0032 bool hasProperty(const QString &p); 0033 0034 KisPropertiesConfigurationSP lockedProperties(); 0035 0036 private: 0037 Q_DISABLE_COPY(KisLockedProperties) 0038 KisPropertiesConfigurationSP m_lockedProperties; 0039 }; 0040 0041 #endif // KISLOCKEDPROPERTIES_H