diff options
author | Seth Hitefield <sdhitefield@gmail.com> | 2015-06-10 16:04:51 -0400 |
---|---|---|
committer | Sebastian Koslowski <koslowski@kit.edu> | 2015-06-11 09:40:24 +0200 |
commit | 91dd2fce59ba81d4dc22b9dcdc909211cafe9f5f (patch) | |
tree | 51b237a53e69e1c1a06648866b6c1bfae6993cc7 /grc/gui/Bars.py | |
parent | 80272df0bd29c02e7d677062431ba0ae4e07ed60 (diff) |
grc: Added ability to bypass blocks (Suggested by Chris Headley).
Only for blocks that have a single source and sink of the same type.
Feature can be disabled per block using the 'disable_bypass' flag in the block definition.
Diffstat (limited to 'grc/gui/Bars.py')
-rw-r--r-- | grc/gui/Bars.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/grc/gui/Bars.py b/grc/gui/Bars.py index 40ce20536..abcc3c643 100644 --- a/grc/gui/Bars.py +++ b/grc/gui/Bars.py @@ -49,6 +49,7 @@ TOOLBAR_LIST = ( None, Actions.BLOCK_ENABLE, Actions.BLOCK_DISABLE, + Actions.BLOCK_BYPASS, Actions.TOGGLE_HIDE_DISABLED_BLOCKS, None, Actions.FIND_BLOCKS, @@ -85,6 +86,7 @@ MENU_BAR_LIST = ( None, Actions.BLOCK_ENABLE, Actions.BLOCK_DISABLE, + Actions.BLOCK_BYPASS, None, Actions.BLOCK_PARAM_MODIFY, ]), @@ -134,6 +136,7 @@ CONTEXT_MENU_LIST = [ Actions.BLOCK_ROTATE_CW, Actions.BLOCK_ENABLE, Actions.BLOCK_DISABLE, + Actions.BLOCK_BYPASS, None, (gtk.Action('More', '_More', None, None), [ Actions.BLOCK_CREATE_HIER, |