From 9ae8997e5f682bc16e58c0a0bba21794dbd705c5 Mon Sep 17 00:00:00 2001
From: Josh Blum
Date: Mon, 6 Dec 2010 22:46:39 -0500
Subject: qtgui: created a forms module with a slider and text box, implemented
in grc
---
gr-qtgui/grc/qtgui_sink_x.xml | 124 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 124 insertions(+)
create mode 100644 gr-qtgui/grc/qtgui_sink_x.xml
(limited to 'gr-qtgui/grc/qtgui_sink_x.xml')
diff --git a/gr-qtgui/grc/qtgui_sink_x.xml b/gr-qtgui/grc/qtgui_sink_x.xml
new file mode 100644
index 000000000..8182f8d94
--- /dev/null
+++ b/gr-qtgui/grc/qtgui_sink_x.xml
@@ -0,0 +1,124 @@
+
+
+
+ QT GUI Sink
+ qtgui_sink_x
+ Graphical Sinks
+ from gnuradio.qtgui import qtgui
+ from gnuradio.gr import firdes
+ import sip
+ qtgui.$(type.fcn)(
+ $fftsize, \#fftsize
+ $wintype, \#wintype
+ $fc, \#fc
+ $bw, \#bw
+ $name, \#name
+ $plotfreq, \#plotfreq
+ $plotwaterfall, \#plotwaterfall
+ $plotwaterfall3d, \#plotwaterfall3d
+ $plottime, \#plottime
+ $plotconst, \#plotconst
+)
+self._$(id)_win = sip.wrapinstance(self.$(id).pyqwidget(), QtGui.QWidget)
+self.layout.addWidget(self._$(id)_win)
+ set_frequency_range($fc, $bw)
+
+ Type
+ type
+ complex
+ enum
+
+
+
+
+ Name
+ name
+ QT GUI Plot
+ string
+
+
+ FFT Size
+ fftsize
+ 1024
+ int
+
+
+ Window Type
+ wintype
+ firdes.WIN_BLACKMAN_hARRIS
+ int
+ part
+
+
+
+ Center Frequency (Hz)
+ fc
+ 0
+ real
+
+
+ Bandwidth (Hz)
+ bw
+ samp_rate
+ real
+
+
+ Plot Frequency
+ plotfreq
+ True
+ bool
+ part
+
+
+
+
+ Plot Waterfall
+ plotwaterfall
+ True
+ bool
+ part
+
+
+
+
+ Plot Waterfall 3D
+ plotwaterfall3d
+ True
+ bool
+ part
+
+
+
+
+ Plot Time
+ plottime
+ True
+ bool
+ part
+
+
+
+
+ Plot Const
+ plotconst
+ True
+ bool
+ part
+
+
+
+
+ in
+ $type
+ $num_inputs
+
+
+
+
--
cgit
From e30f0a7ca02801732ad7a25ab83e1d27dc45c6ce Mon Sep 17 00:00:00 2001
From: Josh Blum
Date: Thu, 20 Jan 2011 22:31:31 -0800
Subject: grc: added tabbed widget in qtgui for grc
created gui_hint type to handle tab descriptor + position markup,
and to handle the generation of the name of the parent widget.
No support python modules required in gr-qtgui.
---
gr-qtgui/grc/qtgui_sink_x.xml | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
(limited to 'gr-qtgui/grc/qtgui_sink_x.xml')
diff --git a/gr-qtgui/grc/qtgui_sink_x.xml b/gr-qtgui/grc/qtgui_sink_x.xml
index 8182f8d94..6e5c9549b 100644
--- a/gr-qtgui/grc/qtgui_sink_x.xml
+++ b/gr-qtgui/grc/qtgui_sink_x.xml
@@ -8,10 +8,12 @@
QT GUI Sink
qtgui_sink_x
Graphical Sinks
+ from PyQt4 import Qt
from gnuradio.qtgui import qtgui
from gnuradio.gr import firdes
import sip
- qtgui.$(type.fcn)(
+ #set $win = 'self._%s_win'%$id
+qtgui.$(type.fcn)(
$fftsize, \#fftsize
$wintype, \#wintype
$fc, \#fc
@@ -23,8 +25,8 @@
$plottime, \#plottime
$plotconst, \#plotconst
)
-self._$(id)_win = sip.wrapinstance(self.$(id).pyqwidget(), QtGui.QWidget)
-self.layout.addWidget(self._$(id)_win)
+self._$(id)_win = sip.wrapinstance(self.$(id).pyqwidget(), Qt.QWidget)
+$(gui_hint()($win))
set_frequency_range($fc, $bw)
Type
@@ -114,11 +116,21 @@ self.layout.addWidget(self._$(id)_win)
+
+ GUI Hint
+ gui_hint
+
+ gui_hint
+ part
+
in
$type
$num_inputs
+The GUI hint can be used to position the widget within the application. \
+The hint is of the form [tab_id@tab_index]: [row, col, row_span, col_span]. \
+Both the tab specification and the grid position are optional.
--
cgit
From 47f621a14c9a6e3696155dd5a223da40bcb7721c Mon Sep 17 00:00:00 2001
From: Josh Blum
Date: Sun, 27 Feb 2011 23:18:11 -0800
Subject: grc: work on generator for gui flowgraphs to simplify generation
generator does not differentiate between notebooks and controls,
they are all block, but block are now sorted by variables present in the make
also adjusted categories listed in the wx and qt widget related blocks
---
gr-qtgui/grc/qtgui_sink_x.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'gr-qtgui/grc/qtgui_sink_x.xml')
diff --git a/gr-qtgui/grc/qtgui_sink_x.xml b/gr-qtgui/grc/qtgui_sink_x.xml
index 6e5c9549b..7a5f5ec13 100644
--- a/gr-qtgui/grc/qtgui_sink_x.xml
+++ b/gr-qtgui/grc/qtgui_sink_x.xml
@@ -7,7 +7,7 @@
QT GUI Sink
qtgui_sink_x
- Graphical Sinks
+ QT GUI Widgets
from PyQt4 import Qt
from gnuradio.qtgui import qtgui
from gnuradio.gr import firdes
--
cgit
From 8f53f5a782a6500d191ba557b37e7e3785cf6e02 Mon Sep 17 00:00:00 2001
From: Tom Rondeau
Date: Wed, 6 Apr 2011 00:22:29 -0400
Subject: gr-qtgui: removing references to 3D waterfall plot and changning
QtGui API to remove bool that turns it on/off.
---
gr-qtgui/grc/qtgui_sink_x.xml | 10 ----------
1 file changed, 10 deletions(-)
(limited to 'gr-qtgui/grc/qtgui_sink_x.xml')
diff --git a/gr-qtgui/grc/qtgui_sink_x.xml b/gr-qtgui/grc/qtgui_sink_x.xml
index 7a5f5ec13..8c470a1a5 100644
--- a/gr-qtgui/grc/qtgui_sink_x.xml
+++ b/gr-qtgui/grc/qtgui_sink_x.xml
@@ -21,7 +21,6 @@ qtgui.$(type.fcn)(
$name, \#name
$plotfreq, \#plotfreq
$plotwaterfall, \#plotwaterfall
- $plotwaterfall3d, \#plotwaterfall3d
$plottime, \#plottime
$plotconst, \#plotconst
)
@@ -89,15 +88,6 @@ $(gui_hint()($win))
-
- Plot Waterfall 3D
- plotwaterfall3d
- True
- bool
- part
-
-
-
Plot Time
plottime
--
cgit