Krita Source Code Documentation
Loading...
Searching...
No Matches
SvgTextRemoveCommand.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
7#ifndef SVGTEXTREMOVECOMMAND_H
8#define SVGTEXTREMOVECOMMAND_H
9
10#include <kundo2command.h>
11#include "kritatoolsvgtext_export.h"
12#include <KoSvgTextShape.h>
13
14class KoSvgTextShape;
15
16class KRITATOOLSVGTEXT_EXPORT SvgTextRemoveCommand : public KUndo2Command
17{
18public:
31 int endIndex,
32 int pos,
33 int anchor,
34 int length,
35 bool allowCleanUp = true,
36 KUndo2Command *parent = 0);
37 ~SvgTextRemoveCommand() override = default;
38
40 void redo() override;
42 void undo() override;
43
44 int id() const override;
45 bool mergeWith(const KUndo2Command *other) override;
46
47private:
55};
56
57#endif // SVGTEXTREMOVECOMMAND_H
qreal length(const QPointF &vec)
Definition Ellipse.cc:82
virtual bool mergeWith(const KUndo2Command *other)
virtual void undo()
virtual void redo()
virtual int id() const
KoSvgTextShapeMementoSP m_textData
~SvgTextRemoveCommand() override=default