diff options
| author | Jeff Carr <[email protected]> | 2019-05-31 17:37:53 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-05-31 17:37:53 -0700 |
| commit | 63d561351b27e675c4159c2bc36e76ffb4376247 (patch) | |
| tree | 4e9361107cee0c7e3714b5accb74cc7d0840550e /debug.go | |
| parent | b5d51c314debff42cf479b165f400d84a6b72f7e (diff) | |
lots of changes to track windows and tabs
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'debug.go')
| -rw-r--r-- | debug.go | 20 |
1 files changed, 12 insertions, 8 deletions
@@ -56,13 +56,17 @@ func addTableTab() { // AddTableTab(Data.Window1.T, 1, "test seven", 7, parts, nil) } -func addDebuggingButtons(wm *GuiWindow, vbox *ui.Box) { +func addDebuggingButtons(box *GuiBox) { + vbox := ui.NewVerticalBox() + vbox.SetPadded(true) + box.UiBox.Append(vbox, false) + vbox.Append(ui.NewLabel("Debugging:"), false) vbox.Append(ui.NewColorButton(), false) - a := CreateButton(wm, nil, nil, "Add Account", "ADD", nil) + a := CreateButton(box, nil, nil, "Add Account", "ADD", nil) vbox.Append(a.B, false) - a = CreateButton(wm, nil, nil, "Quit", "QUIT", nil) + a = CreateButton(box, nil, nil, "Quit", "QUIT", nil) vbox.Append(a.B, false) // ATTEMPT TO ADD THE TABLE HERE @@ -74,16 +78,16 @@ func addDebuggingButtons(wm *GuiWindow, vbox *ui.Box) { vbox.Append(add2button, false) // ATTEMPT TO ADD THE TABLE HERE END - a = CreateButton(wm, nil, nil, "Hide & Show Box1&2", "HIDE", runTestHide) + a = CreateButton(box, nil, nil, "Hide & Show Box1&2", "HIDE", runTestHide) vbox.Append(a.B, false) - a = CreateButton(wm, nil, nil, "Close GUI", "QUIT", nil) + a = CreateButton(box, nil, nil, "Close GUI", "QUIT", nil) vbox.Append(a.B, false) - a = CreateButton(wm, nil, nil, "DEBUG goroutines", "DEBUG", nil) + a = CreateButton(box, nil, nil, "DEBUG goroutines", "DEBUG", nil) vbox.Append(a.B, false) - a = CreateButton(wm, nil, nil, "xterm", "XTERM", runTestExecClick) + a = CreateButton(box, nil, nil, "xterm", "XTERM", runTestExecClick) vbox.Append(a.B, false) - a = CreateButton(wm, nil, nil, "Load test.json config file", "CONFIG", nil) + a = CreateButton(box, nil, nil, "Load test.json config file", "CONFIG", nil) vbox.Append(a.B, false) } |
