diff options
| author | Jeff Carr <[email protected]> | 2023-03-03 14:41:38 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-03-03 14:41:38 -0600 |
| commit | 49202eeafdad8e5780fefdad3d2f87fd4354725e (patch) | |
| tree | 5d749b5d4835c7a0395bd1f87b5d2d1d91b14a08 /toolkit/andlabs/group.go | |
| parent | 80317ec89c94beadcbf3775f84c6010b5ceef302 (diff) | |
release as v0.6.5v0.6.5
good standard release
really clean interaction to plugin
really clean debug flags implementation
common doAppend() idea, but it probably won't work
re-implement combobox. this code base almost doesn't suck
slider & spinner set values now
tab set margin works
convert dropdown to Send()
lots of other changes to try to implement single line Entry()
I guess use golang file names even though internalally the go developers
use underscore chars in the actual go sources.
Maybe there is a reason for that?
go channel debug window does something
make a debug window for channels. add sample icons
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/andlabs/group.go')
| -rw-r--r-- | toolkit/andlabs/group.go | 33 |
1 files changed, 23 insertions, 10 deletions
diff --git a/toolkit/andlabs/group.go b/toolkit/andlabs/group.go index 613efb6..903cb4f 100644 --- a/toolkit/andlabs/group.go +++ b/toolkit/andlabs/group.go @@ -8,49 +8,62 @@ import ( ) func newGroup(parentW *toolkit.Widget, w *toolkit.Widget) { - log(debugToolkit, "gui.andlabs.NewGroup()", w.Name) + // log(debugToolkit, "gui.andlabs.NewGroup()", w.Name) + log(true, "NewGroup()", w.Name) t := mapToolkits[parentW] if (t == nil) { - log(debugToolkit, "go.andlabs.NewGroup() toolkit struct == nil. name=", parentW.Name, w.Name) + log(debugToolkit, "NewGroup() toolkit struct == nil. name=", parentW.Name, w.Name) listMap(debugToolkit) } - newt := t.NewGroup(w.Name) + newt := t.rawGroup(w.Name) mapWidgetsToolkits(w, newt) } // make new Group here -func (t andlabsT) NewGroup(title string) *andlabsT { +func (t *andlabsT) rawGroup(title string) *andlabsT { var newt andlabsT + newt.Name = title - log(debugToolkit, "NewGroup() create", title) + log(debugToolkit, "NewGroup() create", newt.Name) - g := ui.NewGroup(title) + g := ui.NewGroup(newt.Name) g.SetMargined(margin) + newt.uiGroup = g + t.doAppend(&newt, nil) + /* if (t.uiBox != nil) { // TODO: temporary hack to make the output textbox 'fullscreen' - if (title == "output") { + if (newt.Name == "output") { t.uiBox.Append(g, true) } else { t.uiBox.Append(g, stretchy) } } else if (t.uiWindow != nil) { - t.uiWindow.SetChild(g) + log(true, "This is a raw window without a box. probably make a box here and add the group to that") + t.uiBox = ui.NewHorizontalBox() + t.uiWindow.SetChild(t.uiBox) + log(true, "tried to make a box") + if (newt.Name == "output") { + t.uiBox.Append(g, true) + } else { + t.uiBox.Append(g, stretchy) + } } else { 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") } + */ hbox := ui.NewVerticalBox() hbox.SetPadded(padded) g.SetChild(hbox) - newt.uiGroup = g newt.uiBox = hbox newt.uiWindow = t.uiWindow - newt.Name = title + newt.uiTab = t.uiTab return &newt } |
