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
12
class
RectangleShape
;
13
15
class
RectangleShapeConfigCommand
:
public
KUndo2Command
16
{
17
public
:
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
34
private
:
35
RectangleShape
*
m_rectangle
;
36
qreal
m_oldCornerRadiusX
;
37
qreal
m_oldCornerRadiusY
;
38
qreal
m_newCornerRadiusX
;
39
qreal
m_newCornerRadiusY
;
40
};
41
42
#endif
// RECTANGLESHAPECONFIGCOMMAND_H
43
KUndo2Command
Definition
kundo2stack.h:87
RectangleShapeConfigCommand
The undo / redo command for configuring a rectangle shape.
Definition
RectangleShapeConfigCommand.h:16
RectangleShapeConfigCommand::m_newCornerRadiusX
qreal m_newCornerRadiusX
Definition
RectangleShapeConfigCommand.h:38
RectangleShapeConfigCommand::m_rectangle
RectangleShape * m_rectangle
Definition
RectangleShapeConfigCommand.h:35
RectangleShapeConfigCommand::m_newCornerRadiusY
qreal m_newCornerRadiusY
Definition
RectangleShapeConfigCommand.h:39
RectangleShapeConfigCommand::RectangleShapeConfigCommand
RectangleShapeConfigCommand(RectangleShape *rectangle, qreal cornerRadiusX, qreal cornerRadiusY, KUndo2Command *parent=0)
Definition
RectangleShapeConfigCommand.cpp:13
RectangleShapeConfigCommand::m_oldCornerRadiusX
qreal m_oldCornerRadiusX
Definition
RectangleShapeConfigCommand.h:36
RectangleShapeConfigCommand::m_oldCornerRadiusY
qreal m_oldCornerRadiusY
Definition
RectangleShapeConfigCommand.h:37
RectangleShapeConfigCommand::undo
void undo() override
revert the actions done in redo
Definition
RectangleShapeConfigCommand.cpp:43
RectangleShapeConfigCommand::mergeWith
bool mergeWith(const KUndo2Command *command) override
Definition
RectangleShapeConfigCommand.cpp:64
RectangleShapeConfigCommand::redo
void redo() override
redo the command
Definition
RectangleShapeConfigCommand.cpp:27
RectangleShapeConfigCommand::id
int id() const override
Definition
RectangleShapeConfigCommand.cpp:59
RectangleShape
Definition
RectangleShape.h:22
kundo2command.h
plugins
flake
pathshapes
rectangle
RectangleShapeConfigCommand.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52