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
15
class
KRITATOOLSVGTEXT_EXPORT
SvgTextPathInfoChangeCommand
:
public
KUndo2Command
16
{
17
public
:
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
26
private
:
27
KoSvgTextShape
*
m_shape
;
28
KoSvgTextShapeMementoSP
m_textData
;
29
int
m_pos
;
30
KoSvgText::TextOnPathInfo
m_newInfo
;
31
};
32
33
#endif
// SVGTEXTPATHINFOCHANGECOMMAND_H
KoSvgTextShape.h
KoSvgText.h
KUndo2Command
Definition
kundo2stack.h:87
KUndo2Command::mergeWith
virtual bool mergeWith(const KUndo2Command *other)
Definition
kundo2stack.cpp:205
KUndo2Command::undo
virtual void undo()
Definition
kundo2stack.cpp:240
KUndo2Command::redo
virtual void redo()
Definition
kundo2stack.cpp:222
KUndo2Command::id
virtual int id() const
Definition
kundo2stack.cpp:181
KoSvgTextShape
Definition
KoSvgTextShape.h:33
QSharedPointer< KoSvgTextShapeMemento >
SvgTextPathInfoChangeCommand
Definition
SvgTextPathInfoChangeCommand.h:16
SvgTextPathInfoChangeCommand::m_shape
KoSvgTextShape * m_shape
Definition
SvgTextPathInfoChangeCommand.h:27
SvgTextPathInfoChangeCommand::m_textData
KoSvgTextShapeMementoSP m_textData
Definition
SvgTextPathInfoChangeCommand.h:28
SvgTextPathInfoChangeCommand::m_pos
int m_pos
Definition
SvgTextPathInfoChangeCommand.h:29
SvgTextPathInfoChangeCommand::m_newInfo
KoSvgText::TextOnPathInfo m_newInfo
Definition
SvgTextPathInfoChangeCommand.h:30
kundo2command.h
KoSvgText::TextOnPathInfo
Definition
KoSvgText.h:623
plugins
tools
svgtexttool
SvgTextPathInfoChangeCommand.h
Generated at
2026-01-15 02:30:07+01:00
from
Krita
branch
master
, commit
38b517ca06286bb65279453cbf9a2b4fbd1153d1