Krita Source Code Documentation
Loading...
Searching...
No Matches
KoShapeLockCommand.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 Jan Hambrecht <jaham@gmx.net>
4
*
5
* SPDX-License-Identifier: LGPL-2.0-or-later
6
*/
7
8
#ifndef KOSHAPELOCKCOMMAND_H
9
#define KOSHAPELOCKCOMMAND_H
10
11
#include <
kundo2command.h
>
12
#include <QList>
13
14
class
KoShape
;
15
17
class
KoShapeLockCommand
:
public
KUndo2Command
18
{
19
public
:
27
KoShapeLockCommand
(
const
QList<KoShape*>
&shapes,
const
QList<bool>
&oldLock,
const
QList<bool>
&newLock,
28
KUndo2Command
*parent = 0);
29
~KoShapeLockCommand
()
override
;
30
32
void
redo
()
override
;
34
void
undo
()
override
;
35
36
private
:
37
QList<KoShape*>
m_shapes
;
38
QList<bool>
m_oldLock
;
39
QList<bool>
m_newLock
;
40
};
41
42
#endif
KUndo2Command
Definition
kundo2stack.h:87
KoShapeLockCommand
The undo / redo command to lock a set of shapes position and size.
Definition
KoShapeLockCommand.h:18
KoShapeLockCommand::KoShapeLockCommand
KoShapeLockCommand(const QList< KoShape * > &shapes, const QList< bool > &oldLock, const QList< bool > &newLock, KUndo2Command *parent=0)
Definition
KoShapeLockCommand.cpp:13
KoShapeLockCommand::undo
void undo() override
revert the actions done in redo
Definition
KoShapeLockCommand.cpp:37
KoShapeLockCommand::m_shapes
QList< KoShape * > m_shapes
Definition
KoShapeLockCommand.h:37
KoShapeLockCommand::m_newLock
QList< bool > m_newLock
old lock states
Definition
KoShapeLockCommand.h:39
KoShapeLockCommand::~KoShapeLockCommand
~KoShapeLockCommand() override
Definition
KoShapeLockCommand.cpp:25
KoShapeLockCommand::m_oldLock
QList< bool > m_oldLock
the shapes to set background for
Definition
KoShapeLockCommand.h:38
KoShapeLockCommand::redo
void redo() override
redo the command
Definition
KoShapeLockCommand.cpp:29
KoShape
Definition
KoShape.h:92
QList
Definition
KisQStringListFwd.h:16
kundo2command.h
libs
flake
commands
KoShapeLockCommand.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52