Krita Source Code Documentation
Loading...
Searching...
No Matches
KoShapeMoveCommand.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 KOSHAPEMOVECOMMAND_H
9#define KOSHAPEMOVECOMMAND_H
10
11#include "kritaflake_export.h"
12
13#include <kundo2command.h>
14#include <QList>
15#include <QPointF>
16#include <KoFlake.h>
17
18class KoShape;
19
21class KRITAFLAKE_EXPORT KoShapeMoveCommand : public KUndo2Command
22{
23public:
33 KoShapeMoveCommand(const QList<KoShape*> &shapes, QList<QPointF> &previousPositions, QList<QPointF> &newPositions,
35
36 KoShapeMoveCommand(const QList<KoShape*> &shapes, const QPointF &offset, KUndo2Command *parent = 0);
37
38 ~KoShapeMoveCommand() override;
40 void redo() override;
42 void undo() override;
43
44 int id() const override;
45 bool mergeWith(const KUndo2Command *command) override;
46
47private:
48 class Private;
49 Private * const d;
50};
51
52#endif
virtual bool mergeWith(const KUndo2Command *other)
virtual void undo()
virtual void redo()
virtual int id() const
The undo / redo command for shape moving.
AnchorPosition
Definition KoFlake.h:85
@ Center
Definition KoFlake.h:90