Krita Source Code Documentation
Loading...
Searching...
No Matches
KoParameterHandleMoveCommand.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 * SPDX-FileCopyrightText: 2007 Thomas Zander <zander@kde.org>
5 *
6 * SPDX-License-Identifier: LGPL-2.0-or-later
7 */
8
9#ifndef KOPARAMETERHANDLEMOVECOMMAND_H
10#define KOPARAMETERHANDLEMOVECOMMAND_H
11
12#include <kundo2command.h>
13#include <QPointF>
14#include "kritaflake_export.h"
15
17
20{
21public:
31 KoParameterHandleMoveCommand(KoParameterShape *shape, int handleId, const QPointF &startPoint, const QPointF &endPoint, Qt::KeyboardModifiers keyModifiers, KUndo2Command *parent = 0);
33
35 void redo() override;
37 void undo() override;
38
39 int id() const override;
40 bool mergeWith(const KUndo2Command *command) override;
41
42private:
45 QPointF m_startPoint;
46 QPointF m_endPoint;
47 Qt::KeyboardModifiers m_keyModifiers;
48};
49
50#endif // KOPARAMETERHANDLEMOVECOMMAND_H
51
The undo / redo command for changing a parameter.
bool mergeWith(const KUndo2Command *command) override
void redo() override
redo the command
KoParameterHandleMoveCommand(KoParameterShape *shape, int handleId, const QPointF &startPoint, const QPointF &endPoint, Qt::KeyboardModifiers keyModifiers, KUndo2Command *parent=0)
void undo() override
revert the actions done in redo