1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-05-23 08:37:06 -04:00

Rearrange GUI

This commit is contained in:
Jon Beniston 2026-04-19 10:39:42 +01:00
parent a5d519bc82
commit e931f0871b
3 changed files with 34 additions and 37 deletions

View File

@ -17,7 +17,7 @@
</size>
</property>
<property name="windowTitle">
<string>Frequency display</string>
<string>Frequency Display</string>
</property>
<widget class="QWidget" name="settingsContainer" native="true">
<property name="geometry">
@ -64,6 +64,9 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip">
<string>Which channel to display frequency / power for</string>
</property>
</widget>
</item>
<item>
@ -101,26 +104,6 @@
</item>
</widget>
</item>
<item>
<widget class="QLabel" name="fontLabel">
<property name="text">
<string>Font</string>
</property>
</widget>
</item>
<item>
<widget class="QFontComboBox" name="fontFamily">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip">
<string>Select font family for the frequency display</string>
</property>
</widget>
</item>
<item>
<widget class="ButtonSwitch" name="transparentBackground">
<property name="toolTip">
@ -196,19 +179,16 @@
</item>
<item>
<widget class="QLabel" name="freqDecimalPlacesLabel">
<property name="text">
<string>F.dp</string>
</property>
<property name="toolTip">
<string>Decimal places for frequency (disabled when units is Hz)</string>
</property>
<property name="text">
<string>Freq DP</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="freqDecimalPlaces">
<property name="minimumWidth">
<number>45</number>
</property>
<property name="toolTip">
<string>Number of decimal places to show for the frequency value</string>
</property>
@ -225,19 +205,16 @@
</item>
<item>
<widget class="QLabel" name="powerDecimalPlacesLabel">
<property name="text">
<string>P.dp</string>
</property>
<property name="toolTip">
<string>Decimal places for power</string>
</property>
<property name="text">
<string>Power DP</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="powerDecimalPlaces">
<property name="minimumWidth">
<number>45</number>
</property>
<property name="toolTip">
<string>Number of decimal places to show for the power value</string>
</property>
@ -252,10 +229,30 @@
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="fontLabel">
<property name="text">
<string>Font</string>
</property>
</widget>
</item>
<item>
<widget class="QFontComboBox" name="fontFamily">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip">
<string>Select font family for the frequency display</string>
</property>
</widget>
</item>
<item>
<spacer name="unitsSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>

View File

@ -12,7 +12,7 @@
const PluginDescriptor FreqDisplayPlugin::m_pluginDescriptor = {
FreqDisplay::m_featureId,
QStringLiteral("Frequency display"),
QStringLiteral("Frequency Display"),
QStringLiteral("7.24.0"),
QStringLiteral("(c) Jon Beniston, M7RCE"),
QStringLiteral("https://github.com/f4exb/sdrangel"),

View File

@ -9,7 +9,7 @@ FreqDisplaySettings::FreqDisplaySettings()
void FreqDisplaySettings::resetToDefaults()
{
m_title = "Frequency display";
m_title = "Frequency Display";
m_selectedChannel.clear();
m_workspaceIndex = -1;
m_geometryBytes.clear();
@ -59,7 +59,7 @@ bool FreqDisplaySettings::deserialize(const QByteArray& data)
return false;
}
d.readString(1, &m_title, "Frequency display");
d.readString(1, &m_title, "Frequency Display");
d.readString(2, &m_selectedChannel, "");
d.readS32(3, &m_workspaceIndex, -1);
d.readBlob(4, &m_geometryBytes);