Deep redesign: Init sequence review phase #4: Fixing channel GUI init

pull/6/head
f4exb 2015-08-19 02:18:15 +02:00
rodzic fc3e9efa8a
commit 1fdeaa62c3
7 zmienionych plików z 14 dodań i 7 usunięć

Wyświetl plik

@ -85,6 +85,7 @@ bool AMDemodGUI::deserialize(const QByteArray& data)
qint32 tmp;
blockApplySettings(true);
m_channelMarker->blockSignals(true);
d.readS32(1, &tmp, 0);
m_channelMarker->setCenterFrequency(tmp);
@ -103,6 +104,7 @@ bool AMDemodGUI::deserialize(const QByteArray& data)
}
blockApplySettings(false);
m_channelMarker->blockSignals(false);
applySettings();
return true;
@ -230,7 +232,6 @@ AMDemodGUI::~AMDemodGUI()
void AMDemodGUI::blockApplySettings(bool block)
{
m_channelMarker->blockSignals(block);
m_doApplySettings = !block;
}

Wyświetl plik

@ -86,6 +86,7 @@ bool ChannelAnalyzerGUI::deserialize(const QByteArray& data)
bool tmpBool;
blockApplySettings(true);
m_channelMarker->blockSignals(true);
d.readS32(1, &tmp, 0);
m_channelMarker->setCenterFrequency(tmp);
@ -106,6 +107,7 @@ bool ChannelAnalyzerGUI::deserialize(const QByteArray& data)
ui->scopeGUI->deserialize(bytetmp);
blockApplySettings(false);
m_channelMarker->blockSignals(false);
applySettings();
return true;
@ -388,7 +390,6 @@ void ChannelAnalyzerGUI::blockApplySettings(bool block)
{
ui->glScope->blockSignals(block);
ui->glSpectrum->blockSignals(block);
m_channelMarker->blockSignals(block);
m_doApplySettings = !block;
}

Wyświetl plik

@ -76,6 +76,7 @@ bool LoRaDemodGUI::deserialize(const QByteArray& data)
qint32 tmp;
blockApplySettings(true);
m_channelMarker->blockSignals(true);
d.readS32(1, &tmp, 0);
m_channelMarker->setCenterFrequency(tmp);
@ -87,6 +88,7 @@ bool LoRaDemodGUI::deserialize(const QByteArray& data)
ui->spectrumGUI->deserialize(bytetmp);
blockApplySettings(false);
m_channelMarker->blockSignals(false);
applySettings();
return true;
@ -188,7 +190,6 @@ LoRaDemodGUI::~LoRaDemodGUI()
void LoRaDemodGUI::blockApplySettings(bool block)
{
m_channelMarker->blockSignals(block);
m_doApplySettings = !block;
}

Wyświetl plik

@ -87,6 +87,7 @@ bool NFMDemodGUI::deserialize(const QByteArray& data)
qint32 tmp;
blockApplySettings(true);
m_channelMarker->blockSignals(true);
d.readS32(1, &tmp, 0);
m_channelMarker->setCenterFrequency(tmp);
@ -108,6 +109,7 @@ bool NFMDemodGUI::deserialize(const QByteArray& data)
ui->ctcss->setCurrentIndex(tmp);
blockApplySettings(false);
m_channelMarker->blockSignals(false);
applySettings();
return true;
@ -311,7 +313,6 @@ void NFMDemodGUI::setCtcssFreq(Real ctcssFreq)
void NFMDemodGUI::blockApplySettings(bool block)
{
m_channelMarker->blockSignals(block);
m_doApplySettings = !block;
}

Wyświetl plik

@ -84,6 +84,7 @@ bool SSBDemodGUI::deserialize(const QByteArray& data)
qint32 tmp;
blockApplySettings(true);
m_channelMarker->blockSignals(true);
d.readS32(1, &tmp, 0);
m_channelMarker->setCenterFrequency(tmp);
@ -102,6 +103,7 @@ bool SSBDemodGUI::deserialize(const QByteArray& data)
setNewRate(tmp);
blockApplySettings(false);
m_channelMarker->blockSignals(false);
applySettings();
return true;
@ -344,7 +346,6 @@ bool SSBDemodGUI::setNewRate(int spanLog2)
void SSBDemodGUI::blockApplySettings(bool block)
{
m_channelMarker->blockSignals(block);
m_doApplySettings = !block;
}

Wyświetl plik

@ -80,6 +80,7 @@ bool TCPSrcGUI::deserialize(const QByteArray& data)
Real realtmp;
blockApplySettings(true);
m_channelMarker->blockSignals(true);
d.readBlob(1, &bytetmp);
restoreState(bytetmp);
@ -112,6 +113,7 @@ bool TCPSrcGUI::deserialize(const QByteArray& data)
ui->boost->setValue(s32tmp);
blockApplySettings(false);
m_channelMarker->blockSignals(false);
applySettings();
return true;
@ -208,7 +210,6 @@ TCPSrcGUI::~TCPSrcGUI()
void TCPSrcGUI::blockApplySettings(bool block)
{
m_channelizer->blockSignals(block);
m_doApplySettings = !block;
}

Wyświetl plik

@ -96,6 +96,7 @@ bool WFMDemodGUI::deserialize(const QByteArray& data)
qint32 tmp;
blockApplySettings(true);
m_channelMarker->blockSignals(true);
d.readS32(1, &tmp, 0);
m_channelMarker->setCenterFrequency(tmp);
@ -114,6 +115,7 @@ bool WFMDemodGUI::deserialize(const QByteArray& data)
}
blockApplySettings(false);
m_channelMarker->blockSignals(false);
applySettings();
return true;
@ -240,7 +242,6 @@ WFMDemodGUI::~WFMDemodGUI()
void WFMDemodGUI::blockApplySettings(bool block)
{
m_channelMarker->blockSignals(block);
m_doApplySettings = !block;
}