diff options
| author | Jeff Carr <[email protected]> | 2023-03-23 12:35:12 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-03-23 12:35:12 -0500 |
| commit | d4787a1ebdd08359746516dbb72f1feaf95be5b6 (patch) | |
| tree | cb81756d61096ccf74af7c8cc9a15e4e00fe1da7 /toolkit/andlabs/common.go | |
| parent | 6a848bf40474365cc1c0b4da9e2f7e3e10b4d627 (diff) | |
Squashed commit of the following:v0.7.3
boxes now exist and are tracked in the binary tree
create for group and grid works
gocui plugin no longer works. TODO: fix in next release
converted everything from plugin to Action()
can remove send()
tab and window are now action()
flags moved to action()
ready for new release
pad() margion() border() all work
move worked!
go.wit.com attept 578th try
adds an early grid widget. won't work until chan
andlabs/ui grid (X,Y) works right
actually can put things in places in a grid
Queue() means shit doesn't look right on grids
lots of fucking around. why am I wasting time on image?
wow. the crazy doAppend() thing is gone
implement Action Show() and Hide()
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/andlabs/common.go')
| -rw-r--r-- | toolkit/andlabs/common.go | 41 |
1 files changed, 1 insertions, 40 deletions
diff --git a/toolkit/andlabs/common.go b/toolkit/andlabs/common.go index 2e3997b..5cfaaa5 100644 --- a/toolkit/andlabs/common.go +++ b/toolkit/andlabs/common.go @@ -2,11 +2,10 @@ package main import ( "git.wit.org/wit/gui/toolkit" -// "github.com/davecgh/go-spew/spew" ) func (t *andlabsT) commonChange(tw *toolkit.Widget) { - log(debugChange, "commonChange() START widget =", t.Name, t.Type) + log(debugChange, "commonChange() START widget =", t.tw.Name, t.tw.Type) if (tw == nil) { log(true, "commonChange() What the fuck. there is no widget t.tw == nil") return @@ -19,44 +18,6 @@ func (t *andlabsT) commonChange(tw *toolkit.Widget) { log(debugChange, "commonChange() END Widget.Custom()", t.tw.Name, t.tw.Type) } -// does some sanity checks on the internal structs of the binary tree -// TODO: probably this should not panic unless it's running in devel mode (?) -// TODO: redo this now that WidgetType is used and send() is used to package plugins -func (t *andlabsT) broken() bool { - /* - if (t.parent != nil) { - return false - } - if (t.uiBox == nil) { - if (t.uiWindow != nil) { - log(debugToolkit, "UiBox == nil. This is an empty window. Try to add a box") - t.newBox() - return false - } - log(true, "UiBox == nil. I can't add a widget without a place to put it") - // log(debugToolkit, "probably could just make a box here?") - // corruption or something horrible? - t.Dump(true) - panic("wit/gui toolkit/andlabs func broken() invalid goroutine access into this toolkit?") - panic("wit/gui toolkit/andlabs func broken() this probably should not cause the app to panic here (?)") - return true - } - if (t.uiWindow == nil) { - log(debugToolkit, "UiWindow == nil. I can't add a widget without a place to put it (IGNORING FOR NOW)") - t.Dump(debugToolkit) - return false - } - */ - return false -} -func broken(w *toolkit.Widget) bool { - if (w == nil) { - log(true, "widget == nil. I can't do anything widget") - return true - } - return false -} - func dump(p *toolkit.Widget, c *toolkit.Widget, b bool) { log(b, "Parent:") pt := mapToolkits[p] |
