Commit Graph

591 Commits

Author SHA1 Message Date
Jeff Carr dd7dec7ef6 use local go-arg for now
Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-07 19:03:54 -06:00
Jeff Carr b3dfc689ab sierpinski carpet mode
Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-06 13:53:15 -06:00
Jeff Carr d075b29aff go mod tidy
Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-05 14:19:29 -06:00
Jeff Carr b7cbcf725d move to "gui/widget"
Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-05 13:18:44 -06:00
Jeff Carr 0993e7d3d0 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 6f566c0051 changes for the log control window()
Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-04 12:34:42 -06:00
Jeff Carr 3f7cca35f3 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 60ede602fc go mod tidy for toolkit move
Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-03 20:34:10 -06:00
Jeff Carr 49f8029a5f 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 0a20b22a6c move to go.wit.com/log !!!
Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-03 18:15:54 -06:00
Jeff Carr 3f42ba1882 move learning code to gui/debugger
Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-03 13:53:43 -06:00
Jeff Carr 0090da64fc 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 a08bbaf04f 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 d8f1107387 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 e9a0ee35c9 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 4e7bbd8990 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 53ce3a8252 log flag debugging
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-12-31 19:45:43 -06:00
Jeff Carr e85d453fd8 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 92441e8c63 continue move to remove tabs
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-12-31 07:40:53 -06:00
Jeff Carr 50f41a3ec5 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 459a163973 pad grid and group by default
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-12-31 01:48:39 -06:00
Jeff Carr e51c54a1a0 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 25990de20d implement --gui-debug command line option
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-12-29 17:51:42 -06:00
Jeff Carr ced398383e using args.Register()
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-12-29 17:24:16 -06:00
Jeff Carr 4b0077cce1 save 'universal' go-arg
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-12-29 09:24:06 -06:00
Jeff Carr 015847b28e 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 48dfdf322b 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 dd6d1a639b remove example with circular dependancies
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-12-20 16:59:07 -06:00
Jeff Carr 9f7da73c67 move to go.wit.com/gui
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-12-20 14:15:00 -06:00
Jeff Carr 85b9a036c2 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 87ab9a958d 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 dcce325833 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 282119d970 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 9d075afb1d 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 7880d9df6d 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 19e6ea76f3 andlabs: debugging flags working again
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-05-10 14:28:30 -05:00
Jeff Carr cb0e8a7146 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 26b06253d5 more code cleanups
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-05-09 20:25:37 -05:00
Jeff Carr 45ef7f37c4 move to fixing grids in andlabs
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-05-09 19:39:56 -05:00
Jeff Carr cb2c88d8c1 getting pretty clean at this point
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-05-09 19:24:37 -05:00
Jeff Carr 28b7470328 working on removing newaction()
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-05-09 19:04:39 -05:00
Jeff Carr e43f42a3ab more sendAction() cleanups
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-05-09 18:53:31 -05:00
Jeff Carr c36725fa90 simplify sendAction()
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-05-09 18:50:16 -05:00
Jeff Carr b392c40969 andlabs: now attempt grid placement
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-05-09 18:34:09 -05:00
Jeff Carr 706bcef867 start correctly handling grid placement
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-05-09 17:48:21 -05:00
Jeff Carr e45e4212da compiles again
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-05-09 08:38:33 -05:00
Jeff Carr e19a728d7f andlabs grid placement still broken
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-05-09 08:25:10 -05:00
Jeff Carr 52b197ebf3 code cleanups
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-28 15:34:55 -05:00
Jeff Carr 923f7721cc 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 03942de00e further code cleanups
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-28 10:30:27 -05:00