Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_node_graph_listener.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2007 Boudewijn Rempt <boud@valdyas.org>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6#ifndef KIS_NODE_GRAPH_LISTENER_H_
7#define KIS_NODE_GRAPH_LISTENER_H_
8
9#include "kritaimage_export.h"
10
11#include <QScopedPointer>
14
15class KisTimeSpan;
16class KisNode;
17class QRect;
19
34class KRITAIMAGE_EXPORT KisNodeGraphListener
35{
36
37public:
39
40 virtual ~KisNodeGraphListener();
41
45 virtual void aboutToAddANode(KisNode *parent, int index);
46
50 virtual void nodeHasBeenAdded(KisNode *parent, int index, KisNodeAdditionFlags flags);
51
55 virtual void aboutToRemoveANode(KisNode *parent, int index);
56
60 virtual void nodeHasBeenRemoved(KisNode *parent, int index);
61
66 virtual void aboutToMoveNode(KisNode * node, int oldIndex, int newIndex);
67
72 virtual void nodeHasBeenMoved(KisNode * node, int oldIndex, int newIndex);
73
74 virtual void nodeChanged(KisNode * node);
75
76 virtual void nodeCollapsedChanged(KisNode * node);
77
78 virtual void invalidateAllFrames();
79
86 virtual void notifySelectionChanged();
87
91 virtual void requestProjectionUpdate(KisNode * node, const QVector<QRect> &rects, KisProjectionUpdateFlags flags);
92
93 virtual void invalidateFrames(const KisTimeSpan &range, const QRect &rect);
94
95 virtual void requestTimeSwitch(int time);
96
97 virtual KisNode* graphOverlayNode() const;
98
111 int graphSequenceNumber() const;
112
116 virtual void keyframeChannelHasBeenAdded(KisNode *node, KisKeyframeChannel *channel);
117 virtual void keyframeChannelAboutToBeRemoved(KisNode *node, KisKeyframeChannel *channel);
118
119private:
120 struct Private;
121 QScopedPointer<Private> m_d;
122};
123
124#endif
KisKeyframeChannel stores and manages KisKeyframes. Maps units of time to virtual keyframe values....
QScopedPointer< Private > m_d