another distcheck fix
[debian/gnuradio] / grc / data / grc_gnuradio / blocks / variable_slider.xml
1 <?xml version="1.0"?>
2 <!--
3 ###################################################
4 ##Variable Slider: a grc variable with key, value, min, max, step
5 ###################################################
6  -->
7 <block>
8         <name>Variable Slider</name>
9         <key>variable_slider</key>
10         <make>$value
11 _$(id)_control = grc_wxgui.slider_$(slider_type)_control(
12         window=self.GetWin(),
13         callback=self.set_$(id),
14                 #if $label.eval
15         label=$label,
16                 #else
17         label=&quot;$id&quot;,
18                 #end if
19         value=$id,
20         min=$min,
21         max=$max,
22         num_steps=$num_steps,
23 )
24 #set $grid_pos = $grid_pos.eval
25 #if not grid_pos
26 self.Add(_$(id)_control)
27 #else
28 self.GridAdd(_$(id)_control, $grid_pos[0], $grid_pos[1], $grid_pos[2], $grid_pos[3])
29 #end if</make>
30         <param>
31                 <name>Label</name>
32                 <key>label</key>
33                 <value></value>
34                 <type>string</type>
35         </param>
36         <param>
37                 <name>Default Value</name>
38                 <key>value</key>
39                 <value>50</value>
40                 <type>real</type>
41         </param>
42         <param>
43                 <name>Minimum</name>
44                 <key>min</key>
45                 <value>0</value>
46                 <type>real</type>
47         </param>
48         <param>
49                 <name>Maximum</name>
50                 <key>max</key>
51                 <value>100</value>
52                 <type>real</type>
53         </param>
54         <param>
55                 <name>Num Steps</name>
56                 <key>num_steps</key>
57                 <value>100</value>
58                 <type>int</type>
59         </param>
60                 <param>
61                 <name>Slider Type</name>
62                 <key>slider_type</key>
63                 <value>horizontal</value>
64                 <type>enum</type>
65                 <option>
66                         <name>Horizontal</name>
67                         <key>horizontal</key>
68                 </option>
69                 <option>
70                         <name>Vertical</name>
71                         <key>vertical</key>
72                 </option>
73         </param>
74         <param>
75                 <name>Grid Position</name>
76                 <key>grid_pos</key>
77                 <value></value>
78                 <type>grid_pos</type>
79         </param>
80         <check>$min &lt;= $value &lt;= $max</check>
81         <check>$min &lt; $max</check>
82         <check>0 &lt; $num_steps &lt;= 1000</check>
83         <doc>
84 This block creates a variable with a slider. \
85 Leave the label blank to use the variable id as the label. \
86 The value must be a real number. \
87 The value must be between the minimum and the maximum. \
88 The number of steps must be between 0 and 1000.
89
90 Use the Grid Position (row, column, row span, column span) to position the graphical element in the window.
91         </doc>
92 </block>