Krita Source Code Documentation
Loading...
Searching...
No Matches
SvgTextRemoveCommand.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
7
#ifndef SVGTEXTREMOVECOMMAND_H
8
#define SVGTEXTREMOVECOMMAND_H
9
10
#include <
kundo2command.h
>
11
#include "kritatoolsvgtext_export.h"
12
#include <
KoSvgTextShape.h
>
13
14
class
KoSvgTextShape
;
15
16
class
KRITATOOLSVGTEXT_EXPORT
SvgTextRemoveCommand
:
public
KUndo2Command
17
{
18
public
:
30
SvgTextRemoveCommand
(
KoSvgTextShape
*shape,
31
int
endIndex,
32
int
pos,
33
int
anchor,
34
int
length
,
35
bool
allowCleanUp =
true
,
36
KUndo2Command
*parent = 0);
37
~SvgTextRemoveCommand
()
override
=
default
;
38
40
void
redo
()
override
;
42
void
undo
()
override
;
43
44
int
id
()
const override
;
45
bool
mergeWith
(
const
KUndo2Command
*other)
override
;
46
47
private
:
48
KoSvgTextShape
*
m_shape
;
49
int
m_index
;
50
int
m_originalPos
;
51
int
m_anchor
;
52
int
m_length
;
53
bool
m_allowCleanUp
;
54
KoSvgTextShapeMementoSP
m_textData
;
55
};
56
57
#endif
// SVGTEXTREMOVECOMMAND_H
length
qreal length(const QPointF &vec)
Definition
Ellipse.cc:82
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 >
SvgTextRemoveCommand
Definition
SvgTextRemoveCommand.h:17
SvgTextRemoveCommand::m_textData
KoSvgTextShapeMementoSP m_textData
Definition
SvgTextRemoveCommand.h:54
SvgTextRemoveCommand::~SvgTextRemoveCommand
~SvgTextRemoveCommand() override=default
SvgTextRemoveCommand::m_shape
KoSvgTextShape * m_shape
Definition
SvgTextRemoveCommand.h:48
SvgTextRemoveCommand::m_length
int m_length
Definition
SvgTextRemoveCommand.h:52
SvgTextRemoveCommand::m_allowCleanUp
bool m_allowCleanUp
Definition
SvgTextRemoveCommand.h:53
SvgTextRemoveCommand::m_originalPos
int m_originalPos
Definition
SvgTextRemoveCommand.h:50
SvgTextRemoveCommand::m_index
int m_index
Definition
SvgTextRemoveCommand.h:49
SvgTextRemoveCommand::m_anchor
int m_anchor
Definition
SvgTextRemoveCommand.h:51
kundo2command.h
plugins
tools
svgtexttool
SvgTextRemoveCommand.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52