Logo Search packages:      
Sourcecode: kdenlive version File versions  Download package

bool KdenliveDoc::newDocument ( int  videoTracks,
int  audioTracks 
)

initializes the document generally

Definition at line 143 of file kdenlivedoc.cpp.

References addSoundTrack(), addVideoTrack(), deleteContents(), m_clipHierarch, m_documentIsClean, m_sceneListGeneration, and setModified().

Referenced by Gui::KdenliveApp::initDocument(), and Gui::KdenliveApp::slotFileNew().

{
    kdDebug() << "Creating new document" << endl;

    m_sceneListGeneration = true;
    m_documentIsClean = true;
    deleteContents();

    m_clipHierarch = new DocumentGroupNode(0, i18n("Clips"));

    for (; videoTracks>0; videoTracks--)
      addVideoTrack();

    for (; audioTracks>0; audioTracks--)
      addSoundTrack();

    m_doc_name = i18n("Untitled");

    //emit trackListChanged();
    setModified(false);
    kdDebug() << "Creating new document DONE " << endl;
    return true;
}


Generated by  Doxygen 1.6.0   Back to index