diff options
| author | Jeff Carr <[email protected]> | 2024-01-18 00:11:03 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-18 00:11:03 -0600 |
| commit | 66f87e34481df249b238d2b1490b6a0c1a3402e0 (patch) | |
| tree | 22f4effacd5463609ac4bd82a3d31c2c0cd7527d /event.go | |
just a "gui" from <STDIN>v0.0.1
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'event.go')
| -rw-r--r-- | event.go | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/event.go b/event.go new file mode 100644 index 0000000..9bbafdb --- /dev/null +++ b/event.go @@ -0,0 +1,51 @@ +package main + +/* +import ( + "go.wit.com/log" + "go.wit.com/gui/widget" + "go.wit.com/gui/toolkits/tree" +) + +func doWidgetClick(n *tree.Node) { + switch n.WidgetType { + case widget.Root: + // THIS IS THE BEGINING OF THE LAYOUT + // rootNode.nextW = 0 + // rootNode.nextH = 0 + // rootNode.redoTabs(true) + case widget.Flag: + // me.rootNode.redoColor(true) + // rootNode.dumpTree(true) + case widget.Window: + // setCurrentWindow(w) + // n.doUserEvent() + case widget.Tab: + // setCurrentTab(w) + case widget.Group: + // n.placeWidgets() + // n.toggleTree() + case widget.Checkbox: + if n.Bool() { + // n.setCheckbox(false) + } else { + // n.setCheckbox(true) + } + // n.doUserEvent() + case widget.Grid: + // rootNode.hideWidgets() + // n.placeGrid() + // n.showWidgets() + case widget.Box: + // n.showWidgetPlacement(logNow, "drawTree()") + if n.Bool() { + log.Log(NOW, "BOX IS HORIZONTAL", n.GetProgName()) + } else { + log.Log(NOW, "BOX IS VERTICAL", n.GetProgName()) + } + case widget.Button: + // n.doUserEvent() + default: + } +} +*/ |
