Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions tools/ld-analyse/palchromadecoderconfigdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,12 @@ void PalChromaDecoderConfigDialog::updateDialog()
ui->twoDeeTransformCheckBox->setChecked(true);
ui->thresholdModeCheckBox->setEnabled(true);
ui->showFFTsCheckBox->setEnabled(true);
ui->simplePALCheckBox->setEnabled(true);
} else {
ui->twoDeeTransformCheckBox->setChecked(false);
ui->thresholdModeCheckBox->setEnabled(false);
ui->showFFTsCheckBox->setEnabled(false);
ui->simplePALCheckBox->setEnabled(false);
}

if (palChromaDecoderConfig.transformMode == TransformPal::thresholdMode) {
Expand All @@ -99,6 +101,8 @@ void PalChromaDecoderConfigDialog::updateDialog()

if (palChromaDecoderConfig.showFFTs) ui->showFFTsCheckBox->setChecked(true);
else ui->showFFTsCheckBox->setChecked(false);
if (palChromaDecoderConfig.simplePAL) ui->simplePALCheckBox->setChecked(true);
else ui->simplePALCheckBox->setChecked(false);
}

// Methods to handle changes to the dialogue
Expand Down Expand Up @@ -145,3 +149,10 @@ void PalChromaDecoderConfigDialog::on_showFFTsCheckBox_clicked()
else palChromaDecoderConfig.showFFTs = false;
emit palChromaDecoderConfigChanged();
}

void PalChromaDecoderConfigDialog::on_simplePALCheckBox_clicked()
{
if (ui->simplePALCheckBox->isChecked()) palChromaDecoderConfig.simplePAL = true;
else palChromaDecoderConfig.simplePAL = false;
emit palChromaDecoderConfigChanged();
}
1 change: 1 addition & 0 deletions tools/ld-analyse/palchromadecoderconfigdialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ private slots:
void on_thresholdModeCheckBox_clicked();
void on_thresholdHorizontalSlider_valueChanged(int value);
void on_showFFTsCheckBox_clicked();
void on_simplePALCheckBox_clicked();

private:
Ui::PalChromaDecoderConfigDialog *ui;
Expand Down
7 changes: 7 additions & 0 deletions tools/ld-analyse/palchromadecoderconfigdialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,13 @@
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="simplePALCheckBox">
<property name="text">
<string>Use Simple PAL decoder</string>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
Expand Down