switch source package format to 3.0 quilt
[debian/gnuradio] / grc / blocks / wxgui_histosink2.xml
1 <?xml version="1.0"?>
2 <!--
3 ###################################################
4 ##Histogram Sink
5 ###################################################
6  -->
7 <block>
8         <name>Histo Sink</name>
9         <key>wxgui_histosink2</key>
10         <import>from gnuradio.wxgui import histosink_gl</import>
11         <make>#set $parent = $notebook() and 'self.%s.GetPage(%s)'%$notebook() or 'self'
12 histosink_gl.histo_sink_f(
13         $(parent).GetWin(),
14         title=$title,
15         num_bins=$num_bins,
16         frame_size=$frame_size,
17 #if $win_size()
18         size=$win_size,
19 #end if
20 )
21 #if not $grid_pos()
22 $(parent).Add(self.$(id).win)
23 #else
24 $(parent).GridAdd(self.$(id).win, $(', '.join(map(str, $grid_pos()))))
25 #end if</make>
26         <callback>set_num_bins($num_bins)</callback>
27         <callback>set_frame_size($frame_size)</callback>
28         <param>
29                 <name>Title</name>
30                 <key>title</key>
31                 <value>Histogram Plot</value>
32                 <type>string</type>
33         </param>
34         <param>
35                 <name>Num Bins</name>
36                 <key>num_bins</key>
37                 <value>27</value>
38                 <type>int</type>
39         </param>
40         <param>
41                 <name>Frame Size</name>
42                 <key>frame_size</key>
43                 <value>1000</value>
44                 <type>int</type>
45         </param>
46         <param>
47                 <name>Window Size</name>
48                 <key>win_size</key>
49                 <value></value>
50                 <type>int_vector</type>
51                 <hide>#if $win_size() then 'none' else 'part'#</hide>
52         </param>
53         <param>
54                 <name>Grid Position</name>
55                 <key>grid_pos</key>
56                 <value></value>
57                 <type>grid_pos</type>
58         </param>
59         <param>
60                 <name>Notebook</name>
61                 <key>notebook</key>
62                 <value></value>
63                 <type>notebook</type>
64         </param>
65         <check>not $win_size or len($win_size) == 2</check>
66         <sink>
67                 <name>in</name>
68                 <type>float</type>
69         </sink>
70         <doc>
71 Leave the window blank for the default size, otherwise enter a tuple of (width, height) pixels.
72
73 Use the Grid Position (row, column, row span, column span) to position the graphical element in the window.
74
75 Use the Notebook Param (notebook-id, page-index) to place the graphical element inside of a notebook page.
76         </doc>
77 </block>