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 --- nocui/structs.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'nocui/structs.go') diff --git a/nocui/structs.go b/nocui/structs.go index 888bcb5..c8a7cb4 100644 --- a/nocui/structs.go +++ b/nocui/structs.go @@ -1,17 +1,22 @@ package main +import ( + "go.wit.com/gui/toolkits/tree" +) + // stores the raw toolkit internals type guiWidget struct { Width int Height int c int - val map[int]string + val map[string]int } // It's probably a terrible idea to call this 'me' var me config type config struct { - rootNode *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 } -- cgit v1.2.3