summaryrefslogtreecommitdiff
path: root/treeWidget.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-31 11:34:23 -0600
committerJeff Carr <[email protected]>2025-01-31 13:47:45 -0600
commitbbdf7fefbd9d812b4db575a57d9d159d68921f7f (patch)
tree50b850c24e99e9757ff7a802f33076dbd6a7ac2f /treeWidget.go
parent73de9899a890d3babfebb2427397fb82dcc021c9 (diff)
make keyboard 'f' show what widgets are under the mouse
Diffstat (limited to 'treeWidget.go')
-rw-r--r--treeWidget.go32
1 files changed, 17 insertions, 15 deletions
diff --git a/treeWidget.go b/treeWidget.go
index d72f957..e39502f 100644
--- a/treeWidget.go
+++ b/treeWidget.go
@@ -75,8 +75,8 @@ func (w *guiWidget) IsCurrent() bool {
return w.isCurrent
}
if w.node.WidgetType == widget.Window {
- log.Log(GOCUI, "IsCurrent() found current window", w.cuiName, w.String())
- log.Log(GOCUI, "IsCurrent() window w.isCurrent =", w.isCurrent)
+ // log.Log(GOCUI, "IsCurrent() found current window", w.cuiName, w.String())
+ // log.Log(GOCUI, "IsCurrent() window w.isCurrent =", w.isCurrent)
return w.isCurrent
}
if w.node.WidgetType == widget.Root {
@@ -125,31 +125,33 @@ func (w *guiWidget) Show() {
return
}
- if w.node.WidgetType == widget.Dropdown {
- log.Log(NOW, "Show() dropdown", w.cuiName, w.String())
- log.Log(NOW, "Show() dropdown n.Strings() =", w.node.Strings())
- }
- if w.node.WidgetType == widget.Combobox {
- log.Log(NOW, "Show() dropdown", w.cuiName, w.String())
- log.Log(NOW, "Show() dropdown n.Strings() =", w.node.Strings())
- }
+ /*
+ if w.node.WidgetType == widget.Dropdown {
+ log.Log(NOW, "Show() dropdown", w.cuiName, w.String())
+ log.Log(NOW, "Show() dropdown n.Strings() =", w.node.Strings())
+ }
+ if w.node.WidgetType == widget.Combobox {
+ log.Log(NOW, "Show() dropdown", w.cuiName, w.String())
+ log.Log(NOW, "Show() dropdown n.Strings() =", w.node.Strings())
+ }
+ */
// if the widget is not in the current displayed windo
// then ignore it
- log.Log(GOCUI, "Show() widget =", w.cuiName, w.String())
- log.Log(GOCUI, "Show() w.IsCurrent() returned", w.IsCurrent())
+ // log.Log(GOCUI, "Show() widget =", w.cuiName, w.String())
+ // log.Log(GOCUI, "Show() w.IsCurrent() returned", w.IsCurrent())
if !w.IsCurrent() {
- log.Log(GOCUI, "Show() NOT drawing", w.cuiName, w.String())
+ log.Log(GOCUI, "Show() w.IsCurrent == false. NOT drawing", w.cuiName, w.String())
return
}
- log.Log(GOCUI, "Show() drawing", w.cuiName, w.String())
// finally, check if the widget State is hidden or not
if w.node.Hidden() {
+ log.Log(GOCUI, "Show() w.node.Hidden() = false. not drawing", w.cuiName, w.String())
// don't display hidden widgets
return
}
-
+ // log.Log(GOCUI, "Show() doing w.drawView()", w.cuiName, w.String())
// okay, if you made it this far, then display the widget
w.drawView()
}