RenderPreviewWidget.h 2.22 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
/*****************************************************************************
 * RenderPreviewWidget.h: Allow a current workflow preview
 *****************************************************************************
 * Copyright (C) 2008-2009 the VLMC team
 *
 * Authors: Hugo Beauzee-Luyssen <hugo@vlmc.org>
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
 *****************************************************************************/

#ifndef RENDERPREVIEWWIDGET_H
#define RENDERPREVIEWWIDGET_H

26

27 28 29 30
#include <QObject>
#include <QWidget>

#include "Workflow/MainWorkflow.h"
31
#include "GenericPreviewWidget.h"
32 33

//TODO: This should really share a common interface with ClipPreviewWorkflow
34
class   RenderPreviewWidget : public GenericPreviewWidget
35 36 37 38 39 40 41 42
{
    Q_OBJECT
    Q_DISABLE_COPY( RenderPreviewWidget )

    public:
        RenderPreviewWidget( MainWorkflow* mainWorkflow, QWidget* renderWidget );
        ~RenderPreviewWidget();

43 44 45
        virtual void        startPreview( Media* );
        virtual void        setPosition( float newPos );
        virtual void        togglePlayPause();
46 47

    private:
48
        MainWorkflow*       m_mainWorkflow;
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64

public slots:
    void                    __positionChanged();
    void                    __videoPaused();
    void                    __videoPlaying();
    void                    __endReached();

signals:
    void                    stopped();
    void                    paused();
    void                    playing();
    void                    positionChanged( float );
    void                    endReached();
};

#endif // RENDERPREVIEWWIDGET_H