diff options
| author | Jeff Carr <[email protected]> | 2024-01-27 16:10:22 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-27 16:10:22 -0600 |
| commit | 890e294a906478ea4b20d132660b33d5f8174da4 (patch) | |
| tree | 1e1d890916dce8cb31cb5e9158aa516410460427 | |
| parent | f8059d51d3c16df3903ba06afc1e9ca5898383df (diff) | |
remove old code and notes
Signed-off-by: Jeff Carr <[email protected]>
| -rw-r--r-- | addText.go | 1 | ||||
| -rw-r--r-- | box.go | 1 | ||||
| -rw-r--r-- | button.go | 1 | ||||
| -rw-r--r-- | place.go | 3 | ||||
| -rw-r--r-- | setText.go | 1 | ||||
| -rw-r--r-- | structs.go | 4 | ||||
| -rw-r--r-- | window.go | 13 |
7 files changed, 0 insertions, 24 deletions
@@ -9,7 +9,6 @@ import ( func compareStrings(n *tree.Node, ss []string) { } -// func (n *node) addText(a *widget.Action) { func addText(n *tree.Node, a *widget.Action) { var tk *guiWidget tk = n.TK.(*guiWidget) @@ -50,7 +50,6 @@ func newBox(n *tree.Node) { TODO: handle user killing/closing a window using the OS */ -// func (n *node) rawBox() *ui.Box { func rawBox(n *tree.Node) *ui.Box { var box *ui.Box @@ -7,7 +7,6 @@ import ( _ "go.wit.com/dev/andlabs/ui/winmanifest" ) -// func (p *node) newButton(n *node) { func newButton(p *tree.Node, n *tree.Node) { if notNew(n) { return @@ -91,9 +91,6 @@ func place(p *tree.Node, n *tree.Node) bool { panic("tk.uiControl == nil") } log.Log(ERROR, "CHECK LOGIC ON THIS. APPENDING directly into a window without a tab") - // log.Log(ERROR, "THIS SHOULD NEVER HAPPEN ??????? trying to place() node=", n.WidgetId, n.GetProgName(), n.Text, n.WidgetType) - // log.Log(ERROR, "THIS SHOULD NEVER HAPPEN ??????? trying to place() on parent=", p.WidgetId, p.GetProgName(), p.Text, p.WidgetType) - // panic("tk.uiControl == nil") ptk.uiTab.Append(widget.GetString(n.State.Value), tk.uiControl) ptk.boxC += 1 return true @@ -6,7 +6,6 @@ import ( "go.wit.com/widget" ) -// func (n *node) setText(a *widget.Action) { func setText(n *tree.Node, a *widget.Action) { name := widget.GetString(a.Value) var tk *guiWidget @@ -7,10 +7,6 @@ import ( _ "go.wit.com/dev/andlabs/ui/winmanifest" ) -// var andlabs map[int]*andlabsT -// var callback func(int) bool -// var callback chan toolkit.Action - // It's probably a terrible idea to call this 'me' var me config @@ -37,16 +37,3 @@ func newWindow(p, n *tree.Node) { win.Show() return } - -/* -func (n *node) SetWindowTitle(title string) { - log.Log(CHANGE, "toolkit NewWindow", widget.GetString(n.value), "title", title) - win := n.tk.uiWindow - if win == nil { - log.Log(ERROR, "Error: no window", n.WidgetId) - } else { - win.SetTitle(title) - log.Log(CHANGE, "Setting the window title", title) - } -} -*/ |
