Commit Graph

58 Commits

Author SHA1 Message Date
Jeff Carr 6196739d82 lots cleaner code between the plugin
Queue() around SetText is helping userspace crashing
    merge forceDump(bool) into Dump()
    debugging output configuration is pretty clean
    keep cutting down duplicate things
    --gui-verbose flag works
    make label "standard" code
    add debug.FreeOSMemory()
    move the GO language internals to display in the GUI
    update push to do tags and go to github.com/wit-go/
    remove the other license file
        it might be confusing golang.org and github
    proper WidgetType
    added a Quit() button

Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-03-01 11:35:36 -06: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 d28f0eb8c1 Squashed commit of the following:
all non binary tree structs are gone (almost all)
    Use names from https://en.wikipedia.org/wiki/Graphical_widget
    toolkit andlabs/ui is isolated from being accessable
        all direct references to andlabs are removed
    working dropdown widgets
    add debugging more buttons and windows
2022-10-20 06:55:42 -05:00
Jeff Carr 6286635049 Refactor to 'gui/toolkit/'
* add a example cmds/consolemouse
       uses a console button to launch the andlabs/ui
    * fix wrong return value in toolkit/NewLabel()
    * redirect STDIN output to a file
    * wonderful fix of Window() exit
    * finally remove the ancient stupid variables x & y
    * phase out struct 'box' and use 'node' instead
    * better names for things: use NewFoo() and NewBar()
2022-10-19 13:23:22 -05:00
Jeff Carr 390556e083 Change Node to Box 2022-10-11 11:25:46 -05:00
Jeff Carr 91e4ad1351 CLEAN: remove more cruft
Signed-off-by: Jeff Carr <jcarr@wit.com>
2021-11-01 01:13:07 -05:00
Jeff Carr db6c60decc REFACTOR: remove GuiWindow & GuiBox
Signed-off-by: Jeff Carr <jcarr@wit.com>
2021-10-31 21:46:30 -05:00
Jeff Carr d6980daa81 BOX: kill GuiBox
Signed-off-by: Jeff Carr <jcarr@wit.com>
2021-10-31 21:07:36 -05:00
Jeff Carr f7ead697d3 REFACTOR: refactor everything to gui.Node struct
Signed-off-by: Jeff Carr <jcarr@wit.com>
2021-10-31 14:21:36 -05:00
Jeff Carr 908615c038 TAB: correctly lookup and add tabs to blank windows
Signed-off-by: Jeff Carr <jcarr@wit.com>
2021-10-06 13:23:00 -05:00
Jeff Carr 62010a8d16 FORMAT: I think somehow I formatted this 2021-10-06 11:50:35 -05:00
Jeff Carr 9dc8d79062 DEBUG: add DumpMap()
Signed-off-by: Jeff Carr <jcarr@wit.com>
2021-10-05 10:37:53 -05:00
Jeff Carr 6035dc8d79 DEBUG: added button to SetMargin() by name
Signed-off-by: Jeff Carr <jcarr@wit.com>
2021-10-05 07:13:24 -05:00
Jeff Carr e00cbad32e shorten times
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-17 10:28:40 -07:00
Jeff Carr 7da54784fb don't use Data.Windows anymore
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-14 15:41:30 -07:00
Jeff Carr 17512c10c5 ready to implement Destroy()
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-13 14:17:05 -07:00
Jeff Carr 8ad635c307 finally vm list working again
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-13 12:08:47 -07:00
Jeff Carr 999a8fd199 reimplement the color button
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-05 10:01:36 -07:00
Jeff Carr 9bfabef760 oops. this was very wrong
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-05 03:10:15 -07:00
Jeff Carr c227957042 misc debugging
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-04 12:04:59 -07:00
Jeff Carr 9afb63999b spew with depth
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-03 17:25:07 -07:00
Jeff Carr 8faa174170 fixes for debugging
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-03 17:05:50 -07:00
Jeff Carr 8d9f0b6a34 make a WindowMap to track which windows exist
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-03 15:45:40 -07:00
Jeff Carr 682fc29bab better display and debugging
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-03 12:56:33 -07:00
Jeff Carr 584e3b60d4 make a buttonMap
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-02 22:22:04 -07:00
Jeff Carr a030afb2bd remove 'Action'
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-02 21:56:43 -07:00
Jeff Carr 8fd3e719d9 hopefully starting now it will be new features here
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-02 21:01:18 -07:00
Jeff Carr 1274211f20 almost complete 'CLEAN'. yet more code refactoring
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-02 15:19:53 -07:00
Jeff Carr 2af6fa52a4 finally cleaned out all protobuf references
this effort is almost done being 'cleaned'
of the code I started with. This library
is not perfect and lacks features from
andlabs/ui but it will work for our purposes

Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-02 13:40:44 -07:00
Jeff Carr f12d4b5c32 cleanups
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-02 12:08:53 -07:00
Jeff Carr b57b12549e doesn't crash
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-02 11:02:14 -07:00
Jeff Carr f00e40d649 more removal of cloud-control-panel specific code
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-02 06:39:48 -07:00
Jeff Carr d95e62aaea spash screen works again
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-01 21:15:55 -07:00
Jeff Carr c11e03c499 more moving to vm
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-01 02:41:03 -07:00
Jeff Carr 60d0fa4369 keep cleaning
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-01 01:32:55 -07:00
Jeff Carr b5fe8f0684 lots of changes to track windows and tabs
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-31 17:37:53 -07:00
Jeff Carr 403e7d089c change CreateButton to rerturn *GuiButton
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-30 11:41:23 -07:00
Jeff Carr 1015f66ab5 more variable name fixes
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-30 08:55:54 -07:00
Jeff Carr 58e76c3b8e start fixing variable names
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-30 08:52:28 -07:00
Jeff Carr bd3c5bfef5 large change to track the window everywhere
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-29 19:57:15 -07:00
Jeff Carr 0009d89fd5 start moving the area text back to the main program
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-29 15:46:21 -07:00
Jeff Carr 8df7549d32 attempt to hide & show tab
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-29 13:11:08 -07:00
Jeff Carr 9ec2ec7f9e more dereferencing of *ui.Area
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-29 12:21:10 -07:00
Jeff Carr 131c5e4722 more dereference improvements
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-29 11:48:32 -07:00
Jeff Carr 64eada2638 remove unused code
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-29 11:14:32 -07:00
Jeff Carr 2a6453306b minor change to ping
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-29 02:44:18 -07:00
Jeff Carr b57ed75580 work on add VM
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-26 13:53:54 -07:00
Jeff Carr 9894f31264 almost complete obviewscation of the buttons
yes, I can't spell. I like it this way better anyway

Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-26 12:40:07 -07:00
Jeff Carr 679f01341e more removal of button information function passing
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-26 12:10:48 -07:00
Jeff Carr 8fe85f0af2 pass the VM to the buttons in the VM tab
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-25 16:00:33 -07:00