1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-03 14:34:57 -04:00

Morse Decoder: added scope from RTTY decoder

This commit is contained in:
f4exb
2024-05-17 18:51:13 +02:00
parent 39bc799509
commit 112cd4cac4
8 changed files with 371 additions and 2 deletions
@@ -58,6 +58,10 @@ QByteArray MorseDecoderSettings::serialize() const
{
SimpleSerializer s(1);
if (m_scopeGUI) {
s.writeBlob(2, m_scopeGUI->serialize());
}
s.writeString(5, m_title);
s.writeU32(6, m_rgbColor);
s.writeBool(7, m_useReverseAPI);
@@ -99,6 +103,12 @@ bool MorseDecoderSettings::deserialize(const QByteArray& data)
uint32_t utmp;
QString strtmp;
if (m_scopeGUI)
{
d.readBlob(2, &bytetmp);
m_scopeGUI->deserialize(bytetmp);
}
d.readString(5, &m_title, "Demod Analyzer");
d.readU32(6, &m_rgbColor, QColor(0, 255, 0).rgb());
d.readBool(7, &m_useReverseAPI, false);