more removal of cloud-control-panel specific code
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
a9c621d503
commit
f00e40d649
38
debug.go
38
debug.go
|
@ -3,45 +3,17 @@ package gui
|
||||||
import "log"
|
import "log"
|
||||||
import "time"
|
import "time"
|
||||||
import "fmt"
|
import "fmt"
|
||||||
import "strings"
|
|
||||||
import "os/exec"
|
|
||||||
import "runtime"
|
|
||||||
import "reflect"
|
import "reflect"
|
||||||
|
|
||||||
import "github.com/andlabs/ui"
|
// import "github.com/andlabs/ui"
|
||||||
import _ "github.com/andlabs/ui/winmanifest"
|
// import _ "github.com/andlabs/ui/winmanifest"
|
||||||
|
|
||||||
import "github.com/davecgh/go-spew/spew"
|
// import "github.com/davecgh/go-spew/spew"
|
||||||
|
|
||||||
// import pb "git.wit.com/wit/witProtobuf"
|
// import pb "git.wit.com/wit/witProtobuf"
|
||||||
|
|
||||||
// THIS IS NOT CLEAN (but probably doesn't need to be. it's debugging)
|
// THIS IS NOT CLEAN (but probably doesn't need to be. it's debugging)
|
||||||
|
|
||||||
// can not pass any args to this (?)
|
|
||||||
/*
|
|
||||||
func setupCloudUI() {
|
|
||||||
Data.Window1.W = ui.NewWindow("Cloud Control Panel", Data.Width, Data.Height, false)
|
|
||||||
Data.Window1.W.OnClosing(func(*ui.Window) bool {
|
|
||||||
ui.Quit()
|
|
||||||
return true
|
|
||||||
})
|
|
||||||
ui.OnShouldQuit(func() bool {
|
|
||||||
Data.Window1.W.Destroy()
|
|
||||||
return true
|
|
||||||
})
|
|
||||||
|
|
||||||
Data.Window1.T = ui.NewTab()
|
|
||||||
Data.Window1.W.SetChild(Data.Window1.T)
|
|
||||||
Data.Window1.W.SetMargined(true)
|
|
||||||
|
|
||||||
// Data.tabcount = 0
|
|
||||||
Data.Window1.T.Append("Cloud Info", makeCloudInfoBox())
|
|
||||||
// Data.Window1.T.SetMargined(Data.tabcount, true)
|
|
||||||
|
|
||||||
Data.Window1.W.Show()
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
func addTableTab() {
|
func addTableTab() {
|
||||||
var parts []TableColumnData
|
var parts []TableColumnData
|
||||||
|
|
||||||
|
@ -59,6 +31,7 @@ func addTableTab() {
|
||||||
// AddTableTab(Data.Window1.T, 1, "test seven", 7, parts, nil)
|
// AddTableTab(Data.Window1.T, 1, "test seven", 7, parts, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
func addDebuggingButtons(box *GuiBox) {
|
func addDebuggingButtons(box *GuiBox) {
|
||||||
vbox := ui.NewVerticalBox()
|
vbox := ui.NewVerticalBox()
|
||||||
vbox.SetPadded(true)
|
vbox.SetPadded(true)
|
||||||
|
@ -93,6 +66,7 @@ func addDebuggingButtons(box *GuiBox) {
|
||||||
a = CreateButton(box, 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)
|
vbox.Append(a.B, false)
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
func runTestHide(b *GuiButton) {
|
func runTestHide(b *GuiButton) {
|
||||||
/*
|
/*
|
||||||
|
@ -105,6 +79,7 @@ func runTestHide(b *GuiButton) {
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
func runPingClick(b *GuiButton) {
|
func runPingClick(b *GuiButton) {
|
||||||
log.Println("runPingClick START")
|
log.Println("runPingClick START")
|
||||||
log.Println("runTestExecClick b.VM", b.VM)
|
log.Println("runTestExecClick b.VM", b.VM)
|
||||||
|
@ -149,6 +124,7 @@ func runCommand(cmdArgs []string) {
|
||||||
log.Println("runCommand() OTHERWISE INFORM THE USER")
|
log.Println("runCommand() OTHERWISE INFORM THE USER")
|
||||||
log.Println("runCommand() END")
|
log.Println("runCommand() END")
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
//
|
//
|
||||||
// this watches the GUI primarily to process protobuf's
|
// this watches the GUI primarily to process protobuf's
|
||||||
|
|
2
misc.go
2
misc.go
|
@ -46,11 +46,13 @@ func AddMainTab(gw *GuiWindow) *GuiBox {
|
||||||
|
|
||||||
box := InitGuiBox(window, nil, ui.NewHorizontalBox(), "MAIN")
|
box := InitGuiBox(window, nil, ui.NewHorizontalBox(), "MAIN")
|
||||||
|
|
||||||
|
/*
|
||||||
if (Data.Debug) {
|
if (Data.Debug) {
|
||||||
log.Println("makeCloudInfoBox() add debugging buttons")
|
log.Println("makeCloudInfoBox() add debugging buttons")
|
||||||
addDebuggingButtons(box)
|
addDebuggingButtons(box)
|
||||||
box.UiBox.Append(ui.NewVerticalSeparator(), false)
|
box.UiBox.Append(ui.NewVerticalSeparator(), false)
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
// box := gw.MakeWindow(gw)
|
// box := gw.MakeWindow(gw)
|
||||||
// abox := makeCloudInfoBox(gw, box)
|
// abox := makeCloudInfoBox(gw, box)
|
||||||
|
|
Loading…
Reference in New Issue