remove old code

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-05-29 21:24:18 -07:00
parent 9f4cfa9155
commit 4e80e1cbd6
1 changed files with 0 additions and 55 deletions

View File

@ -210,13 +210,6 @@ func ShowMainTab(wm *WindowMap) {
wm.T.SetMargined(0, true)
}
/*
func GoMainWindow() {
// Data.Window1 = new(WindowMap)
ui.Main(makeCloudWindow)
}
*/
func StartNewWindow(c *pb.Config, action string) {
log.Println("InitNewWindow() Create a new window")
var newWindowMap WindowMap
@ -224,13 +217,6 @@ func StartNewWindow(c *pb.Config, action string) {
newWindowMap.Action = action
Data.Windows = append(Data.Windows, &newWindowMap)
/*
var newBM ButtonMap
newBM.Action = "QUIT"
newBM.WM = &newWindowMap
Data.AllButtons = append(Data.AllButtons, newBM)
*/
ui.OnShouldQuit(func() bool {
// mouseClick(&newBM)
ui.Quit()
@ -298,47 +284,6 @@ func InitWindow() {
Data.State = "splash"
}
/*
func makeCloudWindow() {
Data.Window1.W = ui.NewWindow("", Data.Width, Data.Height, true)
// Window1.W.SetBorderless(true)
// create a 'fake' button entry for the mouse clicks
var newBM ButtonMap
newBM.Action = "QUIT"
newBM.W = Data.Window1.W
Data.AllButtons = append(Data.AllButtons, newBM)
Data.Window1.W.OnClosing(func(*ui.Window) bool {
mouseClick(&newBM)
return true
})
ui.OnShouldQuit(func() bool {
mouseClick(&newBM)
return true
})
Data.Window1.T = ui.NewTab()
Data.Window1.W.SetChild(Data.Window1.T)
Data.Window1.W.SetMargined(true)
// text := makeAttributedString()
// Data.Window1.Box1 = ShowSplashBox(Data.Window1.AreaText)
Data.Window1.T.Append("WIT Splash", Data.Window1.Box1)
Data.Window1.T.SetMargined(0, true)
Data.Window1.W.Show()
Data.State = "splash"
}
*/
/*
func AddVmConfigureTab(name string, pbVM *pb.Event_VM) {
CreateVmBox(Data.Window1.T, Data.CurrentVM)
}
*/
// makeEntryBox(box, "hostname:", "blah.foo.org") {
func makeEntryVbox(hbox *ui.Box, a string, startValue string, edit bool, action string) *EntryMap {
// Start 'Nickname' vertical box