diff options
author | jblum | 2009-06-23 20:38:18 +0000 |
---|---|---|
committer | jblum | 2009-06-23 20:38:18 +0000 |
commit | 9988664127b367fa8fee4409f8460673d6f265e1 (patch) | |
tree | 96752c15b7f1447e5e78a7282d1de141f9e0000b /grc/blocks/parameter.xml | |
parent | 885e6fe1fd0e06476511c79515f34ffcef50287d (diff) | |
download | gnuradio-9988664127b367fa8fee4409f8460673d6f265e1.tar.gz gnuradio-9988664127b367fa8fee4409f8460673d6f265e1.tar.bz2 gnuradio-9988664127b367fa8fee4409f8460673d6f265e1.zip |
Merging r11186:11273 from grc branch.
Fixes, features, and reorganization for grc.
Minor fixes and features for wxgui forms.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@11274 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'grc/blocks/parameter.xml')
-rw-r--r-- | grc/blocks/parameter.xml | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/grc/blocks/parameter.xml b/grc/blocks/parameter.xml new file mode 100644 index 000000000..d3bab94c3 --- /dev/null +++ b/grc/blocks/parameter.xml @@ -0,0 +1,80 @@ +<?xml version="1.0"?> +<!-- +################################################### +##Parameter block: a grc variable with key, value +################################################### + --> +<block> + <name>Parameter</name> + <key>parameter</key> + <var_make>self.$(id) = $(id)</var_make> + <make>$value</make> + <param> + <name>Label</name> + <key>label</key> + <value></value> + <type>string</type> + <hide>#if $label() then 'none' else 'part'#</hide> + </param> + <param> + <name>Value</name> + <key>value</key> + <value>0</value> + <type>$type.type</type> + </param> + <param> + <name>Type</name> + <key>type</key> + <value></value> + <type>enum</type> + <hide>$type.hide</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> + <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> + </param> + <doc> +This block represents a parameter to the flow graph. \ +A parameter can be used to pass command line arguments into a top block. \ +Or, parameters can pass arguments into an instantiated hierarchical block. + +The paramater value cannot depend on any variables. + +Leave the label blank to use the parameter id as the label. \ +The label only applies when this flow graph is instantiated as a hierarchical block. + +When type is not None, this parameter also becomes a command line option of the form --[id] [value]. + </doc> +</block> |