Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_node_juggler_compressed.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2015 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef __KIS_NODE_JUGGLER_COMPRESSED_H
8#define __KIS_NODE_JUGGLER_COMPRESSED_H
9
10#include <QObject>
11#include <QScopedPointer>
12
13#include <kritaui_export.h>
14#include <kundo2command.h>
15#include "kis_types.h"
16#include "kis_node_manager.h"
17
18
19class KRITAUI_EXPORT KisNodeJugglerCompressed : public QObject
20{
21 Q_OBJECT
22public:
23 KisNodeJugglerCompressed(const KUndo2MagicString &actionName, KisImageSP image, KisNodeManager *nodeManager, int timeout);
25
26 void moveNode(KisNodeSP node, KisNodeSP parent, KisNodeSP above);
27 void setAutoDelete(bool value);
28
29 bool isEnded() const;
30
31 void lowerNode(const KisNodeList &nodes);
32 void raiseNode(const KisNodeList &nodes);
33 void removeNode(const KisNodeList &nodes);
34 void duplicateNode(const KisNodeList &nodes);
35
36 void copyNode(const KisNodeList &nodes, KisNodeSP dstParent, KisNodeSP dstAbove);
37 void moveNode(const KisNodeList &nodes, KisNodeSP dstParent, KisNodeSP dstAbove);
38 void addNode(const KisNodeList &nodes, KisNodeSP dstParent, KisNodeSP dstAbove);
39
40 bool canMergeAction(const KUndo2MagicString &actionName);
41
42public Q_SLOTS:
43 void end();
44
45private Q_SLOTS:
46 void startTimers();
47 void slotUpdateTimeout();
48 void slotEndStrokeRequested();
49 void slotUndoDuringStrokeRequested();
50 void slotImageAboutToBeDeleted();
51
52Q_SIGNALS:
54
55private:
56 void cleanup();
57
58private:
59 struct Private;
60 const QScopedPointer<Private> m_d;
61};
62
63#endif /* __KIS_NODE_JUGGLER_COMPRESSED_H */
float value(const T *src, size_t ch)
const QScopedPointer< Private > m_d