Krita Source Code Documentation
Loading...
Searching...
No Matches
KoShapeDistributeCommand.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 KOSHAPEDISTRIBUTECOMMAND_H
9#define KOSHAPEDISTRIBUTECOMMAND_H
10
11
12#include "kritaflake_export.h"
13
14#include <kundo2command.h>
15#include <QList>
16
17class KoShape;
18
20class KRITAFLAKE_EXPORT KoShapeDistributeCommand : public KUndo2Command
21{
22public:
41 KoShapeDistributeCommand(const QList<KoShape*> &shapes, Distribute distribute,
42 const QRectF &boundingRect, KUndo2Command *parent = 0);
45 void redo() override;
47 void undo() override;
48private:
49
50 class Private;
51 Private * const d;
52};
53
54#endif
virtual void undo()
virtual void redo()
The undo / redo command for distributing shapes.
Distribute
The different options to distribute with this command.
@ HorizontalRightDistribution
Horizontal Right.
@ VerticalCenterDistribution
Vertical centered.
@ HorizontalGapsDistribution
Horizontal Gaps.
@ VerticalBottomDistribution
Vertical bottom.
@ HorizontalCenterDistribution
Horizontal centered.
@ HorizontalLeftDistribution
Horizontal Left.