remove old code and notes
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
f8059d51d3
commit
890e294a90
|
@ -9,7 +9,6 @@ import (
|
||||||
func compareStrings(n *tree.Node, ss []string) {
|
func compareStrings(n *tree.Node, ss []string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// func (n *node) addText(a *widget.Action) {
|
|
||||||
func addText(n *tree.Node, a *widget.Action) {
|
func addText(n *tree.Node, a *widget.Action) {
|
||||||
var tk *guiWidget
|
var tk *guiWidget
|
||||||
tk = n.TK.(*guiWidget)
|
tk = n.TK.(*guiWidget)
|
||||||
|
|
1
box.go
1
box.go
|
@ -50,7 +50,6 @@ func newBox(n *tree.Node) {
|
||||||
|
|
||||||
TODO: handle user killing/closing a window using the OS
|
TODO: handle user killing/closing a window using the OS
|
||||||
*/
|
*/
|
||||||
// func (n *node) rawBox() *ui.Box {
|
|
||||||
func rawBox(n *tree.Node) *ui.Box {
|
func rawBox(n *tree.Node) *ui.Box {
|
||||||
var box *ui.Box
|
var box *ui.Box
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,6 @@ import (
|
||||||
_ "go.wit.com/dev/andlabs/ui/winmanifest"
|
_ "go.wit.com/dev/andlabs/ui/winmanifest"
|
||||||
)
|
)
|
||||||
|
|
||||||
// func (p *node) newButton(n *node) {
|
|
||||||
func newButton(p *tree.Node, n *tree.Node) {
|
func newButton(p *tree.Node, n *tree.Node) {
|
||||||
if notNew(n) {
|
if notNew(n) {
|
||||||
return
|
return
|
||||||
|
|
3
place.go
3
place.go
|
@ -91,9 +91,6 @@ func place(p *tree.Node, n *tree.Node) bool {
|
||||||
panic("tk.uiControl == nil")
|
panic("tk.uiControl == nil")
|
||||||
}
|
}
|
||||||
log.Log(ERROR, "CHECK LOGIC ON THIS. APPENDING directly into a window without a tab")
|
log.Log(ERROR, "CHECK LOGIC ON THIS. APPENDING directly into a window without a tab")
|
||||||
// log.Log(ERROR, "THIS SHOULD NEVER HAPPEN ??????? trying to place() node=", n.WidgetId, n.GetProgName(), n.Text, n.WidgetType)
|
|
||||||
// log.Log(ERROR, "THIS SHOULD NEVER HAPPEN ??????? trying to place() on parent=", p.WidgetId, p.GetProgName(), p.Text, p.WidgetType)
|
|
||||||
// panic("tk.uiControl == nil")
|
|
||||||
ptk.uiTab.Append(widget.GetString(n.State.Value), tk.uiControl)
|
ptk.uiTab.Append(widget.GetString(n.State.Value), tk.uiControl)
|
||||||
ptk.boxC += 1
|
ptk.boxC += 1
|
||||||
return true
|
return true
|
||||||
|
|
|
@ -6,7 +6,6 @@ import (
|
||||||
"go.wit.com/widget"
|
"go.wit.com/widget"
|
||||||
)
|
)
|
||||||
|
|
||||||
// func (n *node) setText(a *widget.Action) {
|
|
||||||
func setText(n *tree.Node, a *widget.Action) {
|
func setText(n *tree.Node, a *widget.Action) {
|
||||||
name := widget.GetString(a.Value)
|
name := widget.GetString(a.Value)
|
||||||
var tk *guiWidget
|
var tk *guiWidget
|
||||||
|
|
|
@ -7,10 +7,6 @@ import (
|
||||||
_ "go.wit.com/dev/andlabs/ui/winmanifest"
|
_ "go.wit.com/dev/andlabs/ui/winmanifest"
|
||||||
)
|
)
|
||||||
|
|
||||||
// var andlabs map[int]*andlabsT
|
|
||||||
// var callback func(int) bool
|
|
||||||
// var callback chan toolkit.Action
|
|
||||||
|
|
||||||
// It's probably a terrible idea to call this 'me'
|
// It's probably a terrible idea to call this 'me'
|
||||||
var me config
|
var me config
|
||||||
|
|
||||||
|
|
13
window.go
13
window.go
|
@ -37,16 +37,3 @@ func newWindow(p, n *tree.Node) {
|
||||||
win.Show()
|
win.Show()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
func (n *node) SetWindowTitle(title string) {
|
|
||||||
log.Log(CHANGE, "toolkit NewWindow", widget.GetString(n.value), "title", title)
|
|
||||||
win := n.tk.uiWindow
|
|
||||||
if win == nil {
|
|
||||||
log.Log(ERROR, "Error: no window", n.WidgetId)
|
|
||||||
} else {
|
|
||||||
win.SetTitle(title)
|
|
||||||
log.Log(CHANGE, "Setting the window title", title)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
Loading…
Reference in New Issue