Commit Graph

36 Commits

Author SHA1 Message Date
Trevor Slocum d7f1e2ab2a Add SetVisible and GetVisible to all widgets 2020-10-19 19:05:03 -07:00
Trevor Slocum c3391c3c3b Make printWithStyle public and rename as PrintStyle 2020-10-13 10:17:33 -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 6b34a95e75 Print text using []byte instead of string, calculate string width using runewidth instead of uniseg 2020-10-06 13:16:37 -07:00
Andreas Bieber 1d019e9697 fix(treeview): Use `scrollBarColor` 2020-09-23 20:54:48 +02:00
Andreas Bieber 49e6b5bfe8 feat(treeview): Add `SetSelectedTextColor` and `SetSelectedBackgroundColor` 2020-09-23 18:25:22 +02:00
Trevor Slocum 8292f9baf2 Upgrade tcell to v2
Resolves #32.
2020-08-30 08:37:17 -07:00
Trevor Slocum cdeff20296 Use sync.RWMutex in all widgets
Resolves #30.
2020-08-02 10:06:34 -07:00
Trevor Slocum 49536324ce Rename Keys.SelectAlt to Keys.Select2 2020-06-10 09:52:50 -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 48c31ff1a0 Remove wiki references 2020-04-26 16:59:33 -07:00
Trevor Slocum e00b7a3984 Add TreeView.Transform 2020-04-19 09:49:01 -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 74844d6d3f Fix applying ScrollBarAlways to List 2020-02-24 08:06:04 -08:00
Trevor Slocum c6f9bcda29 Add option to always show scroll bar 2020-02-13 09:51:01 -08:00
Trevor Slocum d7ac9e862c Add SetFocusedFunc to TreeNode
Resolves #3.
2020-02-03 16:13:20 -08:00
Trevor Slocum 96f3c15040 Add scroll bar to List, DropDown, Table and TreeView 2020-02-01 07:27:15 -08:00
Oliver eebbcab38f Added SetDoneFunc() to TreeView. Resolves #394 2020-01-25 08:34:51 -08:00
Trevor Slocum 5f880bc2c7 Migrate to GitLab 2020-01-22 15:28:19 -08:00
Trevor Slocum b61132eddf Fork tview as cview
See FORK.md for details
2019-12-30 15:18:26 -08:00
Nick Krichevsky a186f0a909
Don't throw away nodes after drawing TreeView
Relates to #283
2019-06-15 22:27:48 -04:00
Oliver b62197ade4 Added GetScrollOffset() and GetRowCount() to TreeView. Resolves #283 2019-06-09 18:25:13 +02:00
Oliver 7cc6943d5a Space will also select a node in a TreeView. Resolves #280 2019-05-14 18:24:39 +02:00
Oliver f2bf2be1ba Bugfix in TreeView which may have caused an index out of range. Fixes #262 (hopefully) 2019-05-13 16:28:25 +02:00
Dario 1d0309ee28 Applied requested changes 2019-03-09 23:33:40 +01:00
dgrr fc4f533e0b Added Color getter 2019-03-07 05:58:50 -05:00
Ori Pekelman f9524f55ba move under setter and change to string 2019-01-09 18:04:51 +01:00
Oliver 028ad94730 Fixed semigraphics style in TreeView which ignored background color. Fixes #173 2018-10-27 13:43:14 +02:00
Oliver 405e5fbb4f Separated TreeView's tree-building from Draw() function so changed events can be fired before drawing. Fixes #142 2018-07-27 18:27:27 +02:00
Oliver 306abd9cb9 Minor tweaks. This now also resolves #113 2018-06-20 10:17:55 +02:00
Oliver 4631cd7337 Added the tree view. 2018-06-20 10:06:05 +02:00