diff options
| author | Jeff Carr <[email protected]> | 2023-03-01 11:35:36 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-03-01 11:35:36 -0600 |
| commit | 8dbf5a09097b7868e9218bf98716c57eac998a10 (patch) | |
| tree | ab3bdfeaf5a59a55de9d2a6661d2d824090491e5 /toolkit/andlabs/group.go | |
| parent | f3bb68396afa7452ecf1c8d4744c825a9d81057c (diff) | |
lots cleaner code between the pluginv0.6.1
Queue() around SetText is helping userspace crashing
merge forceDump(bool) into Dump()
debugging output configuration is pretty clean
keep cutting down duplicate things
--gui-verbose flag works
make label "standard" code
add debug.FreeOSMemory()
move the GO language internals to display in the GUI
update push to do tags and go to github.com/wit-go/
remove the other license file
it might be confusing golang.org and github
proper WidgetType
added a Quit() button
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/andlabs/group.go')
| -rw-r--r-- | toolkit/andlabs/group.go | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/toolkit/andlabs/group.go b/toolkit/andlabs/group.go index 1762b7f..613efb6 100644 --- a/toolkit/andlabs/group.go +++ b/toolkit/andlabs/group.go @@ -7,13 +7,13 @@ import ( _ "github.com/andlabs/ui/winmanifest" ) -func NewGroup(parentW *toolkit.Widget, w *toolkit.Widget) { +func newGroup(parentW *toolkit.Widget, w *toolkit.Widget) { log(debugToolkit, "gui.andlabs.NewGroup()", w.Name) t := mapToolkits[parentW] if (t == nil) { log(debugToolkit, "go.andlabs.NewGroup() toolkit struct == nil. name=", parentW.Name, w.Name) - listMap() + listMap(debugToolkit) } newt := t.NewGroup(w.Name) mapWidgetsToolkits(w, newt) @@ -23,18 +23,23 @@ func NewGroup(parentW *toolkit.Widget, w *toolkit.Widget) { func (t andlabsT) NewGroup(title string) *andlabsT { var newt andlabsT - log(debugToolkit, "gui.Toolbox.NewGroup() create", title) + log(debugToolkit, "NewGroup() create", title) g := ui.NewGroup(title) g.SetMargined(margin) if (t.uiBox != nil) { - t.uiBox.Append(g, stretchy) + // TODO: temporary hack to make the output textbox 'fullscreen' + if (title == "output") { + t.uiBox.Append(g, true) + } else { + t.uiBox.Append(g, stretchy) + } } else if (t.uiWindow != nil) { t.uiWindow.SetChild(g) } else { - log(debugToolkit, "gui.ToolboxNode.NewGroup() node.UiBox == nil. I can't add a range UI element without a place to put it") - log(debugToolkit, "probably could just make a box here?") + log(debugError, "NewGroup() node.UiBox == nil. I can't add a range UI element without a place to put it") + log(debugError, "probably could just make a box here?") exit("internal wit/gui error") } @@ -47,8 +52,5 @@ func (t andlabsT) NewGroup(title string) *andlabsT { newt.uiWindow = t.uiWindow newt.Name = title - t.Dump() - newt.Dump() - // panic("toolkit.NewGroup") return &newt } |
