11#include <QGlobalStatic>
14#include <KoColorSpace.h>
49 return state ?
on :
off;
98 pair.
on, pair.
off, state);
102 bool isInStasis,
bool stateInStasis)
106 pair.
on, pair.
off, state,
107 isInStasis, stateInStasis);
117 prop.
state = message;
126 const QString message =
127 i18nc(
"a tooltip shown in when hovering layer's property",
128 "Layer color space is different from the image color space:\n%1 [%2],\noperations may be slow",
137 prop.
state = message;
153 KisBaseNode::PropertyList::iterator it = props->begin();
154 KisBaseNode::PropertyList::iterator end = props->end();
155 for (; it != end; ++it) {
156 if (it->id ==
id.id()) {
167 KisBaseNode::PropertyList::const_iterator it = props.constBegin();
168 KisBaseNode::PropertyList::const_iterator end = props.constEnd();
169 for (; it != end; ++it) {
170 if (it->id ==
id.id()) {
float value(const T *src, size_t ch)
Q_GLOBAL_STATIC(KisStoragePluginRegistry, s_instance)
static const KoID selectionActive
static const KoID colorizeEditKeyStrokes
~KisLayerPropertiesIcons()
static QVariant nodeProperty(KisNodeSP node, const KoID &id, const QVariant &defaultValue)
static const KoID layerColorSpaceMismatch
static KisBaseNode::Property getColorSpaceMismatchProperty(const KoColorSpace *cs)
static const KoID layerStyle
static const KoID layerError
static const KoID colorLabelIndex
static const KoID antialiased
static KisBaseNode::Property getErrorProperty(const QString &message)
static void setNodeProperty(KisBaseNode::PropertyList *props, const KoID &id, const QVariant &value)
static const KoID inheritAlpha
static const KoID onionSkins
const QScopedPointer< Private > m_d
static const KoID passThrough
static const KoID alphaLocked
static const KoID colorOverlay
static const KoID openFileLayerFile
static void setNodePropertyAutoUndo(KisNodeSP node, const KoID &id, const QVariant &value, KisImageSP image)
KisLayerPropertiesIcons()
static const KoID colorizeShowColoring
static KisBaseNode::Property getProperty(const KoID &id, bool state)
static const KoID visible
static KisLayerPropertiesIcons * instance()
static const KoID colorizeNeedsUpdate
static void setNodePropertiesAutoUndo(KisNodeSP node, KisImageSP image, PropertyList proplist)
virtual const KoColorProfile * profile() const =0
QIcon loadIcon(const QString &name)
const QIcon & getIcon(bool state)
IconsPair(const QIcon &_on, const QIcon &_off)
virtual PropertyList sectionModelProperties() const
QMap< QString, IconsPair > icons