Krita Source Code Documentation
Loading...
Searching...
No Matches
SvgMoveTextStrategy.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2023 Alvin Wong <alvin@alvinhc.com>
3 *
4 * SPDX-License-Identifier: GPL-3.0-or-later
5 */
6
7#ifndef SVG_MOVE_TEXT_STRATEGY_H
8#define SVG_MOVE_TEXT_STRATEGY_H
9
11
12#include <QPointF>
13
14class KoSvgTextShape;
15
17{
18public:
19 SvgMoveTextStrategy(KoToolBase *tool, KoSvgTextShape *shape, const QPointF &clicked);
20 ~SvgMoveTextStrategy() override = default;
21
22 void handleMouseMove(const QPointF &mouseLocation, Qt::KeyboardModifiers modifiers) override;
23 KUndo2Command *createCommand() override;
24 void cancelInteraction() override;
25 void finishInteraction(Qt::KeyboardModifiers modifiers) override;
26
27private:
29 QPointF m_dragStart;
33};
34
35#endif /* SVG_MOVE_TEXT_STRATEGY_H */
~SvgMoveTextStrategy() override=default
SvgMoveTextStrategy(KoToolBase *tool, KoSvgTextShape *shape, const QPointF &clicked)
KUndo2Command * createCommand() override
void handleMouseMove(const QPointF &mouseLocation, Qt::KeyboardModifiers modifiers) override
KoSvgTextShape * m_shape
void cancelInteraction() override
void finishInteraction(Qt::KeyboardModifiers modifiers) override