Krita Source Code Documentation
Loading...
Searching...
No Matches
RectangleShapeConfigCommand.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 * SPDX-FileCopyrightText: 2007 Jan Hambrecht <jaham@gmx.net>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7#ifndef RECTANGLESHAPECONFIGCOMMAND_H
8#define RECTANGLESHAPECONFIGCOMMAND_H
9
10#include <kundo2command.h>
11
12class RectangleShape;
13
16{
17public:
25 RectangleShapeConfigCommand(RectangleShape *rectangle, qreal cornerRadiusX, qreal cornerRadiusY, KUndo2Command *parent = 0);
27 void redo() override;
29 void undo() override;
30
31 int id() const override;
32 bool mergeWith(const KUndo2Command *command) override;
33
34private:
40};
41
42#endif // RECTANGLESHAPECONFIGCOMMAND_H
43
The undo / redo command for configuring a rectangle shape.
RectangleShapeConfigCommand(RectangleShape *rectangle, qreal cornerRadiusX, qreal cornerRadiusY, KUndo2Command *parent=0)
void undo() override
revert the actions done in redo
bool mergeWith(const KUndo2Command *command) override
void redo() override
redo the command