class Render;
class ClipManager;
class DocClipBase;
+class MainWindow;
class KdenliveDoc: public QObject {
Q_OBJECT public:
- KdenliveDoc(const KUrl &url, const KUrl &projectFolder, MltVideoProfile profile, QUndoGroup *undoGroup, QWidget *parent = 0);
+ KdenliveDoc(const KUrl &url, const KUrl &projectFolder, MltVideoProfile profile, QUndoGroup *undoGroup, MainWindow *parent = 0);
~KdenliveDoc();
QDomNodeList producersList();
double fps() const;
void deleteProjectClip(QList <int> ids);
void deleteProjectFolder(QMap <QString, int> map);
/** Inform application of the audio thumbnails generation progress */
- void setThumbsProgress(KUrl url, int progress);
+ void setThumbsProgress(const QString &message, int progress);
QString profilePath() const;
QString description() const;
/** Returns the document format: PAL or NTSC */
QString getDocumentStandard();
void setUrl(KUrl url);
- QDomElement documentInfoXml();
+ QDomElement documentInfoXml(QDomElement timelineInfo);
void setProfilePath(QString path);
/** Set to true if document needs saving, false otherwise */
void setModified(bool mod);
bool isModified() const;
/** Returns project folder, used to store project files (titles, effects,...) */
KUrl projectFolder() const;
-
+ /** Used to inform main app of the current document loading progress */
+ void loadingProgressed();
private:
KUrl m_url;
QDomDocument m_document;
QString m_projectName;
double m_fps;
+ /** Cursor position at document opening */
+ int m_startPos;
int m_width;
int m_height;
Timecode m_timecode;
bool m_modified;
/** Project folder, used to store project files (titles, effects,...) */
KUrl m_projectFolder;
+ double m_documentLoadingStep;
+ double m_documentLoadingProgress;
+ void convertDocument(double version);
public slots:
void slotCreateTextClip(QString group, int groupId);
void signalDeleteProjectClip(int);
void updateClipDisplay(int);
void deletTimelineClip(int);
- void thumbsProgress(KUrl, int);
+ void progressInfo(const QString &, int);
/** emited when the document state has been modified (= needs saving or not) */
void docModified(bool);
void refreshClipThumbnail(int);