summaryrefslogtreecommitdiff
path: root/toolkit/democui/plugin.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-03-26 17:19:20 -0500
committerJeff Carr <[email protected]>2023-03-26 17:19:20 -0500
commit6013fde8332e8ecbffaf1a0977ba2e1da8ea8775 (patch)
tree3f9ccd75e8699974f3412fdd79a20173672c19c2 /toolkit/democui/plugin.go
parent6f91f5e080e06cdc0f34b13d23e5fd16ea37259a (diff)
improvements towards a working dns control panel
democui has the help menu try to add mouse support to gocui make a direct access method Margin() and Pad() tests add SPEW also push devel branch to github Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/democui/plugin.go')
-rw-r--r--toolkit/democui/plugin.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/toolkit/democui/plugin.go b/toolkit/democui/plugin.go
index 2c0d42e..50d84a2 100644
--- a/toolkit/democui/plugin.go
+++ b/toolkit/democui/plugin.go
@@ -113,3 +113,19 @@ func Send(p *toolkit.Widget, c *toolkit.Widget) {
log(debugError, "plugin Send() Don't know how to do", c.Type, "yet")
}
}
+
+func Action(a *toolkit.Action) {
+ log(logNow, "Action() START a.Type =", a.Type)
+ log(logNow, "Action() START a.S =", a.S)
+ log(logNow, "Action() START a.Widget =", a.Widget)
+
+ log(logNow, "Action() START a.WidgetId =", a.WidgetId, "a.WhereId =", a.WhereId)
+
+ switch a.Type {
+ case toolkit.Add:
+ log(logError, "Action() do add here() =", a.Type, a.Widget)
+ default:
+ log(logError, "Action() Unknown =", a.Type, a.Widget)
+ }
+ log(logNow, "Action() END =", a.Type, a.Widget)
+}