Commit 79cf97d7 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Removing more inclusion of MainWorkflow.h

parent 583032e6
......@@ -21,8 +21,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#include "vlmc.h"
#include "WorkflowFileRendererDialog.h"
#include "vlmc.h"
#include "MainWorkflow.h"
#include "WorkflowFileRenderer.h"
WorkflowFileRendererDialog::WorkflowFileRendererDialog( WorkflowFileRenderer* renderer,
......@@ -32,7 +34,6 @@ WorkflowFileRendererDialog::WorkflowFileRendererDialog( WorkflowFileRenderer* re
m_renderer( renderer )
{
m_ui.setupUi( this );
m_workflow = MainWorkflow::getInstance();
connect( m_ui.cancelButton, SIGNAL( clicked() ), m_renderer, SLOT( stop() ) );
connect( m_ui.cancelButton, SIGNAL( clicked() ), this, SLOT( close() ) );
connect( m_renderer, SIGNAL( renderComplete() ), this, SLOT( accept() ) );
......@@ -64,6 +65,6 @@ void WorkflowFileRendererDialog::updatePreview( const uchar* buff )
void WorkflowFileRendererDialog::frameChanged( qint64 frame )
{
m_ui.frameCounter->setText( tr("Rendering frame %1 / %2").arg(QString::number( frame ),
QString::number(m_workflow->getLengthFrame() ) ) );
setProgressBarValue( frame * 100 / m_workflow->getLengthFrame() );
QString::number(MainWorkflow::getInstance()->getLengthFrame() ) ) );
setProgressBarValue( frame * 100 / MainWorkflow::getInstance()->getLengthFrame() );
}
......@@ -26,8 +26,6 @@
#include <QDialog>
#include "ui_WorkflowFileRendererDialog.h"
#include "MainWorkflow.h"
class WorkflowFileRenderer;
class WorkflowFileRendererDialog : public QDialog
......@@ -41,7 +39,6 @@ public:
private:
Ui::WorkflowFileRendererDialog m_ui;
MainWorkflow* m_workflow;
quint32 m_width;
quint32 m_height;
WorkflowFileRenderer *m_renderer;
......
......@@ -23,7 +23,6 @@
#ifndef GRAPHICSCURSORITEM_H
#define GRAPHICSCURSORITEM_H
#include "MainWorkflow.h"
#include "Types.h"
#include <QObject>
#include <QGraphicsItem>
......
......@@ -23,6 +23,7 @@
#include <QList>
#include "TracksView.h"
#include "GraphicsTrack.h"
#include "MainWorkflow.h"
GraphicsTrack::GraphicsTrack( Workflow::TrackType type, quint32 trackNumber,
QGraphicsItem *parent ) : QGraphicsWidget( parent )
......
......@@ -35,12 +35,13 @@ class QWheelEvent;
class QGraphicsWidget;
class QGraphicsLinearLayout;
class TracksScene;
class GraphicsMovieItem;
class GraphicsAudioItem;
class WorkflowRenderer;
class TracksScene;
class GraphicsMovieItem;
class GraphicsAudioItem;
class MainWorkflow;
class WorkflowRenderer;
class ItemPosition
class ItemPosition
{
public:
ItemPosition() : m_track( -1 ), m_time( -1 )
......
......@@ -30,7 +30,7 @@
# include <QWidget>
#endif
#include "MainWorkflow.h"
#include "Types.h"
class Clip;
class Media;
......
......@@ -27,6 +27,7 @@
#include "ClipHelper.h"
#include "AudioClipWorkflow.h"
#include "ImageClipWorkflow.h"
#include "MainWorkflow.h"
#include "Media.h"
#include "MixerInstance.h"
#include "Types.h"
......
......@@ -24,13 +24,14 @@
#define TRACKWORKFLOW_H
#include "EffectsEngine.h"
#include "MainWorkflow.h"
#include "Types.h"
#include <QObject>
#include <QMap>
#include <QXmlStreamWriter>
class Clip;
class ClipHelper;
class ClipWorkflow;
class QDomElement;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment