474 d->ui->setupUi(
this);
477 d->ui->labelFfmpegLocation->hide();
478 d->ui->editFfmpegPath->hide();
479 d->ui->buttonBrowseFfmpeg->hide();
480 d->ui->labelExportTo->hide();
481 d->ui->editVideoFilePath->hide();
482 d->ui->buttonBrowseExport->hide();
483 d->ui->buttonShowInFolder->hide();
490 d->spinInputFPSMaxValue =
d->ui->spinInputFps->minimum();
491 d->spinInputFPSMaxValue =
d->ui->spinInputFps->maximum();
498 d->ui->stackedWidget->setCurrentIndex(ExportPageIndex::PageSettings);
499 d->ui->spinLastFrameSec->setEnabled(
d->ui->extendResultCheckBox->isChecked());
500 d->ui->spinFirstFrameSec->setEnabled(
d->ui->resultPreviewCheckBox->isChecked());
503 d->ui->wdgWarnFps->hide();
504 d->ui->wdgWarnSize->hide();
520 connect(
d->ui->buttonBox->button(QDialogButtonBox::Save), SIGNAL(clicked()),
this, SLOT(
onButtonExportClicked()));
521 connect(
d->ui->buttonBox, &QDialogButtonBox::rejected,
this, &QDialog::reject);
526 connect(
d->ui->resultPreviewCheckBox, SIGNAL(toggled(
bool)),
d->ui->spinFirstFrameSec, SLOT(setEnabled(
bool)));
527 connect(
d->ui->extendResultCheckBox, SIGNAL(toggled(
bool)),
d->ui->spinLastFrameSec, SLOT(setEnabled(
bool)));
534 d->ui->editVideoFilePath->installEventFilter(
this);
537 d->ui->buttonBox->button(QDialogButtonBox::Save)->setText(i18n(
"Export"));
547 d->updateFps(config);
548 d->updateFrameInfo();
551 d->ui->labelRecordInfo->setText(i18nc(
"Can't export recording because nothing to export",
"No frames to export"));
552 d->ui->buttonBox->button(QDialogButtonBox::Save)->setEnabled(
false);
554 d->ui->labelRecordInfo->setText(QString(
"%1: %2x%3 %4, %5 %6")
555 .arg(i18nc(
"General information about recording",
"Recording info"))
558 .arg(i18nc(
"Pixel dimension suffix",
"px"))
560 .arg(i18ncp(
"The suffix after number of frames",
"frame",
"frames",
settings->
framesCount))
584 QSignalBlocker spinScaleWidthBlocker(
d->ui->spinScaleWidth);
585 QSignalBlocker spinScaleHeightBlocker(
d->ui->spinScaleHeight);
586 QSignalBlocker buttonLockRatioBlocker(
d->ui->buttonLockRatio);
595 d->fillComboProfiles();
598 d->updateVideoFilePath();
600 d->updateVideoDuration();