Logo Search packages:      
Sourcecode: kdenlive version File versions

void Gui::KdenliveApp::slotSaveZone (  )  [private, slot]

Save the selected zone as Westley playlist

Definition at line 2592 of file kdenlive.cpp.

References DocClipProject::generatePartialSceneList(), getDocument(), Gui::KTimeLine::inpointPosition(), m_fileDialogPath, Gui::KTimeLine::outpointPosition(), and KdenliveDoc::projectClip().

Referenced by initActions().

    {
        QCheckBox * addToProject = new QCheckBox(i18n("Add new clip to project"),this);
        KFileDialog *fd = new KFileDialog(m_fileDialogPath.path(), "application/vnd.westley.scenelist", this, "save_westley", true,addToProject);
        fd->setOperationMode(KFileDialog::Saving);
        fd->setMode(KFile::File);
        if (fd->exec() == QDialog::Accepted) {
            QDomDocument partial = getDocument()->projectClip().generatePartialSceneList(m_timeline->inpointPosition(), m_timeline->outpointPosition(), -1);
            QFile file(fd->selectedURL().path());
            file.open( IO_WriteOnly );
            QCString save = partial.toString().utf8();
            file.writeBlock(save, save.length());
            file.close();
            if (addToProject->isChecked()) insertClipFromUrl(fd->selectedURL().path());
      }
      delete addToProject;
      delete fd;
    }


Generated by  Doxygen 1.6.0   Back to index