Krita Source Code Documentation
Loading...
Searching...
No Matches
KoShapeTransparencyCommand.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 * SPDX-FileCopyrightText: 2009 Jan Hambrecht <jaham@gmx.net>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7#ifndef KOSHAPETRANSPARENCYCOMMAND_H
8#define KOSHAPETRANSPARENCYCOMMAND_H
9
10#include "kritaflake_export.h"
11
12#include <kundo2command.h>
13#include <QList>
14
15class KoShape;
16
18class KRITAFLAKE_EXPORT KoShapeTransparencyCommand : public KUndo2Command
19{
20public:
27 KoShapeTransparencyCommand(const QList<KoShape*> &shapes, qreal transparency, KUndo2Command *parent = 0);
28
35 KoShapeTransparencyCommand(KoShape *shape, qreal transparency, KUndo2Command *parent = 0);
36
43 KoShapeTransparencyCommand(const QList<KoShape*> &shapes, const QList<qreal> &transparencies, KUndo2Command *parent = 0);
44
47 void redo() override;
49 void undo() override;
50
51 int id() const override;
52 bool mergeWith(const KUndo2Command *command) override;
53
54private:
55 class Private;
56 Private * const d;
57};
58
59#endif // KOSHAPETRANSPARENCYCOMMAND_H
virtual bool mergeWith(const KUndo2Command *other)
virtual void undo()
virtual void redo()
virtual int id() const
The undo / redo command for setting the shape transparency.