Krita Source Code Documentation
Loading...
Searching...
No Matches
KoSvgTextAddRemoveShapeCommands.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-2.0-or-later
5
*/
6
#ifndef KOSVGTEXTADDREMOVESHAPECOMMANDS_H
7
#define KOSVGTEXTADDREMOVESHAPECOMMANDS_H
8
9
#include "
kis_command_utils.h
"
10
#include <
kundo2command.h
>
11
#include <kritaflake_export.h>
12
13
class
KoSvgTextShape
;
14
class
KoShape
;
15
16
class
KRITAFLAKE_EXPORT
KoSvgTextAddRemoveShapeCommandImpl
:
public
KisCommandUtils::FlipFlopCommand
17
{
18
public
:
19
enum
ContourType
{
20
Unknown
,
21
Inside
,
22
Subtract
,
23
TextPath
24
};
25
26
KoSvgTextAddRemoveShapeCommandImpl
(
KoSvgTextShape
*textShape,
KoShape
*shape, ContourType type, State state,
int
startPos,
int
endPos,
KUndo2Command
*parent =
nullptr
);
27
~KoSvgTextAddRemoveShapeCommandImpl
();
28
void
partA
()
override
;
29
void
partB
()
override
;
30
private
:
31
struct
Private
;
32
QScopedPointer<Private>
d
;
33
};
34
35
class
KRITAFLAKE_EXPORT
KoSvgTextAddShapeCommand
:
public
KoSvgTextAddRemoveShapeCommandImpl
{
36
public
:
37
KoSvgTextAddShapeCommand
(
KoSvgTextShape
*textShape,
KoShape
*shape,
bool
inside,
KUndo2Command
*parentCommand = 0);
38
~KoSvgTextAddShapeCommand
();
39
};
40
41
class
KRITAFLAKE_EXPORT
KoSvgTextRemoveShapeCommand
:
public
KoSvgTextAddRemoveShapeCommandImpl
{
42
public
:
43
KoSvgTextRemoveShapeCommand
(
KoSvgTextShape
*textShape,
KoShape
*shape,
KUndo2Command
*parentCommand = 0);
44
~KoSvgTextRemoveShapeCommand
();
45
55
static
void
removeContourShapesFromFlow(
KoSvgTextShape
*textShape,
KUndo2Command
*parent,
bool
textInShape,
bool
textPaths);
56
};
57
58
class
KRITAFLAKE_EXPORT
KoSvgTextSetTextPathOnRangeCommand
:
public
KoSvgTextAddRemoveShapeCommandImpl
{
59
public
:
60
KoSvgTextSetTextPathOnRangeCommand
(
KoSvgTextShape
*textShape,
KoShape
*shape,
int
startPos,
int
endPos,
KUndo2Command
*parentCommand = 0);
61
~KoSvgTextSetTextPathOnRangeCommand
();
62
};
63
64
#endif
// KOSVGTEXTADDREMOVESHAPECOMMANDS_H
KUndo2Command
Definition
kundo2stack.h:87
KoShape
Definition
KoShape.h:89
KoSvgTextAddRemoveShapeCommandImpl
Definition
KoSvgTextAddRemoveShapeCommands.h:17
KoSvgTextAddRemoveShapeCommandImpl::d
QScopedPointer< Private > d
Definition
KoSvgTextAddRemoveShapeCommands.h:32
KoSvgTextAddRemoveShapeCommandImpl::ContourType
ContourType
Definition
KoSvgTextAddRemoveShapeCommands.h:19
KoSvgTextAddRemoveShapeCommandImpl::Subtract
@ Subtract
Definition
KoSvgTextAddRemoveShapeCommands.h:22
KoSvgTextAddRemoveShapeCommandImpl::Unknown
@ Unknown
Definition
KoSvgTextAddRemoveShapeCommands.h:20
KoSvgTextAddRemoveShapeCommandImpl::Inside
@ Inside
Definition
KoSvgTextAddRemoveShapeCommands.h:21
KoSvgTextAddShapeCommand
Definition
KoSvgTextAddRemoveShapeCommands.h:35
KoSvgTextRemoveShapeCommand
Definition
KoSvgTextAddRemoveShapeCommands.h:41
KoSvgTextSetTextPathOnRangeCommand
Definition
KoSvgTextAddRemoveShapeCommands.h:58
KoSvgTextShape
Definition
KoSvgTextShape.h:33
kis_command_utils.h
kundo2command.h
Private
Definition
SvgTransformParser.cpp:20
KisCommandUtils::FlipFlopCommand
Definition
kis_command_utils.h:97
KisCommandUtils::FlipFlopCommand::partA
virtual void partA()
Definition
kis_command_utils.cpp:171
KisCommandUtils::FlipFlopCommand::partB
virtual void partB()
Definition
kis_command_utils.cpp:172
libs
flake
commands
KoSvgTextAddRemoveShapeCommands.h
Generated at
2026-01-15 02:30:07+01:00
from
Krita
branch
master
, commit
38b517ca06286bb65279453cbf9a2b4fbd1153d1