From 69057f967a3f05cce8178683a01b5c072a247741 Mon Sep 17 00:00:00 2001 From: "Mark J. Fine" Date: Wed, 21 Dec 2022 22:28:29 -0500 Subject: [PATCH] Added way to change application display from narrow to wide layout --- nrsc5-dui.py | 23 +- res/mainForm-narrow.glade | 2454 ++++++++++++++++++++++++++++++++++++ res/mainForm-wide.glade | 2464 +++++++++++++++++++++++++++++++++++++ res/mainForm.glade | 197 +-- 4 files changed, 5065 insertions(+), 73 deletions(-) create mode 100644 res/mainForm-narrow.glade create mode 100644 res/mainForm-wide.glade diff --git a/nrsc5-dui.py b/nrsc5-dui.py index 41b07a5..a208180 100644 --- a/nrsc5-dui.py +++ b/nrsc5-dui.py @@ -35,7 +35,8 @@ else: import gi gi.require_version("Gtk", "3.0") -from gi.repository import Gtk, GObject, Gdk, GdkPixbuf, GLib +gi.require_version("Notify", "0.7") +from gi.repository import Gtk, GObject, Gdk, GdkPixbuf, GLib, Notify import urllib3 from OpenSSL import SSL @@ -310,6 +311,19 @@ class NRSC5_DUI(object): self.lblExtend.set_sensitive(dlCoversSet) self.cbExtend.set_sensitive(dlCoversSet) + def restart_program(self): + python = sys.executable + os.execl(python, python, * sys.argv) + + def on_cbxAspect_changed(self, btn): + screenAspect = self.cbxAspect.get_active_text() + if (screenAspect == "narrow") or (screenAspect == "wide"): + mainFile = os.path.join(resDir, "mainForm.glade") + gladeFile = os.path.join(resDir, "mainForm-"+screenAspect+".glade") + if (os.path.isfile(gladeFile)): + shutil.copy(gladeFile,mainFile) + self.restart_program() + def on_cbxSDRRadio_changed(self, btn): useSDRPlay = (self.cbxSDRRadio.get_active_text() == "SDRPlay") self.lblSdrPlaySer.set_visible(useSDRPlay) @@ -654,6 +668,7 @@ class NRSC5_DUI(object): # disable the controls self.spinFreq.set_sensitive(False) + self.cbxAspect.ser_sensitive(False) self.cbxSDRRadio.set_sensitive(False) self.spinGain.set_sensitive(False) self.spinPPM.set_sensitive(False) @@ -718,6 +733,7 @@ class NRSC5_DUI(object): if (not self.cbAutoGain.get_active()): self.spinGain.set_sensitive(True) self.spinFreq.set_sensitive(True) + self.cbxAspect.set_sensitive(True) self.cbxSDRRadio.set_sensitive(True) self.spinPPM.set_sensitive(True) self.spinRTL.set_sensitive(True) @@ -795,7 +811,7 @@ class NRSC5_DUI(object): authors = [ "Cody Nybo ", "Clayton Smith ", - "nefie ", + "zefie ", "Mark J. Fine " ] @@ -1565,7 +1581,7 @@ class NRSC5_DUI(object): # match Open device failed self.on_btnStop_clicked(None) self.set_synchronization(-1) - + def getControls(self): global resDir # setup gui @@ -1589,6 +1605,7 @@ class NRSC5_DUI(object): self.alignmentMap = builder.get_object("alignment_map") self.imgMap = builder.get_object("imgMap") self.spinFreq = builder.get_object("spinFreq") + self.cbxAspect = builder.get_object("cbxAspect") self.cbxSDRRadio = builder.get_object("cbxSDRRadio") self.spinGain = builder.get_object("spinGain") self.cbAutoGain = builder.get_object("cbAutoGain") diff --git a/res/mainForm-narrow.glade b/res/mainForm-narrow.glade new file mode 100644 index 0000000..2cb7cd8 --- /dev/null +++ b/res/mainForm-narrow.glade @@ -0,0 +1,2454 @@ + + + + + + 88.10 + 107.90 + 88.10 + 0.20 + 1 + + + 0.00 + 49.60 + 0.01 + 1 + + + -1000 + 1000 + 1 + 10 + + + 255 + 1 + 16 + + + 1 + 4 + 1 + 1 + 10 + + + True + False + + + False + NRSC5 DUI + + + + + + True + False + + + True + False + + + False + True + False + Play + Play + True + gtk-media-play + + + + False + True + + + + + False + True + False + False + Stop + Stop + True + gtk-media-stop + + + + False + True + + + + + False + True + False + + + False + True + + + + + False + True + False + False + Bookmark Station + Add Bookmark + True + bookmark-new + + + + False + True + + + + + False + True + False + False + Delete Bookmark + Delete Bookmark + True + gtk-delete + + + + False + True + + + + + False + True + False + + + False + True + + + + + False + True + False + Weather and Traffic Map Viewer + Weather & Traffic Maps + True + + + + False + True + + + + + False + True + False + About + About + True + gtk-about + + + + False + True + + + + + False + True + 0 + + + + + True + False + GTK_ALIGN_START + 0 + 0 + + + True + False + 3 + 3 + + + True + False + 10 + Frequency + center + True + 0 + + + 0 + 1 + GTK_FILL + GTK_FILL + + + + + True + True + + 6 + False + False + adjFreq + 1 + True + True + True + + + + 1 + 2 + GTK_FILL + GTK_FILL + + + + + True + False + 10 + True + 0 + + + 2 + 3 + GTK_FILL + GTK_FILL + + + + + + + False + True + 3 + 1 + + + + + True + False + + + True + False + 4 + 2 + 3 + True + + + True + True + False + True + + + True + False + end + + + + + 0 + 1 + GTK_FILL + + + + + True + True + False + True + + + True + False + end + + + + + 1 + 2 + GTK_FILL + + + + + True + True + False + True + + + True + False + end + + + + + 2 + 3 + GTK_FILL + + + + + True + True + False + True + + + True + False + end + + + + + 3 + 4 + GTK_FILL + + + + + True + True + False + True + + + True + False + end + + + + + 0 + 1 + 1 + 2 + GTK_FILL + + + + + True + True + False + True + + + True + False + end + + + + + 1 + 2 + 1 + 2 + GTK_FILL + + + + + True + True + False + True + + + True + False + end + + + + + 2 + 3 + 1 + 2 + GTK_FILL + + + + + True + True + False + True + + + True + False + end + + + + + 3 + 4 + 1 + 2 + GTK_FILL + + + + + + + False + True + 0 + 2 + + + + + True + True + + + + True + False + 0 + in + + + True + False + + + True + False + TRUE + GTK_ALIGN_FILL + GTK_ALIGN_FILL + + + + + + + True + False + <b>Album Art</b> + True + + + + + + + True + False + Album Art + center + + + False + + + + + True + False + 0 + in + + + True + False + 6 + 6 + 6 + 6 + + + True + False + 15 + 5 + + + True + False + 5 + Name: + right + True + 1 + + + GTK_FILL + GTK_FILL + + + + + True + False + 5 + 5 + True + 0 + + + 1 + 5 + GTK_FILL + + + + + True + False + 5 + Slogan: + right + True + 1 + + + 1 + 2 + GTK_FILL + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 1 + 5 + 1 + 2 + GTK_FILL + GTK_FILL + + + + + True + False + 5 + Message: + right + True + 1 + + + 2 + 3 + GTK_FILL + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 1 + 5 + 2 + 3 + GTK_FILL + GTK_FILL + + + + + True + False + 5 + Alert: + right + True + 1 + + + 3 + 4 + GTK_FILL + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 1 + 5 + 3 + 4 + GTK_FILL + GTK_FILL + + + + + True + False + 5 + Bit Rate: + right + True + 1 + + + 4 + 5 + GTK_FILL + GTK_FILL + + + + + True + False + Audio Bit Rate + 5 + 5 + True + 0 + + + 1 + 5 + 4 + 5 + GTK_FILL + + + + + True + False + 5 + Streams: + right + True + 1 + + + 5 + 9 + GTK_FILL + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 1 + 2 + 5 + 6 + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 2 + 3 + 5 + 6 + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 3 + 4 + 5 + 6 + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 4 + 5 + 5 + 6 + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 1 + 2 + 6 + 7 + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 2 + 3 + 6 + 7 + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 3 + 4 + 6 + 7 + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 4 + 5 + 6 + 7 + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 1 + 2 + 7 + 8 + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 2 + 3 + 7 + 8 + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 3 + 4 + 7 + 8 + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 4 + 5 + 7 + 8 + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 1 + 2 + 8 + 9 + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 2 + 3 + 8 + 9 + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 3 + 4 + 8 + 9 + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 4 + 5 + 8 + 9 + GTK_FILL + + + + + True + False + 5 + Data Svcs: + right + True + 1 + + + 9 + 11 + GTK_FILL + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 1 + 2 + 9 + 10 + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 2 + 3 + 9 + 10 + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 3 + 4 + 9 + 10 + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 4 + 5 + 9 + 10 + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 1 + 2 + 10 + 11 + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 2 + 3 + 10 + 11 + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 3 + 4 + 10 + 11 + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 4 + 5 + 10 + 11 + GTK_FILL + + + + + True + False + + + 5 + 11 + 12 + + + + + True + False + 5 + MER: + right + True + 1 + + + 12 + 13 + GTK_FILL + GTK_FILL + + + + + True + False + Modulation Error Ratio (Lower) + 5 + True + + + 1 + 3 + 12 + 13 + GTK_FILL + + + + + True + False + Modulation Error Ratio (Upper) + 5 + True + + + 3 + 5 + 12 + 13 + GTK_FILL + + + + + True + False + 5 + BER: + right + True + 1 + + + 13 + 15 + GTK_FILL + GTK_FILL + + + + + True + False + Bit Error Rate + 5 + True + + + 1 + 3 + 13 + 14 + GTK_FILL + + + + + True + False + Bit Error Rate (Average) + 5 + True + + + 3 + 5 + 13 + 14 + GTK_FILL + + + + + True + False + Bit Error Rate (Minimum) + 5 + True + + + 1 + 3 + 14 + 15 + GTK_FILL + + + + + True + False + Bit Error Rate (Maximum) + 5 + True + + + 3 + 5 + 14 + 15 + GTK_FILL + + + + + + + + + True + False + <b>Station Info</b> + True + True + + + + + 1 + + + + + True + False + Info + center + True + + + 1 + False + + + + + True + False + 0 + in + + + True + False + 6 + 6 + 6 + 6 + + + True + False + 12 + 3 + 10 + 3 + + + + + + + + + + + + True + True + False + 10 + Aspect ratio: + right + True + 1 + + + GTK_FILL + GTK_FILL + + + + + True + True + True + Choose display style + False + 0 + + + no change + narrow + wide + + + + 1 + 2 + GTK_FILL + GTK_FILL + + + + + True + False + True + + + 2 + 3 + GTK_FILL + GTK_FILL + + + + + True + True + False + 10 + SDR Radio: + right + True + 1 + + + GTK_FILL + GTK_FILL + 1 + 2 + + + + + True + True + True + Choose SDR device + False + 0 + + + RTL-SDR + SDRPlay + + + + 1 + 2 + 1 + 2 + GTK_FILL + GTK_FILL + + + + + True + False + True + + + 2 + 3 + 1 + 2 + GTK_FILL + GTK_FILL + + + + + True + False + 10 + Gain: + right + True + 1 + + + 2 + 3 + GTK_FILL + GTK_FILL + + + + + True + True + RF Gain (dBm) + + 5 + False + False + adjGain + 2 + True + True + + + 1 + 2 + 2 + 3 + GTK_FILL + GTK_FILL + + + + + Auto + False + True + True + False + Automatic Gain + True + True + + + + 2 + 3 + 2 + 3 + GTK_FILL + GTK_FILL + + + + + True + False + 10 + PPM Error: + right + True + 1 + + + 3 + 4 + GTK_FILL + GTK_FILL + + + + + True + True + Crystal Error Correction (PPM) + + 5 + False + False + adjPPM + True + True + + + 1 + 2 + 3 + 4 + GTK_FILL + GTK_FILL + + + + + True + False + 10 + PPM + True + 0 + + + 2 + 3 + 3 + 4 + GTK_FILL + GTK_FILL + + + + + True + True + False + 10 + RTL Device: + right + True + 1 + + + 4 + 5 + GTK_FILL + GTK_FILL + + + + + True + True + True + RTL-SDR Device Number (Default = 0) + + 5 + False + False + adjRTL + True + True + + + 1 + 2 + 4 + 5 + GTK_FILL + GTK_FILL + + + + + True + False + True + + + 2 + 3 + 4 + 5 + GTK_FILL + GTK_FILL + + + + + True + True + False + 10 + RTL_TCP IP: + right + True + 1 + + + 5 + 6 + GTK_FILL + GTK_FILL + + + + + True + True + True + RTL-TCP listening address + 21 + 21 + + + 1 + 2 + 5 + 6 + GTK_FILL + GTK_FILL + + + + + Enable + False + True + True + True + False + Use rtl_tcp + True + + + 2 + 3 + 5 + 6 + GTK_FILL + GTK_FILL + + + + + False + True + False + 10 + SDRPlay Ser#: + right + True + 1 + + + 6 + 7 + GTK_FILL + GTK_FILL + + + + + False + True + False + SDRPlay Serial Number + 10 + 10 + + + 1 + 2 + 6 + 7 + GTK_FILL + GTK_FILL + + + + + False + False + True + + + 2 + 3 + 6 + 7 + GTK_FILL + GTK_FILL + + + + + False + True + False + 10 + SDRPlay Ant: + right + True + 1 + + + 7 + 8 + GTK_FILL + GTK_FILL + + + + + False + True + False + Choose SDRPlay antenna + False + 0 + + Auto + A + B + C + + + + 1 + 2 + 7 + 8 + GTK_FILL + GTK_FILL + + + + + False + False + True + + + 2 + 3 + 7 + 8 + GTK_FILL + GTK_FILL + + + + + True + False + 10 + Log to File: + right + True + 1 + + + 8 + 9 + GTK_FILL + GTK_FILL + + + + + Enable + False + True + True + False + Enable Logging of NRSC5 to Disk + True + + + 1 + 3 + 8 + 9 + GTK_FILL + + + + + True + False + True + + + 2 + 3 + 8 + 9 + GTK_FILL + GTK_FILL + + + + + True + False + 10 + Download Album Art: + right + True + 1 + + + 9 + 10 + GTK_FILL + GTK_FILL + + + + + Enable + False + True + True + False + Enable Automated Downloading of Album Art + True + + + + 1 + 3 + 9 + 10 + GTK_FILL + + + + + True + False + True + + + 2 + 3 + 9 + 10 + GTK_FILL + GTK_FILL + + + + + True + False + False + 10 + Include Station Art: + right + True + 1 + + + 10 + 11 + GTK_FILL + GTK_FILL + + + + + Enable + False + True + False + True + False + Include Station-Generated Album Art + True + + + 1 + 3 + 10 + 11 + GTK_FILL + + + + + True + False + True + + + 2 + 3 + 10 + 11 + GTK_FILL + GTK_FILL + + + + + True + False + False + 10 + Extended Queries: + right + True + 1 + + + 11 + 12 + GTK_FILL + GTK_FILL + + + + + Enable + False + True + False + True + False + Use Extended MusicBrainz Queries (may be slow) + True + + + 1 + 3 + 11 + 12 + GTK_FILL + + + + + True + False + True + + + 2 + 3 + 11 + 12 + GTK_FILL + GTK_FILL + + + + + + + + + True + False + <b>Settings</b> + True + True + + + + + 2 + + + + + True + False + Settings + center + True + + + 2 + False + + + + + True + True + + + True + True + + + + + + + + + 3 + + + + + True + False + Bookmarks + center + + + 3 + False + + + + + True + False + 0 + in + + + True + False + 6 + 6 + 6 + 6 + + + True + False + 2 + 2 + + + True + False + + + True + False + TRUE + GTK_ALIGN_FILL + GTK_ALIGN_FILL + + + + + 2 + + + + + Traffic Map + False + True + True + False + True + + + + 1 + 2 + GTK_EXPAND + GTK_FILL + + + + + Weather Radar + False + True + True + False + True + radMapTraffic + + + + 1 + 2 + 1 + 2 + GTK_EXPAND + GTK_FILL + + + + + + + + + True + False + <b>Traffic &amp; Weather Maps</b> + True + True + + + + + 4 + + + + + True + False + Maps + center + True + + + 4 + False + + + + + True + True + 3 + + + + + True + False + 0 + in + + + True + False + 6 + 6 + 6 + 6 + + + True + False + 4 + 2 + + + True + False + 10 + Title: + right + True + 1 + + + GTK_FILL + GTK_FILL + + + + + True + False + 10 + Artist: + right + True + 1 + + + 1 + 2 + GTK_FILL + GTK_FILL + + + + + True + False + 10 + Album: + right + True + 1 + + + 2 + 3 + GTK_FILL + GTK_FILL + + + + + True + False + 10 + Genre: + right + True + 1 + + + 3 + 4 + GTK_FILL + GTK_FILL + + + + + True + False + 10 + 10 + end + True + 0 + + + 1 + 2 + GTK_FILL + + + + + True + False + 10 + 10 + end + True + 0 + + + 1 + 2 + 1 + 2 + GTK_FILL + + + + + True + False + 10 + 10 + end + True + 0 + + + 1 + 2 + 2 + 3 + GTK_FILL + + + + + True + False + 10 + 10 + end + True + 0 + + + 1 + 2 + 3 + 4 + GTK_FILL + + + + + + + + + True + False + <b>Track Info</b> + True + True + + + + + False + True + 4 + + + + + True + False + 4 + + + True + False + + + True + False + Synchronization + GTK_ALIGN_START + + + + + False + False + Synchronization + GTK_ALIGN_START + + + + + False + False + Device failure + GTK_ALIGN_START + + + + + GTK_FILL + + + + + 25 + True + False + Current Bitrate + 8 + True + + + 1 + 2 + GTK_FILL + + + + + 0 + True + False + Current Error Rate + right + 9 + True + 1 + + + 3 + 4 + GTK_FILL + + + + + 25 + True + False + Automatic Gain + center + 8 + True + + + 2 + 3 + GTK_FILL + + + + + False + True + 5 + + + + + + diff --git a/res/mainForm-wide.glade b/res/mainForm-wide.glade new file mode 100644 index 0000000..9e49958 --- /dev/null +++ b/res/mainForm-wide.glade @@ -0,0 +1,2464 @@ + + + + + + 88.10 + 107.90 + 88.10 + 0.20 + 1 + + + 0.00 + 49.60 + 0.01 + 1 + + + -1000 + 1000 + 1 + 10 + + + 255 + 1 + 16 + + + 1 + 4 + 1 + 1 + 10 + + + True + False + + + False + NRSC5 DUI + + + + + + True + False + + + True + False + + + False + True + False + Play + Play + True + gtk-media-play + + + + False + True + + + + + False + True + False + False + Stop + Stop + True + gtk-media-stop + + + + False + True + + + + + False + True + False + + + False + True + + + + + False + True + False + False + Bookmark Station + Add Bookmark + True + bookmark-new + + + + False + True + + + + + False + True + False + False + Delete Bookmark + Delete Bookmark + True + gtk-delete + + + + False + True + + + + + False + True + False + + + False + True + + + + + False + True + False + Weather and Traffic Map Viewer + Weather & Traffic Maps + True + + + + False + True + + + + + False + True + False + About + About + True + gtk-about + + + + False + True + + + + + False + True + 0 + + + + + True + False + GTK_ALIGN_START + 0 + 0 + + + True + False + 3 + 3 + + + True + False + 10 + Frequency + center + True + 0 + + + 0 + 1 + GTK_FILL + GTK_FILL + + + + + True + True + + 6 + False + False + adjFreq + 1 + True + True + True + + + + 1 + 2 + GTK_FILL + GTK_FILL + + + + + True + False + 10 + True + 0 + + + 2 + 3 + GTK_FILL + GTK_FILL + + + + + + + False + True + 3 + 1 + + + + + True + False + + + True + False + 8 + 1 + 3 + True + + + True + True + False + True + + + True + False + end + + + + + 0 + 1 + GTK_FILL + + + + + True + True + False + True + + + True + False + end + + + + + 1 + 2 + GTK_FILL + + + + + True + True + False + True + + + True + False + end + + + + + 2 + 3 + GTK_FILL + + + + + True + True + False + True + + + True + False + end + + + + + 3 + 4 + GTK_FILL + + + + + True + True + False + True + + + True + False + end + + + + + 4 + 5 + GTK_FILL + + + + + True + True + False + True + + + True + False + end + + + + + 5 + 6 + GTK_FILL + + + + + True + True + False + True + + + True + False + end + + + + + 6 + 7 + GTK_FILL + + + + + True + True + False + True + + + True + False + end + + + + + 7 + 8 + GTK_FILL + + + + + + + False + True + 0 + 2 + + + + + + True + False + True + 3 + + + + True + True + + + + True + False + 0 + in + + + True + False + + + True + False + TRUE + GTK_ALIGN_FILL + GTK_ALIGN_FILL + + + + + + + True + False + <b>Album Art</b> + True + + + + + + + True + False + Album Art + center + + + False + + + + + True + False + 0 + in + + + True + False + 6 + 6 + 6 + 6 + + + True + False + 15 + 5 + + + True + False + 5 + Name: + right + True + 1 + + + GTK_FILL + GTK_FILL + + + + + True + False + 5 + 5 + True + 0 + + + 1 + 5 + GTK_FILL + + + + + True + False + 5 + Slogan: + right + True + 1 + + + 1 + 2 + GTK_FILL + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 1 + 5 + 1 + 2 + GTK_FILL + GTK_FILL + + + + + True + False + 5 + Message: + right + True + 1 + + + 2 + 3 + GTK_FILL + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 1 + 5 + 2 + 3 + GTK_FILL + GTK_FILL + + + + + True + False + 5 + Alert: + right + True + 1 + + + 3 + 4 + GTK_FILL + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 1 + 5 + 3 + 4 + GTK_FILL + GTK_FILL + + + + + True + False + 5 + Bit Rate: + right + True + 1 + + + 4 + 5 + GTK_FILL + GTK_FILL + + + + + True + False + Audio Bit Rate + 5 + 5 + True + 0 + + + 1 + 5 + 4 + 5 + GTK_FILL + + + + + True + False + 5 + Streams: + right + True + 1 + + + 5 + 9 + GTK_FILL + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 1 + 2 + 5 + 6 + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 2 + 3 + 5 + 6 + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 3 + 4 + 5 + 6 + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 4 + 5 + 5 + 6 + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 1 + 2 + 6 + 7 + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 2 + 3 + 6 + 7 + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 3 + 4 + 6 + 7 + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 4 + 5 + 6 + 7 + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 1 + 2 + 7 + 8 + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 2 + 3 + 7 + 8 + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 3 + 4 + 7 + 8 + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 4 + 5 + 7 + 8 + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 1 + 2 + 8 + 9 + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 2 + 3 + 8 + 9 + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 3 + 4 + 8 + 9 + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 4 + 5 + 8 + 9 + GTK_FILL + + + + + True + False + 5 + Data Svcs: + right + True + 1 + + + 9 + 11 + GTK_FILL + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 1 + 2 + 9 + 10 + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 2 + 3 + 9 + 10 + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 3 + 4 + 9 + 10 + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 4 + 5 + 9 + 10 + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 1 + 2 + 10 + 11 + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 2 + 3 + 10 + 11 + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 3 + 4 + 10 + 11 + GTK_FILL + + + + + True + False + 5 + 5 + end + True + 0 + + + 4 + 5 + 10 + 11 + GTK_FILL + + + + + True + False + + + 5 + 11 + 12 + + + + + True + False + 5 + MER: + right + True + 1 + + + 12 + 13 + GTK_FILL + GTK_FILL + + + + + True + False + Modulation Error Ratio (Lower) + 5 + True + + + 1 + 3 + 12 + 13 + GTK_FILL + + + + + True + False + Modulation Error Ratio (Upper) + 5 + True + + + 3 + 5 + 12 + 13 + GTK_FILL + + + + + True + False + 5 + BER: + right + True + 1 + + + 13 + 15 + GTK_FILL + GTK_FILL + + + + + True + False + Bit Error Rate + 5 + True + + + 1 + 3 + 13 + 14 + GTK_FILL + + + + + True + False + Bit Error Rate (Average) + 5 + True + + + 3 + 5 + 13 + 14 + GTK_FILL + + + + + True + False + Bit Error Rate (Minimum) + 5 + True + + + 1 + 3 + 14 + 15 + GTK_FILL + + + + + True + False + Bit Error Rate (Maximum) + 5 + True + + + 3 + 5 + 14 + 15 + GTK_FILL + + + + + + + + + True + False + <b>Station Info</b> + True + True + + + + + 1 + + + + + True + False + Info + center + True + + + 1 + False + + + + + True + False + 0 + in + + + True + False + 6 + 6 + 6 + 6 + + + True + False + 12 + 3 + 10 + 3 + + + + + + + + + + + + True + True + False + 10 + Aspect ratio: + right + True + 1 + + + GTK_FILL + GTK_FILL + + + + + True + True + True + Choose display style + False + 0 + + + no change + narrow + wide + + + + 1 + 2 + GTK_FILL + GTK_FILL + + + + + True + False + True + + + 2 + 3 + GTK_FILL + GTK_FILL + + + + + True + True + False + 10 + SDR Radio: + right + True + 1 + + + GTK_FILL + GTK_FILL + 1 + 2 + + + + + True + True + True + Choose SDR device + False + 0 + + + RTL-SDR + SDRPlay + + + + 1 + 2 + 1 + 2 + GTK_FILL + GTK_FILL + + + + + True + False + True + + + 2 + 3 + 1 + 2 + GTK_FILL + GTK_FILL + + + + + True + False + 10 + Gain: + right + True + 1 + + + 2 + 3 + GTK_FILL + GTK_FILL + + + + + True + True + RF Gain (dBm) + + 5 + False + False + adjGain + 2 + True + True + + + 1 + 2 + 2 + 3 + GTK_FILL + GTK_FILL + + + + + Auto + False + True + True + False + Automatic Gain + True + True + + + + 2 + 3 + 2 + 3 + GTK_FILL + GTK_FILL + + + + + True + False + 10 + PPM Error: + right + True + 1 + + + 3 + 4 + GTK_FILL + GTK_FILL + + + + + True + True + Crystal Error Correction (PPM) + + 5 + False + False + adjPPM + True + True + + + 1 + 2 + 3 + 4 + GTK_FILL + GTK_FILL + + + + + True + False + 10 + PPM + True + 0 + + + 2 + 3 + 3 + 4 + GTK_FILL + GTK_FILL + + + + + True + True + False + 10 + RTL Device: + right + True + 1 + + + 4 + 5 + GTK_FILL + GTK_FILL + + + + + True + True + True + RTL-SDR Device Number (Default = 0) + + 5 + False + False + adjRTL + True + True + + + 1 + 2 + 4 + 5 + GTK_FILL + GTK_FILL + + + + + True + False + True + + + 2 + 3 + 4 + 5 + GTK_FILL + GTK_FILL + + + + + True + True + False + 10 + RTL_TCP IP: + right + True + 1 + + + 5 + 6 + GTK_FILL + GTK_FILL + + + + + True + True + True + RTL-TCP listening address + 21 + 21 + + + 1 + 2 + 5 + 6 + GTK_FILL + GTK_FILL + + + + + Enable + False + True + True + True + False + Use rtl_tcp + True + + + 2 + 3 + 5 + 6 + GTK_FILL + GTK_FILL + + + + + False + True + False + 10 + SDRPlay Ser#: + right + True + 1 + + + 6 + 7 + GTK_FILL + GTK_FILL + + + + + False + True + False + SDRPlay Serial Number + 10 + 10 + + + 1 + 2 + 6 + 7 + GTK_FILL + GTK_FILL + + + + + False + False + True + + + 2 + 3 + 6 + 7 + GTK_FILL + GTK_FILL + + + + + False + True + False + 10 + SDRPlay Ant: + right + True + 1 + + + 7 + 8 + GTK_FILL + GTK_FILL + + + + + False + True + False + Choose SDRPlay antenna + False + 0 + + Auto + A + B + C + + + + 1 + 2 + 7 + 8 + GTK_FILL + GTK_FILL + + + + + False + False + True + + + 2 + 3 + 7 + 8 + GTK_FILL + GTK_FILL + + + + + True + False + 10 + Log to File: + right + True + 1 + + + 8 + 9 + GTK_FILL + GTK_FILL + + + + + Enable + False + True + True + False + Enable Logging of NRSC5 to Disk + True + + + 1 + 3 + 8 + 9 + GTK_FILL + + + + + True + False + True + + + 2 + 3 + 8 + 9 + GTK_FILL + GTK_FILL + + + + + True + False + 10 + Download Album Art: + right + True + 1 + + + 9 + 10 + GTK_FILL + GTK_FILL + + + + + Enable + False + True + True + False + Enable Automated Downloading of Album Art + True + + + + 1 + 3 + 9 + 10 + GTK_FILL + + + + + True + False + True + + + 2 + 3 + 9 + 10 + GTK_FILL + GTK_FILL + + + + + True + False + False + 10 + Include Station Art: + right + True + 1 + + + 10 + 11 + GTK_FILL + GTK_FILL + + + + + Enable + False + True + False + True + False + Include Station-Generated Album Art + True + + + 1 + 3 + 10 + 11 + GTK_FILL + + + + + True + False + True + + + 2 + 3 + 10 + 11 + GTK_FILL + GTK_FILL + + + + + True + False + False + 10 + Extended Queries: + right + True + 1 + + + 11 + 12 + GTK_FILL + GTK_FILL + + + + + Enable + False + True + False + True + False + Use Extended MusicBrainz Queries (may be slow) + True + + + 1 + 3 + 11 + 12 + GTK_FILL + + + + + True + False + True + + + 2 + 3 + 11 + 12 + GTK_FILL + GTK_FILL + + + + + + + + + True + False + <b>Settings</b> + True + True + + + + + 2 + + + + + True + False + Settings + center + True + + + 2 + False + + + + + True + True + + + True + True + + + + + + + + + 3 + + + + + True + False + Bookmarks + center + + + 3 + False + + + + + True + False + 0 + in + + + True + False + 6 + 6 + 6 + 6 + + + True + False + 2 + 2 + + + True + False + + + True + False + TRUE + GTK_ALIGN_FILL + GTK_ALIGN_FILL + + + + + 2 + + + + + Traffic Map + False + True + True + False + True + + + + 1 + 2 + GTK_EXPAND + GTK_FILL + + + + + Weather Radar + False + True + True + False + True + radMapTraffic + + + + 1 + 2 + 1 + 2 + GTK_EXPAND + GTK_FILL + + + + + + + + + True + False + <b>Traffic &amp; Weather Maps</b> + True + True + + + + + 4 + + + + + True + False + Maps + center + True + + + 4 + False + + + + + True + True + 1 + + + + + + True + False + 0 + in + + + True + False + 6 + 6 + 6 + 6 + + + True + False + 4 + 2 + + + True + False + 10 + Title: + right + True + 1 + + + GTK_FILL + GTK_FILL + + + + + True + False + 10 + Artist: + right + True + 1 + + + 1 + 2 + GTK_FILL + GTK_FILL + + + + + True + False + 10 + Album: + right + True + 1 + + + 2 + 3 + GTK_FILL + GTK_FILL + + + + + True + False + 10 + Genre: + right + True + 1 + + + 3 + 4 + GTK_FILL + GTK_FILL + + + + + True + False + 10 + 10 + end + True + 0 + + + 1 + 2 + GTK_FILL + + + + + True + False + 10 + 10 + end + True + 0 + + + 1 + 2 + 1 + 2 + GTK_FILL + + + + + True + False + 10 + 10 + end + True + 0 + + + 1 + 2 + 2 + 3 + GTK_FILL + + + + + True + False + 10 + 10 + end + True + 0 + + + 1 + 2 + 3 + 4 + GTK_FILL + + + + + + + + + True + False + <b>Track Info</b> + True + True + + + + + False + True + 2 + + + + + + False + True + 3 + + + + + + True + False + 4 + + + True + False + + + True + False + Synchronization + GTK_ALIGN_START + + + + + False + False + Synchronization + GTK_ALIGN_START + + + + + False + False + Device failure + GTK_ALIGN_START + + + + + GTK_FILL + + + + + 25 + True + False + Current Bitrate + 8 + True + + + 1 + 2 + GTK_FILL + + + + + 0 + True + False + Current Error Rate + right + 9 + True + 1 + + + 3 + 4 + GTK_FILL + + + + + 25 + True + False + Automatic Gain + center + 8 + True + + + 2 + 3 + GTK_FILL + + + + + False + True + 4 + + + + + + diff --git a/res/mainForm.glade b/res/mainForm.glade index 3c12dde..2cb7cd8 100644 --- a/res/mainForm.glade +++ b/res/mainForm.glade @@ -1341,7 +1341,7 @@ True False - 11 + 12 3 10 3 @@ -1354,6 +1354,57 @@ + + + True + True + False + 10 + Aspect ratio: + right + True + 1 + + + GTK_FILL + GTK_FILL + + + + + True + True + True + Choose display style + False + 0 + + + no change + narrow + wide + + + + 1 + 2 + GTK_FILL + GTK_FILL + + + + + True + False + True + + + 2 + 3 + GTK_FILL + GTK_FILL + + True @@ -1368,25 +1419,29 @@ GTK_FILL GTK_FILL + 1 + 2 True True - True - Choose SDR device - False + True + Choose SDR device + False 0 - RTL-SDR + RTL-SDR SDRPlay 1 2 + 1 + 2 GTK_FILL GTK_FILL @@ -1400,6 +1455,8 @@ 2 3 + 1 + 2 GTK_FILL GTK_FILL @@ -1415,8 +1472,8 @@ 1 - 1 - 2 + 2 + 3 GTK_FILL GTK_FILL @@ -1438,8 +1495,8 @@ 1 2 - 1 - 2 + 2 + 3 GTK_FILL GTK_FILL @@ -1459,8 +1516,8 @@ 2 3 - 1 - 2 + 2 + 3 GTK_FILL GTK_FILL @@ -1476,8 +1533,8 @@ 1 - 2 - 3 + 3 + 4 GTK_FILL GTK_FILL @@ -1498,8 +1555,8 @@ 1 2 - 2 - 3 + 3 + 4 GTK_FILL GTK_FILL @@ -1516,8 +1573,8 @@ 2 3 - 2 - 3 + 3 + 4 GTK_FILL GTK_FILL @@ -1534,8 +1591,8 @@ 1 - 3 - 4 + 4 + 5 GTK_FILL GTK_FILL @@ -1557,8 +1614,8 @@ 1 2 - 3 - 4 + 4 + 5 GTK_FILL GTK_FILL @@ -1572,8 +1629,8 @@ 2 3 - 3 - 4 + 4 + 5 GTK_FILL GTK_FILL @@ -1590,8 +1647,8 @@ 1 - 4 - 5 + 5 + 6 GTK_FILL GTK_FILL @@ -1608,8 +1665,8 @@ 1 2 - 4 - 5 + 5 + 6 GTK_FILL GTK_FILL @@ -1628,8 +1685,8 @@ 2 3 - 4 - 5 + 5 + 6 GTK_FILL GTK_FILL @@ -1646,8 +1703,8 @@ 1 - 5 - 6 + 6 + 7 GTK_FILL GTK_FILL @@ -1664,8 +1721,8 @@ 1 2 - 5 - 6 + 6 + 7 GTK_FILL GTK_FILL @@ -1679,8 +1736,8 @@ 2 3 - 5 - 6 + 6 + 7 GTK_FILL GTK_FILL @@ -1697,8 +1754,8 @@ 1 - 6 - 7 + 7 + 8 GTK_FILL GTK_FILL @@ -1707,13 +1764,13 @@ False True - False - Choose SDRPlay antenna - False + False + Choose SDRPlay antenna + False 0 - Auto - A + Auto + A B C @@ -1721,8 +1778,8 @@ 1 2 - 6 - 7 + 7 + 8 GTK_FILL GTK_FILL @@ -1736,8 +1793,8 @@ 2 3 - 6 - 7 + 7 + 8 GTK_FILL GTK_FILL @@ -1753,8 +1810,8 @@ 1 - 7 - 8 + 8 + 9 GTK_FILL GTK_FILL @@ -1772,8 +1829,8 @@ 1 3 - 7 - 8 + 8 + 9 GTK_FILL @@ -1786,8 +1843,8 @@ 2 3 - 7 - 8 + 8 + 9 GTK_FILL GTK_FILL @@ -1803,8 +1860,8 @@ 1 - 8 - 9 + 9 + 10 GTK_FILL GTK_FILL @@ -1823,8 +1880,8 @@ 1 3 - 8 - 9 + 9 + 10 GTK_FILL @@ -1837,8 +1894,8 @@ 2 3 - 8 - 9 + 9 + 10 GTK_FILL GTK_FILL @@ -1855,8 +1912,8 @@ 1 - 9 - 10 + 10 + 11 GTK_FILL GTK_FILL @@ -1875,8 +1932,8 @@ 1 3 - 9 - 10 + 10 + 11 GTK_FILL @@ -1889,8 +1946,8 @@ 2 3 - 9 - 10 + 10 + 11 GTK_FILL GTK_FILL @@ -1907,8 +1964,8 @@ 1 - 10 - 11 + 11 + 12 GTK_FILL GTK_FILL @@ -1927,8 +1984,8 @@ 1 3 - 10 - 11 + 11 + 12 GTK_FILL @@ -1941,8 +1998,8 @@ 2 3 - 10 - 11 + 11 + 12 GTK_FILL GTK_FILL