src/Tools/Graphview/graph_panel.scala
changeset 61176 9791f631c20d
parent 59461 6eabc60641a6
child 66205 e9fa94f43a15
equal deleted inserted replaced
61175:1d9c121cbe4d 61176:9791f631c20d
   329       refresh()
   329       refresh()
   330     }
   330     }
   331     tooltip = "Regenerate graph layout according to built-in algorithm"
   331     tooltip = "Regenerate graph layout according to built-in algorithm"
   332   }
   332   }
   333 
   333 
       
   334   private val editor_style = new CheckBox() {
       
   335     selected = graphview.editor_style
       
   336     action = Action("Editor style") {
       
   337       graphview.editor_style = selected
       
   338       graphview.update_layout()
       
   339       refresh()
       
   340     }
       
   341     tooltip = "Use editor font and colors for painting"
       
   342   }
       
   343 
   334   private val colorations = new Button { action = Action("Colorations") { color_dialog.open } }
   344   private val colorations = new Button { action = Action("Colorations") { color_dialog.open } }
   335   private val filters = new Button { action = Action("Filters") { mutator_dialog.open } }
   345   private val filters = new Button { action = Action("Filters") { mutator_dialog.open } }
   336 
   346 
   337   private val controls =
   347   private val controls =
   338     new Wrap_Panel(Wrap_Panel.Alignment.Right)(show_content, show_arrow_heads, show_dummies,
   348     new Wrap_Panel(Wrap_Panel.Alignment.Right)(show_content, show_arrow_heads, show_dummies,
   339       save_image, zoom, fit_window, update_layout) // FIXME colorations, filters
   349       save_image, zoom, fit_window, update_layout, editor_style) // FIXME colorations, filters
   340 
   350 
   341 
   351 
   342 
   352 
   343   /** main layout **/
   353   /** main layout **/
   344 
   354