467 d->ui->setupUi(
this);
470 d->ui->labelFfmpegLocation->hide();
471 d->ui->editFfmpegPath->hide();
472 d->ui->buttonBrowseFfmpeg->hide();
473 d->ui->labelExportTo->hide();
474 d->ui->editVideoFilePath->hide();
475 d->ui->buttonBrowseExport->hide();
476 d->ui->buttonShowInFolder->hide();
483 d->spinInputFPSMaxValue =
d->ui->spinInputFps->minimum();
484 d->spinInputFPSMaxValue =
d->ui->spinInputFps->maximum();
491 d->ui->stackedWidget->setCurrentIndex(ExportPageIndex::PageSettings);
492 d->ui->spinLastFrameSec->setEnabled(
d->ui->extendResultCheckBox->isChecked());
493 d->ui->spinFirstFrameSec->setEnabled(
d->ui->resultPreviewCheckBox->isChecked());
496 d->ui->wdgWarnFps->hide();
497 d->ui->wdgWarnSize->hide();
513 connect(
d->ui->buttonBox->button(QDialogButtonBox::Save), SIGNAL(clicked()),
this, SLOT(
onButtonExportClicked()));
514 connect(
d->ui->buttonBox, &QDialogButtonBox::rejected,
this, &QDialog::reject);
519 connect(
d->ui->resultPreviewCheckBox, SIGNAL(toggled(
bool)),
d->ui->spinFirstFrameSec, SLOT(setEnabled(
bool)));
520 connect(
d->ui->extendResultCheckBox, SIGNAL(toggled(
bool)),
d->ui->spinLastFrameSec, SLOT(setEnabled(
bool)));
527 d->ui->editVideoFilePath->installEventFilter(
this);
530 d->ui->buttonBox->button(QDialogButtonBox::Save)->setText(i18n(
"Export"));
540 d->updateFps(config);
541 d->updateFrameInfo();
544 d->ui->labelRecordInfo->setText(i18nc(
"Can't export recording because nothing to export",
"No frames to export"));
545 d->ui->buttonBox->button(QDialogButtonBox::Save)->setEnabled(
false);
547 d->ui->labelRecordInfo->setText(QString(
"%1: %2x%3 %4, %5 %6")
548 .arg(i18nc(
"General information about recording",
"Recording info"))
551 .arg(i18nc(
"Pixel dimension suffix",
"px"))
553 .arg(i18nc(
"The suffix after number of frames",
"frame(s)"))
577 QSignalBlocker spinScaleWidthBlocker(
d->ui->spinScaleWidth);
578 QSignalBlocker spinScaleHeightBlocker(
d->ui->spinScaleHeight);
579 QSignalBlocker buttonLockRatioBlocker(
d->ui->buttonLockRatio);
588 d->fillComboProfiles();
591 d->updateVideoFilePath();
593 d->updateVideoDuration();