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