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
14
class
SvgTextChangeCommand
:
public
KUndo2Command
15
{
16
public
:
17
SvgTextChangeCommand
(
KoSvgTextShape
*shape,
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
28
private
:
29
KoSvgTextShape
*
m_shape
;
30
QString
m_svg
;
31
QString
m_defs
;
32
QString
m_oldSvg
;
33
QString
m_oldDefs
;
34
};
35
36
#endif
/* CHANGETEXTNGDATACOMMAND_H */
KoSvgTextShape.h
KUndo2Command
Definition
kundo2stack.h:87
KoSvgTextShape
Definition
KoSvgTextShape.h:29
SvgTextChangeCommand
Definition
SvgTextChangeCommand.h:15
SvgTextChangeCommand::~SvgTextChangeCommand
virtual ~SvgTextChangeCommand()
Definition
SvgTextChangeCommand.cpp:30
SvgTextChangeCommand::undo
void undo() override
revert the actions done in redo
Definition
SvgTextChangeCommand.cpp:43
SvgTextChangeCommand::m_svg
QString m_svg
Definition
SvgTextChangeCommand.h:30
SvgTextChangeCommand::m_defs
QString m_defs
Definition
SvgTextChangeCommand.h:31
SvgTextChangeCommand::m_oldDefs
QString m_oldDefs
Definition
SvgTextChangeCommand.h:33
SvgTextChangeCommand::redo
void redo() override
redo the command
Definition
SvgTextChangeCommand.cpp:34
SvgTextChangeCommand::m_shape
KoSvgTextShape * m_shape
Definition
SvgTextChangeCommand.h:29
SvgTextChangeCommand::m_oldSvg
QString m_oldSvg
Definition
SvgTextChangeCommand.h:32
SvgTextChangeCommand::SvgTextChangeCommand
SvgTextChangeCommand(KoSvgTextShape *shape, const QString &svg, const QString &defs, KUndo2Command *parent=0)
Definition
SvgTextChangeCommand.cpp:15
kundo2command.h
plugins
tools
svgtexttool
SvgTextChangeCommand.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52