diff options
| author | Jeff Carr <[email protected]> | 2019-06-02 13:40:44 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-06-02 13:40:44 -0700 |
| commit | c7402944c58285a3fd38b2b4678fdc97ada768a2 (patch) | |
| tree | fdab4570083eb3e8cbdd76818528f00450e9be63 /misc.go | |
| parent | 99792943c67cf580e066fe28c8b7f4796d304ce2 (diff) | |
finally cleaned out all protobuf references
this effort is almost done being 'cleaned'
of the code I started with. This library
is not perfect and lacks features from
andlabs/ui but it will work for our purposes
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'misc.go')
| -rw-r--r-- | misc.go | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -12,7 +12,7 @@ import pb "git.wit.com/wit/witProtobuf" // import "github.com/davecgh/go-spew/spew" -// THIS IS NOT CLEAN (almost?) +// THIS IS NOT CLEAN (except the Memory normalization example) const Xaxis = 0 const Yaxis = 1 @@ -25,14 +25,6 @@ func GuiInit() { }) } -func ShowMainTabShowBox(gw *GuiWindow, box *GuiBox) { - log.Println("gui.ShowMainTabShowBox() box =", box) - // gw.UiTab.Delete(0) - gw.BoxMap["MAIN3"] = box - // gw.UiTab.InsertAt("Main", 0, box.UiBox) - gw.UiTab.SetMargined(0, true) -} - // func InitGuiWindow(c *pb.Config, action string, maketab func(*GuiWindow) *GuiBox, uiW *ui.Window, uiT *ui.Tab) *GuiWindow { func InitGuiWindow(c *pb.Config, action string, gw *GuiWindow) *GuiWindow { log.Println("InitGuiWindow() START") @@ -177,3 +169,11 @@ func defaultMakeEntry(startValue string, edit bool, action string) *GuiEntry { return &newEntry } + +func MessageWindow(gw *GuiWindow, msg1 string, msg2 string) { + ui.MsgBox(gw.UiWindow, msg1, msg2) +} + +func ErrorWindow(gw *GuiWindow, msg1 string, msg2 string) { + ui.MsgBoxError(gw.UiWindow, msg1, msg2) +} |
