Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_node_graph_listener.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2007 Boudewijn Rempt <boud@valdyas.org>
3 * SPDX-FileCopyrightText: 2012 Dmitry Kazakov <dimula73@gmail.com>
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 */
7
9
10#include "kis_time_span.h"
11#include <QRect>
12#include <QtGlobal>
13
14
15struct Q_DECL_HIDDEN KisNodeGraphListener::Private
16{
17 Private() : sequenceNumber(0) {}
19};
20
25
29
30void KisNodeGraphListener::aboutToAddANode(KisNode */*parent*/, int /*index*/)
31{
32 m_d->sequenceNumber++;
33}
34
35void KisNodeGraphListener::nodeHasBeenAdded(KisNode */*parent*/, int /*index*/, KisNodeAdditionFlags /*flags*/)
36{
37 m_d->sequenceNumber++;
38}
39
40void KisNodeGraphListener::aboutToRemoveANode(KisNode */*parent*/, int /*index*/)
41{
42 m_d->sequenceNumber++;
43}
44
45void KisNodeGraphListener::nodeHasBeenRemoved(KisNode */*parent*/, int /*index*/)
46{
47 m_d->sequenceNumber++;
48}
49
50void KisNodeGraphListener::aboutToMoveNode(KisNode * /*node*/, int /*oldIndex*/, int /*newIndex*/)
51{
52 m_d->sequenceNumber++;
53}
54
55void KisNodeGraphListener::nodeHasBeenMoved(KisNode * /*node*/, int /*oldIndex*/, int /*newIndex*/)
56{
57 m_d->sequenceNumber++;
58}
59
61{
62 return m_d->sequenceNumber;
63}
64
69
74
78
82
86
90
91void KisNodeGraphListener::requestProjectionUpdate(KisNode * /*node*/, const QVector<QRect> &/*rects*/, KisProjectionUpdateFlags /*flags*/)
92{
93}
94
96{
97 Q_UNUSED(range);
98 Q_UNUSED(rect);
99}
100
102{
103 Q_UNUSED(time);
104}
105
107{
108 return 0;
109}
KisKeyframeChannel stores and manages KisKeyframes. Maps units of time to virtual keyframe values....
virtual void aboutToMoveNode(KisNode *node, int oldIndex, int newIndex)
virtual void keyframeChannelHasBeenAdded(KisNode *node, KisKeyframeChannel *channel)
virtual KisNode * graphOverlayNode() const
virtual void aboutToRemoveANode(KisNode *parent, int index)
virtual void keyframeChannelAboutToBeRemoved(KisNode *node, KisKeyframeChannel *channel)
virtual void nodeHasBeenMoved(KisNode *node, int oldIndex, int newIndex)
virtual void aboutToAddANode(KisNode *parent, int index)
virtual void requestProjectionUpdate(KisNode *node, const QVector< QRect > &rects, KisProjectionUpdateFlags flags)
virtual void nodeHasBeenAdded(KisNode *parent, int index, KisNodeAdditionFlags flags)
virtual void nodeChanged(KisNode *node)
virtual void invalidateFrames(const KisTimeSpan &range, const QRect &rect)
virtual void requestTimeSwitch(int time)
QScopedPointer< Private > m_d
virtual void nodeCollapsedChanged(KisNode *node)
virtual void nodeHasBeenRemoved(KisNode *parent, int index)