diff options
| author | Jeff Carr <[email protected]> | 2019-06-01 01:20:20 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-06-01 01:20:20 -0700 |
| commit | bf9b5bd49d65dae7868d74d5f972510c2585ff7a (patch) | |
| tree | 6cbaf7e0b44a6054f91aa4307bb2ea41c75bdcb3 /splash.go | |
| parent | 133ed30192bce5e2b10a993aaa17d26a11bed93f (diff) | |
more control panel code removal
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'splash.go')
| -rw-r--r-- | splash.go | 79 |
1 files changed, 0 insertions, 79 deletions
diff --git a/splash.go b/splash.go deleted file mode 100644 index da03f3d..0000000 --- a/splash.go +++ /dev/null @@ -1,79 +0,0 @@ -package gui - -// import "github.com/davecgh/go-spew/spew" -// import "time" -// import "fmt" - -import "os" -import "log" -import "runtime" - -import "github.com/andlabs/ui" -import _ "github.com/andlabs/ui/winmanifest" - -func ShowSplashBox(gw *GuiWindow, newText *ui.AttributedString) *GuiBox { - log.Println("ShowSplashBox() START") - log.Println("ShowSplashBox() START gw =", gw) - if (gw == nil) { - log.Println("ShowSplashBox() WE ARE FUCKED BECAUSE WE DON'T KNOW WHAT WINDOW TO DO THIS IN") - os.Exit(0) - return nil - } - var gb *GuiBox - gb = new(GuiBox) - - gb.EntryMap = make(map[string]*GuiEntry) - gb.EntryMap["test"] = nil - - newbox := ui.NewVerticalBox() - newbox.SetPadded(true) - // gw.Box1 = hbox - gb.UiBox = newbox - gb.W = gw - gw.BoxMap["Splash"] = gb - - /* - // initialize the GuiArea{} - gb.Area = new(GuiArea) - gb.Area.Window = gw - gb.Area.UiAttrstr = newText - */ - - makeSplashArea(gb, newText) - - newbox.Append(gb.Area.UiArea, true) - - if runtime.GOOS == "linux" { - newbox.Append(ui.NewLabel("OS: Linux"), false) - } else if runtime.GOOS == "windows" { - newbox.Append(ui.NewLabel("OS: Windows"), false) - } else { - newbox.Append(ui.NewLabel("OS: " + runtime.GOOS), false) - } - - version := "Version: " + Data.Version - newbox.Append(ui.NewLabel(version), false) - - if (Data.Debug) { - if (Data.GitCommit != "") { - tmp := "git rev-list: " + Data.GitCommit - newbox.Append(ui.NewLabel(tmp), false) - } - if (Data.GoVersion != "") { - tmp := "go build version: " + Data.GoVersion - newbox.Append(ui.NewLabel(tmp), false) - } - if (Data.Buildtime != "") { - tmp := "build date: " + Data.Buildtime - newbox.Append(ui.NewLabel(tmp), false) - } - } - - log.Println("ShowSplashBox() START gb =", gb) - - okButton := CreateButton(gb, nil, nil, "OK", "AREA", nil) - newbox.Append(okButton.B, false) - - // os.Exit(0) - return gb -} |
