summaryrefslogtreecommitdiff
path: root/grc/blocks/wxgui_histosink2.xml
diff options
context:
space:
mode:
authorJosh Blum2009-10-09 13:26:30 -0700
committerJosh Blum2009-10-09 13:26:30 -0700
commit5c00e226ffa3a083be770c1564a1098f83c28e9f (patch)
treea46cdc9296a626284f22047b48108085d5b3d80d /grc/blocks/wxgui_histosink2.xml
parent28d198f8d5f7f88130282d138b35f6b96fd404c3 (diff)
downloadgnuradio-5c00e226ffa3a083be770c1564a1098f83c28e9f.tar.gz
gnuradio-5c00e226ffa3a083be770c1564a1098f83c28e9f.tar.bz2
gnuradio-5c00e226ffa3a083be770c1564a1098f83c28e9f.zip
Added window size param to all wxgui wrappers.
Modified type parser to allow blank values in vector types as empty vectors.
Diffstat (limited to 'grc/blocks/wxgui_histosink2.xml')
-rw-r--r--grc/blocks/wxgui_histosink2.xml13
1 files changed, 13 insertions, 0 deletions
diff --git a/grc/blocks/wxgui_histosink2.xml b/grc/blocks/wxgui_histosink2.xml
index 454a4932c..9edf9650d 100644
--- a/grc/blocks/wxgui_histosink2.xml
+++ b/grc/blocks/wxgui_histosink2.xml
@@ -14,6 +14,9 @@ histosink_gl.histo_sink_f(
title=$title,
num_bins=$num_bins,
frame_size=$frame_size,
+#if $win_size()
+ size=$win_size,
+#end if
)
#if not $grid_pos()
$(parent).Add(self.$(id).win)
@@ -41,6 +44,13 @@ $(parent).GridAdd(self.$(id).win, $(', '.join(map(str, $grid_pos()))))
<type>int</type>
</param>
<param>
+ <name>Window Size</name>
+ <key>win_size</key>
+ <value></value>
+ <type>int_vector</type>
+ <hide>#if $win_size() then 'none' else 'part'#</hide>
+ </param>
+ <param>
<name>Grid Position</name>
<key>grid_pos</key>
<value></value>
@@ -52,11 +62,14 @@ $(parent).GridAdd(self.$(id).win, $(', '.join(map(str, $grid_pos()))))
<value></value>
<type>notebook</type>
</param>
+ <check>not $win_size or len($win_size) == 2</check>
<sink>
<name>in</name>
<type>float</type>
</sink>
<doc>
+Leave the window blank for the default size, otherwise enter a tuple of (width, height) pixels.
+
Use the Grid Position (row, column, row span, column span) to position the graphical element in the window.
Use the Notebook Param (notebook-id, page-index) to place the graphical element inside of a notebook page.