class MainWindow;
class TrackInfo;
-class KdenliveDoc: public QObject {
+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);
//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();
- QDomElement m_guidesXml;
+ QDomDocument m_guidesXml;
QDomElement guidesXml() const;
ClipManager *clipManager();
void addClip(QDomElement elem, QString clipId, bool createClipItem = true);
private:
KUrl m_url;
QDomDocument m_document;
- QString m_projectName;
double m_fps;
int m_zoom;
/** Cursor position at document opening */
Timecode m_timecode;
Render *m_render;
QUndoStack *m_commandStack;
- QDomDocument generateSceneList();
ClipManager *m_clipManager;
MltVideoProfile m_profile;
QTimer *m_autoSaveTimer;
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 producers, QDomNodeList infoproducers);
public slots:
void slotCreateTextClip(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();