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
13
class
KoShape
;
14
class
KoSvgTextProperties
;
15
21
class
KRITAFLAKE_EXPORT
KoShapeMergeTextPropertiesCommand
:
public
KUndo2Command
22
{
23
public
:
24
KoShapeMergeTextPropertiesCommand
(
const
QList<KoShape*>
&shapes,
const
KoSvgTextProperties
&props,
const
QSet<KoSvgTextProperties::PropertyId> removeProperties = QSet<KoSvgTextProperties::PropertyId>(),
KUndo2Command
*parent =
nullptr
);
25
~KoShapeMergeTextPropertiesCommand
() =
default
;
26
27
void
redo
()
override
;
28
void
undo
()
override
;
29
30
int
id
()
const override
;
31
bool
mergeWith
(
const
KUndo2Command
*command)
override
;
32
private
:
33
class
Private
;
34
QScopedPointer<Private>
d
;
35
};
36
37
#endif
// KOMERGETEXTPROPERTIESINTOSHAPESCOMMAND_H
KoSvgTextProperties.h
KUndo2Command
Definition
kundo2stack.h:87
KUndo2Command::mergeWith
virtual bool mergeWith(const KUndo2Command *other)
Definition
kundo2stack.cpp:205
KUndo2Command::undo
virtual void undo()
Definition
kundo2stack.cpp:240
KUndo2Command::redo
virtual void redo()
Definition
kundo2stack.cpp:222
KUndo2Command::id
virtual int id() const
Definition
kundo2stack.cpp:181
KoShapeMergeTextPropertiesCommand
The KoShapeMergeTextPropertiesCommand class This sets text properties on given text shapes....
Definition
KoShapeMergeTextPropertiesCommand.h:22
KoShapeMergeTextPropertiesCommand::d
QScopedPointer< Private > d
Definition
KoShapeMergeTextPropertiesCommand.h:34
KoShapeMergeTextPropertiesCommand::~KoShapeMergeTextPropertiesCommand
~KoShapeMergeTextPropertiesCommand()=default
KoShape
Definition
KoShape.h:92
KoSvgTextProperties
Definition
KoSvgTextProperties.h:44
QList
Definition
KisQStringListFwd.h:16
kundo2command.h
Private
Definition
SvgTransformParser.cpp:20
libs
flake
commands
KoShapeMergeTextPropertiesCommand.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52