Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++
1.0 KB
Raw Blame
/*
 *  SPDX-FileCopyrightText: 2020 Saurabh Kumar <[email protected]>
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 */

#ifndef __STORYBOARD_TIMELINE_SYNC_TEST_H
#define __STORYBOARD_TIMELINE_SYNC_TEST_H

#include <simpletest.h>

#include "kis_paint_layer.h"
#include "kis_image.h"
#include "kis_image_animation_interface.h"
#include "kis_raster_keyframe_channel.h"
#include "kis_undo_store.h"

class StoryboardModel;
class StoryboardView;

class StoryboardTimelineSyncTest : public QObject
{
    Q_OBJECT
private Q_SLOTS:
    void initTestCase();
    void cleanupTestCase();

    void cleanup(); // Called between each test. vvv

    void testAddKeyframeExtendsDuration();
    void testStoryboardTimelineTimeSynchronization();
    void testDurationChange();
    void testFpsChanged();

private:
    KisImageSP m_image;
    KisPaintLayerSP m_layer1;
    KisPaintLayerSP m_layer2;
    KisKeyframeChannel* m_channel1;
    KisKeyframeChannel* m_channel2;
    StoryboardModel *m_storyboardModel;
    StoryboardView *m_storyboardView;
};

#endif