9#include <ksharedconfig.h>
15 , m_resolution(resolution)
16 , m_showCoordinates(false)
25 radioSelectedLayer->setChecked(
true);
27 radioFirstLayer->setChecked(
true);
29 radioGroup->setChecked(
true);
40 spinMoveScale->blockSignals(
true);
42 spinMoveScale->setSuffix(
"x");
43 spinMoveScale->blockSignals(
false);
51 translateXBox->setSuffix(i18n(
" px"));
52 translateYBox->setSuffix(i18n(
" px"));
53 translateXBox->setRange(-10000, 10000);
54 translateYBox->setRange(-10000, 10000);
62 spinMoveStep->setRange(0.0001, 10000.000);
63 spinMoveStep->setSingleStep(0.1);
64 spinMoveStep->setDecimals(4);
67 spinMoveStep->setRange(1, 10000);
68 spinMoveStep->setSingleStep(1);
69 spinMoveStep->setDecimals(0);
73 spinMoveStep->blockSignals(
true);
74 spinMoveStep->setValue(valueForUI);
75 spinMoveStep->blockSignals(
false);
125 m_configGroup.writeEntry(
"moveToolMode",
static_cast<int>(newMode));
156 chkShowCoordinates->setChecked(
value);
161 translateXBox->setValue(newPos.x());
162 translateYBox->setValue(newPos.y());
float value(const T *src, size_t ch)
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
qreal fromUserValue(qreal value) const
static KoUnit fromListForUi(int index, ListOptions listOptions=ListAll, qreal factor=1.0)
static QStringList listOfUnitNameForUi(ListOptions listOptions=ListAll)
Returns the list of unit types for the UI, controlled with the given listOptions.
qreal toUserValue(qreal ptValue, bool rounding=true) const
int indexInListForUi(ListOptions listOptions=ListAll) const