summaryrefslogtreecommitdiff
path: root/gr-qtgui
diff options
context:
space:
mode:
authorTom Rondeau <trondeau@vt.edu>2012-07-29 23:13:31 -0400
committerTom Rondeau <trondeau@vt.edu>2012-07-29 23:13:31 -0400
commit1b71820ae56a6e0ac1544985b26bd9a3344c4702 (patch)
treebbdc95c53ed480ce46c5fcc6783a23b947c8bd6d /gr-qtgui
parent8b9a46be56a9e8146aeded28fec6dce0b99cb1a2 (diff)
qtgui: when displaying name, remove full path and only use file name.
Diffstat (limited to 'gr-qtgui')
-rwxr-xr-xgr-qtgui/apps/gr_constellation_plot3
-rwxr-xr-xgr-qtgui/apps/gr_psd_plot_b3
-rwxr-xr-xgr-qtgui/apps/gr_psd_plot_c3
-rwxr-xr-xgr-qtgui/apps/gr_psd_plot_f3
-rwxr-xr-xgr-qtgui/apps/gr_psd_plot_i3
-rwxr-xr-xgr-qtgui/apps/gr_psd_plot_s3
-rwxr-xr-xgr-qtgui/apps/gr_time_plot_b3
-rwxr-xr-xgr-qtgui/apps/gr_time_plot_c5
-rwxr-xr-xgr-qtgui/apps/gr_time_plot_f3
-rwxr-xr-xgr-qtgui/apps/gr_time_plot_i3
-rwxr-xr-xgr-qtgui/apps/gr_time_plot_s3
11 files changed, 23 insertions, 12 deletions
diff --git a/gr-qtgui/apps/gr_constellation_plot b/gr-qtgui/apps/gr_constellation_plot
index 8595167a74..66d227ecc9 100755
--- a/gr-qtgui/apps/gr_constellation_plot
+++ b/gr-qtgui/apps/gr_constellation_plot
@@ -85,7 +85,8 @@ class my_top_block(gr.top_block):
self.srcs.append(gr.vector_source_c(data))
# Set default labels based on file names
- self.gui_snk.set_title(n, "{0}".format(f))
+ fname = f.split("/")[-1]
+ self.gui_snk.set_title(n, "{0}".format(fname))
n += 1
self.connect(self.srcs[0], self.skip)
diff --git a/gr-qtgui/apps/gr_psd_plot_b b/gr-qtgui/apps/gr_psd_plot_b
index 3418d1f3e5..e3e86a271f 100755
--- a/gr-qtgui/apps/gr_psd_plot_b
+++ b/gr-qtgui/apps/gr_psd_plot_b
@@ -94,7 +94,8 @@ class my_top_block(gr.top_block):
self.cnvrt.append(gr.char_to_float(1, self._scale))
# Set default labels based on file names
- self.gui_snk.set_title(n, "{0}".format(f))
+ fname = f.split("/")[-1]
+ self.gui_snk.set_title(n, "{0}".format(fname))
n += 1
self.connect(self.srcs[0], self.cnvrt[0], self.skip)
diff --git a/gr-qtgui/apps/gr_psd_plot_c b/gr-qtgui/apps/gr_psd_plot_c
index d7424d0a28..faa0fc60a4 100755
--- a/gr-qtgui/apps/gr_psd_plot_c
+++ b/gr-qtgui/apps/gr_psd_plot_c
@@ -91,7 +91,8 @@ class my_top_block(gr.top_block):
self.srcs.append(gr.vector_source_c(data))
# Set default labels based on file names
- self.gui_snk.set_title(n, "{0}".format(f))
+ fname = f.split("/")[-1]
+ self.gui_snk.set_title(n, "{0}".format(fname))
n += 1
self.connect(self.srcs[0], self.skip)
diff --git a/gr-qtgui/apps/gr_psd_plot_f b/gr-qtgui/apps/gr_psd_plot_f
index a1a2fad3d3..326618f848 100755
--- a/gr-qtgui/apps/gr_psd_plot_f
+++ b/gr-qtgui/apps/gr_psd_plot_f
@@ -91,7 +91,8 @@ class my_top_block(gr.top_block):
self.srcs.append(gr.vector_source_f(data))
# Set default labels based on file names
- self.gui_snk.set_title(n, "{0}".format(f))
+ fname = f.split("/")[-1]
+ self.gui_snk.set_title(n, "{0}".format(fname))
n += 1
self.connect(self.srcs[0], self.skip)
diff --git a/gr-qtgui/apps/gr_psd_plot_i b/gr-qtgui/apps/gr_psd_plot_i
index aefccc0f3a..a0264ac1c9 100755
--- a/gr-qtgui/apps/gr_psd_plot_i
+++ b/gr-qtgui/apps/gr_psd_plot_i
@@ -94,7 +94,8 @@ class my_top_block(gr.top_block):
self.cnvrt.append(gr.int_to_float(1, self._scale))
# Set default labels based on file names
- self.gui_snk.set_title(n, "{0}".format(f))
+ fname = f.split("/")[-1]
+ self.gui_snk.set_title(n, "{0}".format(fname))
n += 1
self.connect(self.srcs[0], self.cnvrt[0], self.skip)
diff --git a/gr-qtgui/apps/gr_psd_plot_s b/gr-qtgui/apps/gr_psd_plot_s
index 2b810376e2..6852cf7d0f 100755
--- a/gr-qtgui/apps/gr_psd_plot_s
+++ b/gr-qtgui/apps/gr_psd_plot_s
@@ -94,7 +94,8 @@ class my_top_block(gr.top_block):
self.cnvrt.append(gr.short_to_float(1, self._scale))
# Set default labels based on file names
- self.gui_snk.set_title(n, "{0}".format(f))
+ fname = f.split("/")[-1]
+ self.gui_snk.set_title(n, "{0}".format(fname))
n += 1
self.connect(self.srcs[0], self.cnvrt[0], self.skip)
diff --git a/gr-qtgui/apps/gr_time_plot_b b/gr-qtgui/apps/gr_time_plot_b
index 5b5977b61d..a890af94dc 100755
--- a/gr-qtgui/apps/gr_time_plot_b
+++ b/gr-qtgui/apps/gr_time_plot_b
@@ -85,7 +85,8 @@ class gr_time_plot_f(gr.top_block):
self.cnvrt.append(gr.char_to_float(1, self._scale))
# Set default labels based on file names
- self.gui_snk.set_title(n, "{0}".format(f))
+ fname = f.split("/")[-1]
+ self.gui_snk.set_title(n, "{0}".format(fname))
n += 1
self.connect(self.srcs[0], self.cnvrt[0], self.skip)
diff --git a/gr-qtgui/apps/gr_time_plot_c b/gr-qtgui/apps/gr_time_plot_c
index 13240ebfb3..858bbce240 100755
--- a/gr-qtgui/apps/gr_time_plot_c
+++ b/gr-qtgui/apps/gr_time_plot_c
@@ -85,8 +85,9 @@ class my_top_block(gr.top_block):
self.srcs.append(gr.vector_source_c(data))
# Set default labels based on file names
- self.gui_snk.set_title(n, "Re{{{0}}}".format(f))
- self.gui_snk.set_title(n+1, "Im{{{0}}}".format(f))
+ fname = f.split("/")[-1]
+ self.gui_snk.set_title(n, "Re{{{0}}}".format(fname))
+ self.gui_snk.set_title(n+1, "Im{{{0}}}".format(fname))
n += 2
self.connect(self.srcs[0], self.skip)
diff --git a/gr-qtgui/apps/gr_time_plot_f b/gr-qtgui/apps/gr_time_plot_f
index cc14e0510c..b9721ca5fd 100755
--- a/gr-qtgui/apps/gr_time_plot_f
+++ b/gr-qtgui/apps/gr_time_plot_f
@@ -82,7 +82,8 @@ class gr_time_plot_f(gr.top_block):
self.srcs.append(gr.vector_source_f(data))
# Set default labels based on file names
- self.gui_snk.set_title(n, "{0}".format(f))
+ fname = f.split("/")[-1]
+ self.gui_snk.set_title(n, "{0}".format(fname))
n += 1
self.connect(self.srcs[0], self.skip)
diff --git a/gr-qtgui/apps/gr_time_plot_i b/gr-qtgui/apps/gr_time_plot_i
index 65a8556552..58f6365e05 100755
--- a/gr-qtgui/apps/gr_time_plot_i
+++ b/gr-qtgui/apps/gr_time_plot_i
@@ -85,7 +85,8 @@ class gr_time_plot_f(gr.top_block):
self.cnvrt.append(gr.int_to_float(1, self._scale))
# Set default labels based on file names
- self.gui_snk.set_title(n, "{0}".format(f))
+ fname = f.split("/")[-1]
+ self.gui_snk.set_title(n, "{0}".format(fname))
n += 1
self.connect(self.srcs[0], self.cnvrt[0], self.skip)
diff --git a/gr-qtgui/apps/gr_time_plot_s b/gr-qtgui/apps/gr_time_plot_s
index ef490be382..7c5db1931b 100755
--- a/gr-qtgui/apps/gr_time_plot_s
+++ b/gr-qtgui/apps/gr_time_plot_s
@@ -85,7 +85,8 @@ class gr_time_plot_f(gr.top_block):
self.cnvrt.append(gr.short_to_float(1, self._scale))
# Set default labels based on file names
- self.gui_snk.set_title(n, "{0}".format(f))
+ fname = f.split("/")[-1]
+ self.gui_snk.set_title(n, "{0}".format(fname))
n += 1
self.connect(self.srcs[0], self.cnvrt[0], self.skip)