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
14class KoShape;
15
19class KRITAFLAKE_EXPORT KoShapeKeepAspectRatioCommand : public KUndo2Command
20{
21public:
28 KoShapeKeepAspectRatioCommand(const QList<KoShape*> &shapes, bool newKeepAspectRatio, KUndo2Command* parent = 0);
30
32 void redo() override;
34 void undo() override;
35
36private:
40};
41
42#endif
virtual void undo()
virtual void redo()