Krita Source Code Documentation
Loading...
Searching...
No Matches
KoShapeGroupCommand.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 * SPDX-FileCopyrightText: 2006, 2010 Thomas Zander <zander@kde.org>
3 * SPDX-FileCopyrightText: 2007 Jan Hambrecht <jaham@gmx.net>
4 *
5 * SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7
8#ifndef KOSHAPEGROUPCOMMAND_H
9#define KOSHAPEGROUPCOMMAND_H
10
11#include "kritaflake_export.h"
12
13#include <QList>
14#include <QScopedPointer>
15#include <kundo2command.h>
16
17class KoShape;
18class KoShapeGroup;
21
23class KRITAFLAKE_EXPORT KoShapeGroupCommand : public KUndo2Command
24{
25public:
36 static KoShapeGroupCommand *createCommand(KoShapeContainer *container, const QList<KoShape *> &shapes, bool shouldNormalize = false);
37
45 KoShapeGroupCommand(KoShapeContainer *container, const QList<KoShape *> &shapes, bool shouldNormalize, KUndo2Command *parent = 0);
46
54 KoShapeGroupCommand(KoShapeContainer *container, const QList<KoShape *> &shapes, KUndo2Command *parent = 0);
55 ~KoShapeGroupCommand() override;
56
58 void redo() override;
59
61 void undo() override;
62
63protected:
64 const QScopedPointer<KoShapeGroupCommandPrivate> d;
65};
66
67#endif
virtual void undo()
virtual void redo()
The undo / redo command for grouping shapes.
const QScopedPointer< KoShapeGroupCommandPrivate > d