Krita Source Code Documentation
Loading...
Searching...
No Matches
KoPathPointMoveCommand.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 * SPDX-FileCopyrightText: 2006, 2009 Jan Hambrecht <jaham@gmx.net>
3 * SPDX-FileCopyrightText: 2006, 2007 Thorsten Zachmann <zachmann@kde.org>
4 * SPDX-FileCopyrightText: 2007 Thomas Zander <zander@kde.org>
5 *
6 * SPDX-License-Identifier: LGPL-2.0-or-later
7 */
8
9#ifndef KOPATHPOINTMOVECOMMAND_H
10#define KOPATHPOINTMOVECOMMAND_H
11
12#include "kritaflake_export.h"
13
14#include <kundo2command.h>
15
16#include "KoPathPointData.h"
17
19class QPointF;
20
22class KRITAFLAKE_EXPORT KoPathPointMoveCommand : public KUndo2Command
23{
24public:
31 KoPathPointMoveCommand(const QList<KoPathPointData> &pointData, const QPointF &offset, KUndo2Command *parent = 0);
32
39 KoPathPointMoveCommand(const QList<KoPathPointData> &pointData, const QList<QPointF> &offsets, KUndo2Command *parent = 0);
40
41 ~KoPathPointMoveCommand() override;
42
44 void redo() override;
46 void undo() override;
47
48 int id() const override;
49 bool mergeWith(const KUndo2Command *command) override;
50
51private:
53};
54
55#endif // KOPATHPOINTMOVECOMMAND_H
virtual bool mergeWith(const KUndo2Command *other)
virtual void undo()
virtual void redo()
virtual int id() const
The undo / redo command for path point moving.
KoPathPointMoveCommandPrivate *const d