svn path=/trunk/kdenlive/; revision=3609
QObject(parent),
m_autosave(NULL),
m_url(url),
QObject(parent),
m_autosave(NULL),
m_url(url),
m_render(render),
m_commandStack(new QUndoStack(undoGroup)),
m_modified(false),
m_render(render),
m_commandStack(new QUndoStack(undoGroup)),
m_modified(false),
profileName = infoXml.attribute("profile");
m_projectFolder = infoXml.attribute("projectfolder");
profileName = infoXml.attribute("profile");
m_projectFolder = infoXml.attribute("projectfolder");
- m_startPos = infoXml.attribute("position").toInt();
-
QDomElement docproperties = infoXml.firstChildElement("documentproperties");
QDomNamedNodeMap props = docproperties.attributes();
for (int i = 0; i < props.count(); i++) {
m_documentProperties.insert(props.item(i).nodeName(), props.item(i).nodeValue());
}
QDomElement docproperties = infoXml.firstChildElement("documentproperties");
QDomNamedNodeMap props = docproperties.attributes();
for (int i = 0; i < props.count(); i++) {
m_documentProperties.insert(props.item(i).nodeName(), props.item(i).nodeValue());
}
// Build tracks
QDomElement e;
QDomElement tracksinfo = infoXml.firstChildElement("tracksinfo");
// Build tracks
QDomElement e;
QDomElement tracksinfo = infoXml.firstChildElement("tracksinfo");
if (m_abortLoading) {
//parent->slotGotProgressInfo(i18n("File %1 is not a Kdenlive project file."), 100);
emit resetProjectList();
if (m_abortLoading) {
//parent->slotGotProgressInfo(i18n("File %1 is not a Kdenlive project file."), 100);
emit resetProjectList();
+ m_documentProperties.remove("position");
m_url = KUrl();
m_tracksList.clear();
kWarning() << "Aborted loading of: " << url.path();
m_url = KUrl();
m_tracksList.clear();
kWarning() << "Aborted loading of: " << url.path();
void KdenliveDoc::setSceneList()
{
void KdenliveDoc::setSceneList()
{
- m_render->setSceneList(m_document.toString(), m_startPos);
+ m_render->setSceneList(m_document.toString(), m_documentProperties.value("position").toInt());
+ m_documentProperties.remove("position");
// m_document xml is now useless, clear it
m_document.clear();
checkProjectClips();
// m_document xml is now useless, clear it
m_document.clear();
checkProjectClips();
addedXml.setAttribute("version", DOCUMENTVERSION);
addedXml.setAttribute("kdenliveversion", VERSION);
addedXml.setAttribute("profile", profilePath());
addedXml.setAttribute("version", DOCUMENTVERSION);
addedXml.setAttribute("kdenliveversion", VERSION);
addedXml.setAttribute("profile", profilePath());
- addedXml.setAttribute("position", m_render->seekPosition().frames(m_fps));
addedXml.setAttribute("projectfolder", m_projectFolder.path());
QDomElement docproperties = sceneList.createElement("documentproperties");
addedXml.setAttribute("projectfolder", m_projectFolder.path());
QDomElement docproperties = sceneList.createElement("documentproperties");
i.next();
docproperties.setAttribute(i.key(), i.value());
}
i.next();
docproperties.setAttribute(i.key(), i.value());
}
+ docproperties.setAttribute("position", m_render->seekPosition().frames(m_fps));
addedXml.appendChild(docproperties);
// Add profile info
addedXml.appendChild(docproperties);
// Add profile info
KUrl m_url;
QDomDocument m_document;
double m_fps;
KUrl m_url;
QDomDocument m_document;
double m_fps;
- /** Cursor position at document opening */
- int m_startPos;
int m_width;
int m_height;
Timecode m_timecode;
int m_width;
int m_height;
Timecode m_timecode;