mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-24 10:50:29 -05:00
DSD demod: embelishment of the signal format specific status display
This commit is contained in:
parent
d2851058f8
commit
d5d5f53bf8
@ -417,6 +417,7 @@ void DSDDemodGUI::formatStatusText()
|
||||
}
|
||||
}
|
||||
|
||||
m_formatStatusText[62] = '\0';
|
||||
m_signalFormat = signalFormatDStar;
|
||||
break;
|
||||
default:
|
||||
@ -425,7 +426,7 @@ void DSDDemodGUI::formatStatusText()
|
||||
break;
|
||||
}
|
||||
|
||||
m_formatStatusText[80] = '\0'; // guard
|
||||
m_formatStatusText[64] = '\0'; // guard
|
||||
}
|
||||
|
||||
void DSDDemodGUI::tick()
|
||||
@ -461,6 +462,12 @@ void DSDDemodGUI::tick()
|
||||
formatStatusText();
|
||||
ui->formatStatusText->setText(QString(m_formatStatusText));
|
||||
|
||||
if (m_formatStatusText[0] == '\0') {
|
||||
ui->formatStatusText->setStyleSheet("QLabel { background:rgb(53,53,53); }"); // turn off background
|
||||
} else {
|
||||
ui->formatStatusText->setStyleSheet("QLabel { background:rgb(37,53,39); }"); // turn on background
|
||||
}
|
||||
|
||||
m_tickCount = 0;
|
||||
}
|
||||
}
|
||||
|
@ -82,7 +82,7 @@ private:
|
||||
ChannelMarker m_channelMarker;
|
||||
bool m_basicSettingsShown;
|
||||
bool m_doApplySettings;
|
||||
char m_formatStatusText[80+1]; //!< Fixed signal format dependent status text
|
||||
char m_formatStatusText[64+1]; //!< Fixed signal format dependent status text
|
||||
SignalFormat m_signalFormat;
|
||||
|
||||
ThreadedSampleSink* m_threadedChannelizer;
|
||||
|
@ -579,16 +579,40 @@
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="formatStatusLayout">
|
||||
<property name="leftMargin">
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<number>2</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QLabel" name="formatStatusText">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>400</width>
|
||||
<width>470</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="font">
|
||||
<font>
|
||||
<family>Monospace</family>
|
||||
<pointsize>9</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::Box</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Sunken</enum>
|
||||
</property>
|
||||
<property name="lineWidth">
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>___</string>
|
||||
<string>A123456789B123456789C123456789D123456789E123456789F123456789G123</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
Loading…
Reference in New Issue
Block a user