Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_image_layer_move_command.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2002 Patrick Julien <freak@codepimps.org>
3 * SPDX-FileCopyrightText: 2007 Sven Langkamp <sven.langkamp@gmail.com>
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 */
7
8#ifndef KIS_IMAGE_LAYER_MOVE_COMMAND_H_
9#define KIS_IMAGE_LAYER_MOVE_COMMAND_H_
10
11#include <kritaimage_export.h>
12
13#include <QSize>
14#include "kis_types.h"
15#include "kis_image_command.h"
16
18class KRITAIMAGE_EXPORT KisImageLayerMoveCommand : public KisImageCommand
19{
20
21
22public:
32 KisImageLayerMoveCommand(KisImageWSP image, KisNodeSP node, KisNodeSP newParent, KisNodeSP newAbove, bool doUpdates = true);
33 KisImageLayerMoveCommand(KisImageWSP image, KisNodeSP node, KisNodeSP newParent, quint32 index);
34
35 void redo() override;
36 void undo() override;
37
38private:
44 quint32 m_index;
45
48};
49
50#endif
virtual void undo()
virtual void redo()
the base command for commands altering a KisImage
The command for layer moves inside the layer stack.