Krita Source Code Documentation
Loading...
Searching...
No Matches
KoShapeTransformCommand.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 * SPDX-FileCopyrightText: 2007 Jan Hambrecht <jaham@gmx.net>
3 * SPDX-FileCopyrightText: 2007 Thomas Zander <zander@kde.org>
4 *
5 * SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7
8#ifndef KOSHAPETRANSFORMCOMMAND_H
9#define KOSHAPETRANSFORMCOMMAND_H
10
11#include "kritaflake_export.h"
12#include <kundo2command.h>
13
14class KoShape;
15class QTransform;
16
20class KRITAFLAKE_EXPORT KoShapeTransformCommand : public KUndo2Command
21{
22public:
23
33 KoShapeTransformCommand(const QList<KoShape*> &shapes, const QList<QTransform> &oldState, const QList<QTransform> &newState, KUndo2Command * parent = 0);
34 ~KoShapeTransformCommand() override;
36 void redo() override;
38 void undo() override;
39
40 int id() const override;
41 bool mergeWith(const KUndo2Command *command) override;
42
43private:
44 class Private;
45 Private * const d;
46};
47
48#endif // KOSHAPETRANSFORMCOMMAND_H
virtual bool mergeWith(const KUndo2Command *other)
virtual void undo()
virtual void redo()
virtual int id() const