Commit Graph

512 Commits

Author SHA1 Message Date
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
Jeff Carr e370d22932 andlabs: more things in the binary tree
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-27 10:24:52 -05:00
Jeff Carr 46094b5a48 andlabs: grid and checkbox to binary tree
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-27 10:04:49 -05:00
Jeff Carr fbee749187 andlabs: button in binary tree
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-27 09:59:19 -05:00
Jeff Carr bec9a99a15 andlabs: more into the binary tree
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-27 09:47:31 -05:00
Jeff Carr 3cdbc285e3 andlabs: window and tab now in binary tree
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-27 09:06:57 -05:00
Jeff Carr b789fbbe56 gocui: better output handling
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-27 00:10:23 -05:00
Jeff Carr 17b59b7e7e gocui: proper line count on Stdout
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-26 22:08:43 -05:00
Jeff Carr a4403975e7 gocui: standard close
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-26 21:36:56 -05:00
Jeff Carr 4e8a1bc432 gocui: log() output works
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-26 20:56:25 -05:00
Jeff Carr af41bdfc59 gocui: update on add kinda working now
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-26 16:06:55 -05:00
Jeff Carr ce7e51bafa gocui: more correct logic
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-26 14:52:54 -05:00
Jeff Carr 38c161f39e gocui: code cleanups
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-26 14:25:48 -05:00
Jeff Carr d67c7b2635 gocui: tabs functional now but not perfect
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-26 13:00:58 -05:00
Jeff Carr e750b06831 gocui: closer to correct tabs
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-26 12:38:39 -05:00
Jeff Carr 051ad00de3 gocli: close to working tabs
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-26 12:18:08 -05:00
Jeff Carr 064f3ca748 gocui: tracking windows and tabs separately
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-26 11:18:26 -05:00
Jeff Carr ea37ba6823 gocui: windows & tabs in seperate rows
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-26 09:21:11 -05:00
Jeff Carr 132efe17fe gocui: closer to working layout
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-26 01:59:42 -05:00
Jeff Carr d8a1c53757 gocui: more spacing logic
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-26 00:07:09 -05:00
Jeff Carr 97079e936b gocui: more work on tabs
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-25 22:43:47 -05:00