464 d->ui->setupUi(
this);
467 d->ui->labelFfmpegLocation->hide();
468 d->ui->editFfmpegPath->hide();
469 d->ui->buttonBrowseFfmpeg->hide();
470 d->ui->labelExportTo->hide();
471 d->ui->editVideoFilePath->hide();
472 d->ui->buttonBrowseExport->hide();
473 d->ui->buttonShowInFolder->hide();
480 d->spinInputFPSMaxValue =
d->ui->spinInputFps->minimum();
481 d->spinInputFPSMaxValue =
d->ui->spinInputFps->maximum();
488 d->ui->stackedWidget->setCurrentIndex(ExportPageIndex::PageSettings);
489 d->ui->spinLastFrameSec->setEnabled(
d->ui->extendResultCheckBox->isChecked());
490 d->ui->spinFirstFrameSec->setEnabled(
d->ui->resultPreviewCheckBox->isChecked());
493 d->ui->wdgWarnFps->hide();
494 d->ui->wdgWarnSize->hide();
510 connect(
d->ui->buttonBox->button(QDialogButtonBox::Save), SIGNAL(clicked()),
this, SLOT(
onButtonExportClicked()));
511 connect(
d->ui->buttonBox, &QDialogButtonBox::rejected,
this, &QDialog::reject);
516 connect(
d->ui->resultPreviewCheckBox, SIGNAL(toggled(
bool)),
d->ui->spinFirstFrameSec, SLOT(setEnabled(
bool)));
517 connect(
d->ui->extendResultCheckBox, SIGNAL(toggled(
bool)),
d->ui->spinLastFrameSec, SLOT(setEnabled(
bool)));
527 d->ui->buttonBox->button(QDialogButtonBox::Close)->setText(
"OK");
528 d->ui->buttonBox->button(QDialogButtonBox::Save)->setText(i18n(
"Export"));
530 d->ui->editVideoFilePath->installEventFilter(
this);
541 d->updateFps(config);
542 d->updateFrameInfo();
545 d->ui->labelRecordInfo->setText(i18nc(
"Can't export recording because nothing to export",
"No frames to export"));
546 d->ui->buttonBox->button(QDialogButtonBox::Save)->setEnabled(
false);
548 d->ui->labelRecordInfo->setText(QString(
"%1: %2x%3 %4, %5 %6")
549 .arg(i18nc(
"General information about recording",
"Recording info"))
552 .arg(i18nc(
"Pixel dimension suffix",
"px"))
554 .arg(i18nc(
"The suffix after number of frames",
"frame(s)"))
578 QSignalBlocker spinScaleWidthBlocker(
d->ui->spinScaleWidth);
579 QSignalBlocker spinScaleHeightBlocker(
d->ui->spinScaleHeight);
580 QSignalBlocker buttonLockRatioBlocker(
d->ui->buttonLockRatio);
589 d->fillComboProfiles();
592 d->updateVideoFilePath();
594 d->updateVideoDuration();