diff options
| author | Jeff Carr <[email protected]> | 2025-02-14 18:11:19 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-14 18:11:19 -0600 |
| commit | a83ca26ac3380be410cd8aaceef7b6a2c7d2701a (patch) | |
| tree | 28e5cf62e8cd216b50e1d1bbdc3e3b758b0f67cb /action.go | |
| parent | c4e48c6403936c7f5d1f60d590fc3a91fecdc83d (diff) | |
switch to treeInitv0.22.26v0.22.25v0.22.24v0.22.23v0.22.22v0.22.21v0.22.20v0.22.19v0.22.18v0.22.17v0.22.16v0.22.15
Diffstat (limited to 'action.go')
| -rw-r--r-- | action.go | 35 |
1 files changed, 28 insertions, 7 deletions
@@ -7,12 +7,13 @@ package main */ import ( + "go.wit.com/lib/protobuf/guipb" "go.wit.com/log" "go.wit.com/toolkits/tree" "go.wit.com/widget" ) -func Add(n *tree.Node) { +func newAdd(n *tree.Node) { log.Log(INFO, "Add() END =", n.WidgetType, n.String()) if n == nil { log.Warn("Tree Error: Add() sent n == nil") @@ -68,15 +69,15 @@ func newaction(n *tree.Node, atype widget.ActionType) { log.Log(INFO, "newaction() END", atype, n.String()) } -func SetTitle(n *tree.Node, s string) { - SetText(n, s) +func setTitle(n *tree.Node, s string) { + setText(n, s) } -func SetLabel(n *tree.Node, s string) { - SetText(n, s) +func setLabel(n *tree.Node, s string) { + setText(n, s) } -func SetText(n *tree.Node, s string) { +func setText(n *tree.Node, s string) { if n == nil { log.Warn("Tree Error: Add() sent n == nil") return @@ -90,7 +91,7 @@ func SetText(n *tree.Node, s string) { log.Info("SetText()", n.WidgetType, n.String()) } -func AddText(n *tree.Node, s string) { +func addText(n *tree.Node, s string) { if n == nil { log.Warn("Tree Error: Add() sent n == nil") return @@ -103,3 +104,23 @@ func AddText(n *tree.Node, s string) { // w := n.TK.(*guiWidget) // w.AddText(s) } + +func enableWidget(n *tree.Node) { + log.Info("do enable() here") +} + +func disableWidget(n *tree.Node) { + log.Info("do enable() here") +} + +func setChecked(n *tree.Node, b bool) { + log.Info("do enable() here") +} + +func showTable(n *guipb.Table) { + log.Info("do enable() here") +} + +func toolkitClose() { + log.Info("do enable() here") +} |
