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