Krita Source Code Documentation
Loading...
Searching...
No Matches
KoMultiPathPointMergeCommand.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2017 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KOMULTIPATHPOINTMERGECOMMAND_H
8#define KOMULTIPATHPOINTMERGECOMMAND_H
9
10#include <kundo2command.h>
11
12#include "kritaflake_export.h"
13#include <QScopedPointer>
14
15class KoSelection;
16class KoPathShape;
17class KoPathPointData;
19
20
21class KRITAFLAKE_EXPORT KoMultiPathPointMergeCommand : public KUndo2Command
22{
23public:
25 const KoPathPointData &pointData2,
26 KoShapeControllerBase *controller,
27 KoSelection *selection,
28 KUndo2Command *parent = 0);
30
31 void undo() override;
32 void redo() override;
33
34 KoPathShape *testingCombinedPath() const;
35
36protected:
37 virtual KUndo2Command *createMergeCommand(const KoPathPointData &pointData1,
38 const KoPathPointData &pointData2);
39private:
40 struct Private;
41 const QScopedPointer<Private> m_d;
42};
43
44#endif // KOMULTIPATHPOINTMERGECOMMAND_H
virtual void undo()
virtual void redo()
Describe a KoPathPoint by a KoPathShape and its indices.
The position of a path point within a path shape.
Definition KoPathShape.h:63
const QScopedPointer< Private > m_d