summaryrefslogtreecommitdiff
path: root/grc/blocks/wxgui_fftsink2.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_fftsink2.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_fftsink2.xml')
-rw-r--r--grc/blocks/wxgui_fftsink2.xml13
1 files changed, 13 insertions, 0 deletions
diff --git a/grc/blocks/wxgui_fftsink2.xml b/grc/blocks/wxgui_fftsink2.xml
index 6f19f1aa4..42bca5ccf 100644
--- a/grc/blocks/wxgui_fftsink2.xml
+++ b/grc/blocks/wxgui_fftsink2.xml
@@ -23,6 +23,9 @@ fftsink2.$(type.fcn)(
avg_alpha=#if $avg_alpha() then $avg_alpha else 'None'#,
title=$title,
peak_hold=$peak_hold,
+#if $win_size()
+ size=$win_size,
+#end if
)
#if not $grid_pos()
$(parent).Add(self.$(id).win)
@@ -159,6 +162,13 @@ $(parent).GridAdd(self.$(id).win, $(', '.join(map(str, $grid_pos()))))
<hide>#if $average() == 'True' then 'none' else 'all'#</hide>
</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>
@@ -170,6 +180,7 @@ $(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>$type</type>
@@ -177,6 +188,8 @@ $(parent).GridAdd(self.$(id).win, $(', '.join(map(str, $grid_pos()))))
<doc>
Set Average Alpha to 0 for automatic setting.
+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.