diff options
author | Tom Rondeau | 2012-10-03 11:10:11 -0400 |
---|---|---|
committer | Tom Rondeau | 2012-10-03 12:26:18 -0400 |
commit | d7b57e43f186097f147534ad49c6337edc4fdc88 (patch) | |
tree | 19083ce4902d12343d194d4a66ec41477d49cfd9 /grc/gui/Actions.py | |
parent | de014bd0cb98226d90bdec6bcf4c7a20cc4ba6b9 (diff) | |
download | gnuradio-d7b57e43f186097f147534ad49c6337edc4fdc88.tar.gz gnuradio-d7b57e43f186097f147534ad49c6337edc4fdc88.tar.bz2 gnuradio-d7b57e43f186097f147534ad49c6337edc4fdc88.zip |
grc: ability to automatically create hier_blocks from a flowgraph.
Highlight a set of blocks and hit 'c' or right-click and 'Create Hier' to automatically build a new hier_block that opens in GRC with the probes in place. Any parameter/variables become parameters in the new graph. Save, generate, and hit the 'Reload Blocks' to get access to new block.
Diffstat (limited to 'grc/gui/Actions.py')
-rw-r--r-- | grc/gui/Actions.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/grc/gui/Actions.py b/grc/gui/Actions.py index 03aa43057..8087f4955 100644 --- a/grc/gui/Actions.py +++ b/grc/gui/Actions.py @@ -198,6 +198,12 @@ BLOCK_DISABLE = Action( stock_id=gtk.STOCK_DISCONNECT, keypresses=(gtk.keysyms.d, NO_MODS_MASK), ) +BLOCK_CREATE_HIER = Action( + label='C_reate Hier', + tooltip='Create hier block from selected blocks', + stock_id=gtk.STOCK_CONNECT, + keypresses=(gtk.keysyms.c, NO_MODS_MASK), +) BLOCK_CUT = Action( label='Cu_t', tooltip='Cut', |