Trevor Slocum
3ad2fdd36a
Clarify that Table rows must each have the same number of columns
2020-10-14 13:51:50 -07:00
Trevor Slocum
c3391c3c3b
Make printWithStyle public and rename as PrintStyle
2020-10-13 10:17:33 -07:00
Trevor Slocum
2fe1085168
Fix List dividers allowing selection
2020-10-13 10:13:36 -07:00
Trevor Slocum
2877b77c18
Allow scrolling List horizontally
2020-10-13 09:45:35 -07:00
Trevor Slocum
a3a0d67f65
Fix WordWrap bounds out of range
...
Resolves #27 .
2020-10-12 21:48:00 -07:00
Trevor Slocum
ab1858fcd0
Update example in README
2020-10-12 10:19:41 -07:00
Trevor Slocum
4aae94db85
Add Application.GetScreen and Application.GetScreenSize
...
Resolves #41 .
2020-10-12 10:07:50 -07:00
Trevor Slocum
bf9ccbdf1a
Support additional Slider input keys
2020-10-11 17:45:08 -07:00
Trevor Slocum
298510a685
Revert WordWrap signature change
...
Resolves #40 .
2020-10-11 17:15:33 -07:00
Trevor Slocum
9c3564dc42
Add Slider
2020-10-11 13:39:04 -07:00
Trevor Slocum
b47c35329c
Fix TextView region highlighting
2020-10-11 12:07:30 -07:00
Trevor Slocum
c33ce95633
Fix List.Transform not calling handler set via SetChangedFunc
...
Resolves #39 .
2020-10-09 16:51:45 -07:00
Trevor Slocum
4ac48a9748
Replace FormItem.SetAttributes with individual methods
2020-10-09 08:37:54 -07:00
Trevor Slocum
94351006a1
Remove Application.ForceDraw
2020-10-07 21:27:30 -07:00
Trevor Slocum
86d39b1867
Do not wrap around TableCell selection
2020-10-07 20:39:16 -07:00
Trevor Slocum
ed5e6d94dd
Remove return values from methods which return their primitive (breaks chaining)
2020-10-07 16:35:21 -07:00
Trevor Slocum
2763609e05
Store InputField text data as []byte instead of string
2020-10-07 08:40:36 -07:00
Trevor Slocum
d5edb975b6
Store ListItem text as []byte instead of string
2020-10-06 18:19:40 -07:00
Trevor Slocum
96b2dd5523
Add Table test and benchmark, store TableCell as []byte instead of string
2020-10-06 18:02:37 -07:00
Trevor Slocum
4cbfd55a8e
Document TextView optimizations
2020-10-06 13:55:51 -07:00
Trevor Slocum
741bac61c6
Update .gitignore
2020-10-06 13:26:47 -07:00
Trevor Slocum
534661590c
Merge branch 'print' into 'master'
...
Print text using []byte instead of string, calculate string width using runewidth instead of uniseg
See merge request tslocum/cview!8
2020-10-06 20:20:13 +00:00
Trevor Slocum
6b34a95e75
Print text using []byte instead of string, calculate string width using runewidth instead of uniseg
2020-10-06 13:16:37 -07:00
Trevor Slocum
50a085333b
Use TrimRightFunc when wrapping text in TextView
2020-10-06 13:14:45 -07:00
Trevor Slocum
659788f590
Add TextView.SetBytes
2020-10-04 13:03:28 -07:00
Trevor Slocum
da799d93c0
Document addition of TextView.GetBytes
2020-10-04 12:54:31 -07:00
Trevor Slocum
b5fba43a01
Merge branch 'tvopt' into 'master'
...
Store TextView buffer as [][]byte instead of []string
Closes #36
See merge request tslocum/cview!7
2020-10-04 19:50:46 +00:00
Trevor Slocum
710303491e
Store TextView buffer as [][]byte instead of []string
...
Partially implements #36 .
2020-10-04 12:44:26 -07:00
Trevor Slocum
4de432d7aa
Release v1.5.0
2020-10-03 21:04:46 -07:00
Trevor Slocum
5a3409bfd6
Release lock on InputField while executing DoneFunc and FinishedFunc
2020-10-02 17:00:57 -07:00
Trevor Slocum
3d1844e33b
Panic when attempting to add an invalid FormItem
2020-10-02 16:31:31 -07:00
Trevor Slocum
db81e43e00
Remove wrapper methods
2020-10-02 16:28:32 -07:00
Trevor Slocum
e1cd3be7bb
Lock Mutex when setting InputField attributes
2020-10-02 11:23:49 -07:00
Trevor Slocum
f83115be61
Merge branch 'fix/inputfield-suggestion' into 'master'
...
fix(inputfield): Display suggestion correctly
Closes #37
See merge request tslocum/cview!6
2020-10-01 19:51:55 +00:00
Trevor Slocum
34b52f731a
Add TextView buffer indexing benchmark
2020-10-01 12:45:11 -07:00
Andreas Bieber
9acd4bf821
fix(inputfield): Display suggestion correctly
2020-10-01 19:58:30 +02:00
Trevor Slocum
018a7e47fe
Allow autocomplete selection value customization
2020-09-30 12:14:51 -07:00
Trevor Slocum
0e419707b0
Add link to list of applications using cview
2020-09-29 13:34:38 -07:00
Trevor Slocum
357a49e9e7
Do not set focus-related style attributes by default
2020-09-29 13:24:12 -07:00
Trevor Slocum
a709a929d9
Fix FormItem.SetAttributes race condition
...
Resolves #35 .
2020-09-28 22:34:38 -07:00
Trevor Slocum
d53f87d967
Update List scroll bar cursor when view offset changes (rather than selected item)
2020-09-24 20:51:51 -07:00
Trevor Slocum
0c4f526680
Add WindowManager requirement to Window docs
2020-09-24 08:35:12 -07:00
Trevor Slocum
e20e58147f
Add Window and WindowManager
2020-09-24 08:09:55 -07:00
Trevor Slocum
97f450fc34
Set DropDown options list width to at least as wide as the originating field
2020-09-23 16:22:12 -07:00
Trevor Slocum
89fa23ab00
Resolve lint warnings
2020-09-23 16:14:53 -07:00
Trevor Slocum
5505bb7a58
Document changes submitted by Andreas Bieber
2020-09-23 15:44:28 -07:00
Trevor Slocum
1cfb3711cf
Merge branch 'feat/alot-of-features' into 'master'
...
Revamp FormItem styling, add arrow symbol to DropDown, add focus-driven style
options, add InputField autocomplete style options, provide DropDownOption in
DropDown handlers and provide ListItem in List handlers.
See merge request tslocum/cview!5
2020-09-23 22:24:27 +00:00
Andreas Bieber
474a8c1a27
chore: Add makefile and use in `gitlab-ci.yml`
...
Gives an easy possibility to execute the same commands as in the pipeline.
2020-09-23 20:54:48 +02:00
Andreas Bieber
70857602a5
feat(FormItem): Replace `SetFormAttributes` with `SetAttributes`
...
BREAKING CHANGE:
`SetFormAttributes` has been removed. To migrate your project, use `SetAttributes` which expects any combination of attribute setters.
Example:
`formItem.SetAttributes(cview.WithLabelWidth(10), cview.WithLabelColor(tcell.ColorYellow))`
or
`formItem.SetAttributes(cview.WithBackgroundColor(tcell.ColorBlack))`
2020-09-23 20:54:48 +02:00
Andreas Bieber
1d019e9697
fix(treeview): Use `scrollBarColor`
2020-09-23 20:54:48 +02:00