Skip to content

Commit

Permalink
temmporarily disabled freehand tool
Browse files Browse the repository at this point in the history
  • Loading branch information
akissinger committed May 29, 2018
1 parent 1e5c718 commit c6b7dd8
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions scala/src/main/scala/quanto/gui/GraphEditPanel.scala
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ class GraphEditControls(theory: Theory) extends Publisher {



val FreehandButton = new ToggleButton() with ToolButton {
icon = new ImageIcon(GraphEditor.getClass.getResource("draw-path.png"), "Freehand drawing")
tool = FreehandTool(None, None)
tooltip = "Freehand draw (F)"
}
//val FreehandButton = new ToggleButton() with ToolButton {
// icon = new ImageIcon(GraphEditor.getClass.getResource("draw-path.png"), "Freehand drawing")
// tool = FreehandTool(None, None)
// tooltip = "Freehand draw (F)"
//}



Expand All @@ -98,8 +98,8 @@ class GraphEditControls(theory: Theory) extends Publisher {
AddVertexButton,
AddBoundaryButton,
AddEdgeButton,
AddBangBoxButton,
FreehandButton)
AddBangBoxButton // , FreehandButton
)

def setMouseState(m : MouseState) {
val previousToolButton = GraphToolGroup.selected
Expand All @@ -111,7 +111,7 @@ class GraphEditControls(theory: Theory) extends Publisher {
EdgeTypeLabel.enabled = false
EdgeTypeSelect.enabled = false
EdgeDirected.enabled = false
GraphToolGroup.select(FreehandButton)
//GraphToolGroup.select(FreehandButton)
case SelectTool() =>
VertexTypeLabel.enabled = false
VertexTypeSelect.enabled = false
Expand Down Expand Up @@ -179,7 +179,7 @@ class GraphEditControls(theory: Theory) extends Publisher {
}

val MainToolBar = new ToolBar {
contents += (SelectButton, AddVertexButton, AddBoundaryButton, AddEdgeButton, AddBangBoxButton, FreehandButton)
contents += (SelectButton, AddVertexButton, AddBoundaryButton, AddEdgeButton, AddBangBoxButton) //, FreehandButton)
}
MainToolBar.peer.addSeparator()
MainToolBar.contents += FocusGraphButton
Expand Down

0 comments on commit c6b7dd8

Please sign in to comment.