BOX: remove GuiBox
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
f9c6083be4
commit
ad3a955750
|
@ -256,6 +256,7 @@ type TableData struct {
|
||||||
Human [20]HumanMap
|
Human [20]HumanMap
|
||||||
|
|
||||||
Box *GuiBox
|
Box *GuiBox
|
||||||
|
n *Node
|
||||||
|
|
||||||
lastRow int
|
lastRow int
|
||||||
lastColumn int
|
lastColumn int
|
||||||
|
|
12
table.go
12
table.go
|
@ -98,12 +98,11 @@ func InitColumns(mh *TableData, parts []TableColumnData) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func AddTableTab(gw *GuiWindow, name string, rowcount int, parts []TableColumnData) *TableData {
|
func AddTableTab(gw *GuiWindow, name string, rowcount int, parts []TableColumnData) *TableData {
|
||||||
node := NewWindow()
|
n := NewWindow()
|
||||||
b := node.box
|
return n.AddTableBox(name, rowcount, parts)
|
||||||
return b.AddTableBox(name, rowcount, parts)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (b *GuiBox) AddTableBox(name string, rowcount int, parts []TableColumnData) *TableData {
|
func (n *Node) AddTableBox(name string, rowcount int, parts []TableColumnData) *TableData {
|
||||||
mh := new(TableData)
|
mh := new(TableData)
|
||||||
|
|
||||||
mh.RowCount = rowcount
|
mh.RowCount = rowcount
|
||||||
|
@ -142,9 +141,10 @@ func (b *GuiBox) AddTableBox(name string, rowcount int, parts []TableColumnData)
|
||||||
|
|
||||||
// is this needed?
|
// is this needed?
|
||||||
// gw.BoxMap[name] = box
|
// gw.BoxMap[name] = box
|
||||||
mh.Box = b
|
// mh.Box = b
|
||||||
|
mh.n = n
|
||||||
|
|
||||||
b.UiBox.Append(table, true)
|
n.uiBox.Append(table, true)
|
||||||
|
|
||||||
return mh
|
return mh
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue