From e799a19b2cca024cb8effa0da7c97de580d7118c Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 9 Sep 2025 02:04:56 -0500 Subject: working on the GUI init process --- structs.go | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) (limited to 'structs.go') diff --git a/structs.go b/structs.go index c393037..e8fc0a4 100644 --- a/structs.go +++ b/structs.go @@ -26,23 +26,15 @@ import ( var me guiConfig type guiConfig struct { - // a toolkit requirement. never allow more than one per program - initOnce sync.Once - - rootNode *Node // This is the master node. The Binary Tree starts here + rootNode *Node // This is the master node. The Binary Tree starts here + resFS embed.FS // option to pass in compiled plugins as embedded files + guiChan chan widget.Action // sets the chan for the plugins to call back too + tables []*guipb.Tables // a list of active protobuf tables + postMustParse func(string) string // used to get the final go-arg values after all user configuration is finished + counter int // used to make unique WidgetId's. this is a fun variable, but kinda dumb and should go + appPlugin string // deprecate. what the application would like the default GUI plugin to be + widgets *guipb.Widgets // switch to this and/or tree below // tree *guipb.Tree // the protobuf. switch to this. deprecate rootNode - widgets *guipb.Widgets // don't use this I think - counter int // used to make unique WidgetId's - tables []*guipb.Tables // a list of active protobuf tables - - // sets the chan for the plugins to call back too - guiChan chan widget.Action - - // option to pass in compiled plugins as embedded files - resFS embed.FS - - // what the application would like the default GUI plugin to be - appPlugin string } /* -- cgit v1.2.3