Logo Search packages:      
Sourcecode: kdenlive version File versions

KdenliveDoc::KdenliveDoc ( double  fps,
int  width,
int  height,
Gui::KdenliveApp app,
QWidget *  parent,
const char *  name = 0 
)

Constructor for the fileclass of the application

Definition at line 47 of file kdenlivedoc.cpp.

References clipChanged(), clipListUpdated(), connectProjectClip(), fixClipDuration(), generateProducersList(), generateSceneList(), hasBeenModified(), m_clipManager, m_domSceneList, Timecode::setFormat(), setModified(), slotClipChanged(), and trackListChanged().

                                                                                                                   :
QObject(parent, name),
m_projectClip(new DocClipProject(fps, width, height)),
m_modified(false),
m_documentIsClean(true),
m_sceneListGeneration(true),
m_showAllMarkers(KdenliveSettings::showallmarkers()),
m_clipHierarch(0), m_render(app->renderManager()->findRenderer("Document")), m_clipManager(m_render, this), m_app(app), m_metadata(NULL)
{
    //m_render = m_app->renderManager()->createRenderer("Document");
    //m_clipManager = new ClipManager(m_render)
    if (fps == 30000.0 / 1001.0 ) m_timecode.setFormat(30, true);
    else m_timecode.setFormat(fps);
    connect(this, SIGNAL(trackListChanged()), this, SLOT(hasBeenModified()));

    connect(&m_clipManager, SIGNAL(clipListUpdated()), this, SLOT(generateProducersList()));
    connect(&m_clipManager, SIGNAL(clipChanged(DocClipBase *)), this, SLOT(slotClipChanged(DocClipBase *)));
    connect(&m_clipManager, SIGNAL(updateClipThumbnails(DocClipBase *)), this, SLOT(slotUpdateClipThumbnails(DocClipBase *)));
    connect(&m_clipManager, SIGNAL(fixClipDuration(DocClipBase *)), this, SLOT(fixClipDuration(DocClipBase *)));

    m_domSceneList.appendChild(m_domSceneList.createElement("scenelist"));
    generateSceneList();
    connectProjectClip();
    setModified(false);
}


Generated by  Doxygen 1.6.0   Back to index