22#include "pointerevent.h"
23#include "preferencesdef.h"
24#include "strokeinterpolator.h"
25#include "undoredomanager.h"
27#include "canvascursorpainter.h"
28#include "radialoffsettool.h"
41 void startStroke(PointerEvent::InputType inputType);
48 void updateCanvasCursor();
50 static const qreal FEATHER_MIN;
51 static const qreal FEATHER_MAX;
52 static const qreal WIDTH_MIN;
53 static const qreal WIDTH_MAX;
56 bool isActive()
const override {
return mInterpolator.isActive(); }
63 bool leaveEvent(
QEvent*)
override;
67 void paint(
QPainter& painter,
const QRect& blitRect)
override;
70 void onPreferenceChanged(SETTING setting);
74 QPointF getCurrentPressPixel()
const;
75 QPointF getCurrentPressPoint()
const;
76 QPointF getCurrentPixel()
const;
77 QPointF getCurrentPoint()
const;
81 QRectF cursorRect(ToolPropertyType settingType,
const QPointF& point);
83 static bool mQuickSizingEnabled;
86 bool mFirstDraw =
false;
91 qreal mCurrentWidth = 0.0;
92 qreal mCurrentPressure = 0.5;
94 PointerEvent::InputType mCurrentInputType = PointerEvent::Unknown;
103 bool mCanvasCursorEnabled =
false;
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...