diff --git a/box.go b/box.go index cf215d7..90dcb39 100644 --- a/box.go +++ b/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) diff --git a/find.go b/find.go index e046161..7323596 100644 --- a/find.go +++ b/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 { diff --git a/new-structs.go b/new-structs.go index b75fe0b..109b4af 100644 --- a/new-structs.go +++ b/new-structs.go @@ -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)