Garrett D'Amore
7fbbefd986
Improved drop down list usability.
2022-07-29 19:10:30 -07:00
Trevor Slocum
919f229dcc
Update List, Table and TreeView to not handle Tab or Backtab
2021-05-25 09:04:35 -07:00
Trevor Slocum
3581fe03ea
Draw additional accents when rendering a list divider
2021-05-25 08:53:29 -07:00
Trevor Slocum
d7f1e2ab2a
Add SetVisible and GetVisible to all widgets
2020-10-19 19:05:03 -07:00
Trevor Slocum
597052a7e7
Add FocusManager
2020-10-16 09:25:21 -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
c33ce95633
Fix List.Transform not calling handler set via SetChangedFunc
...
Resolves #39 .
2020-10-09 16:51:45 -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
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
d53f87d967
Update List scroll bar cursor when view offset changes (rather than selected item)
2020-09-24 20:51:51 -07:00
Trevor Slocum
89fa23ab00
Resolve lint warnings
2020-09-23 16:14:53 -07:00
Andreas Bieber
bace1ac630
feat(List): Add additional field for setting an optional reference (like in TreeView)
2020-09-23 20:46:36 +02:00
Andreas Bieber
d315a5c5b3
feat(List): Expose `ListItem`
...
BREAKING CHANGE:
- The signature of `SetChangedFunc` and `SetSelectedFunc` has changed to pass the newly exposed `ListItem` instead of its properties
- The signature of `AddItem` and `InsertItem` has changed to expect a `ListItem` instead of the properties them self
2020-09-23 20:46:36 +02:00
Trevor Slocum
f269c326f6
Base List PageUp and PageDown on the number of items displayed
2020-09-08 14:22:58 -07:00
Trevor Slocum
8292f9baf2
Upgrade tcell to v2
...
Resolves #32 .
2020-08-30 08:37:17 -07:00
Trevor Slocum
9ec0a6d3f2
Position ContextMenu on selected item when negative coordinates are provided
2020-08-11 15:31:18 -07:00
Trevor Slocum
49536324ce
Rename Keys.SelectAlt to Keys.Select2
2020-06-10 09:52:50 -07:00
Trevor Slocum
81cfea205d
Fix negative List offset and DropDown selection
...
Resolves #16 .
2020-06-02 15:51:03 -07:00
Trevor Slocum
698a0adf93
Add List.SetSelectedAlwaysCentered
2020-05-20 15:36:19 -07:00
Trevor Slocum
8acccbefa7
Split up shortcuts into primary and secondary
2020-05-18 20:06:54 -07:00
Trevor Slocum
777d2f09fc
Use Keys shortcuts with Button, CheckBox, Grid and Table
2020-05-18 19:49:25 -07:00
Trevor Slocum
b65f57f2fc
Rename matchesKeys to HitShortcut
2020-05-17 10:14:17 -07:00
Trevor Slocum
91afabde29
Allow multiple sets of keybindings to be provided to matchesKeys
2020-05-16 11:21:10 -07:00
Trevor Slocum
04a0149298
Add Keys to allow default keybindings to be modified
2020-05-15 16:17:41 -07:00
Trevor Slocum
d6093272ed
Fix incorrect List offset in DropDown
2020-05-09 17:41:43 -07:00
Trevor Slocum
ce60530a57
Always initialize context menu List
...
Resolves #12
2020-05-09 10:37:21 -07:00
Trevor Slocum
cfce21cc90
Do not handle right click on List when there is no context menu
2020-05-08 19:51:50 -07:00
Trevor Slocum
41db607cc9
Fix mutex usage in List.MouseHandler
2020-05-08 16:12:48 -07:00
Trevor Slocum
68e4485d34
Document adding Vim-style keybindings to List
2020-05-08 15:48:52 -07:00
Tryffel
9347d1b2c8
Add 'j k G g' shortcuts for moving inside list
2020-05-08 23:41:54 +03:00
Trevor Slocum
52150da761
Add List.GetOffset and List.SetOffset
2020-05-01 16:08:22 -07:00
Trevor Slocum
642a8d8ad4
Fix List not updating selected item before calling selected handlers
2020-04-29 14:50:10 -07:00
Trevor Slocum
66d2785058
Add List.SetSelectedTextAttributes
2020-04-28 14:59:40 -07:00
Trevor Slocum
48c31ff1a0
Remove wiki references
2020-04-26 16:59:33 -07:00
Trevor Slocum
5bfb860744
Fix List.SetSelectedFocusOnly
2020-04-25 06:35:14 -07:00
Trevor Slocum
54834cdd54
Add List.Transform
2020-04-21 15:16:03 -07:00
Trevor Slocum
57ef7437e3
Add ContextMenu
2020-04-18 20:00:36 -07:00
rivo
1f765c8695
Merge pull request #422 from rivo/mouse
...
Add mouse support
2020-03-30 10:22:55 -07:00
Trevor Slocum
e29d4b73b9
Make cview thread-safe
2020-03-25 14:32:57 +00:00
Trevor Slocum
b90f05a226
Update README
2020-02-24 18:11:37 -08:00
Trevor Slocum
74844d6d3f
Fix applying ScrollBarAlways to List
2020-02-24 08:06:04 -08:00
Trevor Slocum
7175730374
Fix panic when navigating empty list
2020-02-17 08:25:21 -08:00
Trevor Slocum
c6f9bcda29
Add option to always show scroll bar
2020-02-13 09:51:01 -08:00
Trevor Slocum
c40fd422f0
Do not wrap around list by default
2020-02-10 17:17:22 -08:00
Trevor Slocum
96f3c15040
Add scroll bar to List, DropDown, Table and TreeView
2020-02-01 07:27:15 -08:00
Trevor Slocum
5f880bc2c7
Migrate to GitLab
2020-01-22 15:28:19 -08:00
Chris Miller
a52eae5a0d
Refactor EventMouse
2020-01-01 20:24:34 -08:00