Krita Source Code Documentation
Loading...
Searching...
No Matches
KoShapeStrokeCommand.h
Go to the documentation of this file.
1
/* This file is part of the KDE project
2
*
3
* SPDX-FileCopyrightText: 2006 Thomas Zander <zander@kde.org>
4
* SPDX-FileCopyrightText: 2006-2008 Jan Hambrecht <jaham@gmx.net>
5
* SPDX-FileCopyrightText: 2012 Inge Wallin <inge@lysator.liu.se>
6
*
7
* SPDX-License-Identifier: LGPL-2.0-or-later
8
*/
9
10
#ifndef KOSHAPESTROKECOMMAND_H
11
#define KOSHAPESTROKECOMMAND_H
12
13
#include "kritaflake_export.h"
14
15
#include <
KoFlakeTypes.h
>
16
#include <
kundo2command.h
>
17
#include <QList>
18
19
class
KoShape
;
20
class
KoShapeStrokeModel
;
21
23
class
KRITAFLAKE_EXPORT
KoShapeStrokeCommand
:
public
KUndo2Command
24
{
25
public
:
32
KoShapeStrokeCommand
(
const
QList<KoShape*>
&shapes,
KoShapeStrokeModelSP
stroke,
KUndo2Command
*parent = 0);
33
40
KoShapeStrokeCommand
(
const
QList<KoShape*>
&shapes,
const
QList<KoShapeStrokeModelSP>
&strokes,
KUndo2Command
*parent = 0);
41
48
KoShapeStrokeCommand
(
KoShape
* shape,
KoShapeStrokeModelSP
stroke,
KUndo2Command
*parent = 0);
49
50
~KoShapeStrokeCommand
()
override
;
52
void
redo
()
override
;
54
void
undo
()
override
;
55
56
int
id
()
const override
;
57
bool
mergeWith
(
const
KUndo2Command
*command)
override
;
58
59
private
:
60
class
Private
;
61
Private
*
const
d
;
62
};
63
64
#endif
KoFlakeTypes.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
KoShapeStrokeCommand
The undo / redo command for setting the shape stroke.
Definition
KoShapeStrokeCommand.cpp:20
KoShapeStrokeCommand::d
Private *const d
Definition
KoShapeStrokeCommand.h:61
KoShapeStrokeModel
Definition
KoShapeStrokeModel.h:33
KoShape
Definition
KoShape.h:92
QList
Definition
KisQStringListFwd.h:16
QSharedPointer< KoShapeStrokeModel >
kundo2command.h
Private
Definition
SvgTransformParser.cpp:20
libs
flake
commands
KoShapeStrokeCommand.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52