Krita Source Code Documentation
Loading...
Searching...
No Matches
SvgTextPathInfoChangeCommand.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2025 Wolthera van Hövell tot Westerflier <griffinvalley@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-3.0-or-later
5 */
6#ifndef SVGTEXTPATHINFOCHANGECOMMAND_H
7#define SVGTEXTPATHINFOCHANGECOMMAND_H
8
9#include <kundo2command.h>
10#include "kritatoolsvgtext_export.h"
11
12#include <KoSvgTextShape.h>
13#include <KoSvgText.h>
14
15class KRITATOOLSVGTEXT_EXPORT SvgTextPathInfoChangeCommand : public KUndo2Command
16{
17public:
18 SvgTextPathInfoChangeCommand(KoSvgTextShape *shape, int pos, KoSvgText::TextOnPathInfo textPathInfo, KUndo2Command *parent = nullptr);
19
20 void redo() override;
21 void undo() override;
22
23 int id() const override;
24 bool mergeWith(const KUndo2Command *other) override;
25
26private:
29 int m_pos;
31};
32
33#endif // SVGTEXTPATHINFOCHANGECOMMAND_H
virtual bool mergeWith(const KUndo2Command *other)
virtual void undo()
virtual void redo()
virtual int id() const