viewer: add shortcut to save frame as image
This commit is contained in:
+9
-4
@@ -394,10 +394,7 @@ void Core::DialogExportShow()
|
||||
rational time;
|
||||
|
||||
if (GetSequenceToExport(&viewer, &time)) {
|
||||
ExportDialog* ed = new ExportDialog(viewer, main_window_);
|
||||
ed->SetTime(time);
|
||||
connect(ed, &ExportDialog::finished, ed, &ExportDialog::deleteLater);
|
||||
ed->open();
|
||||
OpenExportDialogForViewer(viewer, time, false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1253,6 +1250,14 @@ void Core::OpenNodeInViewer(ViewerOutput *viewer)
|
||||
main_window_->OpenNodeInViewer(viewer);
|
||||
}
|
||||
|
||||
void Core::OpenExportDialogForViewer(ViewerOutput *viewer, const rational &time, bool start_still_image)
|
||||
{
|
||||
ExportDialog* ed = new ExportDialog(viewer, start_still_image, main_window_);
|
||||
ed->SetTime(time);
|
||||
connect(ed, &ExportDialog::finished, ed, &ExportDialog::deleteLater);
|
||||
ed->open();
|
||||
}
|
||||
|
||||
void Core::CheckForAutoRecoveries()
|
||||
{
|
||||
QFile autorecovery_index(GetAutoRecoveryIndexFilename());
|
||||
|
||||
Reference in New Issue
Block a user