summaryrefslogtreecommitdiff
path: root/treeAdd.go
diff options
context:
space:
mode:
Diffstat (limited to 'treeAdd.go')
-rw-r--r--treeAdd.go52
1 files changed, 26 insertions, 26 deletions
diff --git a/treeAdd.go b/treeAdd.go
index 078d625..2e3dbea 100644
--- a/treeAdd.go
+++ b/treeAdd.go
@@ -31,71 +31,71 @@ func setFake(n *tree.Node) {
// set the widget start width & height
// func (n *node) addWidget(n *tree.Node) {
func addWidget(n *tree.Node) {
- var nw *guiWidget
- nw = n.TK.(*guiWidget)
+ var tk *guiWidget
+ tk = n.TK.(*guiWidget)
log.Log(INFO, "setStartWH() w.id =", n.WidgetId, "n.name", n.String())
switch n.WidgetType {
case widget.Root:
log.Log(INFO, "setStartWH() rootNode w.id =", n.WidgetId, "w.name", n.String())
- nw.color = &colorRoot
+ tk.color = &colorRoot
setFake(n)
return
case widget.Flag:
- nw.color = &colorFlag
+ tk.color = &colorFlag
setFake(n)
return
case widget.Window:
- nw.frame = false
- // nw.color = &colorWindow
- nw.setColor(&colorWindow)
- me.newWindowTrigger <- true
+ tk.frame = false
+ // tk.color = &colorWindow
+ tk.setColor(&colorWindow)
+ me.newWindowTrigger <- tk
redoWindows(0, 0)
hideHelp()
showHelp()
return
case widget.Stdout:
- nw.labelN = "moreSTDOUT"
+ tk.labelN = "moreSTDOUT"
n.State.ProgName = "moreSTDOUT"
n.State.Label = "moreSTDOUT"
return
case widget.Tab:
- nw.color = &colorTab
+ tk.color = &colorTab
return
case widget.Button:
- nw.color = &colorButton
+ tk.color = &colorButton
return
case widget.Checkbox:
- nw.color = &colorCheckbox
- nw.labelN = "X " + n.State.Label
+ tk.color = &colorCheckbox
+ tk.labelN = "X " + n.State.Label
return
case widget.Dropdown:
- nw.color = &colorDropdown
+ tk.color = &colorDropdown
return
case widget.Textbox:
n.State.Label = "TEXTBOX"
- nw.labelN = " " + n.State.Label
- nw.color = &colorDropdown
+ tk.labelN = " " + n.State.Label
+ tk.color = &colorDropdown
return
case widget.Combobox:
- nw.color = &colorCombobox
+ tk.color = &colorCombobox
return
case widget.Box:
- nw.color = &colorBox
- nw.isFake = true
+ tk.color = &colorBox
+ tk.isFake = true
setFake(n)
return
case widget.Grid:
- nw.color = &colorGrid
- nw.isFake = true
+ tk.color = &colorGrid
+ tk.isFake = true
setFake(n)
return
case widget.Group:
- nw.color = &colorGroup
- nw.frame = false
+ tk.color = &colorGroup
+ tk.frame = false
return
case widget.Label:
- nw.color = &colorLabel
- nw.frame = false
+ tk.color = &colorLabel
+ tk.frame = false
return
default:
/*
@@ -104,5 +104,5 @@ func addWidget(n *tree.Node) {
}
*/
}
- nw.dumpWidget("in addWidget()")
+ tk.dumpWidget("addWidget()unknown")
}