Commit Graph

67 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 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 b47c35329c Fix TextView region highlighting 2020-10-11 12:07: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 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 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 89fa23ab00 Resolve lint warnings 2020-09-23 16:14:53 -07:00
Trevor Slocum f35f86924a Add Table.Sort, Table.SetSortFunc and Table.SetSortClicked
Resolves #33.
2020-09-01 15:44:43 -07: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 48c31ff1a0 Remove wiki references 2020-04-26 16:59:33 -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 d815ca837d Fix scrolling Table with PageDown and PageUp when some fixedRows are not visible 2020-02-24 08:49:00 -08:00
Trevor Slocum 74844d6d3f Fix applying ScrollBarAlways to List 2020-02-24 08:06:04 -08:00
Trevor Slocum b4090e9215 Fix scrolling Table with PageDown and PageUp 2020-02-13 09:54:18 -08:00
Trevor Slocum c6f9bcda29 Add option to always show scroll bar 2020-02-13 09:51:01 -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
Trevor Slocum b61132eddf Fork tview as cview
See FORK.md for details
2019-12-30 15:18:26 -08:00
Oliver 2d957c4be0 Added an "evaluate all rows" flag to Table. Resolves #345 2019-11-21 20:56:45 +01:00
Oliver 23dc8a0944 Table.Select() also triggers "selection changed" event. Fixes #323 2019-07-21 15:54:19 +02:00
Oliver 8d5eba0c2f Replaced runewidth.StringWidth() with my own implementation. Fixes #236 2019-03-19 12:13:40 +01:00
Oliver 03d744dee3 SetOffset() also turns off end-tracking in Table. Fixes #238 2019-03-08 20:13:09 +01:00
Oliver a45c8edf60 Fixed region/color tag escaping bug. Fixes #234 2019-02-13 16:07:01 +01:00
Oliver 2b7ed85b88 Added InsertRow() and InsertColumn() to Table, see #213 2019-01-23 16:36:09 +01:00
Guendisch, Dieter 55dadc0057 Added a reference to TableCell. Fixes feature request #229. 2019-01-22 20:46:32 +01:00
Oliver 8cf347b745 Added row/column removal functions to Table. Resolves #174 2018-11-10 13:03:06 +01:00
Oliver 6d988e2839 Minor typo fixes. 2018-10-27 14:28:12 +02:00
Oliver 00de4610ae Added custom higlight styles to Table. Resolves #154 2018-09-05 10:39:21 +02:00
Oliver 4631cd7337 Added the tree view. 2018-06-20 10:06:05 +02:00
Benjamin Weidig 06dd16088a replaced old borders code with new configurable borders 2018-06-09 14:58:29 +02:00
Oliver a26df4e781 Added SetAttributes() and SetStyle() to TableCell. Resolves #111 2018-05-15 16:59:07 +02:00
Oliver 83d0a16fb2 Added background colors and text attributes to color tags. Resolves #91 2018-04-01 21:19:10 +02:00
Oliver 761e3d72da Added Primitive demo to go along with the GitHub Wiki entry on how to create your own primitive. 2018-03-19 21:25:30 +01:00
Oliver c96894c0cf Bugfix which caused a crash in Table class. Fixes #67 2018-03-10 12:59:42 +01:00
Oliver ccd80aa4fc Minor code reduction. 2018-03-05 14:18:04 +01:00
Oliver 8cb36ea743 Added expansion factor to table cells which grows columns if there is more space than needed. Resolves #62 2018-03-05 14:07:18 +01:00
Oliver 37a7254a64 Some comment cleanup. 2018-02-13 14:17:51 +01:00
Takumasa Sakao 453c374c1c Add GetOffset method on Table 2018-02-12 03:35:26 +09:00
Oliver ef6026df3d Fixed table background colors. More sophisticated but more aesthetically pleasing. Fixes #20 2018-01-20 23:04:09 +01:00
Oliver f3686bfe15 Fixed Table.SetCellSimple(). Resolves #35 2018-01-20 15:59:52 +01:00
Oliver 258f212e5e Added color tag functionality to all strings. Resolves #25 2018-01-17 17:13:36 +01:00
Oliver 95e3124245 Fixed Table cell background colors for column-only selections. 2018-01-17 09:34:45 +01:00