Jeff Carr
cdf7ee0962
remove demo examples
...
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-23 16:38:33 -07:00
Jeff Carr
3dca760b3e
remove old function name
...
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-23 16:09:22 -07:00
Jeff Carr
cc5fc8d6a5
more bg color debugging
...
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-23 15:32:09 -07:00
Jeff Carr
963a910a43
ignore background color on windows for now
...
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-23 15:28:09 -07:00
Jeff Carr
a8d43bea82
try nil for all BG row colors
...
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-23 15:23:26 -07:00
Jeff Carr
07b16e3672
make account grid
...
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-23 15:07:10 -07:00
Jeff Carr
7e9037a9f5
remove color hack
...
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-23 14:33:11 -07:00
Jeff Carr
3e8617d05c
try to return a nil color
...
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-23 14:02:04 -07:00
Jeff Carr
e00585d71a
more debugging
...
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-23 13:57:49 -07:00
Jeff Carr
6dadeae3fd
trap window close and correctly exit
...
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-23 13:44:53 -07:00
Jeff Carr
f283a656dc
start honoring the debugging flag for more output
...
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-23 13:13:42 -07:00
Jeff Carr
7bcdefb94a
add a HomeDir
...
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-23 11:34:39 -07:00
Jeff Carr
5775e40780
fix QUIT
...
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-23 11:03:26 -07:00
Jeff Carr
e6e1fec442
pass through the account username and password
...
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-23 10:50:37 -07:00
Jeff Carr
8cc6e993b9
typo
...
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-23 10:03:50 -07:00
Jeff Carr
6766a7fd15
show the accounts
...
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-23 10:03:27 -07:00
Jeff Carr
b9ade31605
try to list the registered accounts
...
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-23 09:48:12 -07:00
Jeff Carr
cf9fe10d1e
display golang build version & git commit
...
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-23 00:12:18 -07:00
Jeff Carr
0ac47b65bd
allow version to be set
...
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-22 22:50:36 -07:00
Jeff Carr
0190410cc9
vms tab now creates within the GUI goroutine
...
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-22 22:37:03 -07:00
Jeff Carr
c4b46266b0
push button logic outside of the GUI
...
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-22 21:34:46 -07:00
Jeff Carr
7638127519
more button tests
...
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-22 21:16:52 -07:00
Jeff Carr
0960f2a744
move the 'main' tab here
...
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-22 20:49:28 -07:00
Jeff Carr
6984b0dbc0
all local variables are in Data{}
...
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-22 20:30:48 -07:00
Jeff Carr
23f110b5a2
goes to the 'add account' tab now
...
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-22 20:03:17 -07:00
Jeff Carr
72c316dc99
calls back on button clicks
...
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-22 19:18:55 -07:00
Jeff Carr
7ea694b086
more moving of all variables into a common structure
...
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-22 19:11:43 -07:00
Jeff Carr
9189fcde04
start moving everything into a common structure (gui.Data)
...
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-22 19:05:25 -07:00
Jeff Carr
522581dbaf
I guess all GUI stuff must go in here. No other goroutine can ever
...
interact with the GUI or Windows cross platform support breaks.
Lame
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-22 18:35:00 -07:00
Jeff Carr
5c07e5f605
actually use the string passed
...
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-22 11:27:58 -07:00
Jeff Carr
c43ef7e7e3
attempt to make buttons with custom callback functions
...
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-22 10:39:56 -07:00
Jeff Carr
4876f4ae77
re-enable debug if statement
...
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-21 18:42:14 -07:00
Jeff Carr
0f1c19d351
remove debugging if statements
...
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-21 18:35:38 -07:00
Jeff Carr
acf873444d
more debugging
...
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-21 18:28:20 -07:00
Jeff Carr
e3e34a49ce
more debugging
...
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-21 18:25:08 -07:00
Jeff Carr
0826a04593
use the standard golang 'image/color' struct
...
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-21 15:17:50 -07:00
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
6a9ff162d9
start working on a VM window
...
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-15 11:03:42 -07:00
Jeff Carr
20a71cca67
this was what was causing it to crash. You can not Quit on other windows
...
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-15 10:28:03 -07:00
Jeff Carr
2ea414bb14
make a common column init()
...
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-13 00:46:11 -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
138eff381a
more code cleanup
...
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-12 23:02:39 -07:00
Jeff Carr
12e37b4d1f
also set the color
...
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-12 21:44:05 -07:00