Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-01-18 04:10:08 -06:00
parent 3ac6b2486a
commit f25caa5b5c
15 changed files with 20 additions and 24 deletions

2
add.go
View File

@ -1,8 +1,8 @@
package main package main
import ( import (
"go.wit.com/lib/widget"
log "go.wit.com/log" log "go.wit.com/log"
"go.wit.com/widget"
) )
var fakeStartWidth int = me.FakeW var fakeStartWidth int = me.FakeW

View File

@ -2,7 +2,7 @@ package main
import ( import (
// "github.com/awesome-gocui/gocui" // "github.com/awesome-gocui/gocui"
"go.wit.com/lib/widget" "go.wit.com/widget"
) )
func (n *node) setCheckbox(b any) { func (n *node) setCheckbox(b any) {

View File

@ -3,8 +3,8 @@ package main
import ( import (
"fmt" "fmt"
"github.com/awesome-gocui/gocui" "github.com/awesome-gocui/gocui"
"go.wit.com/lib/widget"
"go.wit.com/log" "go.wit.com/log"
"go.wit.com/widget"
) )
// set isCurrent = false everywhere // set isCurrent = false everywhere

View File

@ -12,8 +12,8 @@ package main
*/ */
import ( import (
"go.wit.com/lib/widget"
"go.wit.com/log" "go.wit.com/log"
"go.wit.com/widget"
) )
// this is the channel we send user events like // this is the channel we send user events like

View File

@ -2,8 +2,8 @@ package main
import ( import (
"fmt" "fmt"
"go.wit.com/lib/widget"
"go.wit.com/log" "go.wit.com/log"
"go.wit.com/widget"
) )
func (n *node) dumpTree(draw bool) { func (n *node) dumpTree(draw bool) {

6
go.mod
View File

@ -1,11 +1,11 @@
module go.wit.com/gui/toolkits/gocui module go.wit.com/toolkits/gocui
go 1.21.4 go 1.21.4
require ( require (
github.com/awesome-gocui/gocui v1.1.0 github.com/awesome-gocui/gocui v1.1.0
go.wit.com/gui/widget v1.1.3 go.wit.com/log v0.5.5
go.wit.com/log v0.5.4 go.wit.com/widget v1.1.5
) )
require ( require (

12
go.sum
View File

@ -10,16 +10,12 @@ github.com/mattn/go-runewidth v0.0.10 h1:CoZ3S2P7pvtP45xOtBw+/mDL2z0RKI576gSkzRR
github.com/mattn/go-runewidth v0.0.10/go.mod h1:RAqKPSqVFrSLVXbA8x7dzmKdmGzieGRCM46jaSJTDAk= github.com/mattn/go-runewidth v0.0.10/go.mod h1:RAqKPSqVFrSLVXbA8x7dzmKdmGzieGRCM46jaSJTDAk=
github.com/rivo/uniseg v0.1.0 h1:+2KBaVoUmb9XzDsrx/Ct0W/EYOSFf/nWTauy++DprtY= github.com/rivo/uniseg v0.1.0 h1:+2KBaVoUmb9XzDsrx/Ct0W/EYOSFf/nWTauy++DprtY=
github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
go.wit.com/dev/davecgh/spew v1.1.3 h1:hqnB5qsPgC2cLZaJXqQJspQ5n/Ugry9kyL3tLk0hVzQ=
go.wit.com/dev/davecgh/spew v1.1.3/go.mod h1:sihvWmnQ/09FWplnEmozt90CCVqBtGuPXM811tgfhFA=
go.wit.com/dev/davecgh/spew v1.1.4 h1:C9hj/rjlUpdK+E6aroyLjCbS5MFcyNUOuP1ICLWdNek= 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/dev/davecgh/spew v1.1.4/go.mod h1:sihvWmnQ/09FWplnEmozt90CCVqBtGuPXM811tgfhFA=
go.wit.com/gui/widget v1.1.3 h1:GvLzGSOF9tfmoh6HNbFdN+NSlBo2qeS/Ba2TnQQ1A1U= go.wit.com/log v0.5.5 h1:bK3b94uVKgev4jB5wg06FnvCFBEapQICTSH2YW+CWr4=
go.wit.com/gui/widget v1.1.3/go.mod h1:A6/FaiFQtAHTjgo7c4FrokXe6bXX1Cowo35b2Lgi31E= go.wit.com/log v0.5.5/go.mod h1:BaJBfHFqcJSJLXGQ9RHi3XVhPgsStxSMZRlaRxW4kAo=
go.wit.com/log v0.5.3 h1:/zHkniOPusPEuX1R401rMny9uwSO/nSU/QOMx6qoEnE= go.wit.com/widget v1.1.5 h1:jx5hJ2WLZJnCcvMuaLHegzpNlzwo+0kOkzsRkzRiB30=
go.wit.com/log v0.5.3/go.mod h1:LzIzVxc2xJQxWQBtV9VbV605P4TOxmYDCl+BZF38yGE= go.wit.com/widget v1.1.5/go.mod h1:I8tnD3x3ECbB/CRNnLCdC+uoyk7rK0AEkzK1bQYSqoQ=
go.wit.com/log v0.5.4 h1:vijLRPTUgChb8J5tx/7Uma/lGTUxeSXosFbheAmL914=
go.wit.com/log v0.5.4/go.mod h1:BaJBfHFqcJSJLXGQ9RHi3XVhPgsStxSMZRlaRxW4kAo=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68 h1:nxC68pudNYkKU6jWhgrqdreuFiOQWj1Fs7T3VrH4Pjw= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68 h1:nxC68pudNYkKU6jWhgrqdreuFiOQWj1Fs7T3VrH4Pjw=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/term v0.0.0-20201210144234-2321bbc49cbf h1:MZ2shdL+ZM/XzY3ZGOnh4Nlpnxz5GSOhOmtHo3iPU6M= golang.org/x/term v0.0.0-20201210144234-2321bbc49cbf h1:MZ2shdL+ZM/XzY3ZGOnh4Nlpnxz5GSOhOmtHo3iPU6M=

View File

@ -7,8 +7,8 @@ package main
import ( import (
"github.com/awesome-gocui/gocui" "github.com/awesome-gocui/gocui"
"go.wit.com/lib/widget"
"go.wit.com/log" "go.wit.com/log"
"go.wit.com/widget"
) )
func defaultKeybindings(g *gocui.Gui) error { func defaultKeybindings(g *gocui.Gui) error {

View File

@ -7,8 +7,8 @@ package main
import ( import (
"os" "os"
"go.wit.com/lib/widget"
"go.wit.com/log" "go.wit.com/log"
"go.wit.com/widget"
) )
// sets defaults and establishes communication // sets defaults and establishes communication

View File

@ -3,8 +3,8 @@ package main
import ( import (
"strings" "strings"
"go.wit.com/lib/widget"
"go.wit.com/log" "go.wit.com/log"
"go.wit.com/widget"
) )
func (n *node) placeBox(startW int, startH int) { func (n *node) placeBox(startW int, startH int) {

View File

@ -3,8 +3,8 @@ package main
import ( import (
// if you include more than just this import // if you include more than just this import
// then your plugin might be doing something un-ideal (just a guess from 2023/02/27) // then your plugin might be doing something un-ideal (just a guess from 2023/02/27)
"go.wit.com/lib/widget"
"go.wit.com/log" "go.wit.com/log"
"go.wit.com/widget"
) )
func action(a *widget.Action) { func action(a *widget.Action) {

View File

@ -6,8 +6,8 @@ import (
"github.com/awesome-gocui/gocui" "github.com/awesome-gocui/gocui"
"go.wit.com/lib/widget"
"go.wit.com/log" "go.wit.com/log"
"go.wit.com/widget"
) )
var outputW int = 180 var outputW int = 180

2
tab.go
View File

@ -5,8 +5,8 @@ package main
import ( import (
"strings" "strings"
"go.wit.com/lib/widget"
"go.wit.com/log" "go.wit.com/log"
"go.wit.com/widget"
) )
func (w *guiWidget) Width() int { func (w *guiWidget) Width() int {

View File

@ -8,8 +8,8 @@ import (
"github.com/awesome-gocui/gocui" "github.com/awesome-gocui/gocui"
"go.wit.com/lib/widget"
"go.wit.com/log" "go.wit.com/log"
"go.wit.com/widget"
) )
func splitLines(s string) []string { func splitLines(s string) []string {

View File

@ -1,8 +1,8 @@
package main package main
import ( import (
"go.wit.com/lib/widget"
"go.wit.com/log" "go.wit.com/log"
"go.wit.com/widget"
) )
func initWidget(n *node) *guiWidget { func initWidget(n *node) *guiWidget {