BOX: remove GuiBox
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
b90d7b96c3
commit
e74b054beb
6
box.go
6
box.go
|
@ -1,7 +1,7 @@
|
|||
package gui
|
||||
|
||||
import "log"
|
||||
import "os"
|
||||
// import "os"
|
||||
// import "reflect"
|
||||
|
||||
import "github.com/andlabs/ui"
|
||||
|
@ -102,12 +102,13 @@ func (n *Node) AddBox(axis int, name string) *Node {
|
|||
return newNode
|
||||
}
|
||||
|
||||
/*
|
||||
func (b *GuiBox) NewBox(axis int, name string) *GuiBox {
|
||||
log.Println("gui.NewBox() START")
|
||||
n := b.FindNode()
|
||||
if (n == nil) {
|
||||
log.Println("gui.NewBox() SERIOUS ERROR. CAN NOT FIND NODE")
|
||||
os.Exit(0)
|
||||
panic("gui.NewBox() SERIOUS ERROR. CAN NOT FIND NODE")
|
||||
} else {
|
||||
log.Println("gui.NewBox() node =", n.Name)
|
||||
}
|
||||
|
@ -128,6 +129,7 @@ func (b *GuiBox) NewBox(axis int, name string) *GuiBox {
|
|||
// panic("gui.NewBox")
|
||||
return newbox
|
||||
}
|
||||
*/
|
||||
|
||||
func HardBox(gw *GuiWindow, axis int, name string) *GuiBox {
|
||||
log.Println("HardBox() START axis =", axis)
|
||||
|
|
4
find.go
4
find.go
|
@ -17,6 +17,7 @@ func (n *Node) FindControl() *ui.Control {
|
|||
return n.uiControl
|
||||
}
|
||||
|
||||
/*
|
||||
func (n *Node) FindBox() *GuiBox {
|
||||
if (n.box != nil) {
|
||||
return n.box
|
||||
|
@ -34,11 +35,13 @@ func (n *Node) FindWindowBox() *GuiBox {
|
|||
}
|
||||
return n.box
|
||||
}
|
||||
*/
|
||||
|
||||
func (w *GuiWindow) FindNode() *Node {
|
||||
return w.node
|
||||
}
|
||||
|
||||
/*
|
||||
func (b *GuiBox) FindNode() *Node {
|
||||
log.Println("gui.FindNode() on GuiBox")
|
||||
if b.node != nil {
|
||||
|
@ -50,6 +53,7 @@ func (b *GuiBox) FindNode() *Node {
|
|||
os.Exit(-1)
|
||||
return nil
|
||||
}
|
||||
*/
|
||||
|
||||
func FindWindow(s string) *GuiWindow {
|
||||
for name, window := range Data.WindowMap {
|
||||
|
|
|
@ -97,10 +97,11 @@ func (n *Node) Dump() {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
func (n *Node) SetBox(box *GuiBox) {
|
||||
n.box = box
|
||||
}
|
||||
*/
|
||||
|
||||
func (n *Node) SetName(name string) {
|
||||
// n.uiType.SetName(name)
|
||||
|
|
Loading…
Reference in New Issue