From 841e6252c95244f0ee7faf2c01d33f69a8ab483a Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 17 Jan 2024 21:31:49 -0600 Subject: common tree package for toolkits This update provides *lots* of toolkit updates. This will allow the next step of debugging the gocui toolkit to make it work again. There are new common routines for handling the plugin channel communication Signed-off-by: Jeff Carr --- andlabs/structs.go | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'andlabs/structs.go') diff --git a/andlabs/structs.go b/andlabs/structs.go index 87e88e1..e39cbe7 100644 --- a/andlabs/structs.go +++ b/andlabs/structs.go @@ -1,7 +1,11 @@ package main -import "go.wit.com/dev/andlabs/ui" -import _ "go.wit.com/dev/andlabs/ui/winmanifest" +import ( + "go.wit.com/gui/toolkits/tree" + + "go.wit.com/dev/andlabs/ui" + _ "go.wit.com/dev/andlabs/ui/winmanifest" +) // var andlabs map[int]*andlabsT // var callback func(int) bool @@ -11,7 +15,9 @@ import _ "go.wit.com/dev/andlabs/ui/winmanifest" var me config type config struct { - rootNode *node // the base of the binary tree. it should have id == 0 + rootNode *tree.Node // the base of the binary tree. it should have id == 0 + treeRoot *tree.Node // the base of the binary tree. it should have id == 0 + myTree *tree.TreeInfo } // stores the raw toolkit internals -- cgit v1.2.3