diff options
Diffstat (limited to 'mainWindow.go')
| -rw-r--r-- | mainWindow.go | 53 |
1 files changed, 28 insertions, 25 deletions
diff --git a/mainWindow.go b/mainWindow.go index 8f688c8..460b76b 100644 --- a/mainWindow.go +++ b/mainWindow.go @@ -23,7 +23,7 @@ func DebugWindow(p *gui.Node) { } func DebugWindow2(n *gui.Node, title string) *gui.Node { - var newW, newB, gog, g1 *gui.Node + var newW, newB, gr *gui.Node // var logSettings *gadgets.LogSettings // time.Sleep(1 * time.Second) @@ -32,56 +32,50 @@ func DebugWindow2(n *gui.Node, title string) *gui.Node { newB = newW.NewBox("hBox", true) //////////////////////// main debug things ////////////////////////////////// - gog = newB.NewGroup("Debugging Windows:") + gr = newB.NewGroup("Debugging Windows:") - gog.NewButton("logging", func () { + gr.NewButton("logging", func () { DebugFlags(myGui) }) - gog.NewButton("Debug Widgets", func () { + gr.NewButton("Debug Widgets", func () { DebugWidgetWindow(myGui) }) - gog.NewButton("GO Language Internals", func () { - DebugGolangWindow(bugWin) - }) - gog.NewButton("GO Channels debug", func () { - DebugGoChannels(bugWin) - }) - gog.NewLabel("Force Quit:") + gr.NewLabel("Force Quit:") - gog.NewButton("os.Exit()", func () { + gr.NewButton("os.Exit()", func () { os.Exit(0) }) //////////////////////// window debugging things ////////////////////////////////// - g1 = newB.NewGroup("list things") + gr = newB.NewGroup("list things") - g1.NewButton("List toolkits", func () { - dropdownWindow(g1) + gr.NewButton("List toolkits", func () { + dropdownWindow(gr) bugWin.ListToolkits() }) - g1.NewButton("List Windows", func () { - dropdownWindow(g1) + gr.NewButton("List Windows", func () { + dropdownWindow(gr) }) - g1.NewButton("List Window Widgets", func () { - dropdownWindowWidgets(g1) + gr.NewButton("List Window Widgets", func () { + dropdownWindowWidgets(gr) }) - g2 := newB.NewGroup("more things") + gr = newB.NewGroup("more things") - g2.NewButton("Node.ListChildren(true)", func () { + gr.NewButton("Node.ListChildren(true)", func () { if (activeWidget == nil) { activeWidget = bugWin } activeWidget.ListChildren(true) }) - g2.NewButton("test conc", func () { + gr.NewButton("test conc", func () { log.Log(true, "TODO: fix me") // makeConc() }) - g2.NewButton("List Plugins", func () { + gr.NewButton("List Plugins", func () { log.Log(true, "TODO: fix me") /* for _, aplug := range allPlugins { @@ -90,14 +84,23 @@ func DebugWindow2(n *gui.Node, title string) *gui.Node { */ }) - g2.NewButton("load toolkit 'gocui'", func () { + gr.NewButton("load toolkit 'gocui'", func () { bugWin.LoadToolkit("gocui") }) - g2.NewButton("load toolkit 'andlabs'", func () { + gr.NewButton("load toolkit 'andlabs'", func () { bugWin.LoadToolkit("andlabs") }) + gr = newB.NewGroup("Learn GO") + + gr.NewButton("GO Language Internals", func () { + DebugGolangWindow(myGui) + }) + gr.NewButton("GO Channels debug", func () { + DebugGoChannels(myGui) + }) + return newB } |
