Commit Graph

45 Commits

Author SHA1 Message Date
Jeff Carr c5735353a6 v0.4.1 set sane toolkit default look and feel
autogenerate README.md from doc.go (goreadme cmd)
    remove passing arguements on a mouse click()
    make defaults for padding, margin, stretchy, etc
    add a checkbox widget
    function rename to NewButton()
    keep cleaning up toolkit code
    fix date. I was somehow in the future

Signed-off-by: Jeff Carr <jcarr@wit.com>
2022-10-21 11:40:08 -05: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 dbbffdffa3 remove old code
Signed-off-by: Jeff Carr <jcarr@wit.com>
2022-10-17 16:55:30 -05:00
Jeff Carr fbf97443d5 Add slander and spinbox in toolkit/andlabs
fix the helloworld demo
    move slider into toolkit/
    move more into the toolkit directory
    add spinbox()
    fix example
    minor update
    fix examples
    Fix andlabs.ui.Slider() to work again
    correctly implement custom OnChange() callback

Signed-off-by: Jeff Carr <jcarr@wit.com>
2022-10-16 08:07:13 -05:00
Jeff Carr 9076499b30 Merge branch 'master' into devel 2022-10-11 11:59:42 -05:00
Jeff Carr 390556e083 Change Node to Box 2022-10-11 11:25:46 -05:00
Jeff Carr c91d7d52b8 SMALL: some stuff hanging around
Signed-off-by: Jeff Carr <jcarr@wit.com>
2021-11-04 05:46:49 -05:00
Jeff Carr 20899fc2b4 PANIC: remove almost all panic()s
Signed-off-by: Jeff Carr <jcarr@wit.com>
2021-11-04 00:12:48 -05:00
Jeff Carr 8d5b885b3a GUI: show error windows
Signed-off-by: Jeff Carr <jcarr@wit.com>
2021-11-03 22:41:22 -05:00
Jeff Carr 9c946630a1 WINDOW: try to properly destroy a window
Signed-off-by: Jeff Carr <jcarr@wit.com>
2021-11-03 01:44:32 -05:00
Jeff Carr 9960652ec7 TABS: very reliable tab, window and node handling
Signed-off-by: Jeff Carr <jcarr@wit.com>
2021-11-01 03:44:39 -05:00
Jeff Carr 51d324e805 CLEAN: more code removals
Signed-off-by: Jeff Carr <jcarr@wit.com>
2021-10-31 22:22:16 -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 df1978e6a8 BOX: more removals of GuiBox
Signed-off-by: Jeff Carr <jcarr@wit.com>
2021-10-31 20:52:19 -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 2ccc1b518d REFACTOR: things are back to working as they were
Signed-off-by: Jeff Carr <jcarr@wit.com>
2021-10-06 14:32:07 -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 790e6f2c46 REFACTOR: continue to move in a better direction
Signed-off-by: Jeff Carr <jcarr@wit.com>
2021-10-06 10:43:58 -05:00
Jeff Carr cabdb12495 BUILD: suck it up and try to use go.mod
Signed-off-by: Jeff Carr <jcarr@wit.com>
2021-10-06 05:14:24 -05:00
Jeff Carr facc785798 BUG: fix WxH
Signed-off-by: Jeff Carr <jcarr@wit.com>
2021-10-06 01:52:27 -05:00
Jeff Carr ccb91460ca BUG: fix potential 'nil' reference
Signed-off-by: Jeff Carr <jcarr@wit.com>
2021-10-05 10:23:27 -05:00
Jeff Carr 6438e4cc6a CODE: not sure, but it compiles and runs somehow
Signed-off-by: Jeff Carr <jcarr@wit.com>
2021-10-05 09:29:55 -05:00
Jeff Carr 90d8111ada TAB: automatically set all tables to SetMargined(true)
Signed-off-by: Jeff Carr <jcarr@wit.com>
2021-10-05 02:00:32 -05:00
Jeff Carr e6c44cd2d3 ANALABS: work on improving the abstraction
Signed-off-by: Jeff Carr <jcarr@wit.com>
2021-10-04 23:38:45 -05:00
Jeff Carr 71a9b13236 TAB: code to more correctly handle gtk tabs
Signed-off-by: Jeff Carr <jcarr@wit.com>
2021-10-04 21:33:03 -05:00
Jeff Carr c670905b74 WINDOW: add function to create completely blank window
Signed-off-by: Jeff Carr <jcarr@wit.com>
2021-10-04 20:18:51 -05:00
Jeff Carr cfc778b04f MINOR: minor change
Signed-off-by: Jeff Carr <jcarr@wit.com>
2021-10-04 19:50:29 -05:00
Jeff Carr 534d631c98 WINDOW: add CreateWindow that has proper padding
Signed-off-by: Jeff Carr <jcarr@wit.com>
2021-10-04 14:39:38 -05:00
Jeff Carr 04c9f6d89d correctly check for no tabs before Destory()
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-17 14:45:42 -07:00
Jeff Carr e00cbad32e shorten times
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-17 10:28:40 -07:00
Jeff Carr c55a039042 allow a custom Exit()
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-17 08:09:28 -07:00
Jeff Carr 291f18c1c0 woops. pretty wrong error in making a new window
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-17 07:07:54 -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 b1b0378780 DeleteWindow() works
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-13 15:57:43 -07:00
Jeff Carr 30c49270d1 this is bad
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-13 15:30:54 -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 22760127b9 more tests
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-13 13:28:13 -07:00
Jeff Carr 602dd0de2d more cleanups on the callback
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-13 13:09:08 -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 d86d25390d finally fix the window and tab names
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-04 00:56:58 -07:00
Jeff Carr fc6bde460c minor updates
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-03 23:17:13 -07:00
Jeff Carr 5f65b2f5ed typo
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-03 18:56:11 -07:00
Jeff Carr 0af6ad0f33 not sure what happened
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-03 18:53:14 -07:00