Krita Source Code Documentation
Loading...
Searching...
No Matches
KoShapeMoveCommand.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 KOSHAPEMOVECOMMAND_H
9
#define KOSHAPEMOVECOMMAND_H
10
11
#include "kritaflake_export.h"
12
13
#include <
kundo2command.h
>
14
#include <QList>
15
#include <QPointF>
16
#include <
KoFlake.h
>
17
18
class
KoShape
;
19
21
class
KRITAFLAKE_EXPORT
KoShapeMoveCommand
:
public
KUndo2Command
22
{
23
public
:
33
KoShapeMoveCommand
(
const
QList<KoShape*>
&shapes,
QList<QPointF>
&previousPositions,
QList<QPointF>
&newPositions,
34
KoFlake::AnchorPosition
anchor =
KoFlake::Center
,
KUndo2Command
*parent = 0);
35
36
KoShapeMoveCommand
(
const
QList<KoShape*>
&shapes,
const
QPointF &offset,
KUndo2Command
*parent = 0);
37
38
~KoShapeMoveCommand
()
override
;
40
void
redo
()
override
;
42
void
undo
()
override
;
43
44
int
id
()
const override
;
45
bool
mergeWith
(
const
KUndo2Command
*command)
override
;
46
47
private
:
48
class
Private
;
49
Private
*
const
d
;
50
};
51
52
#endif
KoFlake.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
KoShapeMoveCommand
The undo / redo command for shape moving.
Definition
KoShapeMoveCommand.cpp:16
KoShapeMoveCommand::d
Private *const d
Definition
KoShapeMoveCommand.h:49
KoShape
Definition
KoShape.h:92
QList
Definition
KisQStringListFwd.h:16
kundo2command.h
KoFlake::AnchorPosition
AnchorPosition
Definition
KoFlake.h:85
KoFlake::Center
@ Center
Definition
KoFlake.h:90
Private
Definition
SvgTransformParser.cpp:20
libs
flake
commands
KoShapeMoveCommand.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52