Krita Source Code Documentation
Loading...
Searching...
No Matches
KoPathBreakAtPointCommand.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 KOPATHBREAKATPOINTCOMMAND_H
9#define KOPATHBREAKATPOINTCOMMAND_H
10
11#include <kundo2command.h>
12#include <QList>
13#include "KoPathPointData.h"
14
15class KoPathPoint;
16
19{
20public:
30 explicit KoPathBreakAtPointCommand(const QList<KoPathPointData> &pointDataList, KUndo2Command *parent = 0);
32
34 void redo() override;
36 void undo() override;
37
38private:
41 // used for storing where to open the subpath. In case it not used for the open
42 // status use .second to the store offset caused by a open of a subpath.
45};
46
47#endif // KOPATHBREAKATPOINTCOMMAND_H
Command to break a subpath at points.
QList< KoPathPointData > m_pointDataList
QList< KoPathPointIndex > m_closedIndex
void redo() override
redo the command
void undo() override
revert the actions done in redo
KoPathBreakAtPointCommand(const QList< KoPathPointData > &pointDataList, KUndo2Command *parent=0)
A KoPathPoint represents a point in a path.