Krita Source Code Documentation
Loading...
Searching...
No Matches
KoPathControlPointMoveCommand.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 * SPDX-FileCopyrightText: 2006 Jan Hambrecht <jaham@gmx.net>
3 * SPDX-FileCopyrightText: 2006, 2007 Thorsten Zachmann <zachmann@kde.org>
4 *
5 * SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7
8#ifndef KOPATHCONTROLPOINTMOVECOMMAND_H
9#define KOPATHCONTROLPOINTMOVECOMMAND_H
10
11#include <kundo2command.h>
12#include <QPointF>
13#include "KoPathPointData.h"
14#include "KoPathPoint.h"
15#include "kritaflake_export.h"
16
17
19class KRITAFLAKE_EXPORT KoPathControlPointMoveCommand : public KUndo2Command
20{
21public:
29 KoPathControlPointMoveCommand(const KoPathPointData &pointData, const QPointF &offset,
30 KoPathPoint::PointType pointType, KUndo2Command *parent = 0);
32 void redo() override;
34 void undo() override;
35
36 int id() const override;
37 bool mergeWith(const KUndo2Command *command) override;
38
39private:
41 // the offset in shape coordinates
42 QPointF m_offset;
44};
45
46#endif // KOPATHCONTROLPOINTMOVECOMMAND_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.
Describe a KoPathPoint by a KoPathShape and its indices.
PointType
the type for identifying part of a KoPathPoint
Definition KoPathPoint.h:47