X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fkdenlivedoc.h;h=b1b353bc68a74e5a2005880b5a6258c4a5f29b8b;hb=ca8cd6607f6277a27b5654dafe3780235b0bc7a0;hp=a2fdc171223f304fa0214e18376a4d09f14fa8ac;hpb=c42a026234a44a2d766e57bc64a6ac7bbd094000;p=kdenlive diff --git a/src/kdenlivedoc.h b/src/kdenlivedoc.h index a2fdc171..b1b353bc 100644 --- a/src/kdenlivedoc.h +++ b/src/kdenlivedoc.h @@ -49,7 +49,7 @@ class KdenliveDoc: public QObject { Q_OBJECT public: - KdenliveDoc(const KUrl &url, const KUrl &projectFolder, QUndoGroup *undoGroup, const QString &profileName, const QPoint tracks, Render *render, MainWindow *parent = 0); + KdenliveDoc(const KUrl &url, const KUrl &projectFolder, QUndoGroup *undoGroup, QString profileName, const QPoint tracks, Render *render, MainWindow *parent = 0); ~KdenliveDoc(); QDomNodeList producersList(); double fps() const; @@ -62,8 +62,6 @@ Q_OBJECT public: //void setRenderer(Render *render); QUndoStack *commandStack(); QString producerName(const QString &id); - void setProducerDuration(const QString &id, int duration); - int getProducerDuration(const QString &id); Render *renderer(); QDomDocument m_guidesXml; QDomElement guidesXml() const; @@ -119,7 +117,6 @@ Q_OBJECT public: private: KUrl m_url; QDomDocument m_document; - QString m_projectName; double m_fps; int m_zoom; /** Cursor position at document opening */ @@ -133,7 +130,7 @@ private: MltVideoProfile m_profile; QTimer *m_autoSaveTimer; QString m_searchFolder; - /** tells whether current doc has been changed since last save event */ + /** tells whether current doc has been changed since last save event */ bool m_modified; /** Project folder, used to store project files (titles, effects,...) */ KUrl m_projectFolder; @@ -145,18 +142,19 @@ private: QList m_tracksList; - bool convertDocument(double version); QDomDocument createEmptyDocument(const int videotracks, const int audiotracks); - QString colorToString(const QColor& c); - void checkProjectClips(); + void setNewClipResource(const QString &id, const QString &path); QString searchFileRecursively(const QDir &dir, const QString &matchSize, const QString &matchHash) const; void moveProjectData(KUrl url); + bool checkDocumentClips(QDomNodeList infoproducers); public slots: void slotCreateTextClip(QString group, const QString &groupId); + void slotCreateTextTemplateClip(QString group, const QString &groupId); /** Set to true if document needs saving, false otherwise */ void setModified(bool mod = true); + void checkProjectClips(); private slots: void slotAutoSave(); @@ -168,7 +166,7 @@ signals: void updateClipDisplay(const QString&); void deleteTimelineClip(const QString&); void progressInfo(const QString &, int); - /** emitted when the document state has been modified (= needs saving or not) */ + /** emitted when the document state has been modified (= needs saving or not) */ void docModified(bool); void selectLastAddedClip(const QString &); void guidesUpdated();