summaryrefslogtreecommitdiff
path: root/misc.go
diff options
context:
space:
mode:
Diffstat (limited to 'misc.go')
-rw-r--r--misc.go18
1 files changed, 9 insertions, 9 deletions
diff --git a/misc.go b/misc.go
index e858fbe..3e9ec2d 100644
--- a/misc.go
+++ b/misc.go
@@ -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)
+}