From 355e5ec968427c2b07b78fec12224f31a65df740 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 14 Nov 2022 14:30:28 -0600 Subject: setup building without plugins on windows notes from github remote keep removing os.Exit() rename from andlabs2 back to andlabs rename files for windows andlabs/ui gocui always sets STDOUT a file in /tmp/ Signed-off-by: Jeff Carr --- toolkit/andlabs2/group.go | 56 ----------------------------------------------- 1 file changed, 56 deletions(-) delete mode 100644 toolkit/andlabs2/group.go (limited to 'toolkit/andlabs2/group.go') diff --git a/toolkit/andlabs2/group.go b/toolkit/andlabs2/group.go deleted file mode 100644 index 39f740b..0000000 --- a/toolkit/andlabs2/group.go +++ /dev/null @@ -1,56 +0,0 @@ -package main - -import "log" -import "os" - -import "github.com/andlabs/ui" -import _ "github.com/andlabs/ui/winmanifest" - -import "git.wit.org/wit/gui/toolkit" - -func NewGroup(parentW *toolkit.Widget, w *toolkit.Widget) { - log.Println("gui.andlabs.NewGroup()", w.Name) - - t := mapToolkits[parentW] - if (t == nil) { - log.Println("go.andlabs.NewGroup() toolkit struct == nil. name=", parentW.Name, w.Name) - listMap() - } - newt := t.NewGroup(w.Name) - mapWidgetsToolkits(w, newt) -} - -// make new Group here -func (t andlabsT) NewGroup(title string) *andlabsT { - var newt andlabsT - - if (DebugToolkit) { - log.Println("gui.Toolbox.NewGroup() create", title) - } - g := ui.NewGroup(title) - g.SetMargined(margin) - - if (t.uiBox != nil) { - t.uiBox.Append(g, stretchy) - } else if (t.uiWindow != nil) { - t.uiWindow.SetChild(g) - } else { - log.Println("gui.ToolboxNode.NewGroup() node.UiBox == nil. I can't add a range UI element without a place to put it") - log.Println("probably could just make a box here?") - os.Exit(0) - } - - hbox := ui.NewVerticalBox() - hbox.SetPadded(padded) - g.SetChild(hbox) - - newt.uiGroup = g - newt.uiBox = hbox - newt.uiWindow = t.uiWindow - newt.Name = title - - t.Dump() - newt.Dump() - // panic("toolkit.NewGroup") - return &newt -} -- cgit v1.2.3