From 371ca93c2a1506d22db69fb96b2cf7d4ed132535 Mon Sep 17 00:00:00 2001 From: Tom Rondeau Date: Sun, 24 Apr 2011 10:18:07 -0400 Subject: gr-qtgui: adding GRC component for time_sink block. --- gr-qtgui/grc/Makefile.am | 1 + gr-qtgui/grc/qtgui_time_sink_x.xml | 78 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 79 insertions(+) create mode 100644 gr-qtgui/grc/qtgui_time_sink_x.xml (limited to 'gr-qtgui/grc') diff --git a/gr-qtgui/grc/Makefile.am b/gr-qtgui/grc/Makefile.am index b3114268c..ccd459a13 100644 --- a/gr-qtgui/grc/Makefile.am +++ b/gr-qtgui/grc/Makefile.am @@ -29,5 +29,6 @@ dist_grcblocks_DATA = \ qtgui_label.xml \ qtgui_range.xml \ qtgui_sink_x.xml \ + qtgui_time_sink_x.xml \ qtgui_tab_widget.xml \ qtgui_chooser.xml diff --git a/gr-qtgui/grc/qtgui_time_sink_x.xml b/gr-qtgui/grc/qtgui_time_sink_x.xml new file mode 100644 index 000000000..9c8da6fbc --- /dev/null +++ b/gr-qtgui/grc/qtgui_time_sink_x.xml @@ -0,0 +1,78 @@ + + + + QT GUI Time Sink + qtgui_time_sink_x + QT GUI Widgets + from PyQt4 import Qt + from gnuradio.qtgui import qtgui + from gnuradio.gr import firdes + import sip + #set $win = 'self._%s_win'%$id +qtgui.$(type.fcn)( + $size, \#size + $bw, \#bw + $name, \#name + $nconnections \#number of inputs +) +self._$(id)_win = sip.wrapinstance(self.$(id).pyqwidget(), Qt.QWidget) +$(gui_hint()($win)) + set_time_domain_axis($min, $max) + set_update_time($t) + set_title($which, $title) + set_color($which, $color) + + Type + type + complex + enum + + + + + Name + name + QT GUI Plot + string + + + Number of Points + size + 1024 + int + + + Bandwidth (Hz) + bw + samp_rate + real + + + Number of Inputs + nconnections + 1 + int + part + + + GUI Hint + gui_hint + + gui_hint + part + + + in + $type + $nconnections + + +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