Commit Graph

7 Commits

Author SHA1 Message Date
Jeff Carr ca708db97e better toolkit init options
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-12 13:00:29 -05:00
Jeff Carr a235371d1a both gocui and andlabs worked with buttondemo
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-11 21:37:36 -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 8f6e971948 open gocui when DISPLAY=""
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-07 09:18:03 -05:00
Jeff Carr bddce3d5a3 gocui: callbacks work via a channel
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-06 18:00:18 -05:00
Jeff Carr 053ea69885 The debugging window is finally useful
the gui enabled debugging works
        --gui-debug works from the command line
        The debug window can now select things
        debugging now includes widget types
        all the debug flags work
        finally working debugging flags via gui checkboxes
    add debian packaging rules
    use log() in the toolkit
    use a standard log() to simplify debugging flags
    add reference to 'GO Style Guide'
    use the same LICENSE from the GO developers.
    TODO: make this threadsafe
    TODO: fix plugin stuff

Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-02-25 14:05:25 -06:00
Jeff Carr 8221522ba8 Massive refactor to use go plugins. This is neat.
update README.md
    set xterm title. make os.Exit() default on window close
    add a toolkit.Widget to the node structure
    remove 'Greeter' symbol mapping scheme
    removed the testing greeter code
    plugins:
        attempt to load plugins in a sensible order
    andlabs/ui:
        working andlabs/ui plugin (andlabs2)
   	buttons work in andlabs plugin
	TODO: re-implement non-plugin version for Windows
		mswindows doesn't support go plugins yet
    gocui:
        put the gocui console so file in the binary
        does a full init of gocui plugin
        Button() and Group() working very well with gogui
    	cleanly exit gocui
    technically you can load two toolkits at the same time
        kinda both working at the same time. esoteric
        two working plugins at the same time
        give up working on two gui's at the same time
        this is fun, but _not interesting
        wow. this actually works. NewButton() from both toolkits
    examples:
        all the examples run again
        remove early helloplugin example
        buttonplugin example cmd code
        buttonplugin runs and ldd is minimum

Signed-off-by: Jeff Carr <jcarr@wit.com>
2022-11-13 08:53:03 -06:00