Krita Source Code Documentation
Loading...
Searching...
No Matches
StarShapeConfigCommand.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 STARSHAPECONFIGCOMMAND_H
8
#define STARSHAPECONFIGCOMMAND_H
9
10
#include <
kundo2command.h
>
11
12
class
StarShape
;
13
15
class
StarShapeConfigCommand
:
public
KUndo2Command
16
{
17
public
:
27
StarShapeConfigCommand
(
StarShape
*star,
uint
cornerCount, qreal innerRadius, qreal outerRadius,
bool
convex,
KUndo2Command
*parent = 0);
29
void
redo
()
override
;
31
void
undo
()
override
;
32
private
:
33
StarShape
*
m_star
;
34
uint
m_oldCornerCount
;
35
qreal
m_oldInnerRadius
;
36
qreal
m_oldOuterRadius
;
37
bool
m_oldConvex
;
38
uint
m_newCornerCount
;
39
qreal
m_newInnerRadius
;
40
qreal
m_newOuterRadius
;
41
bool
m_newConvex
;
42
};
43
44
#endif
// STARSHAPECONFIGCOMMAND_H
45
uint
unsigned int uint
Definition
KoIntegerMaths.h:44
KUndo2Command
Definition
kundo2stack.h:87
StarShapeConfigCommand
The undo / redo command for configuring a star shape.
Definition
StarShapeConfigCommand.h:16
StarShapeConfigCommand::StarShapeConfigCommand
StarShapeConfigCommand(StarShape *star, uint cornerCount, qreal innerRadius, qreal outerRadius, bool convex, KUndo2Command *parent=0)
Definition
StarShapeConfigCommand.cpp:11
StarShapeConfigCommand::m_oldOuterRadius
qreal m_oldOuterRadius
Definition
StarShapeConfigCommand.h:36
StarShapeConfigCommand::undo
void undo() override
revert the actions done in redo
Definition
StarShapeConfigCommand.cpp:55
StarShapeConfigCommand::redo
void redo() override
redo the command
Definition
StarShapeConfigCommand.cpp:29
StarShapeConfigCommand::m_newConvex
bool m_newConvex
Definition
StarShapeConfigCommand.h:41
StarShapeConfigCommand::m_star
StarShape * m_star
Definition
StarShapeConfigCommand.h:33
StarShapeConfigCommand::m_newCornerCount
uint m_newCornerCount
Definition
StarShapeConfigCommand.h:38
StarShapeConfigCommand::m_oldCornerCount
uint m_oldCornerCount
Definition
StarShapeConfigCommand.h:34
StarShapeConfigCommand::m_oldConvex
bool m_oldConvex
Definition
StarShapeConfigCommand.h:37
StarShapeConfigCommand::m_newInnerRadius
qreal m_newInnerRadius
Definition
StarShapeConfigCommand.h:39
StarShapeConfigCommand::m_oldInnerRadius
qreal m_oldInnerRadius
Definition
StarShapeConfigCommand.h:35
StarShapeConfigCommand::m_newOuterRadius
qreal m_newOuterRadius
Definition
StarShapeConfigCommand.h:40
StarShape
Definition
StarShape.h:23
kundo2command.h
plugins
flake
pathshapes
star
StarShapeConfigCommand.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52