diff options
Diffstat (limited to 'nocui/event.go')
| -rw-r--r-- | nocui/event.go | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/nocui/event.go b/nocui/event.go index 103e1b1..406e634 100644 --- a/nocui/event.go +++ b/nocui/event.go @@ -1,46 +1,46 @@ package main import ( - "go.wit.com/gui/toolkits" + "go.wit.com/gui/widget" ) func (n *node) doWidgetClick() { switch n.WidgetType { - case toolkit.Root: + case widget.Root: // THIS IS THE BEGINING OF THE LAYOUT // rootNode.nextW = 0 // rootNode.nextH = 0 // rootNode.redoTabs(true) - case toolkit.Flag: + case widget.Flag: // me.rootNode.redoColor(true) // rootNode.dumpTree(true) - case toolkit.Window: + case widget.Window: // setCurrentWindow(w) n.doUserEvent() - case toolkit.Tab: + case widget.Tab: // setCurrentTab(w) - case toolkit.Group: + case widget.Group: // n.placeWidgets() // n.toggleTree() - case toolkit.Checkbox: + case widget.Checkbox: if (n.B) { // n.setCheckbox(false) } else { // n.setCheckbox(true) } n.doUserEvent() - case toolkit.Grid: + case widget.Grid: // rootNode.hideWidgets() // n.placeGrid() // n.showWidgets() - case toolkit.Box: + case widget.Box: // n.showWidgetPlacement(logNow, "drawTree()") if (n.B) { log(true, "BOX IS HORIZONTAL", n.Name) } else { log(true, "BOX IS VERTICAL", n.Name) } - case toolkit.Button: + case widget.Button: n.doUserEvent() default: } |
