Krita Source Code Documentation
Loading...
Searching...
No Matches
KoPathPointMoveCommand.h
Go to the documentation of this file.
1
/* This file is part of the KDE project
2
* SPDX-FileCopyrightText: 2006, 2009 Jan Hambrecht <jaham@gmx.net>
3
* SPDX-FileCopyrightText: 2006, 2007 Thorsten Zachmann <zachmann@kde.org>
4
* SPDX-FileCopyrightText: 2007 Thomas Zander <zander@kde.org>
5
*
6
* SPDX-License-Identifier: LGPL-2.0-or-later
7
*/
8
9
#ifndef KOPATHPOINTMOVECOMMAND_H
10
#define KOPATHPOINTMOVECOMMAND_H
11
12
#include "kritaflake_export.h"
13
14
#include <
kundo2command.h
>
15
16
#include "
KoPathPointData.h
"
17
18
class
KoPathPointMoveCommandPrivate
;
19
class
QPointF;
20
22
class
KRITAFLAKE_EXPORT
KoPathPointMoveCommand
:
public
KUndo2Command
23
{
24
public
:
31
KoPathPointMoveCommand
(
const
QList<KoPathPointData>
&pointData,
const
QPointF &offset,
KUndo2Command
*parent = 0);
32
39
KoPathPointMoveCommand
(
const
QList<KoPathPointData>
&pointData,
const
QList<QPointF>
&offsets,
KUndo2Command
*parent = 0);
40
41
~KoPathPointMoveCommand
()
override
;
42
44
void
redo
()
override
;
46
void
undo
()
override
;
47
48
int
id
()
const override
;
49
bool
mergeWith
(
const
KUndo2Command
*command)
override
;
50
51
private
:
52
KoPathPointMoveCommandPrivate
*
const
d
;
53
};
54
55
#endif
// KOPATHPOINTMOVECOMMAND_H
KoPathPointData.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
KoPathPointMoveCommandPrivate
Definition
KoPathPointMoveCommand.cpp:16
KoPathPointMoveCommand
The undo / redo command for path point moving.
Definition
KoPathPointMoveCommand.h:23
KoPathPointMoveCommand::d
KoPathPointMoveCommandPrivate *const d
Definition
KoPathPointMoveCommand.h:52
QList
Definition
KisQStringListFwd.h:16
kundo2command.h
libs
flake
commands
KoPathPointMoveCommand.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52