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

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(), hasBeenModified(), m_clipManager, Timecode::setFormat(), setModified(), slotClipChanged(), and trackListChanged().

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

    m_generateTimer = new QTimer( this );
    connect( m_generateTimer, SIGNAL(timeout()), 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 *)));

    connectProjectClip();
    setModified(false);
}


Generated by  Doxygen 1.6.0   Back to index