Krita Source Code Documentation
Loading...
Searching...
No Matches
KoShapeKeepAspectRatioCommand.h
Go to the documentation of this file.
1
/* This file is part of the KDE project
2
* SPDX-FileCopyrightText: 2007 Peter Simonsson <peter.simonsson@gmail.com>
3
*
4
* SPDX-License-Identifier: LGPL-2.0-or-later
5
*/
6
7
#ifndef KOSHAPEKEEPASPECTRATIOCOMMAND_H
8
#define KOSHAPEKEEPASPECTRATIOCOMMAND_H
9
10
#include "kritaflake_export.h"
11
#include <
kundo2command.h
>
12
#include <QList>
13
14
class
KoShape
;
15
19
class
KRITAFLAKE_EXPORT
KoShapeKeepAspectRatioCommand
:
public
KUndo2Command
20
{
21
public
:
28
KoShapeKeepAspectRatioCommand
(
const
QList<KoShape*>
&shapes,
bool
newKeepAspectRatio,
KUndo2Command
* parent = 0);
29
~KoShapeKeepAspectRatioCommand
()
override
;
30
32
void
redo
()
override
;
34
void
undo
()
override
;
35
36
private
:
37
QList<KoShape*>
m_shapes
;
38
QList<bool>
m_oldKeepAspectRatio
;
39
QList<bool>
m_newKeepAspectRatio
;
40
};
41
42
#endif
KUndo2Command
Definition
kundo2stack.h:87
KUndo2Command::undo
virtual void undo()
Definition
kundo2stack.cpp:240
KUndo2Command::redo
virtual void redo()
Definition
kundo2stack.cpp:222
KoShapeKeepAspectRatioCommand
Definition
KoShapeKeepAspectRatioCommand.h:20
KoShapeKeepAspectRatioCommand::m_shapes
QList< KoShape * > m_shapes
Definition
KoShapeKeepAspectRatioCommand.h:37
KoShapeKeepAspectRatioCommand::m_newKeepAspectRatio
QList< bool > m_newKeepAspectRatio
Definition
KoShapeKeepAspectRatioCommand.h:39
KoShapeKeepAspectRatioCommand::m_oldKeepAspectRatio
QList< bool > m_oldKeepAspectRatio
Definition
KoShapeKeepAspectRatioCommand.h:38
KoShape
Definition
KoShape.h:92
QList
Definition
KisQStringListFwd.h:16
kundo2command.h
libs
flake
commands
KoShapeKeepAspectRatioCommand.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52