parent
8e88ae634f
commit
f70f743b1b
2
Makefile
2
Makefile
|
@ -47,7 +47,7 @@ update:
|
||||||
config-make-readable:
|
config-make-readable:
|
||||||
cat ~/.config/cloud-control-panel.json |jq -r --tab
|
cat ~/.config/cloud-control-panel.json |jq -r --tab
|
||||||
|
|
||||||
config-default-config:
|
config-default-config: config-delete
|
||||||
echo loading the test config
|
echo loading the test config
|
||||||
./cloud-control-panel --defaultconfig
|
./cloud-control-panel --defaultconfig
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ func main() {
|
||||||
i += 1
|
i += 1
|
||||||
c.Width = int32(400 + 50 * i)
|
c.Width = int32(400 + 50 * i)
|
||||||
c.Hostname = fmt.Sprintf("splash %d", i)
|
c.Hostname = fmt.Sprintf("splash %d", i)
|
||||||
StartNewWindow(c, false, "BLAH")
|
StartNewWindow(c, true, "BLAH")
|
||||||
|
|
||||||
i += 1
|
i += 1
|
||||||
c.Width = int32(400 + 50 * i)
|
c.Width = int32(400 + 50 * i)
|
||||||
|
@ -50,10 +50,12 @@ func main() {
|
||||||
|
|
||||||
func StartNewWindow(c *pb.Config, bg bool, action string) *gui.GuiWindow {
|
func StartNewWindow(c *pb.Config, bg bool, action string) *gui.GuiWindow {
|
||||||
log.Println("InitNewWindow() Create a new window")
|
log.Println("InitNewWindow() Create a new window")
|
||||||
|
|
||||||
var newGuiWindow *gui.GuiWindow
|
var newGuiWindow *gui.GuiWindow
|
||||||
newGuiWindow = new(gui.GuiWindow)
|
newGuiWindow = new(gui.GuiWindow)
|
||||||
newGuiWindow.C = c
|
newGuiWindow.C = c
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
ui.OnShouldQuit(func() bool {
|
ui.OnShouldQuit(func() bool {
|
||||||
// mouseClick(&newBM)
|
// mouseClick(&newBM)
|
||||||
|
|
6
main.go
6
main.go
|
@ -177,9 +177,9 @@ func mainMouseClick(b *gui.GuiButton) {
|
||||||
log.Println("\tmainMouseClick() setting current account = ", b.Account.Nick)
|
log.Println("\tmainMouseClick() setting current account = ", b.Account.Nick)
|
||||||
}
|
}
|
||||||
if (b.Action == "NEWTEXT") {
|
if (b.Action == "NEWTEXT") {
|
||||||
wm.AH.UiAttrstr = getNEWTEXT()
|
wm.Area.UiAttrstr = getNEWTEXT()
|
||||||
log.Println("AH.UiAttrstr = ", wm.AH.UiAttrstr)
|
log.Println("Area.UiAttrstr = ", wm.Area.UiAttrstr)
|
||||||
wm.AH.UiArea.QueueRedrawAll()
|
wm.Area.UiArea.QueueRedrawAll()
|
||||||
} else if (b.Action == "AREA") {
|
} else if (b.Action == "AREA") {
|
||||||
if (config == nil) {
|
if (config == nil) {
|
||||||
log.Println("gui.State = splash BUT SOMETHING HAS GONE VERY WRONG")
|
log.Println("gui.State = splash BUT SOMETHING HAS GONE VERY WRONG")
|
||||||
|
|
Loading…
Reference in New Issue