diff options
| author | Jeff Carr <[email protected]> | 2019-05-31 23:29:06 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-05-31 23:29:06 -0700 |
| commit | 7fb156963dba9e6a6accc07c07ede3a873a7fd4b (patch) | |
| tree | bdf8423400964f95d5cde05b207b005db6c6a07c | |
| parent | a9c1b9321e19d28a1b0b0368094a7d648837d763 (diff) | |
start moving vm logic into the control panel
Signed-off-by: Jeff Carr <[email protected]>
| -rw-r--r-- | gui.go | 6 | ||||
| -rw-r--r-- | vmBox.go | 68 |
2 files changed, 0 insertions, 74 deletions
@@ -109,12 +109,6 @@ func AddTableTab(gw *GuiWindow, name string, rowcount int, parts []TableColumnDa return mh } -func SocketError(gw *GuiWindow) { - ui.MsgBoxError(gw.UiWindow, - "There was a socket error", - "More detailed information can be shown here.") -} - func MessageWindow(gw *GuiWindow, msg1 string, msg2 string) { ui.MsgBox(gw.UiWindow, msg1, msg2) } @@ -112,71 +112,3 @@ func createAddVmBox(gw *GuiWindow, b *GuiButton) { AddBoxToTab(name, gw.UiTab, vbox) } - -// -// THIS IS THE STANDARD VM DISPLAY TABLE -// This maps the 'human' indexed cells in the table -// to the machine's andlabs/libui values. That way -// if you want to work against column 4, then you -// can just reference 4 instead of the internal number -// which could be anything since TEXTCOLOR, TEXT, BG, etc -// fields use between 1 and 3 values internally -// -func AddVmsTab(gw *GuiWindow, name string, count int, a *pb.Account) *TableData { - var parts []TableColumnData - - human := 0 - - tmp := TableColumnData{} - tmp.CellType = "BG" - tmp.Heading = "background" - tmp.Index = human - parts = append(parts, tmp) - human += 1 - - tmp = TableColumnData{} - tmp.CellType = "TEXTCOLOR" - tmp.Heading = "name" - tmp.Index = human - parts = append(parts, tmp) - human += 1 - - tmp = TableColumnData{} - tmp.CellType = "TEXTCOLOR" - tmp.Heading = "hostname" - tmp.Index = human - parts = append(parts, tmp) - human += 1 - - tmp = TableColumnData{} - tmp.CellType = "TEXTCOLOR" - tmp.Heading = "IPv6" - tmp.Index = human - parts = append(parts, tmp) - human += 1 - - tmp = TableColumnData{} - tmp.CellType = "TEXTCOLOR" - tmp.Heading = "cpus" - tmp.Index = human - parts = append(parts, tmp) - human += 1 - - tmp = TableColumnData{} - tmp.CellType = "TEXTCOLOR" - tmp.Heading = "memory" - tmp.Index = human - parts = append(parts, tmp) - human += 1 - - tmp = TableColumnData{} - tmp.CellType = "BUTTON" - tmp.Heading = "Details" - tmp.Index = human - parts = append(parts, tmp) - human += 1 - - mh := AddTableTab(gw, name, count, parts, a) -// mh := - return mh -} |
