Commit Graph

18 Commits

Author SHA1 Message Date
Jeff Carr c3ba0117df remove libui dependancy on ui.TableString type
Use standard golang 'string' instead of requiring every external
function that manipulates the UI actually need to import the libui
toolkit. This hopefully seperates the GUI from the data the GUI
displays. The libui code actually scans through the data and
updates the cells based on what is stored in memory so this
makes this seperation clean.

Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-21 14:48:15 -07:00
Jeff Carr 7d01a72e59 better variable names
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-21 14:39:46 -07:00
Jeff Carr 5ec1416d20 combined table column init
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-13 00:30:38 -07:00
Jeff Carr f3eeb4e9ec remove all the uneeded row args
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-13 00:08:59 -07:00
Jeff Carr ea6d22fc46 only have one copy of the libUI -> human index mapping
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-12 23:56:53 -07:00
Jeff Carr f4f430561d really simplify the cell index -> human index mapping
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-12 23:49:26 -07:00
Jeff Carr f8000c2e23 no longer need the setCell function callback
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-12 23:37:27 -07:00
Jeff Carr ab3cb83385 remove the old Value from the struct
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-12 23:17:48 -07:00
Jeff Carr 50d0a1e428 more code removal
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-12 23:09:57 -07:00
Jeff Carr dd753552fd some data is flowing all the way through to the GUI for the first time
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-12 21:01:22 -07:00
Jeff Carr c58f4d0c61 attempt a mapping between the libUI and human index's
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-12 20:25:55 -07:00
Jeff Carr b92903ad15 try to clean up this wrapper code
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-12 18:05:17 -07:00
Jeff Carr 27bf7bb709 freeze to try to fix things inside of libui
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-12 15:33:33 -07:00
Jeff Carr 800f8db555 export all the structs in TableData
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-12 15:11:32 -07:00
Jeff Carr f754cd7030 Cleaned out the cell width type init from the data init
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-08 16:50:52 -07:00
Jeff Carr 224fdff8aa successfully inserted a row
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-08 15:28:40 -07:00
Jeff Carr 3fa08bed15 export two functions
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-08 13:09:17 -07:00
Jeff Carr 188a1de0b5 Initial commit
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-08 13:04:18 -07:00