diff options
| author | Jeff Carr <[email protected]> | 2021-10-25 05:41:12 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2021-10-25 05:41:12 -0500 |
| commit | c4012643faf61722e319e8126b0adc55bd67294d (patch) | |
| tree | 689157c61abf7aa283421fb652c2760ef228a9f9 /window-debug.go | |
| parent | cbb777cb3dabee7fd7a9979bf4690a4ebf593666 (diff) | |
CLEAN: clean up labels
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'window-debug.go')
| -rw-r--r-- | window-debug.go | 39 |
1 files changed, 14 insertions, 25 deletions
diff --git a/window-debug.go b/window-debug.go index 3afe8e3..69eb7bb 100644 --- a/window-debug.go +++ b/window-debug.go @@ -11,6 +11,20 @@ import ( var names = make([]string, 100) var nodeNames = make([]string, 100) +func DebugWindow() { + log.Println("START gui.DebugWindow()") + + title := "WIT GUI Debug Window" + node := InitWindow(nil, nil, title, 0) + box := node.box + window := box.Window + log.Println("box =", box) + log.Println("window =", window) + node.AddDebugTab("WIT GUI Debug Tab") + + window.UiWindow.Show() +} + // TODO: remove this crap // What does this actually do? // It populates the nodeNames in a map. No, not a map, an array. What is the difference again? @@ -278,31 +292,6 @@ func addGroup(b *ui.Box, name string) *ui.Box { return vbox } -func FindWindow(s string) *GuiWindow { - for name, window := range Data.WindowMap { - if name == s { - return window - } - } - log.Printf("COULD NOT FIND WINDOW", s) - return nil -} - -func FindBox(s string) *GuiBox { - for name, window := range Data.WindowMap { - if name != s { - continue - } - for name, abox := range window.BoxMap { - log.Printf("gui.DumpBoxes() \tBOX mapname=%-12s abox.Name=%-12s", name, abox.Name) - return abox - } - log.Println("gui.FindBox() NEED TO INIT WINDOW name =", name) - } - log.Println("gui.FindBox() COULD NOT FIND BOX", s) - return nil -} - func dumpBox(s string) { var name string var window *GuiWindow |
