summaryrefslogtreecommitdiff
path: root/debug.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-03-29 22:44:08 -0500
committerJeff Carr <[email protected]>2023-03-29 22:44:08 -0500
commit947169df5a22c9f9b53f825764747f648c70ff1e (patch)
tree3c84fffc14352329bc41e6b58910ff278c99f08c /debug.go
parent6013fde8332e8ecbffaf1a0977ba2e1da8ea8775 (diff)
ready for version v0.7.4
start deprecating toolkit.Widget switch to variable name 'ParentId' use 'ActionType' and 'WidgetType' preliminary redraw() final definition of variables 'Name' and 'Text' more cleaning of the code remove lots of dumb code bind 'd' key press to dump out debugging info early color handling in gocui! Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'debug.go')
-rw-r--r--debug.go15
1 files changed, 5 insertions, 10 deletions
diff --git a/debug.go b/debug.go
index f8df4ec..26fe5da 100644
--- a/debug.go
+++ b/debug.go
@@ -65,16 +65,9 @@ func SetFlag (s string, b bool) {
log(debugGui, "Can't set unknown flag", s)
}
- // send the flag to the toolkit
-// n := Config.flag
-// log(debugChange, "Set() toolkit flag", s, "to", b)
-// n.widget.Action = "Set"
-// n.widget.S = s
-// n.widget.B = b
-// send(nil, n) // set flag in the plugin
-
var a toolkit.Action
- a.Type = toolkit.SetFlag
+ a.ActionType = toolkit.Set
+ a.WidgetType = toolkit.Flag
a.S = s
a.B = b
// a.Widget = &newNode.widget
@@ -109,9 +102,11 @@ func (n *Node) Dump(b bool) {
Indent(b, "Height = ", n.Height)
Indent(b, "(X,Y) = ", n.X, n.Y)
Indent(b, "Next (X,Y) = ", n.NextX, n.NextY)
+ /*
Indent(b, "Widget Name = ", n.widget.Name)
Indent(b, "Widget Type = ", n.widget.Type)
- Indent(b, "Widget Id = ", n.widget.GetId())
+ Indent(b, "Widget Id = ", n.widget.Id)
+ */
if (n.parent == nil) {
Indent(b, "parent = nil")