Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_image_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_COMMAND_H_
9#define KIS_IMAGE_COMMAND_H_
10
11#include <kritaimage_export.h>
12
13#include <kundo2command.h>
14
15#include <QSize>
16#include <QRect>
17#include "kis_types.h"
18#include "kis_paint_device.h"
19
20
22class KRITAIMAGE_EXPORT KisImageCommand : public KUndo2Command
23{
24
25public:
32 KisImageCommand(const KUndo2MagicString& name, KisImageWSP image, KUndo2Command *parent = 0);
33 ~KisImageCommand() override;
34
35public:
36
44 {
45 public:
46 UpdateTarget(KisImageWSP image, KisNodeSP removedNode, const QRect &updateRect);
47 void update();
48
49 private:
54 };
55
56protected:
58};
59
60#endif // KIS_IMAGE_COMMAND_H_
the base command for commands altering a KisImage