Krita Source Code Documentation
Loading...
Searching...
No Matches
KoShapeResizeCommand.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2016 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KOSHAPERESIZECOMMAND_H
8#define KOSHAPERESIZECOMMAND_H
9
10#include "kritaflake_export.h"
11#include "kundo2command.h"
12#include "kis_command_utils.h"
13
14#include <QList>
15#include <QPointF>
16#include <KoFlake.h>
17
18#include <QScopedPointer>
19
20class KoShape;
21
22
23class KRITAFLAKE_EXPORT KoShapeResizeCommand : public KisCommandUtils::SkipFirstRedoBase
24{
25public:
27 qreal scaleX, qreal scaleY,
28 const QPointF &absoluteStillPoint, bool useGLobalMode,
29 bool usePostScaling, const QTransform &postScalingCoveringTransform,
30 KUndo2Command *parent = 0);
31
32 ~KoShapeResizeCommand() override;
33 void redoImpl() override;
34 void undoImpl() override;
35
36 QMap<KoShape*, QRectF> redoNoUpdate();
37 QMap<KoShape*, QRectF> undoNoUpdate();
38
39 int id() const override;
40 bool mergeWith(const KUndo2Command *command) override;
41
42 void replaceResizeAction(qreal scaleX, qreal scaleY,
43 const QPointF &absoluteStillPoint);
44
45private:
46 struct Private;
47 QScopedPointer<Private> const m_d;
48
49};
50
51#endif // KOSHAPERESIZECOMMAND_H
virtual bool mergeWith(const KUndo2Command *other)
virtual int id() const
QScopedPointer< Private > const m_d