- DocClipBase *getBaseClip(int clipId);
- void updateClip(int id);
- 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);
- 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);
- int getFreeClipId();
- /** does the document need saving */
- bool isModified();
+ DocClipBase *getBaseClip(const QString &clipId);
+ void updateClip(const QString &id);
+
+ /** @brief Informs Kdenlive of the audio thumbnails generation progress. */
+ void setThumbsProgress(const QString &message, int progress);
+ const QString &profilePath() const;
+ MltVideoProfile mltProfile() const;
+ const QString description() const;
+ void setUrl(const KUrl &url);
+
+ /** @brief Updates the project profile.
+ * @return true if frame rate was changed */
+ bool setProfilePath(QString path);
+ const QString getFreeClipId();
+
+ /** @brief Defines whether the document needs to be saved. */
+ bool isModified() const;
+
+ /** @brief Returns the project folder, used to store project files. */
+ KUrl projectFolder() const;
+ void syncGuides(QList <Guide *> guides);
+ void setZoom(int horizontal, int vertical);
+ QPoint zoom() const;
+ double dar() const;
+ double projectDuration() const;
+ /** @brief Returns the project file xml. */
+ QDomDocument xmlSceneList(const QString &scene, const QStringList &expandedFolders);
+ /** @brief Saves the project file xml to a file. */
+ bool saveSceneList(const QString &path, const QString &scene, const QStringList &expandedFolders, bool autosave = false);
+ int tracksCount() const;
+ TrackInfo trackInfoAt(int ix) const;
+ void insertTrack(int ix, const TrackInfo &type);
+ void deleteTrack(int ix);
+ void setTrackType(int ix, const 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);