Krita Source Code Documentation
Loading...
Searching...
No Matches
SvgTextInsertRichCommand.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2024 Wolthera van Hövell tot Westerflier <griffinvalley@gmail.com>
3
*
4
* SPDX-License-Identifier: GPL-3.0-or-later
5
*/
6
#ifndef SVGTEXTINSERTRICHTCOMMAND_H
7
#define SVGTEXTINSERTRICHTCOMMAND_H
8
9
#include <
kundo2command.h
>
10
#include "kritatoolsvgtext_export.h"
11
#include <
KoSvgTextShape.h
>
12
13
class
KRITATOOLSVGTEXT_EXPORT
SvgTextInsertRichCommand
:
public
KUndo2Command
14
{
15
public
:
16
SvgTextInsertRichCommand
(
KoSvgTextShape
*shape,
KoSvgTextShape
*insert,
int
pos,
int
anchor,
KUndo2Command
*parent = 0);
17
~SvgTextInsertRichCommand
()
override
=
default
;
18
19
void
redo
()
override
;
20
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
KoSvgTextShape
*
m_insert
;
29
30
int
m_pos
;
31
int
m_anchor
;
32
KoSvgTextShapeMementoSP
m_textData
;
33
};
34
35
#endif
// SVGTEXTINSERTRICHTCOMMAND_H
KoSvgTextShape.h
KUndo2Command
Definition
kundo2stack.h:87
KUndo2Command::undo
virtual void undo()
Definition
kundo2stack.cpp:240
KUndo2Command::redo
virtual void redo()
Definition
kundo2stack.cpp:222
KoSvgTextShape
Definition
KoSvgTextShape.h:29
QSharedPointer< KoSvgTextShapeMemento >
SvgTextInsertRichCommand
Definition
SvgTextInsertRichCommand.h:14
SvgTextInsertRichCommand::m_shape
KoSvgTextShape * m_shape
Definition
SvgTextInsertRichCommand.h:27
SvgTextInsertRichCommand::m_pos
int m_pos
Definition
SvgTextInsertRichCommand.h:30
SvgTextInsertRichCommand::m_textData
KoSvgTextShapeMementoSP m_textData
Definition
SvgTextInsertRichCommand.h:32
SvgTextInsertRichCommand::m_anchor
int m_anchor
Definition
SvgTextInsertRichCommand.h:31
SvgTextInsertRichCommand::m_insert
KoSvgTextShape * m_insert
Definition
SvgTextInsertRichCommand.h:28
SvgTextInsertRichCommand::~SvgTextInsertRichCommand
~SvgTextInsertRichCommand() override=default
kundo2command.h
plugins
tools
svgtexttool
SvgTextInsertRichCommand.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52