diff options
| author | Jeff Carr <[email protected]> | 2019-06-02 12:08:53 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-06-02 12:08:53 -0700 |
| commit | 908e873d30bb3dd43cd2e010134af8c6ad8aa330 (patch) | |
| tree | 3b309050b97ec40080edac05e53b57846da9a2ae /misc.go | |
| parent | 9dc15500bcc52cee3ebcb36d1e94fb1c6ce2a301 (diff) | |
cleanups
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'misc.go')
| -rw-r--r-- | misc.go | 30 |
1 files changed, 0 insertions, 30 deletions
@@ -25,17 +25,6 @@ func GuiInit() { }) } -/* -func AddMainTab(gw *GuiWindow) *GuiBox { - log.Println("ShowMainTab() gw =", gw) - log.Println("ShowMainTab() gw.UiTab =", gw.UiTab) - - window := InitGuiWindow(Data.Config, "MAIN", nil, gw.UiWindow, gw.UiTab) - box := InitGuiBox(window, nil, ui.NewHorizontalBox(), "MAIN") - return box -} -*/ - func ShowMainTabShowBox(gw *GuiWindow, box *GuiBox) { log.Println("gui.ShowMainTabShowBox() box =", box) // gw.UiTab.Delete(0) @@ -44,25 +33,6 @@ func ShowMainTabShowBox(gw *GuiWindow, box *GuiBox) { gw.UiTab.SetMargined(0, true) } -func InitGuiBox(gw *GuiWindow, box *GuiBox, uiBox *ui.Box, name string) *GuiBox { - log.Println("InitGuiBox() START") - var newGuiBox GuiBox - newGuiBox.UiBox = uiBox - newGuiBox.Window = gw - uiBox.SetPadded(true) - - if (box != nil) { - log.Println("InitGuiBox() APPEND NEW BOX TO OLD BOX") - box.UiBox.Append(uiBox, false) - } else { - log.Println("InitGuiBox() APPEND NEW BOX TO TAB") - gw.UiTab.Append(name, uiBox) - } - gw.BoxMap[name] = &newGuiBox - log.Println("InitGuiBox() END") - return &newGuiBox -} - func InitGuiWindow(c *pb.Config, action string, maketab func(*GuiWindow) *GuiBox, uiW *ui.Window, uiT *ui.Tab) *GuiWindow { log.Println("InitGuiWindow() START") var newGuiWindow GuiWindow |
