QPoint zoom() const;
double dar() const;
double projectDuration() const;
- bool saveSceneList(const QString &path, const QString &scene);
+ /** @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);
int tracksCount() const;
TrackInfo trackInfoAt(int ix) const;
void insertTrack(int ix, TrackInfo type);
void setTrackEffect(int trackIndex, int effectIndex, QDomElement effect);
const EffectsList getTrackEffects(int ix);
QDomElement getTrackEffect(int trackIndex, int effectIndex) const;
-
+ /** @brief Get a list of folder id's that were opened on last save. */
+ QStringList getExpandedFolders();
+ /** @brief Read the display ratio from an xml project file. */
+ static double getDisplayRatio(const QString &path);
+
private:
KUrl m_url;
QDomDocument m_document;
/** @brief Sets the document as modified or up to date.
* @param mod (optional) true if the document has to be saved */
void setModified(bool mod = true);
- void checkProjectClips();
+ void checkProjectClips(bool displayRatioChanged = false);
private slots:
void slotAutoSave();
void addProjectClip(DocClipBase *, bool getInfo = true);
void signalDeleteProjectClip(const QString &);
void updateClipDisplay(const QString&);
- void deleteTimelineClip(const QString&);
void progressInfo(const QString &, int);
/** @brief Informs that the document status has been changed.