Krita Source Code Documentation
Loading...
Searching...
No Matches
KoShapeAlignCommand.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 * SPDX-FileCopyrightText: 2006 Thomas Zander <zander@kde.org>
3 * SPDX-FileCopyrightText: 2006 Jan Hambrecht <jaham@gmx.net>
4 *
5 * SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7
8#ifndef KOSHAPEALIGNCOMMAND_H
9#define KOSHAPEALIGNCOMMAND_H
10
11#include "kritaflake_export.h"
12
13#include <kundo2command.h>
14#include <QList>
15
16class KoShape;
17class QRectF;
18
20class KRITAFLAKE_EXPORT KoShapeAlignCommand : public KUndo2Command
21{
22public:
39 KoShapeAlignCommand(const QList<KoShape*> &shapes, Align align, const QRectF &boundingRect, KUndo2Command *parent = 0);
40 ~KoShapeAlignCommand() override;
42 void redo() override;
44 void undo() override;
45private:
46 class Private;
47 Private * const d;
48};
49
50#endif
virtual void undo()
virtual void redo()
The undo / redo command for aligning shapes.
Align
The different alignment options for this command.
@ VerticalCenterAlignment
Align centered vertically.
@ HorizontalLeftAlignment
Align left.
@ HorizontalCenterAlignment
Align Centered horizontally.
@ VerticalBottomAlignment
Align bottom.
@ HorizontalRightAlignment
Align Right.