#include <kis_layer_properties_icons.h>
|
| static KisBaseNode::Property | getColorSpaceMismatchProperty (const KoColorSpace *cs) |
| |
| static KisBaseNode::Property | getErrorProperty (const QString &message) |
| |
| static KisBaseNode::Property | getProperty (const KoID &id, bool state) |
| |
| static KisBaseNode::Property | getProperty (const KoID &id, bool state, bool isInStasis, bool stateInStasis) |
| |
| static KisLayerPropertiesIcons * | instance () |
| |
| static QVariant | nodeProperty (KisNodeSP node, const KoID &id, const QVariant &defaultValue) |
| |
| static void | setNodeProperty (KisBaseNode::PropertyList *props, const KoID &id, const QVariant &value) |
| |
| static void | setNodePropertyAutoUndo (KisNodeSP node, const KoID &id, const QVariant &value, KisImageSP image) |
| |
◆ KisLayerPropertiesIcons()
| KisLayerPropertiesIcons::KisLayerPropertiesIcons |
( |
| ) |
|
◆ ~KisLayerPropertiesIcons()
| KisLayerPropertiesIcons::~KisLayerPropertiesIcons |
( |
| ) |
|
◆ getColorSpaceMismatchProperty()
Definition at line 124 of file kis_layer_properties_icons.cpp.
125{
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",
131
133
137 prop.
state = message;
140
141 return prop;
142}
static const KoID layerColorSpaceMismatch
static KisLayerPropertiesIcons * instance()
virtual const KoColorProfile * profile() const =0
References KoID::id(), KisBaseNode::Property::id, instance(), layerColorSpaceMismatch, m_d, KoID::name(), KisBaseNode::Property::name, KoColorProfile::name, KoColorSpace::name, KisBaseNode::Property::offIcon, KisBaseNode::Property::onIcon, KoColorSpace::profile(), and KisBaseNode::Property::state.
◆ getErrorProperty()
Definition at line 110 of file kis_layer_properties_icons.cpp.
111{
113
117 prop.
state = message;
120
121 return prop;
122}
static const KoID layerError
References KoID::id(), KisBaseNode::Property::id, instance(), layerError, m_d, KoID::name(), KisBaseNode::Property::name, IconsPair::off, KisBaseNode::Property::offIcon, IconsPair::on, KisBaseNode::Property::onIcon, and KisBaseNode::Property::state.
◆ getProperty() [1/2]
◆ getProperty() [2/2]
| KisBaseNode::Property KisLayerPropertiesIcons::getProperty |
( |
const KoID & | id, |
|
|
bool | state, |
|
|
bool | isInStasis, |
|
|
bool | stateInStasis ) |
|
static |
◆ instance()
◆ nodeProperty()
| QVariant KisLayerPropertiesIcons::nodeProperty |
( |
KisNodeSP | node, |
|
|
const KoID & | id, |
|
|
const QVariant & | defaultValue ) |
|
static |
Gets the specified property of the node
Definition at line 163 of file kis_layer_properties_icons.cpp.
164{
166
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()) {
171 return it->state;
172 }
173 }
174
175 return defaultValue;
176}
virtual PropertyList sectionModelProperties() const
References KisBaseNode::sectionModelProperties().
◆ setNodeProperty()
Definition at line 151 of file kis_layer_properties_icons.cpp.
152{
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()) {
158 break;
159 }
160 }
161}
float value(const T *src, size_t ch)
References value().
◆ setNodePropertyAutoUndo()
◆ updateIcons()
| void KisLayerPropertiesIcons::updateIcons |
( |
| ) |
|
Definition at line 73 of file kis_layer_properties_icons.cpp.
74{
91
92}
static const KoID selectionActive
static const KoID colorizeEditKeyStrokes
static const KoID layerStyle
static const KoID antialiased
static const KoID inheritAlpha
static const KoID onionSkins
static const KoID passThrough
static const KoID alphaLocked
static const KoID openFileLayerFile
static const KoID colorizeShowColoring
static const KoID visible
static const KoID colorizeNeedsUpdate
QIcon loadIcon(const QString &name)
References alphaLocked, antialiased, colorizeEditKeyStrokes, colorizeNeedsUpdate, colorizeShowColoring, KoID::id(), inheritAlpha, layerColorSpaceMismatch, layerError, layerStyle, KisIconUtils::loadIcon(), locked, m_d, onionSkins, openFileLayerFile, passThrough, selectionActive, and visible.
◆ alphaLocked
| const KoID KisLayerPropertiesIcons::alphaLocked |
|
static |
◆ antialiased
| const KoID KisLayerPropertiesIcons::antialiased |
|
static |
◆ colorizeEditKeyStrokes
| const KoID KisLayerPropertiesIcons::colorizeEditKeyStrokes |
|
static |
◆ colorizeNeedsUpdate
| const KoID KisLayerPropertiesIcons::colorizeNeedsUpdate |
|
static |
◆ colorizeShowColoring
| const KoID KisLayerPropertiesIcons::colorizeShowColoring |
|
static |
◆ colorLabelIndex
| const KoID KisLayerPropertiesIcons::colorLabelIndex |
|
static |
◆ colorOverlay
| const KoID KisLayerPropertiesIcons::colorOverlay |
|
static |
◆ inheritAlpha
| const KoID KisLayerPropertiesIcons::inheritAlpha |
|
static |
◆ layerColorSpaceMismatch
| const KoID KisLayerPropertiesIcons::layerColorSpaceMismatch |
|
static |
◆ layerError
| const KoID KisLayerPropertiesIcons::layerError |
|
static |
◆ layerStyle
| const KoID KisLayerPropertiesIcons::layerStyle |
|
static |
◆ locked
| const KoID KisLayerPropertiesIcons::locked |
|
static |
◆ m_d
| const QScopedPointer<Private> KisLayerPropertiesIcons::m_d |
|
private |
◆ onionSkins
| const KoID KisLayerPropertiesIcons::onionSkins |
|
static |
◆ openFileLayerFile
| const KoID KisLayerPropertiesIcons::openFileLayerFile |
|
static |
◆ passThrough
| const KoID KisLayerPropertiesIcons::passThrough |
|
static |
◆ selectionActive
| const KoID KisLayerPropertiesIcons::selectionActive |
|
static |
◆ visible
| const KoID KisLayerPropertiesIcons::visible |
|
static |
The documentation for this class was generated from the following files: