Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_liquify_properties.cpp File Reference
#include "kis_liquify_properties.h"
#include <QDomElement>
#include <kconfig.h>
#include <kconfiggroup.h>
#include <ksharedconfig.h>
#include "kis_debug.h"
#include "kis_dom_utils.h"

Go to the source code of this file.

Functions

QString liquifyModeString (KisLiquifyProperties::LiquifyMode mode)
 
QDebug operator<< (QDebug dbg, const KisLiquifyProperties &props)
 

Function Documentation

◆ liquifyModeString()

QString liquifyModeString ( KisLiquifyProperties::LiquifyMode mode)

Definition at line 60 of file kis_liquify_properties.cpp.

61{
62 QString result;
63
64 switch (mode) {
66 result = "Move";
67 break;
69 result = "Scale";
70 break;
72 result = "Rotate";
73 break;
75 result = "Offset";
76 break;
78 result = "Undo";
79 break;
81 qFatal("Unsupported mode");
82 }
83
84 return QString("LiquifyTool/%1").arg(result);
85}

References KisLiquifyProperties::MOVE, KisLiquifyProperties::N_MODES, KisLiquifyProperties::OFFSET, KisLiquifyProperties::ROTATE, KisLiquifyProperties::SCALE, and KisLiquifyProperties::UNDO.

◆ operator<<()

QDebug operator<< ( QDebug dbg,
const KisLiquifyProperties & props )

Definition at line 176 of file kis_liquify_properties.cpp.

177{
178 dbg.nospace() << "\nKisLiquifyProperties(";
179 dbg.space() << "\n " << ppVar(props.mode());
180 dbg.space() << "\n " << ppVar(props.size());
181 dbg.space() << "\n " << ppVar(props.amount());
182 dbg.space() << "\n " << ppVar(props.spacing());
183 dbg.space() << "\n " << ppVar(props.sizeHasPressure());
184 dbg.space() << "\n " << ppVar(props.amountHasPressure());
185 dbg.space() << "\n " << ppVar(props.reverseDirection());
186 dbg.space() << "\n " << ppVar(props.useWashMode());
187 dbg.space() << "\n " << ppVar(props.flow());
188 dbg.space() << "\n );\n";
189 return dbg.nospace();
190}
#define ppVar(var)
Definition kis_debug.h:155

References KisLiquifyProperties::amount(), KisLiquifyProperties::amountHasPressure(), KisLiquifyProperties::flow(), KisLiquifyProperties::mode(), ppVar, KisLiquifyProperties::reverseDirection(), KisLiquifyProperties::size(), KisLiquifyProperties::sizeHasPressure(), KisLiquifyProperties::spacing(), and KisLiquifyProperties::useWashMode().