+ //m_projectMonitor->stop();
+ if (m_activeDocument) {
+ m_activeDocument->setProducers(m_projectList->producersList());
+ m_activeDocument->setRenderer(NULL);
+ }
+ m_projectList->setDocument(doc);
+ m_monitorManager->setTimecode(doc->timecode());
+ doc->setRenderer(m_projectMonitor->render);
+ m_activeDocument = doc;
+}
+
+
+void MainWindow::slotPreferences()
+{
+ //An instance of your dialog could be already created and could be
+ // cached, in which case you want to display the cached dialog
+ // instead of creating another one
+ if ( KConfigDialog::showDialog( "settings" ) )
+ return;
+
+ // KConfigDialog didn't find an instance of this dialog, so lets
+ // create it :
+ KConfigDialog* dialog = new KConfigDialog(this, "settings",
+ KdenliveSettings::self());
+
+ QWidget *page1 = new QWidget;
+ Ui::ConfigMisc_UI* confWdg = new Ui::ConfigMisc_UI( );
+ confWdg->setupUi(page1);
+
+ dialog->addPage( page1, i18n("Misc"), "misc" );
+
+ //User edited the configuration - update your local copies of the
+ //configuration data
+ connect( dialog, SIGNAL(settingsChanged()), this, SLOT(updateConfiguration()) );
+
+ dialog->show();