Krita Source Code Documentation
Loading...
Searching...
No Matches
KoPathPointInsertCommand.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 KOPATHPOINTINSERTCOMMAND_H
9#define KOPATHPOINTINSERTCOMMAND_H
10
11#include <kundo2command.h>
12#include <QList>
13#include "KoPathPointData.h"
14#include "kritaflake_export.h"
15
17class KoPathPoint;
18
20class KRITAFLAKE_EXPORT KoPathPointInsertCommand : public KUndo2Command
21{
22public:
34 KoPathPointInsertCommand(const QList<KoPathPointData> &pointDataList, qreal insertPosition, KUndo2Command *parent = 0);
36
38 void redo() override;
40 void undo() override;
41
43 QList<KoPathPoint*> insertedPoints() const;
44
45private:
47};
48
49#endif // KOPATHPOINTINSERTCOMMAND_H
virtual void undo()
virtual void redo()
The undo / redo command for inserting path points.
KoPathPointInsertCommandPrivate *const d
A KoPathPoint represents a point in a path.