viewer: add shortcut to save frame as image

This commit is contained in:
itsmattkc
2022-09-16 12:19:47 -07:00
parent 044551cca9
commit d017d2c143
6 changed files with 41 additions and 10 deletions
+9 -4
View File
@@ -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());