Commit Graph

426 Commits

Author SHA1 Message Date
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 5ba335ddee show the gocui in the example
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-06 23:58:22 -05:00
Jeff Carr 6f6f1a6c25 go 1.18 is needed for plugins
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-06 21:00:23 -05:00
Jeff Carr 57283a4da7 correctly deprecate *widget to plugins
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-06 20:50:00 -05:00
Jeff Carr 45d43c3616 andlabs: callback is now safe through a go channel
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-06 20:25:14 -05:00
Jeff Carr 8045287501 andlabs: use callback channel for window close
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-06 19:48:24 -05:00
Jeff Carr 9041a6552e gocui: resize works on textbox's
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-06 18:44:25 -05:00
Jeff Carr 7cf0d45909 gocui: debug flag buttons work
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-06 18:26:30 -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 90e45a4a3e gogui: checkboxes
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-06 15:00:37 -05:00
Jeff Carr 70253c31f2 andlabs: fix bug in flags and chan window create
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-06 14:16:59 -05:00
Jeff Carr cd47489d85 gocui: more or less correct sizes
init to normal state (debug=off)
    size handling cleanups
    keep trying to fix grid widget
    move towards cmdline/auto loading of gocui

Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-06 11:19:04 -05:00
Jeff Carr c1edca0f0e gocui: ready for 0.7.6
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-06 06:29:00 -05:00
Jeff Carr c29faf4f9b gocui: next step hide junk
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-06 06:01:14 -05:00
Jeff Carr 6b7d1fb30b gocui: more size calculations
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-06 00:13:28 -05:00
Jeff Carr 0d36740a86 gocui: more almost working
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-05 22:30:44 -05:00
Jeff Carr 1b7b794dd2 gocui: it might actually work
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-05 22:19:45 -05:00
Jeff Carr bd23ef8338 gocui: don't try to draw on add()
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-05 21:15:05 -05:00
Jeff Carr 65f4d0e231 more fixes
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-05 19:33:31 -05:00
Jeff Carr a881d87108 gocui: close to fixing tab coords
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-05 19:03:01 -05:00
Jeff Carr ab6ff31599 gocui: store more in w.gocuiSize.
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-05 18:10:53 -05:00
Jeff Carr cd8ddbc767 gocui: window and tab position kinda correct
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-05 17:56:27 -05:00
Jeff Carr 5146cdfa80 gocui: more dumb and broken attempts at fixing this code
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-05 17:29:52 -05:00
Jeff Carr 0fb9ab6702 gocui: s/realSize/gocuiSize/
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-05 13:30:49 -05:00
Jeff Carr fb43b88a0b gocui: rework spacing logic
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-05 13:06:42 -05:00
Jeff Carr 89ef92e200 I can't add
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-04 18:45:59 -05:00
Jeff Carr d6f87e2edf minor reorg
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-04 10:44:27 -05:00
Jeff Carr 3a4d07fd7a gocui: grid resize
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-04 10:38:21 -05:00
Jeff Carr a83110ec03 gocui: use (w,h) and avoid (x,y) names
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-04 06:31:30 -05:00
Jeff Carr 40ad372361 gocui: simple grid working
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-03 17:49:37 -05:00
Jeff Carr b0ae0810c4 gocui: more size debugging
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-03 16:32:01 -05:00
Jeff Carr c4890c4c84 gocui: debugging logical sizes
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-03 16:08:58 -05:00
Jeff Carr eca967bf61 gocui: more color cleanups
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-03 11:52:54 -05:00
Jeff Carr 7f907e2b19 gocui: working towards correct layout
make a gocui widget binary tree
    more debugging cleanups
    sample button app displays in gocui
    geometry logic closer to correct
    improvements in gocui layout
    continued attempts to clean up tabs
    dump binary tree
    moving towards proper chan callback()
    deprecate Widget.Name

Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-04-03 10:26:47 -05:00
Jeff Carr 678b867f1e 'hide' and 'show' works in gocui
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-03-30 08:51:33 -05:00
Jeff Carr 3ac015e4c4 Merge branch 'devel' 2023-03-30 07:58:16 -05:00
Jeff Carr b99e4425fa add semi-working gocui
commit 947169df5a22c9f9b53f825764747f648c70ff1e
Author: Jeff Carr <jcarr@wit.com>
Date:   Wed Mar 29 22:44:08 2023 -0500

    ready for version v0.7.4

        start deprecating toolkit.Widget
        switch to variable name 'ParentId'
        use 'ActionType' and 'WidgetType'
        preliminary redraw()
        final definition of variables 'Name' and 'Text'
        more cleaning of the code
        remove lots of dumb code
        bind 'd' key press to dump out debugging info
        early color handling in gocui!

    Signed-off-by: Jeff Carr <jcarr@wit.com>

commit 6013fde8332e8ecbffaf1a0977ba2e1da8ea8775
Author: Jeff Carr <jcarr@wit.com>
Date:   Sun Mar 26 17:19:20 2023 -0500

    improvements towards a working dns control panel

        democui has the help menu
        try to add mouse support to gocui
        make a direct access method
        Margin() and Pad() tests
        add SPEW
        also push devel branch to github

    Signed-off-by: Jeff Carr <jcarr@wit.com>

commit 6f91f5e080e06cdc0f34b13d23e5fd16ea37259a
Author: Jeff Carr <jcarr@wit.com>
Date:   Fri Mar 24 20:14:18 2023 -0500

    starting to try safe chan and goroutines

        fix tab title's
        right before attempting to add chan goroutines
        removed "where" widget pointer
        box added to tab
        experiement with log as it's own repo

    Signed-off-by: Jeff Carr <jcarr@wit.com>

Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-03-29 23:03:04 -05:00
Jeff Carr 9b79992b7b ready for version v0.7.4
start deprecating toolkit.Widget
    switch to variable name 'ParentId'
    use 'ActionType' and 'WidgetType'
    preliminary redraw()
    final definition of variables 'Name' and 'Text'
    more cleaning of the code
    remove lots of dumb code
    bind 'd' key press to dump out debugging info
    early color handling in gocui!

Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-03-29 22:44:08 -05:00
Jeff Carr ed128fa566 improvements towards a working dns control panel
democui has the help menu
    try to add mouse support to gocui
    make a direct access method
    Margin() and Pad() tests
    add SPEW
    also push devel branch to github

Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-03-26 17:19:20 -05:00
Jeff Carr 4ae2022600 starting to try safe chan and goroutines
fix tab title's
    right before attempting to add chan goroutines
    removed "where" widget pointer
    box added to tab
    experiement with log as it's own repo

Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-03-24 20:14:18 -05:00
Jeff Carr fa356841bf Squashed commit of the following:
boxes now exist and are tracked in the binary tree
    create for group and grid works
    gocui plugin no longer works. TODO: fix in next release
    converted everything from plugin to Action()
        can remove send()
        tab and window are now action()
        flags moved to action()
    ready for new release
    pad() margion() border() all work
    move worked!
    go.wit.com attept 578th try
    adds an early grid widget. won't work until chan
        andlabs/ui grid (X,Y) works right
        actually can put things in places in a grid
        Queue() means shit doesn't look right on grids
    lots of fucking around. why am I wasting time on image?
    wow. the crazy doAppend() thing is gone
    implement Action Show() and Hide()

Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-03-23 12:35:12 -05:00
Jeff Carr 18c131868c Squashed commit of the following:
commit 2ec8d13bf0f6f86386b9e0a39c550b103fffa176
Author: Jeff Carr <jcarr@wit.com>
Date:   Sun Mar 12 09:37:45 2023 -0500

    smartly default to the binary tree master

    Signed-off-by: Jeff Carr <jcarr@wit.com>

Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-03-12 09:42:16 -05:00
Jeff Carr 317f26c4e3 Squashed commit of the following:
commit a89f00c3847f86f5336e5dbe792c9de6d9355a9c
Author: Jeff Carr <jcarr@wit.com>
Date:   Sun Mar 12 09:23:11 2023 -0500

    remove old button

    Signed-off-by: Jeff Carr <jcarr@wit.com>

Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-03-12 09:24:32 -05:00
Jeff Carr 9223ff18a2 Squashed commit of the following:
commit 448abc843e2241bab6c399f7a836dccba1defc18
Author: Jeff Carr <jcarr@wit.com>
Date:   Sun Mar 12 08:35:28 2023 -0500

    this should probably be a new release now

    Signed-off-by: Jeff Carr <jcarr@wit.com>

commit a4064f7a6c5ac67437768aa2bc67c75dafc91c4c
Author: Jeff Carr <jcarr@wit.com>
Date:   Sat Mar 11 03:18:23 2023 -0600

    able to work on add 'Box' and play with 'Image'

    Signed-off-by: Jeff Carr <jcarr@wit.com>

commit 6e59573d85e82ecb005805f50711dddc2df50480
Author: Jeff Carr <jcarr@wit.com>
Date:   Sat Mar 11 03:04:34 2023 -0600

    rearrange widget debugging

    Signed-off-by: Jeff Carr <jcarr@wit.com>

commit e0570de75c6eb1b4f49e541d9ef5d83ae4434d3d
Author: Jeff Carr <jcarr@wit.com>
Date:   Sat Mar 11 02:29:20 2023 -0600

    debugging is lots smarter

    Signed-off-by: Jeff Carr <jcarr@wit.com>

commit ece32a1e43d91cd197d0a8497ad2f034c46126e1
Author: Jeff Carr <jcarr@wit.com>
Date:   Fri Mar 10 21:38:23 2023 -0600

    first pass on a node delete

    Signed-off-by: Jeff Carr <jcarr@wit.com>

commit c91cb0eddb0f73f8dea9b21a16cd76c7e2c19a33
Author: Jeff Carr <jcarr@wit.com>
Date:   Fri Mar 10 21:06:29 2023 -0600

    can recreate window list

    Signed-off-by: Jeff Carr <jcarr@wit.com>

commit 470f9dc26aefd3626b319264fe151aa48d4d5377
Author: Jeff Carr <jcarr@wit.com>
Date:   Fri Mar 10 12:07:34 2023 -0600

    attempt to ressurect mouse in the console plugin

    Signed-off-by: Jeff Carr <jcarr@wit.com>

commit 747bb53e06dda458cc8cd77b665f4d9d07f5e925
Author: Jeff Carr <jcarr@wit.com>
Date:   Fri Mar 10 10:47:14 2023 -0600

    jesus. gocui actually builds and works again as a plugin

    it didn't take too much to change it

    Signed-off-by: Jeff Carr <jcarr@wit.com>

commit 9283c65c8e9b8d2630b251ad952b6b52caddb307
Author: Jeff Carr <jcarr@wit.com>
Date:   Fri Mar 10 07:26:53 2023 -0600

    show/hide/etc for window widgets

    Signed-off-by: Jeff Carr <jcarr@wit.com>

commit 5724cd7ffd8595ae049a7c9c21cb2f1a993c4b76
Author: Jeff Carr <jcarr@wit.com>
Date:   Fri Mar 10 06:40:36 2023 -0600

    compiles and runs

    Signed-off-by: Jeff Carr <jcarr@wit.com>

commit 44a5e69ce17cb506adfe24ca72cc86caa9ebcc70
Author: Jeff Carr <jcarr@wit.com>
Date:   Fri Mar 10 05:57:15 2023 -0600

    more debugging improvements

    Signed-off-by: Jeff Carr <jcarr@wit.com>

commit b86f145f0252e7545b2e7fa78e1d5960cacb7bad
Author: Jeff Carr <jcarr@wit.com>
Date:   Fri Mar 10 03:42:32 2023 -0600

    set margin on tab's works

    Signed-off-by: Jeff Carr <jcarr@wit.com>

commit d2218c08cf44acd5f017a8faa1439ee6d2fd46d5
Author: Jeff Carr <jcarr@wit.com>
Date:   Thu Mar 9 16:26:21 2023 -0600

    ignore all *.so files

    Signed-off-by: Jeff Carr <jcarr@wit.com>

commit e21934fff3cfea30b04df01bf0714f6927aa78f4
Author: Jeff Carr <jcarr@wit.com>
Date:   Thu Mar 9 16:25:15 2023 -0600

    can't embed the toolkit/*.so files here

    Signed-off-by: Jeff Carr <jcarr@wit.com>

commit f1e6c5fc9c8ca36db3ad6109d64612b6850fa856
Author: Jeff Carr <jcarr@wit.com>
Date:   Thu Mar 9 16:21:14 2023 -0600

    andlabs group widget has Show() and Hide()

    Signed-off-by: Jeff Carr <jcarr@wit.com>

commit e8487504aa76ca99c4891b777585a428fda0ef62
Author: Jeff Carr <jcarr@wit.com>
Date:   Thu Mar 9 16:07:56 2023 -0600

    pass the node id into the plugin to use in channels

    Signed-off-by: Jeff Carr <jcarr@wit.com>

commit 3667940a77af4e3855facb9247771d595477302f
Author: Jeff Carr <jcarr@wit.com>
Date:   Thu Mar 9 14:20:21 2023 -0600

    fix SetText() on Label

    Signed-off-by: Jeff Carr <jcarr@wit.com>

commit 311d6be66db84b63fb7124df64e2e9be0f0b76a4
Author: Jeff Carr <jcarr@wit.com>
Date:   Thu Mar 9 14:06:46 2023 -0600

    still compiles and runs

    Signed-off-by: Jeff Carr <jcarr@wit.com>

commit ee4e9b21ef59a97f902c6dae2a57ac7b3063fe3b
Author: Jeff Carr <jcarr@wit.com>
Date:   Thu Mar 9 11:02:34 2023 -0600

    compiles

    Signed-off-by: Jeff Carr <jcarr@wit.com>

Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-03-12 08:47:16 -05:00
Jeff Carr 7d1836390a release as v0.6.5
good standard release
    really clean interaction to plugin
    really clean debug flags implementation
    common doAppend() idea, but it probably won't work
    re-implement combobox. this code base almost doesn't suck
    slider & spinner set values now
    tab set margin works
    convert dropdown to Send()
    lots of other changes to try to implement single line Entry()
    I guess use golang file names even though internalally the go developers
    use underscore chars in the actual go sources.
        Maybe there is a reason for that?
    go channel debug window does something
    make a debug window for channels. add sample icons

Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-03-03 14:41:38 -06:00
Jeff Carr 56cd14867d minor makefile change
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-03-01 18:17:41 -06:00
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 4242393152 setup building without plugins on windows
notes from github remote
keep removing os.Exit()
rename from andlabs2 back to andlabs
rename files for windows andlabs/ui
gocui always sets STDOUT a file in /tmp/

Signed-off-by: Jeff Carr <jcarr@wit.com>
2022-11-14 14:30:28 -06:00