From 293ac223e4d7b8e8655fdbcfea38012cf6f0b584 Mon Sep 17 00:00:00 2001 From: f4exb Date: Fri, 10 Mar 2017 13:32:37 +0100 Subject: [PATCH] ATV modulator: removed volume control and add .wmv to the video file extensions --- plugins/channeltx/modatv/atvmodgui.cpp | 12 +------ plugins/channeltx/modatv/atvmodgui.h | 1 - plugins/channeltx/modatv/atvmodgui.ui | 48 ++------------------------ 3 files changed, 3 insertions(+), 58 deletions(-) diff --git a/plugins/channeltx/modatv/atvmodgui.cpp b/plugins/channeltx/modatv/atvmodgui.cpp index c40a7e42a..b88601d88 100644 --- a/plugins/channeltx/modatv/atvmodgui.cpp +++ b/plugins/channeltx/modatv/atvmodgui.cpp @@ -71,7 +71,6 @@ void ATVModGUI::resetToDefaults() ui->rfBW->setValue(10); ui->uniformLevel->setValue(35); - ui->volume->setValue(10); ui->standard->setCurrentIndex(0); ui->inputSelect->setCurrentIndex(0); ui->deltaFrequency->setValue(0); @@ -91,7 +90,6 @@ QByteArray ATVModGUI::serialize() const s.writeS32(4, ui->standard->currentIndex()); s.writeS32(5, ui->inputSelect->currentIndex()); s.writeU32(6, m_channelMarker.getColor().rgb()); - s.writeS32(7, ui->volume->value()); s.writeS32(8, ui->modulation->currentIndex()); return s.final(); @@ -132,8 +130,6 @@ bool ATVModGUI::deserialize(const QByteArray& data) m_channelMarker.setColor(u32tmp); } - d.readS32(7, &tmp, 10); - ui->volume->setValue(tmp); d.readS32(8, &tmp, 0); ui->modulation->setCurrentIndex(tmp); @@ -233,12 +229,6 @@ void ATVModGUI::on_inputSelect_currentIndexChanged(int index) applySettings(); } -void ATVModGUI::on_volume_valueChanged(int value) -{ - ui->volumeText->setText(QString("%1").arg(value / 10.0, 0, 'f', 1)); - applySettings(); -} - void ATVModGUI::on_channelMute_toggled(bool checked) { applySettings(); @@ -260,7 +250,7 @@ void ATVModGUI::on_imageFileDialog_clicked(bool checked) void ATVModGUI::on_videoFileDialog_clicked(bool checked) { QString fileName = QFileDialog::getOpenFileName(this, - tr("Open video file"), ".", tr("Video Files (*.avi *.mpg *.mp4 *.mov *.m4v *.vob)")); + tr("Open video file"), ".", tr("Video Files (*.avi *.mpg *.mp4 *.mov *.m4v *.vob *.wmv)")); if (fileName != "") { diff --git a/plugins/channeltx/modatv/atvmodgui.h b/plugins/channeltx/modatv/atvmodgui.h index 5fdce53dd..ad8e595bd 100644 --- a/plugins/channeltx/modatv/atvmodgui.h +++ b/plugins/channeltx/modatv/atvmodgui.h @@ -64,7 +64,6 @@ private slots: void on_rfBW_valueChanged(int value); void on_uniformLevel_valueChanged(int value); void on_inputSelect_currentIndexChanged(int index); - void on_volume_valueChanged(int value); void on_channelMute_toggled(bool checked); void on_imageFileDialog_clicked(bool checked); void on_videoFileDialog_clicked(bool checked); diff --git a/plugins/channeltx/modatv/atvmodgui.ui b/plugins/channeltx/modatv/atvmodgui.ui index 1835c0d41..5f9bd5979 100644 --- a/plugins/channeltx/modatv/atvmodgui.ui +++ b/plugins/channeltx/modatv/atvmodgui.ui @@ -272,51 +272,7 @@ - Vol - - - - - - - - 24 - 24 - - - - Video input gain (not implemented) - - - 20 - - - 1 - - - 10 - - - - - - - - 25 - 0 - - - - Audio input gain value - - - - - - 1.0 - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + Video @@ -329,7 +285,7 @@ - Level (% full range) top trace: average, bottom trace: instantaneous peak, tip: peak hold + video signal level in % of 0:1 range