Krita Source Code Documentation
Loading...
Searching...
No Matches
KoShapeMergeTextPropertiesCommand.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2024 Wolthera van Hövell tot Westerflier <griffinvalley@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6#ifndef KOMERGETEXTPROPERTIESINTOSHAPESCOMMAND_H
7#define KOMERGETEXTPROPERTIESINTOSHAPESCOMMAND_H
8
9#include "kritaflake_export.h"
10#include <kundo2command.h>
11#include <KoSvgTextProperties.h>
12
13class KoShape;
15
21class KRITAFLAKE_EXPORT KoShapeMergeTextPropertiesCommand : public KUndo2Command
22{
23public:
24 KoShapeMergeTextPropertiesCommand(const QList<KoShape*> &shapes, const KoSvgTextProperties &props, const QSet<KoSvgTextProperties::PropertyId> removeProperties = QSet<KoSvgTextProperties::PropertyId>(), KUndo2Command *parent = nullptr);
26
27 void redo() override;
28 void undo() override;
29
30 int id() const override;
31 bool mergeWith(const KUndo2Command *command) override;
32private:
33 class Private;
34 QScopedPointer<Private> d;
35};
36
37#endif // KOMERGETEXTPROPERTIESINTOSHAPESCOMMAND_H
virtual bool mergeWith(const KUndo2Command *other)
virtual void undo()
virtual void redo()
virtual int id() const
The KoShapeMergeTextPropertiesCommand class This sets text properties on given text shapes....