summaryrefslogtreecommitdiff
path: root/debugFlags.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-03-23 12:35:12 -0500
committerJeff Carr <[email protected]>2023-03-23 12:35:12 -0500
commitd4787a1ebdd08359746516dbb72f1feaf95be5b6 (patch)
treecb81756d61096ccf74af7c8cc9a15e4e00fe1da7 /debugFlags.go
parent6a848bf40474365cc1c0b4da9e2f7e3e10b4d627 (diff)
Squashed commit of the following:v0.7.3
boxes now exist and are tracked in the binary tree create for group and grid works gocui plugin no longer works. TODO: fix in next release converted everything from plugin to Action() can remove send() tab and window are now action() flags moved to action() ready for new release pad() margion() border() all work move worked! go.wit.com attept 578th try adds an early grid widget. won't work until chan andlabs/ui grid (X,Y) works right actually can put things in places in a grid Queue() means shit doesn't look right on grids lots of fucking around. why am I wasting time on image? wow. the crazy doAppend() thing is gone implement Action Show() and Hide() Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'debugFlags.go')
-rw-r--r--debugFlags.go27
1 files changed, 18 insertions, 9 deletions
diff --git a/debugFlags.go b/debugFlags.go
index 322d2a2..a69eb9f 100644
--- a/debugFlags.go
+++ b/debugFlags.go
@@ -33,50 +33,59 @@ func (n *Node) DebugFlags(makeWindow bool) {
})
g = w.NewGroup("List")
+ g = g.NewGrid("flags grid", 2, 2)
// generally useful debugging
- cb1 := g.NewCheckbox("debug Gui (like verbose=1)")
+ cb1 := g.NewCheckbox("debug Gui")
+ g.NewLabel("like verbose=1")
cb1.Custom = func() {
debugGui = cb1.widget.B
log(debugGui, "Custom() n.widget =", cb1.widget.Name, cb1.widget.B)
}
// errors. by default these always output somewhere
- cbE := g.NewCheckbox("debug Error (bad things. default=true)")
+ cbE := g.NewCheckbox("debug Error")
+ g.NewLabel("(bad things. default=true)")
cbE.Custom = func() {
SetFlag("Error", cbE.widget.B)
}
// debugging that will show you things like mouse clicks, user inputing text, etc
// also set toolkit.DebugChange
- cb2 := g.NewCheckbox("debug Change (keyboard and mouse events)")
+ cb2 := g.NewCheckbox("debug Change")
+ g.NewLabel("keyboard and mouse events")
cb2.Custom = func() {
SetFlag("Change", cb2.widget.B)
}
// supposed to tell if you are going to dump full variable output
- cb3 := g.NewCheckbox("debug Dump (show lots of output)")
+ cb3 := g.NewCheckbox("debug Dump")
+ g.NewLabel("show lots of output")
cb3.Custom = func() {
SetFlag("Dump", cbE.widget.B)
}
- cb4 := g.NewCheckbox("debug Tabs (tabs and windows)")
+ cb4 := g.NewCheckbox("debug Tabs")
+ g.NewLabel("tabs and windows")
cb4.Custom = func() {
SetFlag("Tabs", cb4.widget.B)
}
- cb6 := g.NewCheckbox("debug Node (the binary tree)")
+ cb6 := g.NewCheckbox("debug Node")
+ g.NewLabel("the binary tree)")
cb6.Custom = func() {
- SetFlag("Plugin", cb6.widget.B)
+ SetFlag("Node", cb6.widget.B)
}
// should show you when things go into or come back from the plugin
- cb5 := g.NewCheckbox("debug Plugin (plugin interaction)")
+ cb5 := g.NewCheckbox("debug Plugin")
+ g.NewLabel("plugin interaction)")
cb5.Custom = func() {
SetFlag("Plugin", cb5.widget.B)
}
// turns on debugging inside the plugin toolkit
- cb7 := g.NewCheckbox("debug Toolkit (the plugin internals)")
+ cb7 := g.NewCheckbox("debug Toolkit")
+ g.NewLabel("the plugin internals)")
cb7.Custom = func() {
// SetDebugToolkit(cb7.widget.B)
SetFlag("Toolkit", cb7.widget.B)