diff options
author | jblum | 2008-08-29 20:55:06 +0000 |
---|---|---|
committer | jblum | 2008-08-29 20:55:06 +0000 |
commit | f1b6dd89d43ddf896e5b6dd0df0e43f0e35308f1 (patch) | |
tree | d423a93c0cee7f08875be6311991d01c89225d96 /grc/data/grc_gnuradio | |
parent | eb5c6240718e57d6dc81be48cd29f7f3241625d3 (diff) | |
download | gnuradio-f1b6dd89d43ddf896e5b6dd0df0e43f0e35308f1.tar.gz gnuradio-f1b6dd89d43ddf896e5b6dd0df0e43f0e35308f1.tar.bz2 gnuradio-f1b6dd89d43ddf896e5b6dd0df0e43f0e35308f1.zip |
separated controls and variables generation, removed evaluation dependency on variables extraction
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9450 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'grc/data/grc_gnuradio')
-rw-r--r-- | grc/data/grc_gnuradio/flow_graph.tmpl | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/grc/data/grc_gnuradio/flow_graph.tmpl b/grc/data/grc_gnuradio/flow_graph.tmpl index 932aa42ec..90ef3bbae 100644 --- a/grc/data/grc_gnuradio/flow_graph.tmpl +++ b/grc/data/grc_gnuradio/flow_graph.tmpl @@ -5,6 +5,7 @@ ##@param imports the import statements ##@param flow_graph the flow_graph ##@param variables the variable blocks +##@param controls the variables with gui controls ##@param parameters the paramater blocks ##@param blocks the signal blocks ##@param connections the connections @@ -83,7 +84,7 @@ class $(class_name)(gr.hier_block2): ######################################################## ##Create Variables ## Set the variable to a property of self. -## Write the variable make, and indent with 2 tabs. +## Write the first line of the variable make. ######################################################## #if $variables @@ -92,9 +93,23 @@ class $(class_name)(gr.hier_block2): $DIVIDER #end if #for $var in $variables - #set $code = '\n\t\t'.join($var.get_make().splitlines()) - $var.get_id() = $code - self.$var.get_id() = $var.get_id() + #set $code = $var.get_make().splitlines()[0] + self.$var.get_id() = $var.get_id() = $code +#end for +######################################################## +##Create Controls +## Write the variable make (excluding first line). +## Indent each line with 2 tabs. +######################################################## +#if $controls + + $DIVIDER + # Controls + $DIVIDER +#end if +#for $ctrl in $controls + #set $code = '\n\t\t'.join($ctrl.get_make().splitlines()[1:]) + $code #end for ######################################################## ##Create Blocks |