Debian Codegraph @

plugins/dockers/storyboarddocker/tests/StoryboardTimelineSyncTest.h

raw
1 /*
2 * SPDX-FileCopyrightText: 2020 Saurabh Kumar <[email protected]>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7 #ifndef __STORYBOARD_TIMELINE_SYNC_TEST_H
8 #define __STORYBOARD_TIMELINE_SYNC_TEST_H
9
10 #include <simpletest.h>
11
12 #include "kis_paint_layer.h"
13 #include "kis_image.h"
14 #include "kis_image_animation_interface.h"
15 #include "kis_raster_keyframe_channel.h"
16 #include "kis_undo_store.h"
17
18 class StoryboardModel;
19 class StoryboardView;
20
21 class StoryboardTimelineSyncTest : public QObject
22 {
23 Q_OBJECT
24 private Q_SLOTS:
25 void initTestCase();
26 void cleanupTestCase();
27
28 void cleanup(); // Called between each test. vvv
29
30 void testAddKeyframeExtendsDuration();
31 void testStoryboardTimelineTimeSynchronization();
32 void testDurationChange();
33 void testFpsChanged();
34
35 private:
36 KisImageSP m_image;
37 KisPaintLayerSP m_layer1;
38 KisPaintLayerSP m_layer2;
39 KisKeyframeChannel* m_channel1;
40 KisKeyframeChannel* m_channel2;
41 StoryboardModel *m_storyboardModel;
42 StoryboardView *m_storyboardView;
43 };
44
45 #endif