Changeset View
Changeset View
Standalone View
Standalone View
krita/plugins/tools/defaulttools/kis_tool_path.h
Show All 36 Lines | 35 | public: | |||
---|---|---|---|---|---|
37 | 37 | | |||
38 | virtual void paintPath(KoPathShape &path, QPainter &painter, const KoViewConverter &converter); | 38 | virtual void paintPath(KoPathShape &path, QPainter &painter, const KoViewConverter &converter); | ||
39 | virtual void addPathShape(KoPathShape* pathShape); | 39 | virtual void addPathShape(KoPathShape* pathShape); | ||
40 | 40 | | |||
41 | using KoCreatePathTool::createOptionWidgets; | 41 | using KoCreatePathTool::createOptionWidgets; | ||
42 | using KoCreatePathTool::endPathWithoutLastPoint; | 42 | using KoCreatePathTool::endPathWithoutLastPoint; | ||
43 | using KoCreatePathTool::endPath; | 43 | using KoCreatePathTool::endPath; | ||
44 | using KoCreatePathTool::cancelPath; | 44 | using KoCreatePathTool::cancelPath; | ||
45 | using KoCreatePathTool::removeLastPoint; | ||||
45 | 46 | | |||
46 | private: | 47 | private: | ||
47 | KisToolPath* const m_parentTool; | 48 | KisToolPath* const m_parentTool; | ||
48 | }; | 49 | }; | ||
49 | 50 | | |||
50 | typedef KisDelegatedTool<KisToolShape, | 51 | typedef KisDelegatedTool<KisToolShape, | ||
51 | __KisToolPathLocalTool, | 52 | __KisToolPathLocalTool, | ||
52 | DeselectShapesActivationPolicy> DelegatedPathTool; | 53 | DeselectShapesActivationPolicy> DelegatedPathTool; | ||
53 | 54 | | |||
54 | class KisToolPath : public DelegatedPathTool | 55 | class KisToolPath : public DelegatedPathTool | ||
55 | { | 56 | { | ||
56 | Q_OBJECT | 57 | Q_OBJECT | ||
57 | 58 | | |||
58 | public: | 59 | public: | ||
59 | KisToolPath(KoCanvasBase * canvas); | 60 | KisToolPath(KoCanvasBase * canvas); | ||
60 | void mousePressEvent(KoPointerEvent *event); | 61 | void mousePressEvent(KoPointerEvent *event); | ||
61 | 62 | | |||
62 | virtual QList< QPointer<QWidget> > createOptionWidgets(); | 63 | virtual QList< QPointer<QWidget> > createOptionWidgets(); | ||
63 | 64 | | |||
65 | bool eventFilter(QObject *obj, QEvent *event); | ||||
64 | void beginAlternateAction(KoPointerEvent *event, AlternateAction action); | 66 | void beginAlternateAction(KoPointerEvent *event, AlternateAction action); | ||
65 | void continueAlternateAction(KoPointerEvent *event, AlternateAction action); | 67 | void continueAlternateAction(KoPointerEvent *event, AlternateAction action); | ||
66 | void endAlternateAction(KoPointerEvent *event, AlternateAction action); | 68 | void endAlternateAction(KoPointerEvent *event, AlternateAction action); | ||
67 | 69 | | |||
68 | protected: | 70 | protected: | ||
69 | void requestStrokeCancellation(); | 71 | void requestStrokeCancellation(); | ||
70 | void requestStrokeEnd(); | 72 | void requestStrokeEnd(); | ||
71 | 73 | | |||
Show All 30 Lines |