summaryrefslogtreecommitdiff
path: root/structs.go
blob: 165a1d029f4cb0e7adc9444baf726f14c1b318a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
package debugger

import (
	"go.wit.com/gui"
	"go.wit.com/lib/gadgets"
	"go.wit.com/lib/gui/logsettings"
)

var me *debuggerSettings

type debuggerSettings struct {
	ready  bool
	hidden bool
	err    error

	myGui *gui.Node

	bugWin  *gadgets.BasicWindow
	widgets *gadgets.BasicWindow
	golang  *gadgets.BasicWindow
	gochan  *gadgets.BasicWindow

	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
// 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