Commit Graph

16 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 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 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 e750b06831 gocui: closer to correct tabs
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-26 12:38:39 -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 132efe17fe gocui: closer to working layout
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-26 01:59:42 -05:00
Jeff Carr 092ac51f5e gocui: hmm. trying to reformat the layout
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-25 22:24:45 -05:00
Jeff Carr a8b4c45eb7 gocui: try to make struct defaults work
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-24 14:17:43 -05:00
Jeff Carr 60a4a1bfd6 andlabs kinda works with a channel
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-07 18:16:16 -05:00
Jeff Carr 90e45a4a3e gogui: checkboxes
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-06 15:00:37 -05:00
Jeff Carr 65f4d0e231 more fixes
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-05 19:33:31 -05:00
Jeff Carr 0fb9ab6702 gocui: s/realSize/gocuiSize/
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-05 13:30:49 -05:00
Jeff Carr eca967bf61 gocui: more color cleanups
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-03 11:52:54 -05:00
Jeff Carr 7f907e2b19 gocui: working towards correct layout
make a gocui widget binary tree
    more debugging cleanups
    sample button app displays in gocui
    geometry logic closer to correct
    improvements in gocui layout
    continued attempts to clean up tabs
    dump binary tree
    moving towards proper chan callback()
    deprecate Widget.Name

Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-03 10:26:47 -05:00