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

ClipManager Class Reference

#include <clipmanager.h>

List of all members.


Detailed Description

ClipManager manages a number of clips.

The ClipManager class maintains a list of clips. This is the only place in the application where DocClipAVFiles and other clip types should be created, and then only indirectly. The clip manager makes sure that if a clip already exists, it is reused, and will "hide" whether a clip has just been created or is new to the project away from the application code.

The reason for maintaining AVFiles in this way is due to the non-blocking nature of Kdenlive. When a clip is created, a request needs to be sent to the renderer to determine the properties of the file. Until a reply is recieved, the clip remains in a non-determinate state. We use the clip manager to prevent us sending unnecessary requests to the server - if we have already sent a request to find a clips properties, we want to avoid sending it again.

Author:
Jason Wood <jasonwood@blueyonder.co.uk>

Definition at line 57 of file clipmanager.h.


Public Slots

void AVFilePropertiesArrived (const QMap< QString, QString > &properties, const QMap< QString, QString > &metadata)
void AVImageArrived (int id, const QPixmap &)
void AVImageArrived (const KURL &, int, const QPixmap &)
DocClipBaseList managerClipList ()
QDomDocumentFragment producersList ()
void refreshThumbNails ()
QDomDocumentFragment virtualProducersList ()

Signals

void clipChanged (DocClipBase *file)
void clipListUpdated ()
void fixClipDuration (DocClipBase *)
void getFileProperties (KURL, uint)
void updateClipThumbnails (DocClipBase *)

Public Member Functions

DocClipBase * addTemporaryClip (const KURL &file)
DocClipBase * addTemporaryClip (const QDomElement &clip)
QDomDocument buildClip (KURL &file, int clipId=-1)
QDomDocument buildColorClip (const QString &color, const GenTime &duration, const QString &name, const QString &description, int clipId=-1)
QDomDocument buildImageClip (KURL file, const GenTime &duration, const QString &description, bool alphaTransparency, int clipId=-1)
QDomDocument buildSlideshowClip (const KURL &file, const QString &extension, const int &ttl, bool crossfade, const QString &lumaFile, double lumasoftness, uint lumaduration, const GenTime &duration, const QString &description, bool alphaTransparency, bool loop, int clipId=-1)
QDomDocument buildTextClip (const GenTime &duration, const QString &name, const QString &description, const QDomDocument &xml, const KURL url, QPixmap &pix, bool alphaTransparency, int clipId=-1)
QDomDocument buildVirtualClip (const GenTime &start, const GenTime &end, const QString &name, const QString &description, const KURL url, int clipId=-1)
int checkId (uint id)
void clear ()
 ClipManager (KRender *render, KdenliveDoc *doc, QWidget *parent=0, const char *name=0)
void editClip (DocClipRef *clip, const KURL &file, const QString &description)
void editColorClip (DocClipRef *clip, const QString &color, const GenTime &duration, const QString &name, const QString &description)
void editImageClip (DocClipRef *clip, const KURL &file, const GenTime &duration, const QString &description, bool alphaTransparency)
void editSlideshowClip (DocClipRef *clip, const KURL &file, const QString &extension, const int &ttl, bool crossfade, const QString &lumaFile, double lumaSoftness, uint lumaduration, const GenTime &duration, const QString &description, bool alphaTransparency)
void editTextClip (DocClipRef *clip, const GenTime &duration, const QString &name, const QString &description, const QDomDocument &xml, const KURL url, const QPixmap &pix, bool alphaTransparency)
DocClipBase * findClip (const QDomElement &clip)
DocClipBase * findClip (const KURL &file)
DocClipBase * findClipById (uint id)
void generateFromXML (KdenliveDoc *doc, const QDomElement &e)
DocClipBase * insertClip (const QDomElement &clip, int clipId=-1)
DocClipBase * insertClip (KURL file, int thumbnailFrame, int clipId=-1)
DocClipBase * insertColorClip (const QString &color, const GenTime &duration, const QString &name, const QString &description, int clipId=-1)
DocClipBase * insertImageClip (KURL file, const GenTime &duration, const QString &description, bool alphaTransparency, int clipId=-1)
DocClipBase * insertSlideshowClip (const KURL &file, const QString &extension, const int &ttl, bool crossfade, const QString &lumaFile, double lumasoftness, uint lumaduration, const GenTime &duration, const QString &description, bool alphaTransparency, bool loop, int clipId=-1)
DocClipBase * insertTextClip (const GenTime &duration, const QString &name, const QString &description, const QDomDocument &xml, KURL url, QPixmap &pix, bool alphaTransparency, int clipId=-1)
DocClipBase * insertVirtualClip (const QString &name, const QString &description, const GenTime &start, const GenTime &end, const KURL url, int thumbnailFrame, int clipId=-1)
DocClipBase * insertXMLClip (const QDomElement &clip)
DocClipBase * insertXMLClip (QDomDocument node)
DocClipBase * insertXMLTextClip (QDomDocument node)
DocClipBase * insertXMLVirtualClip (QDomDocument node)
void removeClip (int clipId)
void removeClip (const QDomElement &clip)
void removeClip (const KURL &file)
int requestIdNumber ()
QDomDocument toXML (const QString &element)
QValueList< QPoint > virtualZones ()
 ~ClipManager ()

Private Member Functions

KURL checkFileUrl (KURL url)
DocClipAVFilefindAVFile (const KURL &url)

Private Attributes

uint m_clipCounter
DocClipBaseList m_clipList
KdenliveDocm_doc
QString m_relocateUrl
KRender * m_render
DocClipBaseList m_temporaryClipList
QPoint m_thumbSize

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index