parent
9f4cfa9155
commit
4e80e1cbd6
|
@ -210,13 +210,6 @@ func ShowMainTab(wm *WindowMap) {
|
||||||
wm.T.SetMargined(0, true)
|
wm.T.SetMargined(0, true)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
func GoMainWindow() {
|
|
||||||
// Data.Window1 = new(WindowMap)
|
|
||||||
ui.Main(makeCloudWindow)
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
func StartNewWindow(c *pb.Config, action string) {
|
func StartNewWindow(c *pb.Config, action string) {
|
||||||
log.Println("InitNewWindow() Create a new window")
|
log.Println("InitNewWindow() Create a new window")
|
||||||
var newWindowMap WindowMap
|
var newWindowMap WindowMap
|
||||||
|
@ -224,13 +217,6 @@ func StartNewWindow(c *pb.Config, action string) {
|
||||||
newWindowMap.Action = action
|
newWindowMap.Action = action
|
||||||
Data.Windows = append(Data.Windows, &newWindowMap)
|
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 {
|
ui.OnShouldQuit(func() bool {
|
||||||
// mouseClick(&newBM)
|
// mouseClick(&newBM)
|
||||||
ui.Quit()
|
ui.Quit()
|
||||||
|
@ -298,47 +284,6 @@ func InitWindow() {
|
||||||
Data.State = "splash"
|
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") {
|
// makeEntryBox(box, "hostname:", "blah.foo.org") {
|
||||||
func makeEntryVbox(hbox *ui.Box, a string, startValue string, edit bool, action string) *EntryMap {
|
func makeEntryVbox(hbox *ui.Box, a string, startValue string, edit bool, action string) *EntryMap {
|
||||||
// Start 'Nickname' vertical box
|
// Start 'Nickname' vertical box
|
||||||
|
|
Loading…
Reference in New Issue