option graphview_swap_panels;
authorwenzelm
Sun, 18 Jan 2015 19:06:37 +0100
changeset 59393 9f518fa77c1c
parent 59392 02bacfc31446
child 59394 bc3a21ca23aa
option graphview_swap_panels;
src/Tools/Graphview/etc/options
src/Tools/Graphview/main_panel.scala
--- a/src/Tools/Graphview/etc/options	Sun Jan 18 17:34:14 2015 +0100
+++ b/src/Tools/Graphview/etc/options	Sun Jan 18 19:06:37 2015 +0100
@@ -23,3 +23,6 @@
 public option graphview_content_margin : int = 60
   -- "margin for node content pretty-printing"
 
+public option graphview_swap_panels : bool = false
+  -- "swap panels for tree view versus graph layout"
+
--- a/src/Tools/Graphview/main_panel.scala	Sun Jan 18 17:34:14 2015 +0100
+++ b/src/Tools/Graphview/main_panel.scala	Sun Jan 18 19:06:37 2015 +0100
@@ -33,7 +33,11 @@
     graph_panel.refresh()
   }
 
-  val split_pane = new SplitPane(Orientation.Vertical, tree_panel, graph_panel)
+  val split_pane =
+    if (visualizer.get_options.bool("graphview_swap_panels"))
+      new SplitPane(Orientation.Vertical, tree_panel, graph_panel)
+    else
+      new SplitPane(Orientation.Vertical, graph_panel, tree_panel)
   split_pane.oneTouchExpandable = true
 
   val mutator_dialog = new Mutator_Dialog(visualizer, model.Mutators, "Filters", "Hide", false)