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

void KdenliveDoc::refreshVirtualClips (  )  [private]

Regenerate virtual clips

Definition at line 334 of file kdenlivedoc.cpp.

References DocClipVirtual::fileURL(), DocClipProject::generatePartialSceneList(), generateProducersList(), m_projectClip, ClipManager::managerClipList(), DocClipProject::producersList, DocClipVirtual::virtualEndTime(), and DocClipVirtual::virtualStartTime().

Referenced by forceTimelineRefresh(), and hasBeenModified().

{
   DocClipBaseList list = clipManager().managerClipList();
   QPtrListIterator < DocClipBase > itt(list);
   if (m_projectClip->producersList.isNull()) generateProducersList();
    while (itt.current()) {
      if (itt.current()->isDocClipVirtual()) {
          DocClipVirtual *vclip = itt.current()->toDocClipVirtual();
          if (vclip) {
              QCString part = m_projectClip->generatePartialSceneList(vclip->virtualStartTime(), vclip->virtualEndTime(), vclip->getId()).toString().utf8();
              QFile file(vclip->fileURL().path());
              file.open( IO_WriteOnly );
            
              file.writeBlock(part, part.length());
              file.close();
          }
      } 
      ++itt;
    }
}


Generated by  Doxygen 1.6.0   Back to index