Krita Source Code Documentation
Loading...
Searching...
No Matches
KoPathSegmentBreakCommand.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 KOPATHSEGMENTBREAKCOMMAND_H
9#define KOPATHSEGMENTBREAKCOMMAND_H
10
11#include <kundo2command.h>
12#include "KoPathPointData.h"
13
16{
17public:
26 explicit KoPathSegmentBreakCommand(const KoPathPointData &pointData, KUndo2Command *parent = 0);
28
30 void redo() override;
32 void undo() override;
33private:
37};
38
39#endif // KOPATHSEGMENTBREAKCOMMAND_H
QPair< int, int > KoPathPointIndex
Definition KoPathShape.h:28
Describe a KoPathPoint by a KoPathShape and its indices.
The undo / redo command for breaking a subpath by removing the segment.
KoPathSegmentBreakCommand(const KoPathPointData &pointData, KUndo2Command *parent=0)
void undo() override
revert the actions done in redo
void redo() override
redo the command