Logo Search packages:      
Sourcecode: kdenlive version File versions

QDomDocument DocSubClip::generateSceneList ( bool  addProducers = true  )  [virtual]

Returns a scene list generated from this clip.

Definition at line 100 of file docsubclip.cpp.

References duration(), and fileURL().

{
    static QString str_inpoint = "inpoint";
    static QString str_outpoint = "outpoint";
    static QString str_file = "file";

    QDomDocument scenelist;
    scenelist.appendChild(scenelist.createElement("scenelist"));

    // generate the next scene.
    QDomElement scene = scenelist.createElement("scene");
    scene.setAttribute("duration", QString::number(duration().seconds()));

    QDomElement sceneClip;
    sceneClip = scenelist.createElement("input");
    sceneClip.setAttribute(str_file, fileURL().path());
    sceneClip.setAttribute(str_inpoint, "0.0");
    sceneClip.setAttribute(str_outpoint,
      QString::number(duration().seconds()));
    scene.appendChild(sceneClip);
    scenelist.documentElement().appendChild(scene);

    return scenelist;
}


Generated by  Doxygen 1.6.0   Back to index