12#include <QDoubleSpinBox>
15#include <klocalizedstring.h>
16#include <ksharedconfig.h>
26#define MAXIMUM_SMOOTHNESS 1000
27#define MAXIMUM_MAGNETISM 1000
33#define MIN_ACC 0.000001
34#define MIN_VEL 0.000001
40 setObjectName(
"tool_dyna");
78 QRectF imageSize = QRectF(QPointF(0.0,0.0),
currentImage()->size());
177 QPointF prev(px , py);
178 QPointF now(nx , ny);
183 QPointF nowl(nx - delx , ny - dely);
184 QPointF nowr(nx + delx , ny + dely);
205 qreal m_tangentialPressure;
270 optionsWidget->setObjectName(
toolId() +
" option widget");
278 QLabel* massLbl =
new QLabel(i18n(
"Mass:"), optionsWidget);
285 QLabel* dragLbl =
new QLabel(i18n(
"Drag:"), optionsWidget);
315 QLabel* initWidthLbl =
new QLabel(i18n(
"Initial width:"),
optionWidget);
320 QLabel* widthRangeLbl =
new QLabel(i18n(
"Width range:"),
optionWidget);
325 m_initWidthSPBox->setValue(
m_configGroup.readEntry(
"initWidth", 10));
326 m_widthRangeSPBox->setValue(
m_configGroup.readEntry(
"initWidthRange", 20));
331 return optionsWidget;
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
void init(qreal x, qreal y)
@ IncreasingDirection_Clockwise
A widget with several options to select an angle.
@ FlipOptionsMode_MenuButton
The flip options are shown as a menu accessible via a options button.
void setFlipOptionsMode(FlipOptionsMode newMode)
Sets the mode in which the flip options should be shown.
void setIncreasingDirection(KisAngleGauge::IncreasingDirection newIncreasingDirection)
Sets the increasing direction in the angle gauge.
void setAngle(qreal newAngle)
Sets the current angle.
void setDecimals(int newNumberOfDecimals)
Sets the number of decimals (precision) used by the angle.
This class is a spinbox in which you can click and drag to set the value. A slider like bar is displa...
void setValue(qreal newValue)
void setRange(qreal newMinimum, qreal newMaximum, int newNumberOfDecimals=0, bool computeNewFastSliderStep=true)
Set the minimum and the maximum values of the range.
QPointF pixelToDocument(const QPointF &pixelCoord) const
QPointF point
The point in document coordinates.
KUndo2MagicString kundo2_i18n(const char *text)