Commit 985c9baa authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

Use forward declarations.

parent 9305b156
......@@ -29,7 +29,8 @@
#include <QVector>
#include "UndoStack.h"
#include "MainWorkflow.h"
#include "Clip.h"
class Clip;
#define NEW_COMMAND(x) class x : public QUndoCommand
......
......@@ -24,6 +24,7 @@
#include "ClipProperty.h"
#include "ui_ClipProperty.h"
#include "Media.h"
#include "Clip.h"
#include <QTime>
#include <QPushButton>
......
......@@ -26,9 +26,10 @@
#include <QDialog>
#include <QStringListModel>
#include "Clip.h"
#include <QAbstractButton>
class Clip;
namespace Ui {
class ClipProperty;
}
......
......@@ -24,13 +24,18 @@
#include "ui_ImportController.h"
#include "Clip.h"
#include "ClipRenderer.h"
#include "ImportController.h"
#include "Library.h"
#include "MetaDataManager.h"
#include "Media.h"
#include "MediaCellView.h"
#include "MediaListView.h"
#include "MetaDataManager.h"
#include "PreviewWidget.h"
#include "TagWidget.h"
#include <QFileSystemModel>
#include <QPalette>
#include <QSettings>
#include <QTime>
......
......@@ -30,19 +30,21 @@
#ifndef IMPORTCONTROLLER_H
#define IMPORTCONTROLLER_H
#include "Clip.h"
#include "Media.h"
#include "PreviewWidget.h"
#include "StackViewController.h"
#include "TagWidget.h"
#include <QDialog>
#include <QFileSystemModel>
#include <QProgressDialog>
#include <QUuid>
class Clip;
class Media;
class ClipRenderer;
class MediaContainer;
class MediaListView;
class PreviewWidget;
class TagWidget;
class QFileSystemModel;
class QModelIndex;
namespace Ui
{
......
......@@ -25,6 +25,7 @@
#include "ui_TagWidget.h"
#include "Media.h"
#include "Clip.h"
#include <QPushButton>
......
......@@ -28,7 +28,8 @@
#include <QStringList>
#include <QFileInfo>
#include <QCompleter>
#include "Clip.h"
class Clip;
namespace Ui
{
......
......@@ -24,9 +24,10 @@
#include "MediaCellView.h"
#include "ui_MediaCellView.h"
#include "Clip.h"
#include "ClipProperty.h"
#include "Media.h"
#include "Library.h"
#include "ClipProperty.h"
#include <QTime>
......
......@@ -27,7 +27,6 @@
#include <QPushButton>
#include <QHBoxLayout>
#include <QLabel>
#include <QDebug>
#include <QStack>
#include "StackViewNavController.h"
......
......@@ -26,6 +26,7 @@
#include <QTime>
#include <QFontMetrics>
#include "Clip.h"
#include "GraphicsMovieItem.h"
#include "Media.h"
#include "TracksView.h"
......@@ -233,3 +234,9 @@ void GraphicsMovieItem::mouseReleaseEvent( QGraphicsSceneMouseEvent* event )
setCursor( Qt::OpenHandCursor );
}
const QUuid&
GraphicsMovieItem::uuid() const
{
return m_clip->uuid();
}
......@@ -24,9 +24,10 @@
#define GRAPHICSMOVIEITEM_H
#include "AbstractGraphicsMediaItem.h"
#include "Clip.h"
#include "TracksView.h"
class Clip;
#define Z_SELECTED 4
#define Z_NOT_SELECTED 3
......@@ -49,7 +50,7 @@ public:
virtual int type() const { return Type; }
virtual bool expandable() const { return false; }
virtual bool moveable() const { return true; }
virtual const QUuid& uuid() const { return m_clip->uuid(); }
virtual const QUuid& uuid() const;
virtual MainWorkflow::TrackType mediaType() const;
virtual void paint( QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0 );
......
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