From 29ca3e06a04e85e96071a52ec3745b7c54ddf795 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 18 Jan 2024 03:51:04 -0600 Subject: move widget Signed-off-by: Jeff Carr --- action.go | 2 +- addText.go | 2 +- box.go | 2 +- button.go | 2 +- checkbox.go | 2 +- common.go | 2 +- debug.go | 2 +- dropdown.go | 2 +- go.mod | 2 +- go.sum | 4 ++-- grid.go | 2 +- group.go | 2 +- image.go | 2 +- label.go | 2 +- main.go | 2 +- node.go | 2 +- plugin.go | 2 +- redraw.go | 2 +- separator.go | 2 +- setText.go | 2 +- slider.go | 2 +- spinner.go | 2 +- structs.go | 2 +- textbox.go | 2 +- window.go | 2 +- 25 files changed, 26 insertions(+), 26 deletions(-) diff --git a/action.go b/action.go index 0aa075c..77b839e 100644 --- a/action.go +++ b/action.go @@ -12,8 +12,8 @@ package gui import ( "errors" - "go.wit.com/lib/widget" "go.wit.com/log" + "go.wit.com/widget" ) // 2024/01/11 finally moving to type any. simplify to just 'value' diff --git a/addText.go b/addText.go index 4187115..be72cc1 100644 --- a/addText.go +++ b/addText.go @@ -1,8 +1,8 @@ package gui import ( - "go.wit.com/lib/widget" "go.wit.com/log" + "go.wit.com/widget" ) // tracks dropdown and combobox entries. Makes sure they are unique diff --git a/box.go b/box.go index 1e35a0b..87276e8 100644 --- a/box.go +++ b/box.go @@ -1,7 +1,7 @@ package gui import ( - "go.wit.com/lib/widget" + "go.wit.com/widget" ) func (parent *Node) NewBox(progname string, b bool) *Node { diff --git a/button.go b/button.go index 14d3328..7033723 100644 --- a/button.go +++ b/button.go @@ -1,6 +1,6 @@ package gui -import "go.wit.com/lib/widget" +import "go.wit.com/widget" func (parent *Node) NewButton(name string, custom func()) *Node { newNode := parent.newNode(name, widget.Button) diff --git a/checkbox.go b/checkbox.go index db0c9a3..7771c69 100644 --- a/checkbox.go +++ b/checkbox.go @@ -1,6 +1,6 @@ package gui -import "go.wit.com/lib/widget" +import "go.wit.com/widget" func (n *Node) Checked() bool { return widget.GetBool(n.value) diff --git a/common.go b/common.go index 4eee105..755872a 100644 --- a/common.go +++ b/common.go @@ -3,8 +3,8 @@ package gui // Common actions for widgets like 'Enable' or 'Hide' import ( - "go.wit.com/lib/widget" "go.wit.com/log" + "go.wit.com/widget" "regexp" ) diff --git a/debug.go b/debug.go index 371de36..e4f46ff 100644 --- a/debug.go +++ b/debug.go @@ -8,8 +8,8 @@ import ( "errors" "strconv" - "go.wit.com/lib/widget" "go.wit.com/log" + "go.wit.com/widget" ) // for printing out the binary tree diff --git a/dropdown.go b/dropdown.go index 4d61b1a..1103288 100644 --- a/dropdown.go +++ b/dropdown.go @@ -6,7 +6,7 @@ package gui // since it is the same. confusing names? maybe... import ( - "go.wit.com/lib/widget" + "go.wit.com/widget" ) /* diff --git a/go.mod b/go.mod index 4aa2794..4c8acd4 100644 --- a/go.mod +++ b/go.mod @@ -4,8 +4,8 @@ go 1.21.4 require ( go.wit.com/dev/alexflint/arg v1.4.5 - go.wit.com/gui/widget v1.1.4 go.wit.com/log v0.5.5 + go.wit.com/widget v1.1.5 ) require ( diff --git a/go.sum b/go.sum index eff5e76..d4d1001 100644 --- a/go.sum +++ b/go.sum @@ -4,7 +4,7 @@ go.wit.com/dev/alexflint/scalar v1.2.1 h1:loXOcbVnd+8YeJRLey+XXidecBiedMDO00zQ26 go.wit.com/dev/alexflint/scalar v1.2.1/go.mod h1:+rYsfxqdI2cwA8kJ7GCMwWbNJvfvWUurOCXLiwdTtSs= go.wit.com/dev/davecgh/spew v1.1.4 h1:C9hj/rjlUpdK+E6aroyLjCbS5MFcyNUOuP1ICLWdNek= go.wit.com/dev/davecgh/spew v1.1.4/go.mod h1:sihvWmnQ/09FWplnEmozt90CCVqBtGuPXM811tgfhFA= -go.wit.com/gui/widget v1.1.4 h1:dCztWNSuTSSP+/M8h8F3cT7vWtoKdCL3DUQql0qLKdk= -go.wit.com/gui/widget v1.1.4/go.mod h1:A6/FaiFQtAHTjgo7c4FrokXe6bXX1Cowo35b2Lgi31E= go.wit.com/log v0.5.5 h1:bK3b94uVKgev4jB5wg06FnvCFBEapQICTSH2YW+CWr4= go.wit.com/log v0.5.5/go.mod h1:BaJBfHFqcJSJLXGQ9RHi3XVhPgsStxSMZRlaRxW4kAo= +go.wit.com/widget v1.1.5 h1:jx5hJ2WLZJnCcvMuaLHegzpNlzwo+0kOkzsRkzRiB30= +go.wit.com/widget v1.1.5/go.mod h1:I8tnD3x3ECbB/CRNnLCdC+uoyk7rK0AEkzK1bQYSqoQ= diff --git a/grid.go b/grid.go index 244159f..168973a 100644 --- a/grid.go +++ b/grid.go @@ -1,8 +1,8 @@ package gui import ( - "go.wit.com/lib/widget" "go.wit.com/log" + "go.wit.com/widget" ) // Grid numbering examples (H) or (W,H) diff --git a/group.go b/group.go index e764ea1..fd47dc1 100644 --- a/group.go +++ b/group.go @@ -1,7 +1,7 @@ package gui import ( - "go.wit.com/lib/widget" + "go.wit.com/widget" ) // TODO: make a "Group" a "Grid" ? diff --git a/image.go b/image.go index d3ff21b..dc6c5a2 100644 --- a/image.go +++ b/image.go @@ -1,8 +1,8 @@ package gui import ( - "go.wit.com/lib/widget" "go.wit.com/log" + "go.wit.com/widget" ) func (parent *Node) NewImage(name string) *Node { diff --git a/label.go b/label.go index 32e61b6..23e2de4 100644 --- a/label.go +++ b/label.go @@ -1,7 +1,7 @@ package gui import ( - "go.wit.com/lib/widget" + "go.wit.com/widget" ) func (parent *Node) NewLabel(text string) *Node { diff --git a/main.go b/main.go index 19aea2e..7c834ca 100644 --- a/main.go +++ b/main.go @@ -3,8 +3,8 @@ package gui import ( "os" - "go.wit.com/lib/widget" "go.wit.com/log" + "go.wit.com/widget" ) // TODO: make a fake 'plugin' channel of communication to andlabs for mswindows diff --git a/node.go b/node.go index 1ce8565..1df9dd3 100644 --- a/node.go +++ b/node.go @@ -1,8 +1,8 @@ package gui import ( - "go.wit.com/lib/widget" "go.wit.com/log" + "go.wit.com/widget" ) /* diff --git a/plugin.go b/plugin.go index f957dba..0d1049a 100644 --- a/plugin.go +++ b/plugin.go @@ -10,8 +10,8 @@ import ( "os" "plugin" - "go.wit.com/lib/widget" "go.wit.com/log" + "go.wit.com/widget" ) var err error diff --git a/redraw.go b/redraw.go index 3fb5a18..8a5b609 100644 --- a/redraw.go +++ b/redraw.go @@ -1,8 +1,8 @@ package gui import ( - "go.wit.com/lib/widget" "go.wit.com/log" + "go.wit.com/widget" ) // This recreates the whole GUI for a plugin diff --git a/separator.go b/separator.go index 8da91bc..a4b47bf 100644 --- a/separator.go +++ b/separator.go @@ -1,7 +1,7 @@ package gui import ( - "go.wit.com/lib/widget" + "go.wit.com/widget" ) func (parent *Node) NewSeparator(progname string) *Node { diff --git a/setText.go b/setText.go index 3934fa3..eb09640 100644 --- a/setText.go +++ b/setText.go @@ -5,8 +5,8 @@ package gui import ( "errors" - "go.wit.com/lib/widget" "go.wit.com/log" + "go.wit.com/widget" ) func (n *Node) SetText(text string) *Node { diff --git a/slider.go b/slider.go index f30d386..39df295 100644 --- a/slider.go +++ b/slider.go @@ -1,8 +1,8 @@ package gui import ( - "go.wit.com/lib/widget" "go.wit.com/log" + "go.wit.com/widget" ) func (parent *Node) NewSlider(progname string, x int, y int) *Node { diff --git a/spinner.go b/spinner.go index a5ab4f7..e10ad4d 100644 --- a/spinner.go +++ b/spinner.go @@ -1,8 +1,8 @@ package gui import ( - "go.wit.com/lib/widget" "go.wit.com/log" + "go.wit.com/widget" ) func (parent *Node) NewSpinner(progname string, x int, y int) *Node { diff --git a/structs.go b/structs.go index ad4f5fd..2f01c66 100644 --- a/structs.go +++ b/structs.go @@ -2,7 +2,7 @@ package gui import ( "embed" - "go.wit.com/lib/widget" + "go.wit.com/widget" "sync" ) diff --git a/textbox.go b/textbox.go index a4f9500..b306ec6 100644 --- a/textbox.go +++ b/textbox.go @@ -3,7 +3,7 @@ package gui import ( "go.wit.com/log" - "go.wit.com/lib/widget" + "go.wit.com/widget" ) func (parent *Node) NewTextbox(name string) *Node { diff --git a/window.go b/window.go index 36075d8..3b9e535 100644 --- a/window.go +++ b/window.go @@ -1,8 +1,8 @@ package gui import ( - "go.wit.com/lib/widget" "go.wit.com/log" + "go.wit.com/widget" ) // This routine creates a blank window with a Title and size (W x H) -- cgit v1.2.3