added sync output port to dxpsk2 demod
[debian/gnuradio] / grc / blocks / parameter.xml
index 21e5f04b3793ac703554135afb93dbce19bd0957..e35b8f4d1d8bc7c7ac9bd14a06acf6cb6a1eb0ae 100644 (file)
                <key>type</key>
                <value></value>
                <type>enum</type>
-               <hide>$type.hide</hide>
+               <hide>#if $type() then 'none' else 'part'#</hide>
                <option>
                        <name>None</name>
                        <key></key>
                        <opt>type:raw</opt>
-                       <opt>hide:part</opt>
                </option>
                <option>
                        <name>Complex</name>
                        <key>complex</key>
                        <opt>type:complex</opt>
-                       <opt>hide:none</opt>
                </option>
                <option>
                        <name>Float</name>
                        <key>eng_float</key>
                        <opt>type:real</opt>
-                       <opt>hide:none</opt>
                </option>
                <option>
                        <name>Int</name>
-                       <key>int</key>
+                       <key>intx</key>
                        <opt>type:int</opt>
-                       <opt>hide:none</opt>
                </option>
                <option>
                        <name>Long</name>
                        <key>long</key>
                        <opt>type:int</opt>
-                       <opt>hide:none</opt>
                </option>
                <option>
                        <name>String</name>
                        <key>string</key>
                        <opt>type:string</opt>
-                       <opt>hide:none</opt>
                </option>
+               <!-- not supported yet in tmpl
+               <option>
+                       <name>Boolean</name>
+                       <key>bool</key>
+                       <opt>type:bool</opt>
+               </option>
+               -->
+       </param>
+       <param>
+               <name>Short ID</name>
+               <key>short_id</key>
+               <value></value>
+               <type>string</type>
+               <hide>#if not $type()
+all#slurp
+#elif $short_id()
+none#slurp
+#else
+part#slurp
+#end if</hide>
        </param>
+       <check>len($short_id) in (0, 1)</check>
+       <check>$short_id == '' or $(short_id).isalpha()</check>
        <doc>
 This block represents a parameter to the flow graph. \
 A parameter can be used to pass command line arguments into a top block. \
@@ -74,6 +90,10 @@ The paramater value cannot depend on any variables.
 
 Leave the label blank to use the parameter id as the label.
 
-When type is not None, this parameter also becomes a command line option of the form --[id] [value].
+When type is not None, this parameter also becomes a command line option of the form:
+
+-[short_id] --[id] [value]
+
+The Short ID field may be left blank.
        </doc>
 </block>