328 d->ui->setupUi(
this);
329 d->spinInputFPSMaxValue =
d->ui->spinInputFps->minimum();
330 d->spinInputFPSMaxValue =
d->ui->spinInputFps->maximum();
340 d->ui->stackedWidget->setCurrentIndex(ExportPageIndex::PageSettings);
341 d->ui->spinLastFrameSec->setEnabled(
d->ui->extendResultCheckBox->isChecked());
342 d->ui->spinFirstFrameSec->setEnabled(
d->ui->resultPreviewCheckBox->isChecked());
362 connect(
d->ui->buttonBox, &QDialogButtonBox::rejected,
this, &QDialog::reject);
368 connect(
d->ui->resultPreviewCheckBox, SIGNAL(toggled(
bool)),
d->ui->spinFirstFrameSec, SLOT(setEnabled(
bool)));
369 connect(
d->ui->extendResultCheckBox, SIGNAL(toggled(
bool)),
d->ui->spinLastFrameSec, SLOT(setEnabled(
bool)));
372 d->ui->buttonBox->button(QDialogButtonBox::Close)->setText(
"OK");
373 d->ui->buttonBox->button(QDialogButtonBox::Save)->setText(i18n(
"Export"));
374 d->ui->editVideoFilePath->installEventFilter(
this);
384 d->updateFps(config);
385 d->updateFrameInfo();
388 d->ui->labelRecordInfo->setText(i18nc(
"Can't export recording because nothing to export",
"No frames to export"));
389 d->ui->buttonBox->button(QDialogButtonBox::Save)->setEnabled(
false);
391 d->ui->labelRecordInfo->setText(QString(
"%1: %2x%3 %4, %5 %6")
392 .arg(i18nc(
"General information about recording",
"Recording info"))
395 .arg(i18nc(
"Pixel dimension suffix",
"px"))
397 .arg(i18nc(
"The suffix after number of frames",
"frame(s)"))
420 d->fillComboProfiles();
422 d->updateVideoFilePath();
423 d->updateVideoDuration();
681 const QString confirmation(i18n(
"The recordings for this document will be deleted"
682 " and you will not be able to export a timelapse for it again"
683 ". Note that already exported timelapses will still be preserved."
684 "\n\nDo you wish to continue?"));
685 if (QMessageBox::question(
this, windowTitle(), confirmation) != QMessageBox::Yes)
688 d->ui->labelStatus->setText(i18nc(
"Label title, Snapshot directory deleting is in progress",
"Cleaning up..."));
689 d->ui->stackedWidget->setCurrentIndex(ExportPageIndex::PageProgress);
691 Q_ASSERT(
d->cleaner ==
nullptr);