2017-02-23 02:18:56 -05:00
|
|
|
///////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Copyright (C) 2017 F4HKW //
|
|
|
|
// for F4EXB / SDRAngel //
|
|
|
|
// //
|
|
|
|
// This program is free software; you can redistribute it and/or modify //
|
|
|
|
// it under the terms of the GNU General Public License as published by //
|
|
|
|
// the Free Software Foundation as version 3 of the License, or //
|
|
|
|
// //
|
|
|
|
// This program is distributed in the hope that it will be useful, //
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
|
|
|
|
// GNU General Public License V3 for more details. //
|
|
|
|
// //
|
|
|
|
// You should have received a copy of the GNU General Public License //
|
|
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include <QDockWidget>
|
|
|
|
#include <QMainWindow>
|
|
|
|
|
|
|
|
#include "atvdemodgui.h"
|
|
|
|
|
|
|
|
#include "device/devicesourceapi.h"
|
|
|
|
#include "dsp/downchannelizer.h"
|
|
|
|
|
|
|
|
#include "dsp/threadedbasebandsamplesink.h"
|
|
|
|
#include "ui_atvdemodgui.h"
|
|
|
|
#include "plugin/pluginapi.h"
|
|
|
|
#include "util/simpleserializer.h"
|
|
|
|
#include "util/db.h"
|
|
|
|
#include "gui/basicchannelsettingswidget.h"
|
|
|
|
#include "dsp/dspengine.h"
|
|
|
|
#include "mainwindow.h"
|
|
|
|
|
|
|
|
#include "atvdemod.h"
|
|
|
|
|
|
|
|
const QString ATVDemodGUI::m_strChannelID = "sdrangel.channel.demodatv";
|
|
|
|
|
2017-02-25 04:15:47 -05:00
|
|
|
ATVDemodGUI* ATVDemodGUI::create(PluginAPI* objPluginAPI,
|
|
|
|
DeviceSourceAPI *objDeviceAPI)
|
2017-02-23 02:18:56 -05:00
|
|
|
{
|
|
|
|
ATVDemodGUI* gui = new ATVDemodGUI(objPluginAPI, objDeviceAPI);
|
2017-02-25 04:15:47 -05:00
|
|
|
return gui;
|
2017-02-23 02:18:56 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
void ATVDemodGUI::destroy()
|
|
|
|
{
|
|
|
|
delete this;
|
|
|
|
}
|
|
|
|
|
|
|
|
void ATVDemodGUI::setName(const QString& strName)
|
|
|
|
{
|
|
|
|
setObjectName(strName);
|
|
|
|
}
|
|
|
|
|
|
|
|
QString ATVDemodGUI::getName() const
|
|
|
|
{
|
2017-02-25 04:15:47 -05:00
|
|
|
return objectName();
|
2017-02-23 02:18:56 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
qint64 ATVDemodGUI::getCenterFrequency() const
|
|
|
|
{
|
|
|
|
return m_objChannelMarker.getCenterFrequency();
|
|
|
|
}
|
|
|
|
|
|
|
|
void ATVDemodGUI::setCenterFrequency(qint64 intCenterFrequency)
|
|
|
|
{
|
|
|
|
m_objChannelMarker.setCenterFrequency(intCenterFrequency);
|
2017-02-25 04:15:47 -05:00
|
|
|
applySettings();
|
2017-02-23 02:18:56 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
void ATVDemodGUI::resetToDefaults()
|
|
|
|
{
|
2017-02-25 04:15:47 -05:00
|
|
|
blockApplySettings(true);
|
2017-02-23 02:18:56 -05:00
|
|
|
|
2017-02-25 04:15:47 -05:00
|
|
|
//********** ATV Default values **********
|
|
|
|
ui->synchLevel->setValue(100);
|
|
|
|
ui->blackLevel->setValue(310);
|
|
|
|
ui->lineTime->setValue(640);
|
|
|
|
ui->topTime->setValue(3);
|
|
|
|
ui->modulation->setCurrentIndex(0);
|
|
|
|
ui->fps->setCurrentIndex(0);
|
|
|
|
ui->hSync->setChecked(true);
|
|
|
|
ui->vSync->setChecked(true);
|
|
|
|
ui->halfImage->setChecked(false);
|
2017-02-23 02:18:56 -05:00
|
|
|
|
|
|
|
blockApplySettings(false);
|
2017-02-25 04:15:47 -05:00
|
|
|
applySettings();
|
2017-02-23 02:18:56 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray ATVDemodGUI::serialize() const
|
|
|
|
{
|
2017-02-25 04:15:47 -05:00
|
|
|
SimpleSerializer s(1);
|
2017-02-23 02:18:56 -05:00
|
|
|
|
2017-02-25 04:34:05 -05:00
|
|
|
s.writeS32(1, m_objChannelMarker.getCenterFrequency());
|
|
|
|
s.writeU32(2, m_objChannelMarker.getColor().rgb());
|
|
|
|
s.writeS32(3, ui->synchLevel->value());
|
|
|
|
s.writeS32(4, ui->blackLevel->value());
|
|
|
|
s.writeS32(5, ui->lineTime->value());
|
|
|
|
s.writeS32(6, ui->topTime->value());
|
|
|
|
s.writeS32(7, ui->modulation->currentIndex());
|
|
|
|
s.writeS32(8, ui->fps->currentIndex());
|
|
|
|
s.writeBool(9, ui->hSync->isChecked());
|
|
|
|
s.writeBool(10, ui->vSync->isChecked());
|
|
|
|
s.writeBool(11, ui->halfImage->isChecked());
|
2017-02-23 02:18:56 -05:00
|
|
|
|
|
|
|
return s.final();
|
|
|
|
}
|
|
|
|
|
|
|
|
bool ATVDemodGUI::deserialize(const QByteArray& arrData)
|
|
|
|
{
|
|
|
|
SimpleDeserializer d(arrData);
|
|
|
|
|
2017-02-25 04:15:47 -05:00
|
|
|
if (!d.isValid())
|
2017-02-23 02:18:56 -05:00
|
|
|
{
|
2017-02-25 04:15:47 -05:00
|
|
|
resetToDefaults();
|
|
|
|
return false;
|
|
|
|
}
|
2017-02-23 02:18:56 -05:00
|
|
|
|
2017-02-25 04:15:47 -05:00
|
|
|
if (d.getVersion() == 1)
|
2017-02-23 02:18:56 -05:00
|
|
|
{
|
2017-02-25 04:15:47 -05:00
|
|
|
QByteArray bytetmp;
|
2017-02-25 04:34:05 -05:00
|
|
|
uint32_t u32tmp;
|
|
|
|
int tmp;
|
|
|
|
bool booltmp;
|
2017-02-23 02:18:56 -05:00
|
|
|
|
2017-02-25 04:15:47 -05:00
|
|
|
blockApplySettings(true);
|
2017-02-23 02:18:56 -05:00
|
|
|
m_objChannelMarker.blockSignals(true);
|
|
|
|
|
2017-02-25 04:15:47 -05:00
|
|
|
d.readS32(1, &tmp, 0);
|
2017-02-23 02:18:56 -05:00
|
|
|
m_objChannelMarker.setCenterFrequency(tmp);
|
|
|
|
|
2017-02-25 04:34:05 -05:00
|
|
|
if (d.readU32(2, &u32tmp)) {
|
2017-02-23 02:18:56 -05:00
|
|
|
m_objChannelMarker.setColor(u32tmp);
|
2017-02-25 04:34:05 -05:00
|
|
|
} else {
|
|
|
|
m_objChannelMarker.setColor(Qt::white);
|
2017-02-23 02:18:56 -05:00
|
|
|
}
|
|
|
|
|
2017-02-25 04:34:05 -05:00
|
|
|
d.readS32(3, &tmp, 100);
|
|
|
|
ui->synchLevel->setValue(tmp);
|
|
|
|
d.readS32(4, &tmp, 310);
|
|
|
|
ui->blackLevel->setValue(tmp);
|
|
|
|
d.readS32(5, &tmp, 640);
|
|
|
|
ui->lineTime->setValue(tmp);
|
|
|
|
d.readS32(6, &tmp, 3);
|
|
|
|
ui->topTime->setValue(tmp);
|
|
|
|
d.readS32(7, &tmp, 0);
|
|
|
|
ui->modulation->setCurrentIndex(tmp);
|
|
|
|
d.readS32(8, &tmp, 0);
|
|
|
|
ui->fps->setCurrentIndex(tmp);
|
|
|
|
d.readBool(9, &booltmp, true);
|
|
|
|
ui->hSync->setChecked(booltmp);
|
|
|
|
d.readBool(10, &booltmp, true);
|
|
|
|
ui->vSync->setChecked(booltmp);
|
|
|
|
d.readBool(11, &booltmp, false);
|
|
|
|
ui->halfImage->setChecked(booltmp);
|
|
|
|
|
2017-02-23 02:18:56 -05:00
|
|
|
blockApplySettings(false);
|
|
|
|
m_objChannelMarker.blockSignals(false);
|
|
|
|
|
2017-02-25 04:15:47 -05:00
|
|
|
applySettings();
|
|
|
|
return true;
|
|
|
|
}
|
2017-02-23 02:18:56 -05:00
|
|
|
else
|
|
|
|
{
|
2017-02-25 04:15:47 -05:00
|
|
|
resetToDefaults();
|
|
|
|
return false;
|
|
|
|
}
|
2017-02-23 02:18:56 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bool ATVDemodGUI::handleMessage(const Message& objMessage)
|
|
|
|
{
|
2017-02-25 04:15:47 -05:00
|
|
|
return false;
|
2017-02-23 02:18:56 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
void ATVDemodGUI::viewChanged()
|
|
|
|
{
|
2017-02-25 04:15:47 -05:00
|
|
|
applySettings();
|
2017-02-23 02:18:56 -05:00
|
|
|
}
|
|
|
|
|
2017-02-25 05:52:57 -05:00
|
|
|
void ATVDemodGUI::channelSampleRateChanged()
|
|
|
|
{
|
2017-02-25 07:14:29 -05:00
|
|
|
qDebug("ATVDemodGUI::channelSampleRateChanged");
|
2017-03-16 13:56:20 -04:00
|
|
|
ui->channelSampleRateText->setText(tr("%1k").arg(m_objChannelizer->getInputSampleRate()/1000.0f, 0, 'f', 0));
|
2017-02-25 05:52:57 -05:00
|
|
|
applySettings();
|
|
|
|
}
|
|
|
|
|
2017-02-23 02:18:56 -05:00
|
|
|
void ATVDemodGUI::onWidgetRolled(QWidget* widget, bool rollDown)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void ATVDemodGUI::onMenuDoubleClicked()
|
|
|
|
{
|
2017-02-25 04:15:47 -05:00
|
|
|
if (!m_blnBasicSettingsShown)
|
2017-02-23 02:18:56 -05:00
|
|
|
{
|
|
|
|
m_blnBasicSettingsShown = true;
|
2017-02-25 04:15:47 -05:00
|
|
|
BasicChannelSettingsWidget* bcsw = new BasicChannelSettingsWidget(
|
|
|
|
&m_objChannelMarker, this);
|
2017-02-23 02:18:56 -05:00
|
|
|
bcsw->show();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-02-25 04:15:47 -05:00
|
|
|
ATVDemodGUI::ATVDemodGUI(PluginAPI* objPluginAPI, DeviceSourceAPI *objDeviceAPI,
|
|
|
|
QWidget* objParent) :
|
2017-03-15 17:12:12 -04:00
|
|
|
RollupWidget(objParent),
|
|
|
|
ui(new Ui::ATVDemodGUI),
|
|
|
|
m_objPluginAPI(objPluginAPI),
|
|
|
|
m_objDeviceAPI(objDeviceAPI),
|
|
|
|
m_objChannelMarker(this),
|
|
|
|
m_blnBasicSettingsShown(false),
|
2017-03-16 13:56:20 -04:00
|
|
|
m_blnDoApplySettings(true),
|
|
|
|
m_intTickCount(0)
|
2017-02-23 02:18:56 -05:00
|
|
|
{
|
2017-02-25 04:15:47 -05:00
|
|
|
ui->setupUi(this);
|
|
|
|
setAttribute(Qt::WA_DeleteOnClose, true);
|
2017-03-15 17:12:12 -04:00
|
|
|
connect(this, SIGNAL(widgetRolled(QWidget*,bool)), this, SLOT(onWidgetRolled(QWidget*,bool)));
|
|
|
|
connect(this, SIGNAL(menuDoubleClickEvent()), this, SLOT(onMenuDoubleClicked()));
|
2017-02-23 02:18:56 -05:00
|
|
|
|
|
|
|
m_objATVDemod = new ATVDemod();
|
|
|
|
m_objATVDemod->SetATVScreen(ui->screenTV);
|
|
|
|
|
|
|
|
m_objChannelizer = new DownChannelizer(m_objATVDemod);
|
2017-03-15 17:12:12 -04:00
|
|
|
m_objThreadedChannelizer = new ThreadedBasebandSampleSink(m_objChannelizer, this);
|
2017-02-23 02:18:56 -05:00
|
|
|
m_objDeviceAPI->addThreadedSink(m_objThreadedChannelizer);
|
|
|
|
|
2017-03-16 13:56:20 -04:00
|
|
|
connect(&m_objPluginAPI->getMainWindow()->getMasterTimer(), SIGNAL(timeout()), this, SLOT(tick())); // 50 ms
|
2017-02-23 02:18:56 -05:00
|
|
|
|
2017-03-15 13:56:38 -04:00
|
|
|
ui->deltaFrequency->setColorMapper(ColorMapper(ColorMapper::ReverseGold));
|
2017-03-15 17:12:12 -04:00
|
|
|
ui->deltaFrequency->setValueRange(7, 0U, 9999999U);
|
2017-03-15 13:56:38 -04:00
|
|
|
|
2017-03-15 17:12:12 -04:00
|
|
|
connect(m_objChannelizer, SIGNAL(inputSampleRateChanged()), this, SLOT(channelSampleRateChanged()));
|
|
|
|
|
|
|
|
//m_objPluginAPI->addThreadedSink(m_objThreadedChannelizer);
|
2017-02-23 02:18:56 -05:00
|
|
|
m_objChannelMarker.setColor(Qt::white);
|
2017-03-15 19:39:49 -04:00
|
|
|
m_objChannelMarker.setMovable(false);
|
2017-02-23 02:18:56 -05:00
|
|
|
m_objChannelMarker.setBandwidth(6000000);
|
|
|
|
m_objChannelMarker.setCenterFrequency(0);
|
|
|
|
m_objChannelMarker.setVisible(true);
|
|
|
|
|
2017-03-15 17:12:12 -04:00
|
|
|
//connect(&m_objChannelMarker, SIGNAL(changed()), this, SLOT(viewChanged()));
|
2017-02-23 02:18:56 -05:00
|
|
|
|
|
|
|
m_objDeviceAPI->registerChannelInstance(m_strChannelID, this);
|
|
|
|
m_objDeviceAPI->addChannelMarker(&m_objChannelMarker);
|
|
|
|
m_objDeviceAPI->addRollupWidget(this);
|
|
|
|
|
2017-02-24 23:45:42 -05:00
|
|
|
//ui->screenTV->connectTimer(m_objPluginAPI->getMainWindow()->getMasterTimer());
|
2017-02-23 02:18:56 -05:00
|
|
|
|
2017-02-25 04:15:47 -05:00
|
|
|
resetToDefaults(); // does applySettings()
|
2017-02-23 02:18:56 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
ATVDemodGUI::~ATVDemodGUI()
|
|
|
|
{
|
|
|
|
m_objDeviceAPI->removeChannelInstance(this);
|
|
|
|
m_objDeviceAPI->removeThreadedSink(m_objThreadedChannelizer);
|
|
|
|
delete m_objThreadedChannelizer;
|
|
|
|
delete m_objChannelizer;
|
|
|
|
delete m_objATVDemod;
|
|
|
|
delete ui;
|
|
|
|
}
|
|
|
|
|
|
|
|
void ATVDemodGUI::blockApplySettings(bool blnBlock)
|
|
|
|
{
|
|
|
|
m_blnDoApplySettings = !blnBlock;
|
|
|
|
}
|
|
|
|
|
|
|
|
void ATVDemodGUI::applySettings()
|
|
|
|
{
|
|
|
|
if (m_blnDoApplySettings)
|
2017-02-25 04:15:47 -05:00
|
|
|
{
|
2017-02-23 02:18:56 -05:00
|
|
|
setTitleColor(m_objChannelMarker.getColor());
|
2017-03-15 13:56:38 -04:00
|
|
|
ui->deltaFrequency->setValue(abs(m_objChannelMarker.getCenterFrequency()));
|
|
|
|
ui->deltaFrequencyMinus->setChecked(m_objChannelMarker.getCenterFrequency() < 0);
|
2017-02-23 02:18:56 -05:00
|
|
|
|
2017-02-25 04:15:47 -05:00
|
|
|
m_objChannelizer->configure(m_objChannelizer->getInputMessageQueue(),
|
2017-02-25 05:21:38 -05:00
|
|
|
//m_objATVDemod->GetSampleRate(),
|
|
|
|
m_objChannelizer->getInputSampleRate(), // always use maximum available bandwidth
|
2017-02-25 04:15:47 -05:00
|
|
|
m_objChannelMarker.getCenterFrequency());
|
2017-02-23 02:18:56 -05:00
|
|
|
|
|
|
|
m_objATVDemod->configure(m_objATVDemod->getInputMessageQueue(),
|
2017-03-16 18:13:51 -04:00
|
|
|
ui->lineTime->value() / 10.0f,
|
2017-03-16 18:29:22 -04:00
|
|
|
ui->topTime->value() * 1.0f,
|
2017-03-16 19:12:12 -04:00
|
|
|
(ui->fps->currentIndex() == 0) ? 25.0f : 30.0f,
|
|
|
|
(ui->halfImage->checkState() == Qt::Checked) ? 0.5f : 1.0f,
|
|
|
|
ui->synchLevel->value() / 1000.0f,
|
|
|
|
ui->blackLevel->value() / 1000.0f,
|
2017-03-16 15:57:00 -04:00
|
|
|
(ATVDemod::ATVModulation) ui->modulation->currentIndex(),
|
|
|
|
ui->hSync->isChecked(),
|
2017-02-25 04:15:47 -05:00
|
|
|
ui->vSync->isChecked());
|
2017-02-23 02:18:56 -05:00
|
|
|
|
2017-02-25 07:14:29 -05:00
|
|
|
qDebug() << "ATVDemodGUI::applySettings:"
|
|
|
|
<< " m_objChannelizer.inputSampleRate: " << m_objChannelizer->getInputSampleRate()
|
|
|
|
<< " m_objATVDemod.sampleRate: " << m_objATVDemod->GetSampleRate();
|
|
|
|
|
|
|
|
//m_objChannelMarker.setBandwidth(m_objATVDemod->GetSampleRate()); it is unreliable at this moment
|
2017-03-15 20:03:01 -04:00
|
|
|
m_blnDoApplySettings = false; // avoid infinite recursion
|
2017-02-25 07:14:29 -05:00
|
|
|
m_objChannelMarker.setBandwidth(m_objChannelizer->getInputSampleRate());
|
2017-03-15 20:03:01 -04:00
|
|
|
m_blnDoApplySettings = true;
|
2017-02-25 04:15:47 -05:00
|
|
|
}
|
2017-02-23 02:18:56 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
void ATVDemodGUI::leaveEvent(QEvent*)
|
|
|
|
{
|
2017-02-25 04:15:47 -05:00
|
|
|
blockApplySettings(true);
|
2017-02-23 02:18:56 -05:00
|
|
|
m_objChannelMarker.setHighlighted(false);
|
2017-02-25 04:15:47 -05:00
|
|
|
blockApplySettings(false);
|
2017-02-23 02:18:56 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
void ATVDemodGUI::enterEvent(QEvent*)
|
|
|
|
{
|
2017-02-25 04:15:47 -05:00
|
|
|
blockApplySettings(true);
|
2017-02-23 02:18:56 -05:00
|
|
|
m_objChannelMarker.setHighlighted(true);
|
2017-02-25 04:15:47 -05:00
|
|
|
blockApplySettings(false);
|
2017-02-23 02:18:56 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
void ATVDemodGUI::tick()
|
|
|
|
{
|
2017-03-16 13:56:20 -04:00
|
|
|
if (m_intTickCount < 10) // ~500 ms
|
|
|
|
{
|
|
|
|
m_intTickCount++;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
if (m_objATVDemod)
|
|
|
|
{
|
|
|
|
double magSqDB = CalcDb::dbPower(m_objATVDemod->getMagSq() / (1<<30));
|
|
|
|
ui->channePowerText->setText(tr("%1 dB").arg(magSqDB, 0, 'f', 1));
|
|
|
|
}
|
|
|
|
|
|
|
|
m_intTickCount = 0;
|
|
|
|
}
|
|
|
|
|
2017-02-25 04:15:47 -05:00
|
|
|
return;
|
2017-02-23 02:18:56 -05:00
|
|
|
}
|
|
|
|
|
2017-02-25 04:15:47 -05:00
|
|
|
void ATVDemodGUI::on_synchLevel_valueChanged(int value)
|
2017-02-23 02:18:56 -05:00
|
|
|
{
|
|
|
|
applySettings();
|
2017-02-25 04:15:47 -05:00
|
|
|
ui->synchLevelText->setText(QString("%1 mV").arg(value));
|
2017-02-23 02:18:56 -05:00
|
|
|
}
|
|
|
|
|
2017-02-25 04:15:47 -05:00
|
|
|
void ATVDemodGUI::on_blackLevel_valueChanged(int value)
|
2017-02-23 02:18:56 -05:00
|
|
|
{
|
|
|
|
applySettings();
|
2017-02-25 04:15:47 -05:00
|
|
|
ui->blackLevelText->setText(QString("%1 mV").arg(value));
|
2017-02-23 02:18:56 -05:00
|
|
|
}
|
|
|
|
|
2017-02-25 04:15:47 -05:00
|
|
|
void ATVDemodGUI::on_lineTime_valueChanged(int value)
|
2017-02-23 02:18:56 -05:00
|
|
|
{
|
2017-02-25 04:15:47 -05:00
|
|
|
ui->lineTimeText->setText(QString("%1 uS").arg(((float) value) / 10.0f));
|
2017-02-24 23:45:42 -05:00
|
|
|
applySettings();
|
2017-02-23 02:18:56 -05:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2017-02-25 04:15:47 -05:00
|
|
|
void ATVDemodGUI::on_topTime_valueChanged(int value)
|
2017-02-23 02:18:56 -05:00
|
|
|
{
|
2017-02-25 04:15:47 -05:00
|
|
|
ui->topTimeText->setText(QString("%1 uS").arg(value));
|
|
|
|
applySettings();
|
2017-02-23 02:18:56 -05:00
|
|
|
}
|
|
|
|
|
2017-02-25 04:15:47 -05:00
|
|
|
void ATVDemodGUI::on_hSync_clicked()
|
2017-02-23 02:18:56 -05:00
|
|
|
{
|
2017-02-25 04:15:47 -05:00
|
|
|
applySettings();
|
2017-02-23 02:18:56 -05:00
|
|
|
}
|
|
|
|
|
2017-02-25 04:15:47 -05:00
|
|
|
void ATVDemodGUI::on_vSync_clicked()
|
2017-02-24 23:45:42 -05:00
|
|
|
{
|
2017-02-25 04:15:47 -05:00
|
|
|
applySettings();
|
2017-02-23 02:18:56 -05:00
|
|
|
}
|
|
|
|
|
2017-02-25 04:15:47 -05:00
|
|
|
void ATVDemodGUI::on_halfImage_clicked()
|
2017-02-23 02:18:56 -05:00
|
|
|
{
|
2017-02-25 04:15:47 -05:00
|
|
|
applySettings();
|
2017-02-23 02:18:56 -05:00
|
|
|
}
|
|
|
|
|
2017-02-25 04:15:47 -05:00
|
|
|
void ATVDemodGUI::on_modulation_currentIndexChanged(int index)
|
2017-02-23 02:18:56 -05:00
|
|
|
{
|
2017-02-24 23:45:42 -05:00
|
|
|
applySettings();
|
2017-02-23 02:18:56 -05:00
|
|
|
}
|
|
|
|
|
2017-02-25 04:15:47 -05:00
|
|
|
void ATVDemodGUI::on_fps_currentIndexChanged(int index)
|
2017-02-23 02:18:56 -05:00
|
|
|
{
|
|
|
|
applySettings();
|
|
|
|
}
|
2017-02-25 04:15:47 -05:00
|
|
|
|
|
|
|
void ATVDemodGUI::on_reset_clicked(bool checked)
|
|
|
|
{
|
|
|
|
resetToDefaults();
|
|
|
|
}
|