]> git.sesse.net Git - kdenlive/blobdiff - src/kdenlivedoc.h
Big update to the proxy clips, fixing several issues. They can now be deleted in...
[kdenlive] / src / kdenlivedoc.h
index e0648673cd0e665d31fd727875fe4a5a7afca2b1..e5cc2a2353631ac8ae3662c244e6cb1ca5f9b37d 100644 (file)
@@ -119,18 +119,31 @@ Q_OBJECT public:
     void deleteTrack(int ix);
     void setTrackType(int ix, TrackInfo type);
     const QList <TrackInfo> tracksList() const;
+
+    /** @brief Gets the number of audio and video tracks and returns them as a QPoint with x = video, y = audio. */
     QPoint getTracksCount() const;
+
     void switchTrackVideo(int ix, bool hide);
     void switchTrackAudio(int ix, bool hide);
     void switchTrackLock(int ix, bool lock);
+    bool isTrackLocked(int ix) const;
+
+    /** @brief Sets the duration of track @param ix to @param duration.
+     * This does not! influence the actual track but only the value in its TrackInfo. */
+    void setTrackDuration(int ix, int duration);
+
+    /** @brief Returns the duration of track @param ix.
+     *
+     * The returned duration might differ from the actual track duration!
+     * It is the one stored in the track's TrackInfo. */
+    int trackDuration(int ix);
+
     void cachePixmap(const QString &fileId, const QPixmap &pix) const;
     void setProjectFolder(KUrl url);
     QString getLadspaFile() const;
     void setZone(int start, int end);
     QPoint zone() const;
     int setSceneList();
-    void updatePreviewSettings();
-    bool isTrackLocked(int ix) const;
     void setDocumentProperty(const QString &name, const QString &value);
     const QString getDocumentProperty(const QString &name) const;
 
@@ -177,6 +190,9 @@ private:
     *   @return True if effects were imported.  */
     bool saveCustomEffects(QDomNodeList customeffects);
 
+    /** @brief Updates the project folder location entry in the kdenlive file dialogs to point to the current project folder. */
+    void updateProjectFolderPlacesEntry();
+
 public slots:
     void slotCreateXmlClip(const QString &name, const QDomElement xml, QString group, const QString &groupId);
     void slotCreateColorClip(const QString &name, const QString &color, const QString &duration, QString group, const QString &groupId);