]> git.sesse.net Git - kdenlive/blobdiff - src/kdenlivedoc.h
Change tab icon & font when document was modified
[kdenlive] / src / kdenlivedoc.h
index 4eb8f5eda76fc1fb3a198132241b1f584b21049e..6c6f783f94b84c159054937075627cb7a87ea4c0 100644 (file)
@@ -26,6 +26,7 @@
 #include <qmap.h>
 #include <QList>
 #include <QObject>
+#include <QUndoGroup>
 
 #include <KUndoStack>
 #include <kurl.h>
 #include "timecode.h"
 #include "renderer.h"
 #include "clipmanager.h"
+#include "definitions.h"
 
 class KdenliveDoc: public QObject {
 Q_OBJECT public:
 
-    KdenliveDoc(const KUrl &url, double fps, int width, int height, QWidget *parent = 0);
+    KdenliveDoc(const KUrl &url, MltVideoProfile profile, QUndoGroup *undoGroup, QWidget *parent = 0);
     ~KdenliveDoc();
-    QString documentName();
     QDomNodeList producersList();
-    double fps();
-    int width();
-    int height();
-    KUrl url();
-    void setProducers(QDomElement doc);
-    Timecode timecode();
-    QDomDocument toXml();
+    double fps() const;
+    int width() const;
+    int height() const;
+    KUrl url() const;
+    void backupMltPlaylist();
+    Timecode timecode() const;
+    QDomDocument toXml() const;
     void setRenderer(Render *render);
     KUndoStack *commandStack();
     QString producerName(int id);
@@ -66,6 +67,15 @@ Q_OBJECT public:
     void deleteProjectClip(const uint clipId);
     /** Inform application of the audio thumbnails generation progress */
     void setThumbsProgress(KUrl url, int progress);
+    QString profilePath() const;
+    QString description() const;
+    /** Returns the document format: PAL or NTSC */
+    QString getDocumentStandard();
+    void setUrl(KUrl url);
+    QDomElement documentInfoXml();
+    void setProfilePath(QString path);
+    /** Set to true if document needs saving, false otherwise */
+    void setModified(bool mod);
 
 private:
     KUrl m_url;
@@ -79,6 +89,10 @@ private:
     KUndoStack *m_commandStack;
     QDomDocument generateSceneList();
     ClipManager *m_clipManager;
+    MltVideoProfile m_profile;
+    QString m_scenelist;
+    /** tells whether current doc has been changed since last save event */
+    bool m_modified;
 
 public slots:
 
@@ -88,6 +102,8 @@ signals:
     void updateClipDisplay(int);
     void deletTimelineClip(int);
     void thumbsProgress(KUrl, int);
+    /** emited when the document state has been modified (= needs saving or not) */
+    void docModified(bool);
 };
 
 #endif