update for the new protobuf
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
3b096d8145
commit
7b601a8e68
4
gui.go
4
gui.go
|
@ -41,7 +41,7 @@ func InitColumns(mh *TableData, parts []TableColumnData) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func AddTableTab(mytab *ui.Tab, mytabcount int, name string, rowcount int, parts []TableColumnData, account *pb.Config_Account) *TableData {
|
func AddTableTab(mytab *ui.Tab, mytabcount int, name string, rowcount int, parts []TableColumnData, account *pb.Account) *TableData {
|
||||||
mh := new(TableData)
|
mh := new(TableData)
|
||||||
|
|
||||||
mh.RowCount = rowcount
|
mh.RowCount = rowcount
|
||||||
|
@ -193,7 +193,7 @@ func defaultFontButtonClick(button *ui.FontButton) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func CreateButton(a *pb.Config_Account, vm *pb.Event_VM,
|
func CreateButton(a *pb.Account, vm *pb.Event_VM,
|
||||||
name string, note string, custom func(*ButtonMap)) *ui.Button {
|
name string, note string, custom func(*ButtonMap)) *ui.Button {
|
||||||
newB := ui.NewButton(name)
|
newB := ui.NewButton(name)
|
||||||
newB.OnClicked(defaultButtonClick)
|
newB.OnClicked(defaultButtonClick)
|
||||||
|
|
|
@ -99,7 +99,7 @@ func makeCloudInfoBox(custom func(*ButtonMap)) *ui.Box {
|
||||||
// which could be anything since TEXTCOLOR, TEXT, BG, etc
|
// which could be anything since TEXTCOLOR, TEXT, BG, etc
|
||||||
// fields use between 1 and 3 values internally
|
// fields use between 1 and 3 values internally
|
||||||
//
|
//
|
||||||
func AddVmsTab(name string, count int, a *pb.Config_Account) *TableData {
|
func AddVmsTab(name string, count int, a *pb.Account) *TableData {
|
||||||
var parts []TableColumnData
|
var parts []TableColumnData
|
||||||
|
|
||||||
human := 0
|
human := 0
|
||||||
|
|
|
@ -58,7 +58,7 @@ type GuiDataStructure struct {
|
||||||
|
|
||||||
// account entry textboxes
|
// account entry textboxes
|
||||||
Config *pb.Config
|
Config *pb.Config
|
||||||
Current *pb.Config_Account
|
Current *pb.Account
|
||||||
|
|
||||||
// A map of all buttons everywhere on all
|
// A map of all buttons everywhere on all
|
||||||
// windows, all tabs, across all goroutines
|
// windows, all tabs, across all goroutines
|
||||||
|
@ -102,7 +102,7 @@ type TableColumnData struct {
|
||||||
type ButtonMap struct {
|
type ButtonMap struct {
|
||||||
B *ui.Button
|
B *ui.Button
|
||||||
FB *ui.FontButton
|
FB *ui.FontButton
|
||||||
Account *pb.Config_Account
|
Account *pb.Account
|
||||||
VM *pb.Event_VM
|
VM *pb.Event_VM
|
||||||
Action string // what type of button
|
Action string // what type of button
|
||||||
aTab *GuiTabStructure
|
aTab *GuiTabStructure
|
||||||
|
@ -177,7 +177,7 @@ type TableData struct {
|
||||||
Cells [20]CellData
|
Cells [20]CellData
|
||||||
Human [20]HumanMap
|
Human [20]HumanMap
|
||||||
|
|
||||||
Account *pb.Config_Account // what account this table is for
|
Account *pb.Account // what account this table is for
|
||||||
|
|
||||||
lastRow int
|
lastRow int
|
||||||
lastColumn int
|
lastColumn int
|
||||||
|
|
Loading…
Reference in New Issue