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
14class KoShape;
15
18{
19public:
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
36private:
40};
41
42#endif
The undo / redo command to lock a set of shapes position and size.
KoShapeLockCommand(const QList< KoShape * > &shapes, const QList< bool > &oldLock, const QList< bool > &newLock, KUndo2Command *parent=0)
void undo() override
revert the actions done in redo
QList< KoShape * > m_shapes
QList< bool > m_newLock
old lock states
QList< bool > m_oldLock
the shapes to set background for
void redo() override
redo the command