Krita Source Code Documentation
Loading...
Searching...
No Matches
KoShapeStrokeCommand.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 *
3 * SPDX-FileCopyrightText: 2006 Thomas Zander <zander@kde.org>
4 * SPDX-FileCopyrightText: 2006-2008 Jan Hambrecht <jaham@gmx.net>
5 * SPDX-FileCopyrightText: 2012 Inge Wallin <inge@lysator.liu.se>
6 *
7 * SPDX-License-Identifier: LGPL-2.0-or-later
8 */
9
10#ifndef KOSHAPESTROKECOMMAND_H
11#define KOSHAPESTROKECOMMAND_H
12
13#include "kritaflake_export.h"
14
15#include <KoFlakeTypes.h>
16#include <kundo2command.h>
17#include <QList>
18
19class KoShape;
21
23class KRITAFLAKE_EXPORT KoShapeStrokeCommand : public KUndo2Command
24{
25public:
33
40 KoShapeStrokeCommand(const QList<KoShape*> &shapes, const QList<KoShapeStrokeModelSP> &strokes, KUndo2Command *parent = 0);
41
49
50 ~KoShapeStrokeCommand() override;
52 void redo() override;
54 void undo() override;
55
56 int id() const override;
57 bool mergeWith(const KUndo2Command *command) override;
58
59private:
60 class Private;
61 Private * const d;
62};
63
64#endif
virtual bool mergeWith(const KUndo2Command *other)
virtual void undo()
virtual void redo()
virtual int id() const
The undo / redo command for setting the shape stroke.