Krita Source Code Documentation
Loading...
Searching...
No Matches
KoSvgConvertTextTypeCommand.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 SVGCONVERTTEXTTYPECOMMAND_H
7
#define SVGCONVERTTEXTTYPECOMMAND_H
8
9
#include <
kundo2command.h
>
10
#include "kritaflake_export.h"
11
#include <
KoSvgTextShape.h
>
12
22
class
KRITAFLAKE_EXPORT
KoSvgConvertTextTypeCommand
:
public
KUndo2Command
23
{
24
public
:
25
26
KoSvgConvertTextTypeCommand
(
KoSvgTextShape
*shape,
KoSvgTextShape::TextType
type,
int
pos,
KUndo2Command
*parent = 0);
27
~KoSvgConvertTextTypeCommand
()
override
=
default
;
28
29
void
redo
()
override
;
30
31
void
undo
()
override
;
32
33
//int id() const override;
34
//bool mergeWith(const KUndo2Command *other) override;
35
36
private
:
37
KoSvgTextShape
*
m_shape
;
38
KoSvgTextShapeMementoSP
m_textData
;
39
40
KoSvgTextShape::TextType
m_conversionType
;
41
int
m_pos
;
42
};
43
44
#endif
// SVGCONVERTTEXTTYPECOMMAND_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
KoSvgConvertTextTypeCommand
The SvgConvertTextTypeCommand class This command allows textshapes to be converted between preformatt...
Definition
KoSvgConvertTextTypeCommand.h:23
KoSvgConvertTextTypeCommand::m_shape
KoSvgTextShape * m_shape
Definition
KoSvgConvertTextTypeCommand.h:37
KoSvgConvertTextTypeCommand::m_pos
int m_pos
Definition
KoSvgConvertTextTypeCommand.h:41
KoSvgConvertTextTypeCommand::~KoSvgConvertTextTypeCommand
~KoSvgConvertTextTypeCommand() override=default
KoSvgConvertTextTypeCommand::m_textData
KoSvgTextShapeMementoSP m_textData
Definition
KoSvgConvertTextTypeCommand.h:38
KoSvgConvertTextTypeCommand::m_conversionType
KoSvgTextShape::TextType m_conversionType
Definition
KoSvgConvertTextTypeCommand.h:40
KoSvgTextShape
Definition
KoSvgTextShape.h:29
KoSvgTextShape::TextType
TextType
Definition
KoSvgTextShape.h:69
QSharedPointer< KoSvgTextShapeMemento >
kundo2command.h
libs
flake
commands
KoSvgConvertTextTypeCommand.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52