22#include "pointerevent.h"
23#include "preferencesdef.h"
24#include "strokeinterpolator.h"
25#include "undoredomanager.h"
27#include "canvascursorpainter.h"
28#include "radialoffsettool.h"
44 void startStroke(PointerEvent::InputType inputType);
51 void updateCanvasCursor();
54 bool isActive()
const override {
return mInterpolator.isActive(); }
61 bool leaveEvent(
QEvent*)
override;
65 void paint(
QPainter& painter,
const QRect& blitRect)
override;
67 virtual void setStablizationLevel(
int level);
68 virtual void setWidth(qreal width);
69 virtual void setFeather(qreal feather);
70 virtual void setPressureEnabled(
bool enabled);
71 virtual void setFeatherEnabled(
bool enabled);
72 virtual void setAntiAliasingEnabled(
bool enabled);
73 virtual void setFillContourEnabled(
bool enabled);
74 virtual void setStrokeInvisibleEnabled(
bool enabled);
77 void widthChanged(qreal value);
78 void featherChanged(qreal value);
79 void pressureEnabledChanged(
bool enabled);
80 void featherEnabledChanged(
bool enabled);
81 void antiAliasingEnabledChanged(
bool enabled);
82 void fillContourEnabledChanged(
bool enabled);
83 void invisibleStrokeEnabledChanged(
bool enabled);
84 void stabilizationLevelChanged(
int level);
87 void onPreferenceChanged(SETTING setting);
91 QPointF getCurrentPressPixel()
const;
92 QPointF getCurrentPressPoint()
const;
93 QPointF getCurrentPixel()
const;
94 QPointF getCurrentPoint()
const;
98 QRectF cursorRect(StrokeToolProperties::Type settingType,
const QPointF& point);
100 static bool mQuickSizingEnabled;
103 bool mFirstDraw =
false;
108 qreal mCurrentWidth = 0.0;
109 qreal mCurrentPressure = 0.5;
111 PointerEvent::InputType mCurrentInputType = PointerEvent::Unknown;
120 bool mCanvasCursorEnabled =
false;
127 static const qreal FEATHER_MIN;
128 static const qreal FEATHER_MAX;
129 static const qreal WIDTH_MIN;
130 static const qreal WIDTH_MAX;
virtual bool event(QEvent *e)
QObject * parent() const const
This is the main undo/redo state structure which is meant to populate whatever states that needs to b...