Commit Graph

553 Commits

Author SHA1 Message Date
Jeff Carr 391ed60415 add Destroy()
improve syntax shortcuts
    go mod update

Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-15 16:14:48 -06:00
Jeff Carr 7af0ecf8f1 minimal go mod files
Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-14 14:51:18 -06:00
Jeff Carr 844668dabd more go mod testing
Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-14 13:23:49 -06:00
Jeff Carr ebeeed84b4 working on margin()
Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-14 10:37:43 -06:00
Jeff Carr 732edc3faf work on hiding widgets
When widgets are hidden, their state works exactly the same
	as normal, but updates are not sent to the toolkits

Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-13 22:02:12 -06:00
Jeff Carr 1e2fa2dce9 use better url
Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-12 22:53:14 -06:00
Jeff Carr 25ed10c0ec api update
Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-11 22:17:02 -06:00
Jeff Carr e2958fe561 var value any
Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-11 19:32:40 -06:00
Jeff Carr 828a6af020 continuing move toward var value any
Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-11 00:51:37 -06:00
Jeff Carr 190682f9c6 start fixing GetText() and move to any
Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-10 17:03:13 -06:00
Jeff Carr 1d3d163833 go.wit.com/log change
Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-08 23:52:56 -06:00
Jeff Carr f287eb8185 go.wit.com/log Flags change
Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-08 22:27:17 -06:00
Jeff Carr b822af60b2 remove the invisible box for hack
Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-08 13:49:18 -06:00
Jeff Carr 281925f727 use local go-arg for now
Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-07 19:03:54 -06:00
Jeff Carr 7ec476ab33 sierpinski carpet mode
Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-06 13:53:15 -06:00
Jeff Carr 01df3b694f go mod tidy
Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-05 14:19:29 -06:00
Jeff Carr 6f1a7e9257 move to "gui/widget"
Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-05 13:18:44 -06:00
Jeff Carr 80d0f34bc0 Tabs are Windows
Tabs don't exist. The are simply windows within a window.
        There are *lots* of problems with trying to treat everything
        that way. Luckily, we don't have to care. All the problems with
        handling that concept can be pushed to the toolkits/
        therefore, this primitive code can be kept as clean as possible
    Makefile and git cleanups

Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-05 12:46:17 -06:00
Jeff Carr 166614d89d changes for the log control window()
Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-04 12:34:42 -06:00
Jeff Carr 92db003be0 TODO: make the docs correct at pkg.go.dev
Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-03 22:57:28 -06:00
Jeff Carr 2890eaab05 go mod tidy for toolkit move
Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-03 20:34:10 -06:00
Jeff Carr dbbdb953f2 complete the move to 'go.wit.com/log'
Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-03 18:54:08 -06:00
Jeff Carr df5fd148c6 move to go.wit.com/log !!!
Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-03 18:15:54 -06:00
Jeff Carr 84897041b2 move learning code to gui/debugger
Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-03 13:53:43 -06:00
Jeff Carr b30346bc96 move the debian packaging to gui/toolkits
Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-03 13:52:05 -06:00
Jeff Carr 25ebe0a2ee all debug stuff moved to 'go.wit.com/gui/debugger'
I finally was able to clean out all the debugging
    code and make a clean, new GO debugger. It's quite
    nice I think. Well, it's useful to me at any rate.

    2024 New Years wish: someone contributes code to improve it

Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-03 13:37:03 -06:00
Jeff Carr 253e850c12 fix doc paths to go.wit.com
Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-01 17:47:23 -06:00
Jeff Carr 1d731a3e8c correct path to go.wit.com/gui/gui
Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-01 16:45:55 -06:00
Jeff Carr d1d9c20168 reorg to final resting place at go.wit.com/gui/gui
Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-01 15:43:50 -06:00
Jeff Carr 3c26b3843f log flag debugging
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-12-31 19:45:43 -06:00
Jeff Carr d2b3f7e074 attempt at log.Register(guiDebug) debugging flag
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-12-31 16:08:18 -06:00
Jeff Carr 606f9d5ec0 continue move to remove tabs
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-12-31 07:40:53 -06:00
Jeff Carr 3394ee6861 remove code that's now done better elsewhere!
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-12-31 02:29:28 -06:00
Jeff Carr ba2373fdf7 pad grid and group by default
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-12-31 01:48:39 -06:00
Jeff Carr a7640472cb show/set flags from go.wit.com/log package
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-12-30 20:47:35 -06:00
Jeff Carr ff20e79426 implement --gui-debug command line option
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-12-29 17:51:42 -06:00
Jeff Carr 4eae0a3e07 using args.Register()
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-12-29 17:24:16 -06:00
Jeff Carr 7313c83e69 save 'universal' go-arg
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-12-29 09:24:06 -06:00
Jeff Carr 01ab0180f4 add 'gadgets'
attempt func (n *gui.Node) blah() definition
    better docs for pkg.go.dev
    how logging should work
    fix syntax links for pkg.go.dev

Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-12-29 03:00:03 -06:00
Jeff Carr d9c33a3475 remove direct code since it probably doesn't work
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-12-20 17:28:00 -06:00
Jeff Carr 542b4226b0 remove example with circular dependancies
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-12-20 16:59:07 -06:00
Jeff Carr 4888500f3f move to go.wit.com/gui
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-12-20 14:15:00 -06:00
Jeff Carr 2d147a9115 code moved to the cloudflare package
use the cloudflare package
    add a protobuf attempt
    better change detection, but formatting is broken
    don't redraw widgets if they are not visible
    create new dns entry worked
    attempting a DNS RR create
    attempt a create API call
    use cloudflare recommended ENV vars
    turn off debugging

Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-12-20 05:58:33 -06:00
Jeff Carr f67e03db16 gocui: fixes to labels + line entries
correct line hight
    dump non-working size rectangle code
    somehow works better
    better dropdown menu debugging
    minor fixes to common.go
    more common code

Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-12-16 06:57:39 -06:00
Jeff Carr 90c020369a make a common.go for the toolkits
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-12-15 17:18:48 -06:00
Jeff Carr de771dbe98 tabs, windows + gocui dropdown menu (almost)
dropdown menu figures out what text was clicked
    dropdown menu movement changes line colors
    dropdown menus force user to select a response
    accidentally committed a binary
    tab selection works
    tab and window views almost working
    tabs and windows almost working
    window widgets selection works
    better color handling
    using gocui view.Visable flag
    removal of old color setting code
    still need an artificial delay for andlabs SetText()
    catching more 'nil' errors
    fixed the stupid duplicate tab problem in andlabs
    figured out how andlabs had a tab/box mess
    works on more than one domain
    builds and runs again
    debugging double tabs in andlabs gui
    GO111MODULE compile notes
    code reorg
    further improvements
    example cloudflare app does first successful dns update
    add NewEntryLine() for single line entry boxes

Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-12-14 10:36:56 -06:00
Jeff Carr eab47f738d clean and rename examples
fix syntax
    try new goreadme
    remove autogenerated go readme.md

Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-12-03 16:59:57 -06:00
Jeff Carr fe6a8dd969 gocui plugin refactor to a *node binary tree
rename arg '--gui <toolkit>'
    add a cloudflare example
    fixes since go v1.21 didn't compile anymore due to argv order
    more place() changes
    recursive size computation

    gocui: Major refactor to use the *node binary tree
    gocui: refactor place() and size()
    gocui: better place() and spacing (tab, buttons, etc)
    gocui: better mouse click handling
    gocui: switch to using tk.gocuiSize & tk.size
    gocui: event handling cleanups
    gocui: add window labels work
    gocui: struct cleanups
    gocui: duplicate binary tree structs removed
    gocui: deprecate old children

Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-12-02 19:02:51 -06:00
Jeff Carr 603d5ba7de andlabs: debugging flags working again
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-05-10 14:28:30 -05:00
Jeff Carr be3c212bae andlabs: grid w,h work again kinda
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-05-09 20:37:21 -05:00