diff options
| author | Jeff Carr <[email protected]> | 2023-04-08 11:06:50 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-04-08 11:06:50 -0500 |
| commit | da6a4363226f14aa893be02cb4a73cbf34fd77e7 (patch) | |
| tree | 8f1f2c5d59e72961c87ff9c9ede0a4b3f2ab9c3f /toolkit/andlabs/plugin.go | |
| parent | fa0718ff48a2ac2f8b54aed3060101f159484c86 (diff) | |
andlabs: the binary tree limps along again
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/andlabs/plugin.go')
| -rw-r--r-- | toolkit/andlabs/plugin.go | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/toolkit/andlabs/plugin.go b/toolkit/andlabs/plugin.go index f7577d1..f319add 100644 --- a/toolkit/andlabs/plugin.go +++ b/toolkit/andlabs/plugin.go @@ -22,7 +22,8 @@ func Send(p *toolkit.Widget, c *toolkit.Widget) { log(debugPlugin, "Send() goodbye. not used anymore") } -func Action(a *toolkit.Action) { + +func oldAction(a *toolkit.Action) { log(logNow, "Action() START") if (a == nil) { log(debugPlugin, "Action = nil") @@ -40,34 +41,35 @@ func Action(a *toolkit.Action) { log(logNow, "Action() END") } -func rawAction(a *toolkit.Action) { + +func rawAction(a toolkit.Action) { log(debugAction, "rawAction() START a.ActionType =", a.ActionType) log(debugAction, "rawAction() START a.S =", a.S) log(logNow, "rawAction() START a.WidgetId =", a.WidgetId, "a.ParentId =", a.ParentId) switch a.WidgetType { case toolkit.Flag: - flag(a) + flag(&a) return } switch a.ActionType { case toolkit.Add: - add(a) + add(&a) case toolkit.Show: a.B = true - show(a) + show(&a) case toolkit.Hide: a.B = false - show(a) + show(&a) case toolkit.Enable: a.B = true - enable(a) + enable(&a) case toolkit.Disable: a.B = false - enable(a) + enable(&a) case toolkit.Get: - setText(a) + setText(&a) case toolkit.GetText: switch a.WidgetType { case toolkit.Textbox: @@ -75,24 +77,24 @@ func rawAction(a *toolkit.Action) { a.S = t.s } case toolkit.Set: - setText(a) + setText(&a) case toolkit.SetText: - setText(a) + setText(&a) case toolkit.AddText: - setText(a) + setText(&a) case toolkit.Margin: - pad(a) + pad(&a) case toolkit.Unmargin: - pad(a) + pad(&a) case toolkit.Pad: - pad(a) + pad(&a) case toolkit.Unpad: - pad(a) + pad(&a) case toolkit.Delete: - uiDelete(a) + uiDelete(&a) case toolkit.Move: log(debugNow, "rawAction() attempt to move() =", a.ActionType, a.WidgetType) - move(a) + move(&a) default: log(debugError, "rawAction() Unknown =", a.ActionType, a.WidgetType) } |
