Krita Source Code Documentation
Loading...
Searching...
No Matches
KoShapeConnectionChangeCommand.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 * SPDX-FileCopyrightText: 2011 Jan Hambrecht <jaham@gmx.net>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7#ifndef KOSHAPECONNECTIONCHANGECOMMAND_H
8#define KOSHAPECONNECTIONCHANGECOMMAND_H
9
10#include "kritaflake_export.h"
11#include <kundo2command.h>
12#include "KoConnectionShape.h"
13
15class KRITAFLAKE_EXPORT KoShapeConnectionChangeCommand : public KUndo2Command
16{
17public:
27 KoShapeConnectionChangeCommand(KoConnectionShape *connection, KoConnectionShape::HandleId connectionHandle,
28 KoShape *oldConnectedShape, int oldConnectionPointId,
29 KoShape *newConnectedShape, int newConnectionPointId, KUndo2Command *parent = 0);
30
33
35 void redo() override;
37 void undo() override;
38
39private:
40 class Private;
41 Private * const d;
42};
43
44#endif // KOSHAPECONNECTIONCHANGECOMMAND_H
virtual void undo()
virtual void redo()
A command to add a connection between two shapes.