Krita Source Code Documentation
Loading...
Searching...
No Matches
KoSvgTextPathInfoChangeCommand.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 "kritaflake_export.h"
11
12
#include <
KoSvgTextShape.h
>
13
#include <
KoSvgText.h
>
14
15
class
KRITAFLAKE_EXPORT
KoSvgTextPathInfoChangeCommand
:
public
KUndo2Command
16
{
17
public
:
18
KoSvgTextPathInfoChangeCommand
(
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
KoSvgTextPathInfoChangeCommand
Definition
KoSvgTextPathInfoChangeCommand.h:16
KoSvgTextPathInfoChangeCommand::m_shape
KoSvgTextShape * m_shape
Definition
KoSvgTextPathInfoChangeCommand.h:27
KoSvgTextPathInfoChangeCommand::m_newInfo
KoSvgText::TextOnPathInfo m_newInfo
Definition
KoSvgTextPathInfoChangeCommand.h:30
KoSvgTextPathInfoChangeCommand::m_pos
int m_pos
Definition
KoSvgTextPathInfoChangeCommand.h:29
KoSvgTextPathInfoChangeCommand::m_textData
KoSvgTextShapeMementoSP m_textData
Definition
KoSvgTextPathInfoChangeCommand.h:28
KoSvgTextShape
Definition
KoSvgTextShape.h:33
QSharedPointer< KoSvgTextShapeMemento >
kundo2command.h
KoSvgText::TextOnPathInfo
Definition
KoSvgText.h:623
libs
flake
commands
KoSvgTextPathInfoChangeCommand.h
Generated at
2026-04-17 02:30:02+02:00
from
Krita
branch
master
, commit
77761936fe491e37fc8b0f9a0bad2161028f734f