Krita Source Code Documentation
Loading...
Searching...
No Matches
SvgTextChangeCommand.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2
3 SPDX-FileCopyrightText: 2017 Boudewijn Rempt <boud@valdyas.org>
4
5 SPDX-License-Identifier: LGPL-2.0-or-later
6*/
7#ifndef CHANGETEXTNGDATACOMMAND_H
8#define CHANGETEXTNGDATACOMMAND_H
9
10#include <kundo2command.h>
11
12#include "KoSvgTextShape.h"
13
15{
16public:
18 const QString &svg,
19 const QString &defs,
20 KUndo2Command *parent = 0);
21 virtual ~SvgTextChangeCommand();
22
24 void redo() override;
26 void undo() override;
27
28private:
30 QString m_svg;
31 QString m_defs;
32 QString m_oldSvg;
33 QString m_oldDefs;
34};
35
36#endif /* CHANGETEXTNGDATACOMMAND_H */
void undo() override
revert the actions done in redo
void redo() override
redo the command
SvgTextChangeCommand(KoSvgTextShape *shape, const QString &svg, const QString &defs, KUndo2Command *parent=0)