Commit Graph

9 Commits

Author SHA1 Message Date
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 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 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 22e0033c69 try to find the parent window
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-24 08:45:30 -05:00
Jeff Carr 597b17039a gocui: always show STDOUT
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-24 06:22:14 -05:00