File indexing completed on 2024-05-12 15:58:28
0001 /* 0002 * SPDX-FileCopyrightText: 2007 Boudewijn Rempt <boud@valdyas.org> 0003 * SPDX-FileCopyrightText: 2012 Dmitry Kazakov <dimula73@gmail.com> 0004 * 0005 * SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 0008 #include "kis_node_graph_listener.h" 0009 0010 #include "kis_time_span.h" 0011 #include <QRect> 0012 #include <QtGlobal> 0013 0014 0015 struct Q_DECL_HIDDEN KisNodeGraphListener::Private 0016 { 0017 Private() : sequenceNumber(0) {} 0018 int sequenceNumber; 0019 }; 0020 0021 KisNodeGraphListener::KisNodeGraphListener() 0022 : m_d(new Private()) 0023 { 0024 } 0025 0026 KisNodeGraphListener::~KisNodeGraphListener() 0027 { 0028 } 0029 0030 void KisNodeGraphListener::aboutToAddANode(KisNode */*parent*/, int /*index*/) 0031 { 0032 m_d->sequenceNumber++; 0033 } 0034 0035 void KisNodeGraphListener::nodeHasBeenAdded(KisNode */*parent*/, int /*index*/) 0036 { 0037 m_d->sequenceNumber++; 0038 } 0039 0040 void KisNodeGraphListener::aboutToRemoveANode(KisNode */*parent*/, int /*index*/) 0041 { 0042 m_d->sequenceNumber++; 0043 } 0044 0045 void KisNodeGraphListener::nodeHasBeenRemoved(KisNode */*parent*/, int /*index*/) 0046 { 0047 m_d->sequenceNumber++; 0048 } 0049 0050 void KisNodeGraphListener::aboutToMoveNode(KisNode * /*node*/, int /*oldIndex*/, int /*newIndex*/) 0051 { 0052 m_d->sequenceNumber++; 0053 } 0054 0055 void KisNodeGraphListener::nodeHasBeenMoved(KisNode * /*node*/, int /*oldIndex*/, int /*newIndex*/) 0056 { 0057 m_d->sequenceNumber++; 0058 } 0059 0060 int KisNodeGraphListener::graphSequenceNumber() const 0061 { 0062 return m_d->sequenceNumber; 0063 } 0064 0065 void KisNodeGraphListener::keyframeChannelHasBeenAdded(KisNode */*node*/, KisKeyframeChannel */*channel*/) 0066 { 0067 0068 } 0069 0070 void KisNodeGraphListener::keyframeChannelAboutToBeRemoved(KisNode */*node*/, KisKeyframeChannel */*channel*/) 0071 { 0072 0073 } 0074 0075 void KisNodeGraphListener::nodeChanged(KisNode * /*node*/) 0076 { 0077 } 0078 0079 void KisNodeGraphListener::nodeCollapsedChanged(KisNode * /*node*/) 0080 { 0081 } 0082 0083 void KisNodeGraphListener::invalidateAllFrames() 0084 { 0085 } 0086 0087 void KisNodeGraphListener::notifySelectionChanged() 0088 { 0089 } 0090 0091 void KisNodeGraphListener::requestProjectionUpdate(KisNode * /*node*/, const QVector<QRect> &/*rects*/, bool /*resetAnimationCache*/) 0092 { 0093 } 0094 0095 void KisNodeGraphListener::invalidateFrames(const KisTimeSpan &range, const QRect &rect) 0096 { 0097 Q_UNUSED(range); 0098 Q_UNUSED(rect); 0099 } 0100 0101 void KisNodeGraphListener::requestTimeSwitch(int time) 0102 { 0103 Q_UNUSED(time); 0104 } 0105 0106 KisNode *KisNodeGraphListener::graphOverlayNode() const 0107 { 0108 return 0; 0109 }