summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-04 23:28:55 -0600
committerJeff Carr <[email protected]>2024-01-04 23:28:55 -0600
commitff32316084e11911462be420dd8310473b3d26fd (patch)
treef95e62befdccb40ed4f1b397f71a0d24ca427c3f /structs.go
parent1f0e212002c2c5b34ea23d91e504ed59d31cab22 (diff)
ah, a much cleaner start to a debugger
Finally there is some sense this debugger can finally be useful. It can be developed and worked on in isolation from the 'gui' package therefore it can call more sophisticated widget collections. 'gadgets' all moved to gadgets.BasicWindow() thank goodness all this code is isolated finally can finally rename the files first gadgets.BasicWindow() Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go30
1 files changed, 24 insertions, 6 deletions
diff --git a/structs.go b/structs.go
index 8d4e9f9..8997887 100644
--- a/structs.go
+++ b/structs.go
@@ -2,17 +2,35 @@ package debugger
import (
"go.wit.com/gui/gui"
+ "go.wit.com/gui/gadgets"
"go.wit.com/gui/gadgets/logsettings"
)
-// main debugging window
-var myGui *gui.Node
-var bugWin *gui.Node
-var bugTab *gui.Node
+var me *debuggerSettings
+
+type debuggerSettings struct {
+ ready bool
+ hidden bool
+ err error
+
+ myGui *gui.Node
-var myLS *logsettings.LogSettings
+ bugWin *gadgets.BasicWindow
+ widgets *gadgets.BasicWindow
+ golang *gadgets.BasicWindow
+ gochan *gadgets.BasicWindow
-var mapWindows map[string]*gui.Node // tracks all windows that exist
+ myLS *logsettings.LogSettings
+
+ mapWindows map[string]*gui.Node // tracks all windows that exist
+}
+
+var bugWin *gui.Node
+/*
+// main debugging window
+var bugTab *gui.Node
+var myGui *gui.Node
+*/
// global var for checking to see if this
// window/tab for debugging a widget exists