Commit Graph

532 Commits

Author SHA1 Message Date
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
Jeff Carr e206fa143e more code cleanups
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-05-09 20:25:37 -05:00
Jeff Carr 48575ec782 move to fixing grids in andlabs
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-05-09 19:39:56 -05:00
Jeff Carr c077a3d4e1 getting pretty clean at this point
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-05-09 19:24:37 -05:00
Jeff Carr 6b55526fee working on removing newaction()
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-05-09 19:04:39 -05:00
Jeff Carr 761250d24c more sendAction() cleanups
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-05-09 18:53:31 -05:00
Jeff Carr d9f9b3c688 simplify sendAction()
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-05-09 18:50:16 -05:00
Jeff Carr 75954affce andlabs: now attempt grid placement
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-05-09 18:34:09 -05:00
Jeff Carr d861dade77 start correctly handling grid placement
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-05-09 17:48:21 -05:00
Jeff Carr 579d75d856 compiles again
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-05-09 08:38:33 -05:00
Jeff Carr 9934f932ca andlabs grid placement still broken
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-05-09 08:25:10 -05:00
Jeff Carr 15f00451b7 code cleanups
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-28 15:34:55 -05:00
Jeff Carr 14f69c4a40 s/Config/me/ to remove direct access to anything
since most everything needs to be passed to the toolkits
everything should be accessed via func()'s

Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-28 10:35:57 -05:00
Jeff Carr a132b48ada further code cleanups
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-28 10:30:27 -05:00
Jeff Carr bafb7eb06b more embed handling
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-28 08:14:51 -05:00
Jeff Carr ed7becf5ee allow passing of embed plugin files
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-28 07:29:46 -05:00
Jeff Carr c0798a2db9 nocui: simulates button clicks
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-27 22:21:31 -05:00
Jeff Carr 065b931106 nocui: a template for porting new toolkits
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-27 21:11:00 -05:00
Jeff Carr dc7762fc16 gocui: grid width fixed
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-27 20:41:53 -05:00
Jeff Carr b79bb8e348 andlabs: more cleanups
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-27 12:55:11 -05:00
Jeff Carr d671c3c441 andlabs: deprecate old code
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-27 12:41:42 -05:00
Jeff Carr d282c353e6 andlabs: more code cleanup
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-27 10:46:54 -05:00