#include <kis_liquify_properties.h>
Definition at line 18 of file kis_liquify_properties.h.
◆ LiquifyMode
◆ KisLiquifyProperties() [1/2]
| KisLiquifyProperties::KisLiquifyProperties |
( |
| ) |
|
|
inline |
◆ KisLiquifyProperties() [2/2]
◆ amount()
| qreal KisLiquifyProperties::amount |
( |
| ) |
const |
|
inline |
◆ amountHasPressure()
| bool KisLiquifyProperties::amountHasPressure |
( |
| ) |
const |
|
inline |
◆ flow()
| qreal KisLiquifyProperties::flow |
( |
| ) |
const |
|
inline |
◆ fromXML()
Definition at line 145 of file kis_liquify_properties.cpp.
146{
148 bool result = false;
149
150 QDomElement liqEl;
151 int newMode = 0;
152
153 result =
155
165
166 if (result && newMode >= 0 && newMode <
N_MODES) {
168 } else {
169 result = false;
170 }
171
172 return props;
173}
bool findOnlyElement(const QDomElement &parent, const QString &tag, QDomElement *el, QStringList *errorMessages)
bool loadValue(const QDomElement &e, float *v)
References KisDomUtils::findOnlyElement(), KisDomUtils::loadValue(), m_amount, m_amountHasPressure, m_flow, m_mode, m_reverseDirection, m_size, m_sizeHasPressure, m_spacing, m_useWashMode, and N_MODES.
◆ loadAndResetMode()
| void KisLiquifyProperties::loadAndResetMode |
( |
| ) |
|
◆ loadMode()
| void KisLiquifyProperties::loadMode |
( |
| ) |
|
◆ maxSize()
| static qreal KisLiquifyProperties::maxSize |
( |
| ) |
|
|
inlinestatic |
◆ minSize()
| static qreal KisLiquifyProperties::minSize |
( |
| ) |
|
|
inlinestatic |
◆ mode()
◆ operator=()
◆ operator==()
◆ reverseDirection()
| bool KisLiquifyProperties::reverseDirection |
( |
| ) |
const |
|
inline |
◆ saveMode()
| void KisLiquifyProperties::saveMode |
( |
| ) |
const |
Definition at line 87 of file kis_liquify_properties.cpp.
88{
89 KConfigGroup cfg =
91
92 cfg.writeEntry(
"size",
m_size);
99 cfg.writeEntry(
"flow",
m_flow);
100
101 KConfigGroup globalCfg = KSharedConfig::openConfig()->group("LiquifyTool");
102 globalCfg.writeEntry(
"mode", (
int)
m_mode);
103}
References liquifyModeString(), m_amount, m_amountHasPressure, m_flow, m_mode, m_reverseDirection, m_size, m_sizeHasPressure, m_spacing, and m_useWashMode.
◆ setAmount()
| void KisLiquifyProperties::setAmount |
( |
qreal | value | ) |
|
|
inline |
◆ setAmountHasPressure()
| void KisLiquifyProperties::setAmountHasPressure |
( |
bool | value | ) |
|
|
inline |
◆ setFlow()
| void KisLiquifyProperties::setFlow |
( |
qreal | value | ) |
|
|
inline |
◆ setMode()
◆ setReverseDirection()
| void KisLiquifyProperties::setReverseDirection |
( |
bool | value | ) |
|
|
inline |
◆ setSize()
| void KisLiquifyProperties::setSize |
( |
qreal | value | ) |
|
|
inline |
◆ setSizeHasPressure()
| void KisLiquifyProperties::setSizeHasPressure |
( |
bool | value | ) |
|
|
inline |
◆ setSpacing()
| void KisLiquifyProperties::setSpacing |
( |
qreal | value | ) |
|
|
inline |
◆ setUseWashMode()
| void KisLiquifyProperties::setUseWashMode |
( |
bool | value | ) |
|
|
inline |
◆ size()
| qreal KisLiquifyProperties::size |
( |
| ) |
const |
|
inline |
◆ sizeHasPressure()
| bool KisLiquifyProperties::sizeHasPressure |
( |
| ) |
const |
|
inline |
◆ spacing()
| qreal KisLiquifyProperties::spacing |
( |
| ) |
const |
|
inline |
◆ toXML()
| void KisLiquifyProperties::toXML |
( |
QDomElement * | e | ) |
const |
Definition at line 128 of file kis_liquify_properties.cpp.
129{
130 QDomDocument doc = e->ownerDocument();
131 QDomElement liqEl = doc.createElement("liquify_properties");
132 e->appendChild(liqEl);
133
143}
void saveValue(QDomElement *parent, const QString &tag, const QSize &size)
References m_amount, m_amountHasPressure, m_flow, m_mode, m_reverseDirection, m_size, m_sizeHasPressure, m_spacing, m_useWashMode, and KisDomUtils::saveValue().
◆ useWashMode()
| bool KisLiquifyProperties::useWashMode |
( |
| ) |
const |
|
inline |
◆ m_amount
| qreal KisLiquifyProperties::m_amount |
|
private |
◆ m_amountHasPressure
| bool KisLiquifyProperties::m_amountHasPressure |
|
private |
◆ m_flow
| qreal KisLiquifyProperties::m_flow |
|
private |
◆ m_mode
◆ m_reverseDirection
| bool KisLiquifyProperties::m_reverseDirection |
|
private |
◆ m_size
| qreal KisLiquifyProperties::m_size |
|
private |
◆ m_sizeHasPressure
| bool KisLiquifyProperties::m_sizeHasPressure |
|
private |
◆ m_spacing
| qreal KisLiquifyProperties::m_spacing |
|
private |
◆ m_useWashMode
| bool KisLiquifyProperties::m_useWashMode |
|
private |
The documentation for this class was generated from the following files: