Extract frame in context menu of timeline
There was request for adding extract frame/extract frame to project as an item in the timeline context menu:
https://forum.kde.org/viewtopic.php?f=270&t=162438&p=439918#p439918
Here is my patch which implements this feature and additionally adds shortcuts (shortcuts can be also add to clip monitor actions) to faster extract frames.
diff -Naur a/src/mainwindow.cpp b/src/mainwindow.cpp
--- a/src/mainwindow.cpp 2020-11-17 01:40:42.890052758 +0100
+++ b/src/mainwindow.cpp 2020-11-17 02:02:28.365989421 +0100
@@ -550,6 +550,8 @@
timelineClipMenu->addAction(actionCollection()->action(QStringLiteral("clip_switch")));
timelineClipMenu->addAction(actionCollection()->action(QStringLiteral("delete_timeline_clip")));
timelineClipMenu->addAction(actionCollection()->action(QStringLiteral("extract_clip")));
+ timelineClipMenu->addAction(actionCollection()->action(QStringLiteral("extract_frame")));
+ timelineClipMenu->addAction(actionCollection()->action(QStringLiteral("extract_frame_to_project")));
timelineClipMenu->addAction(actionCollection()->action(QStringLiteral("save_to_bin")));
QMenu *markerMenu = static_cast<QMenu *>(factory()->container(QStringLiteral("marker_menu"), this));
@@ -1805,10 +1807,10 @@
// monitor actions
addAction(QStringLiteral("extract_frame"), i18n("Extract frame..."), pCore->monitorManager(), SLOT(slotExtractCurrentFrame()),
- QIcon::fromTheme(QStringLiteral("insert-image")));
+ QIcon::fromTheme(QStringLiteral("insert-image")), Qt::SHIFT + Qt::Key_F);
addAction(QStringLiteral("extract_frame_to_project"), i18n("Extract frame to project..."), pCore->monitorManager(),
- SLOT(slotExtractCurrentFrameToProject()), QIcon::fromTheme(QStringLiteral("insert-image")));
+ SLOT(slotExtractCurrentFrameToProject()), QIcon::fromTheme(QStringLiteral("insert-image")), Qt::CTRL+Qt::Key_F);
}
void MainWindow::saveOptions()