Krita Source Code Documentation
Loading...
Searching...
No Matches
SvgSelectTextStrategy.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2023 Wolthera van Hövell tot Westerflier <griffinvalley@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-3.0-or-later
5 */
6#ifndef SVGSELECTTEXTSTRATEGY_H
7#define SVGSELECTTEXTSTRATEGY_H
8
10#include <QPointF>
11
12class SvgTextCursor;
13
15{
16public:
17 SvgSelectTextStrategy(KoToolBase *tool, SvgTextCursor *cursor, const QPointF &clicked);
18 ~SvgSelectTextStrategy() override = default;
19
20 void handleMouseMove(const QPointF &mouseLocation, Qt::KeyboardModifiers modifiers) override;
21 KUndo2Command *createCommand() override;
22 void cancelInteraction() override;
23 void finishInteraction(Qt::KeyboardModifiers modifiers) override;
24
25private:
27 QPointF m_dragStart;
28 QPointF m_dragEnd;
29};
30
31#endif // SVGSELECTTEXTSTRATEGY_H
~SvgSelectTextStrategy() override=default
void finishInteraction(Qt::KeyboardModifiers modifiers) override
SvgSelectTextStrategy(KoToolBase *tool, SvgTextCursor *cursor, const QPointF &clicked)
void handleMouseMove(const QPointF &mouseLocation, Qt::KeyboardModifiers modifiers) override
KUndo2Command * createCommand() override
The SvgTextCursor class.