Krita Source Code Documentation
Loading...
Searching...
No Matches
KoAddRemoveShapeCommands.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2020 Dmitry Kazakov <dimula73@gmail.com>
3
*
4
* SPDX-License-Identifier: GPL-2.0-or-later
5
*/
6
7
#ifndef KoAddRemoveShapeCommands_H
8
#define KoAddRemoveShapeCommands_H
9
10
#include "kritaflake_export.h"
11
12
#include "
kis_command_utils.h
"
13
14
class
KoShape
;
15
class
KoShapeContainer
;
16
17
18
struct
KRITAFLAKE_EXPORT
KoAddRemoveShapeCommandImpl
:
public
KisCommandUtils::FlipFlopCommand
19
{
20
KoAddRemoveShapeCommandImpl
(
KoShape
*shape,
KoShapeContainer
*parent,
State
state,
KUndo2Command
*parentCommand);
21
~KoAddRemoveShapeCommandImpl
();
22
23
void
partA
()
override
;
24
void
partB
()
override
;
25
26
private
:
27
bool
m_ownShape =
true
;
28
KoShape
*m_shape = 0;
29
KoShapeContainer
*m_parent = 0;
30
};
31
32
struct
KRITAFLAKE_EXPORT
KoAddShapeCommand
:
public
KoAddRemoveShapeCommandImpl
33
{
34
KoAddShapeCommand
(
KoShape
*shape,
KoShapeContainer
*parent,
KUndo2Command
*parentCommand = 0);
35
};
36
37
struct
KRITAFLAKE_EXPORT
KoRemoveShapeCommand
:
public
KoAddRemoveShapeCommandImpl
38
{
39
KoRemoveShapeCommand
(
KoShape
*shape,
KoShapeContainer
*parent,
KUndo2Command
*parentCommand = 0);
40
};
41
42
#endif
// KoAddRemoveShapeCommands_H
KUndo2Command
Definition
kundo2stack.h:87
KoShapeContainer
Definition
KoShapeContainer.h:56
KoShape
Definition
KoShape.h:92
kis_command_utils.h
KisCommandUtils::FlipFlopCommand
Definition
kis_command_utils.h:97
KisCommandUtils::FlipFlopCommand::State
State
Definition
kis_command_utils.h:98
KisCommandUtils::FlipFlopCommand::partA
virtual void partA()
Definition
kis_command_utils.cpp:171
KisCommandUtils::FlipFlopCommand::partB
virtual void partB()
Definition
kis_command_utils.cpp:172
KoAddRemoveShapeCommandImpl
Definition
KoAddRemoveShapeCommands.h:19
KoAddShapeCommand
Definition
KoAddRemoveShapeCommands.h:33
KoRemoveShapeCommand
Definition
KoAddRemoveShapeCommands.h:38
libs
flake
commands
KoAddRemoveShapeCommands.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52