2024-01-03 11:18:56 -06:00
|
|
|
package debugger
|
|
|
|
|
|
|
|
import (
|
2024-01-18 22:36:35 -06:00
|
|
|
"go.wit.com/gui"
|
2024-01-18 01:34:32 -06:00
|
|
|
"go.wit.com/lib/gadgets"
|
2024-01-03 11:18:56 -06:00
|
|
|
)
|
|
|
|
|
2024-01-04 23:28:55 -06:00
|
|
|
var me *debuggerSettings
|
|
|
|
|
|
|
|
type debuggerSettings struct {
|
2024-01-18 01:34:32 -06:00
|
|
|
ready bool
|
|
|
|
hidden bool
|
|
|
|
err error
|
2024-01-04 23:28:55 -06:00
|
|
|
|
2024-01-20 20:24:58 -06:00
|
|
|
treeRoot *gui.Node
|
2024-01-03 11:36:11 -06:00
|
|
|
|
2024-01-18 01:34:32 -06:00
|
|
|
bugWin *gadgets.BasicWindow
|
2024-01-04 23:28:55 -06:00
|
|
|
widgets *gadgets.BasicWindow
|
2024-01-18 01:34:32 -06:00
|
|
|
golang *gadgets.BasicWindow
|
|
|
|
gochan *gadgets.BasicWindow
|
2024-01-04 12:49:26 -06:00
|
|
|
|
2024-01-04 23:28:55 -06:00
|
|
|
mapWindows map[string]*gui.Node // tracks all windows that exist
|
|
|
|
}
|
|
|
|
|
|
|
|
var bugWin *gui.Node
|
2024-01-18 01:34:32 -06:00
|
|
|
|
2024-01-04 23:28:55 -06:00
|
|
|
/*
|
|
|
|
// main debugging window
|
|
|
|
var bugTab *gui.Node
|
|
|
|
var myGui *gui.Node
|
|
|
|
*/
|
2024-01-03 11:18:56 -06:00
|
|
|
|
|
|
|
// global var for checking to see if this
|
|
|
|
// window/tab for debugging a widget exists
|
|
|
|
// check the binary tree instead (?) for a window called "Widgets" (bad idea)
|
|
|
|
var bugWidget *gui.Node
|
|
|
|
|
|
|
|
// the widget all these actions are run against
|
|
|
|
var activeWidget *gui.Node
|
|
|
|
|
|
|
|
// for testing move, this is the node things are put on
|
|
|
|
var activeJunk *gui.Node
|
|
|
|
|
|
|
|
// the label where the user can see which widget is active
|
|
|
|
var activeLabel *gui.Node
|
|
|
|
var activeLabelType *gui.Node
|
|
|
|
var activeLabelNewName *gui.Node
|
|
|
|
var activeLabelNewType *gui.Node
|
|
|
|
var activeLabelNewX *gui.Node
|
|
|
|
var activeLabelNewY *gui.Node
|
|
|
|
var activeLabelNewB *gui.Node
|
|
|
|
|
|
|
|
// tmp junk
|
|
|
|
var debugGrid *gui.Node
|
|
|
|
var debugGridLabel *gui.Node
|
|
|
|
var debugWidgetBut1, debugWidgetBut2 *gui.Node
|