Imported Upstream version 3.2.2
[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 )
18 #if not $grid_pos()
19 $(parent).Add(self.$(id).win)
20 #else
21 $(parent).GridAdd(self.$(id).win, $(', '.join(map(str, $grid_pos()))))
22 #end if</make>
23         <callback>set_num_bins($num_bins)</callback>
24         <callback>set_frame_size($frame_size)</callback>
25         <param>
26                 <name>Title</name>
27                 <key>title</key>
28                 <value>Histogram Plot</value>
29                 <type>string</type>
30         </param>
31         <param>
32                 <name>Num Bins</name>
33                 <key>num_bins</key>
34                 <value>27</value>
35                 <type>int</type>
36         </param>
37         <param>
38                 <name>Frame Size</name>
39                 <key>frame_size</key>
40                 <value>1000</value>
41                 <type>int</type>
42         </param>
43         <param>
44                 <name>Grid Position</name>
45                 <key>grid_pos</key>
46                 <value></value>
47                 <type>grid_pos</type>
48         </param>
49         <param>
50                 <name>Notebook</name>
51                 <key>notebook</key>
52                 <value></value>
53                 <type>notebook</type>
54         </param>
55         <sink>
56                 <name>in</name>
57                 <type>float</type>
58         </sink>
59         <doc>
60 Use the Grid Position (row, column, row span, column span) to position the graphical element in the window.
61
62 Use the Notebook Param (notebook-id, page-index) to place the graphical element inside of a notebook page.
63         </doc>
64 </block>