summaryrefslogtreecommitdiff
path: root/infoTabUI.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-05-24 00:40:52 -0700
committerJeff Carr <[email protected]>2019-05-24 00:40:52 -0700
commita331ef89bc4de852aaaf5d85dfcac23cf82be444 (patch)
treeb57e046b633de33a9ea8d321c5f03f93ef20c25c /infoTabUI.go
parent5b8660e989081d9f2fc6ab5926da2c9d65b871aa (diff)
move to debugging
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'infoTabUI.go')
-rw-r--r--infoTabUI.go33
1 files changed, 20 insertions, 13 deletions
diff --git a/infoTabUI.go b/infoTabUI.go
index 08815a6..f791aff 100644
--- a/infoTabUI.go
+++ b/infoTabUI.go
@@ -17,23 +17,23 @@ func makeCloudInfoBox(custom func(int, string)) *ui.Box {
hbox := ui.NewHorizontalBox()
hbox.SetPadded(true)
- vbox := ui.NewVerticalBox()
- vbox.SetPadded(true)
- hbox.Append(vbox, false)
-
- vbox.Append(ui.NewColorButton(), false)
+ if (config.String("debugging") == "true") {
+ vbox := ui.NewVerticalBox()
+ vbox.SetPadded(true)
+ hbox.Append(vbox, false)
- vbox.Append(CreateButton("Add Account", "ADD", custom), false)
+ vbox.Append(ui.NewLabel("Debugging:"), false)
- vbox.Append(CreateButton("Quit", "QUIT", custom), false)
+ vbox.Append(ui.NewColorButton(), false)
+ vbox.Append(CreateButton("Add Account", "ADD", custom), false)
+ vbox.Append(CreateButton("Quit", "QUIT", custom), false)
- if (config.String("debugging") == "true") {
addDebuggingButtons(vbox, custom)
- }
- hbox.Append(ui.NewVerticalSeparator(), false)
+ hbox.Append(ui.NewVerticalSeparator(), false)
+ }
- vbox = ui.NewVerticalBox()
+ vbox := ui.NewVerticalBox()
vbox.SetPadded(true)
hbox.Append(vbox, true)
@@ -93,11 +93,19 @@ func makeCloudInfoBox(custom func(int, string)) *ui.Box {
row += 1
}
+ row += 1
+ agrid.Append(ui.NewLabel(""), 1, row, 1, 1, true, ui.AlignFill, false, ui.AlignFill)
+ row += 1
+ a := CreateButton("Add Account", "ADD", custom)
+ agrid.Append(a, 4, row, 1, 1, true, ui.AlignFill, false, ui.AlignFill)
+ q := CreateButton("Quit", "QUIT", custom)
+ agrid.Append(q, 5, row, 1, 1, true, ui.AlignFill, false, ui.AlignFill)
vbox.Append(agrid, false)
return hbox
}
+/*
// can not pass any args to this (?)
func setupCloudUI() {
Data.cloudWindow = ui.NewWindow("Cloud Control Panel", config.Int("width"), config.Int("height"), false)
@@ -120,6 +128,7 @@ func setupCloudUI() {
Data.cloudWindow.Show()
}
+*/
func addTableTab() {
var parts []TableColumnData
@@ -197,8 +206,6 @@ func AddVmsTab(name string, count int) *TableData {
}
func addDebuggingButtons(vbox *ui.Box, custom func(int, string)) {
- vbox.Append(ui.NewLabel("Debugging:"), false)
-
// ATTEMPT TO ADD THE TABLE HERE
add2button := ui.NewButton("Add a Test Table")
add2button.OnClicked(func(*ui.Button) {