2024-01-18 00:11:03 -06:00
|
|
|
package main
|
|
|
|
|
|
|
|
/*
|
|
|
|
import (
|
|
|
|
"go.wit.com/log"
|
2024-01-18 04:35:05 -06:00
|
|
|
"go.wit.com/widget"
|
|
|
|
"go.wit.com/toolkits/tree"
|
2024-01-18 00:11:03 -06:00
|
|
|
)
|
|
|
|
|
|
|
|
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:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
*/
|