m_projectList->setRenderer(m_projectMonitor->render);
connect(m_projectList, SIGNAL(receivedClipDuration(const QString &, int)), this, SLOT(slotSetClipDuration(const QString &, int)));
connect(m_projectList, SIGNAL(showClipProperties(DocClipBase *)), this, SLOT(slotShowClipProperties(DocClipBase *)));
- connect(m_projectList, SIGNAL(getFileProperties(const QDomElement &, const QString &)), m_projectMonitor->render, SLOT(getFileProperties(const QDomElement &, const QString &)));
+ connect(m_projectList, SIGNAL(getFileProperties(const QDomElement &, const QString &, bool)), m_projectMonitor->render, SLOT(getFileProperties(const QDomElement &, const QString &, bool)));
connect(m_projectMonitor->render, SIGNAL(replyGetImage(const QString &, const QPixmap &)), m_projectList, SLOT(slotReplyGetImage(const QString &, const QPixmap &)));
- connect(m_projectMonitor->render, SIGNAL(replyGetFileProperties(const QString &, Mlt::Producer*, const QMap < QString, QString > &, const QMap < QString, QString > &)), m_projectList, SLOT(slotReplyGetFileProperties(const QString &, Mlt::Producer*, const QMap < QString, QString > &, const QMap < QString, QString > &)));
+ connect(m_projectMonitor->render, SIGNAL(replyGetFileProperties(const QString &, Mlt::Producer*, const QMap < QString, QString > &, const QMap < QString, QString > &, bool)), m_projectList, SLOT(slotReplyGetFileProperties(const QString &, Mlt::Producer*, const QMap < QString, QString > &, const QMap < QString, QString > &, bool)));
connect(m_projectMonitor->render, SIGNAL(removeInvalidClip(const QString &)), m_projectList, SLOT(slotRemoveInvalidClip(const QString &)));
m_projectSearchNext->setShortcut(Qt::Key_F3);
m_projectSearchNext->setEnabled(false);
- KAction* profilesAction = new KAction(KIcon("document-new"), i18n("Manage Profiles"), this);
+ KAction* profilesAction = new KAction(KIcon("document-new"), i18n("Manage Project Profiles"), this);
collection->addAction("manage_profiles", profilesAction);
connect(profilesAction, SIGNAL(triggered(bool)), this, SLOT(slotEditProfiles()));
KNS::standardAction(i18n("Download New Lumas..."), this, SLOT(slotGetNewLumaStuff()), actionCollection(), "get_new_lumas");
- KNS::standardAction(i18n("Download New Profiles..."), this, SLOT(slotGetNewRenderStuff()), actionCollection(), "get_new_profiles");
+ KNS::standardAction(i18n("Download New Render Profiles..."), this, SLOT(slotGetNewRenderStuff()), actionCollection(), "get_new_profiles");
+
+ KNS::standardAction(i18n("Download New Project Profiles..."), this, SLOT(slotGetNewMltProfileStuff()), actionCollection(), "get_new_mlt_profiles");
KAction* wizAction = new KAction(KIcon("configure"), i18n("Run Config Wizard"), this);
collection->addAction("run_wizard", wizAction);
KAction* editTimelineClipSpeed = new KAction(i18n("Change Clip Speed"), this);
collection->addAction("change_clip_speed", editTimelineClipSpeed);
+ editTimelineClipSpeed->setData("change_speed");
connect(editTimelineClipSpeed, SIGNAL(triggered(bool)), this, SLOT(slotChangeClipSpeed()));
KAction *stickTransition = collection->addAction("auto_transition");
QAction *pasteEffects = new KAction(KIcon("edit-paste"), i18n("Paste Effects"), this);
collection->addAction("paste_effects", pasteEffects);
+ pasteEffects->setData("paste_effects");
connect(pasteEffects , SIGNAL(triggered()), this, SLOT(slotPasteEffects()));
m_closeAction = KStandardAction::close(this, SLOT(closeCurrentDocument()), collection);
collection->addAction("clip_properties", clipProperties);
clipProperties->setData("clip_properties");
connect(clipProperties , SIGNAL(triggered()), m_projectList, SLOT(slotEditClip()));
+ clipProperties->setEnabled(false);
QAction *openClip = new KAction(KIcon("document-open"), i18n("Edit Clip"), this);
collection->addAction("edit_clip", openClip);
openClip->setData("edit_clip");
connect(openClip , SIGNAL(triggered()), m_projectList, SLOT(slotOpenClip()));
+ openClip->setEnabled(false);
QAction *deleteClip = new KAction(KIcon("edit-delete"), i18n("Delete Clip"), this);
collection->addAction("delete_clip", deleteClip);
deleteClip->setData("delete_clip");
connect(deleteClip , SIGNAL(triggered()), m_projectList, SLOT(slotRemoveClip()));
+ deleteClip->setEnabled(false);
+
+ QAction *reloadClip = new KAction(KIcon("view-refresh"), i18n("Reload Clip"), this);
+ collection->addAction("reload_clip", reloadClip);
+ reloadClip->setData("reload_clip");
+ connect(reloadClip , SIGNAL(triggered()), m_projectList, SLOT(slotReloadClip()));
+ reloadClip->setEnabled(false);
QMenu *addClips = new QMenu();
addClips->addAction(addClip);
addClips->addAction(addTitleClip);
addClips->addAction(addFolderButton);
+ addClips->addAction(reloadClip);
addClips->addAction(clipProperties);
addClips->addAction(openClip);
addClips->addAction(deleteClip);
}
bool MainWindow::saveFileAs(const QString &outputFileName) {
- QDomDocument currentSceneList;
+ QString currentSceneList;
if (KdenliveSettings::dropbframes()) {
KdenliveSettings::setDropbframes(false);
m_activeDocument->clipManager()->updatePreviewSettings();
void MainWindow::slotEditProfiles() {
ProfilesDialog *w = new ProfilesDialog;
- w->exec();
+ if (w->exec() == QDialog::Accepted) {
+ KdenliveSettingsDialog* d = static_cast <KdenliveSettingsDialog*>(KConfigDialog::exists("settings"));
+ if (d) d->checkProfile();
+ }
delete w;
}
if (KConfigDialog::showDialog("settings")) {
KdenliveSettingsDialog* d = static_cast <KdenliveSettingsDialog*>(KConfigDialog::exists("settings"));
if (page != -1) d->showPage(page, option);
- d->checkProfile();
return;
}
}
}
+void MainWindow::slotGetNewMltProfileStuff() {
+ //KNS::Entry::List download();
+
+ KNS::Engine engine(0);
+ if (engine.init("kdenlive_mltprofiles.knsrc")) {
+ KNS::Entry::List entries = engine.downloadDialogModal(this);
+
+ if (entries.size() > 0) {
+ foreach(KNS::Entry* entry, entries) {
+ // care only about installed ones
+ if (entry->status() == KNS::Entry::Installed) {
+ foreach(const QString &file, entry->installedFiles()) {
+ kDebug() << "// CURRENTLY INSTALLED: " << file;
+ }
+ }
+ }
+
+ // update the list of profiles in settings dialog
+ KdenliveSettingsDialog* d = static_cast <KdenliveSettingsDialog*>(KConfigDialog::exists("settings"));
+ if (d) d->checkProfile();
+ }
+ }
+}
+
void MainWindow::slotAutoTransition() {
m_activeTimeline->projectView()->autoTransition();
}