Changeset View
Changeset View
Standalone View
Standalone View
plugins/flake/artistictextshape/SelectTextStrategy.h
Show All 26 Lines | |||||
27 | 27 | | |||
28 | /// A strategy to select text on a artistic text shape | 28 | /// A strategy to select text on a artistic text shape | ||
29 | class SelectTextStrategy : public KoInteractionStrategy | 29 | class SelectTextStrategy : public KoInteractionStrategy | ||
30 | { | 30 | { | ||
31 | public: | 31 | public: | ||
32 | SelectTextStrategy(ArtisticTextTool *textTool, int cursor); | 32 | SelectTextStrategy(ArtisticTextTool *textTool, int cursor); | ||
33 | ~SelectTextStrategy() override; | 33 | ~SelectTextStrategy() override; | ||
34 | 34 | | |||
35 | // reimplemnted from KoInteractionStrategy | 35 | // reimplemented from KoInteractionStrategy | ||
36 | void handleMouseMove(const QPointF &mouseLocation, Qt::KeyboardModifiers modifiers) override; | 36 | void handleMouseMove(const QPointF &mouseLocation, Qt::KeyboardModifiers modifiers) override; | ||
37 | // reimplemnted from KoInteractionStrategy | 37 | // reimplemented from KoInteractionStrategy | ||
38 | KUndo2Command *createCommand() override; | 38 | KUndo2Command *createCommand() override; | ||
39 | // reimplemnted from KoInteractionStrategy | 39 | // reimplemented from KoInteractionStrategy | ||
40 | void finishInteraction(Qt::KeyboardModifiers modifiers) override; | 40 | void finishInteraction(Qt::KeyboardModifiers modifiers) override; | ||
41 | 41 | | |||
42 | private: | 42 | private: | ||
43 | ArtisticTextToolSelection *m_selection; | 43 | ArtisticTextToolSelection *m_selection; | ||
44 | int m_oldCursor; | 44 | int m_oldCursor; | ||
45 | int m_newCursor; | 45 | int m_newCursor; | ||
46 | }; | 46 | }; | ||
47 | 47 | | |||
48 | #endif // SELECTTEXTSTRATEGY_H | 48 | #endif // SELECTTEXTSTRATEGY_H |