File indexing completed on 2024-12-22 04:14:58

0001 /*
0002  *  SPDX-FileCopyrightText: 2020 Saurabh Kumar <saurabhk660@gmail.com>
0003  *
0004  *  SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 
0007 #ifndef __STORYBOARD_TIMELINE_SYNC_TEST_H
0008 #define __STORYBOARD_TIMELINE_SYNC_TEST_H
0009 
0010 #include <simpletest.h>
0011 
0012 #include "kis_paint_layer.h"
0013 #include "kis_image.h"
0014 #include "kis_image_animation_interface.h"
0015 #include "kis_raster_keyframe_channel.h"
0016 #include "kis_undo_store.h"
0017 
0018 class StoryboardModel;
0019 class StoryboardView;
0020 
0021 class StoryboardTimelineSyncTest : public QObject
0022 {
0023     Q_OBJECT
0024 private Q_SLOTS:
0025     void initTestCase();
0026     void cleanupTestCase();
0027 
0028     void cleanup(); // Called between each test. vvv
0029 
0030     void testAddKeyframeExtendsDuration();
0031     void testStoryboardTimelineTimeSynchronization();
0032     void testDurationChange();
0033     void testFpsChanged();
0034 
0035 private:
0036     KisImageSP m_image;
0037     KisPaintLayerSP m_layer1;
0038     KisPaintLayerSP m_layer2;
0039     KisKeyframeChannel* m_channel1;
0040     KisKeyframeChannel* m_channel2;
0041     StoryboardModel *m_storyboardModel;
0042     StoryboardView *m_storyboardView;
0043 };
0044 
0045 #endif