summaryrefslogtreecommitdiff
path: root/grc/gui/ActionHandler.py
diff options
context:
space:
mode:
authorSebastian Koslowski <koslowski@kit.edu>2013-11-22 21:34:47 +0100
committerSebastian Koslowski <koslowski@kit.edu>2013-11-22 21:41:37 +0100
commita00b94ec4a9949125ddb1711abf49d4d575d290d (patch)
tree1be987455cea8bc2fa78c02576d28d051813fc60 /grc/gui/ActionHandler.py
parentb942affe9f36be114ac01bf3dd50e4ad663a2845 (diff)
grc: toggle visibility of report and block tree widgets
Diffstat (limited to 'grc/gui/ActionHandler.py')
-rw-r--r--grc/gui/ActionHandler.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/grc/gui/ActionHandler.py b/grc/gui/ActionHandler.py
index 87576ccae1..acb546b691 100644
--- a/grc/gui/ActionHandler.py
+++ b/grc/gui/ActionHandler.py
@@ -113,7 +113,8 @@ class ActionHandler:
Actions.FLOW_GRAPH_OPEN, Actions.FLOW_GRAPH_SAVE_AS,
Actions.FLOW_GRAPH_CLOSE, Actions.ABOUT_WINDOW_DISPLAY,
Actions.FLOW_GRAPH_SCREEN_CAPTURE, Actions.HELP_WINDOW_DISPLAY,
- Actions.TYPES_WINDOW_DISPLAY,
+ Actions.TYPES_WINDOW_DISPLAY, Actions.TOGGLE_BLOCKTREE_WIDGET,
+ Actions.TOGGLE_REPORT_WIDGET,
): action.set_sensitive(True)
if not self.init_file_paths:
self.init_file_paths = Preferences.files_open()
@@ -349,6 +350,12 @@ class ActionHandler:
Dialogs.TypesDialog(self.get_flow_graph().get_parent())
elif action == Actions.ERRORS_WINDOW_DISPLAY:
Dialogs.ErrorsDialog(self.get_flow_graph())
+ elif action == Actions.TOGGLE_REPORT_WIDGET:
+ widget = self.main_window.reports_scrolled_window
+ widget.set_visible(not widget.get_visible())
+ elif action == Actions.TOGGLE_BLOCKTREE_WIDGET:
+ widget = self.main_window.btwin
+ widget.set_visible(not widget.get_visible())
##################################################
# Param Modifications
##################################################
@@ -447,6 +454,7 @@ class ActionHandler:
self.main_window.btwin.clear();
self.platform.load_block_tree(self.main_window.btwin);
elif action == Actions.FIND_BLOCKS:
+ self.main_window.btwin.show()
self.main_window.btwin.search_entry.show()
self.main_window.set_focus(self.main_window.btwin.search_entry)
elif action == Actions.OPEN_HIER: