Commit Graph

286 Commits

Author SHA1 Message Date
Oliver f8bc69b903 Every redraw of a Form re-evaluates the focus index. Fixes #144 2019-08-29 18:12:55 +02:00
Oliver 23dc8a0944 Table.Select() also triggers "selection changed" event. Fixes #323 2019-07-21 15:54:19 +02:00
Oliver b8bb0f928f Grid offset handling was buggy. Fixes #279 2019-07-17 18:46:45 +02:00
Oliver f63eca142c List changed event was not fired when SetCurrentItem() was called. Fixes #315 2019-07-11 11:37:27 +01:00
Oliver 0e689965bb Fixed wrong handling of 8-bit ANSI colors. Fixes #317 2019-07-11 11:30:32 +01:00
Oliver fc28d646d0 Primitive widths/heights should not become negative. Also fixed a
TextView issue where purging led to panics. Fixes #306
2019-07-09 14:04:41 +01:00
Oliver c3d1d4bcf9 Added autocomplete functionality to InputField. Resolves #299, resolves #77 2019-07-08 09:34:06 +01:00
Oliver c0e09651e4 More specific definition of punctuation characters at which WordWrap() breaks. Fixes #295 2019-07-05 11:49:22 +01:00
rivo 4679c7790c
Merge pull request #291 from mikeschinkel/adddropdown_init
Fix initialization bug in AddDropDown(), fixes #290.
2019-07-05 11:34:45 +01:00
Oliver 95de965571 Selection bar in DropDown stretches entire width now. Also added SetTextOptions() with prefixes/suffixes etc. Resolves #289 2019-07-05 10:48:25 +01:00
Oliver 17ae691817 Reimplemented the WordWrap() function. Fixes #251 2019-06-29 20:45:09 +01:00
rivo 2e907d29e4
Merge pull request #308 from ollien/fix-row-count
Don't throw away nodes after drawing
2019-06-26 15:39:40 +02:00
Oliver e3f6263a37 Added a page count getter to Pages. Resolves #310 2019-06-26 15:31:22 +02: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
Mike Schinkel c2c3679add Fix initialization bug in AddDropDown(), issue #290. 2019-06-03 20:40:09 -04:00
Oliver 384f577a62 Added SetFocus() to Form which changes the focus to a specific form element. Resolves #286 2019-06-02 21:31:59 +02:00
Oliver 29b0d3cfbf Updated table demo screenshot. Resolves #282 2019-06-02 19:24:19 +02:00
Oliver bd836ef13b Added new guidelines for PR's. 2019-05-15 18:12:33 +02:00
rivo cf9d115173
Merge pull request #269 from wedaly/master
Add functions to set background color, button text, and button background color on modal.
2019-05-14 18:34:53 +02:00
Oliver 7cc6943d5a Space will also select a node in a TreeView. Resolves #280 2019-05-14 18:24:39 +02:00
Oliver d14da4f46f Bugfix in Grid which mistakenly compared grid item size to resolve conflicts. Fixes #277 2019-05-14 18:10:49 +02:00
Oliver 3c477cc248 TextView.ScrollTo() will turn off end-tracking. Fixes #274 2019-05-14 17:07:36 +02:00
Oliver f16ba37c6a Added functions to remove all buttons from forms and from modals. Resolves #259 2019-05-14 16:48:29 +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
Oliver 7a653a04b3 Package now uses go modules. 2019-05-13 10:41:35 +02:00
Will Daly 743e3fe55d Add functions to set background color, button text, and button background color on modal 2019-04-17 10:37:35 -07:00
Oliver 90b4da1bd6 Fixed empty pages when the only visible page was removed. Fixes #250 2019-04-06 20:23:40 +02:00
Oliver 9d616aee87 DropDown's SetCurrentOption() will also trigger the selected event. Closes #256, resolves #260 2019-04-05 23:20:22 +02:00
Oliver 8a9e26fab0 Hitting the Alt-key should not prevent input. Fixes #240 2019-03-24 19:21:52 +01:00
Oliver 8d5eba0c2f Replaced runewidth.StringWidth() with my own implementation. Fixes #236 2019-03-19 12:13:40 +01:00
Oliver 2cc825800b Switched string iteration to using the github.com/rivo/uniseg package. 2019-03-14 12:47:53 +01:00
rivo 3938f60085
Merge pull request #247 from dgrr/master
Added Color getter in TreeNode
2019-03-10 12:39:48 +01:00
Dario 1d0309ee28 Applied requested changes 2019-03-09 23:33:40 +01:00
Oliver d3efe1d5e8 Fixed some comments. 2019-03-09 14:04:59 +01:00
rivo de9730f6df
Merge pull request #200 from ravenops/feature/theme
Add theme struct
2019-03-09 14:02:56 +01:00
Oliver 3548dec808 Fixed a bug where neighbouring colour tags were processed incorrectly. Fixes #241 2019-03-09 12:33:12 +01:00
Oliver 03d744dee3 SetOffset() also turns off end-tracking in Table. Fixes #238 2019-03-08 20:13:09 +01:00
rivo c16128c927
Merge pull request #220 from ardnew/list-spanhighlight
Add option to highlight entire selected row of a List item
2019-03-08 19:57:06 +01:00
dgrr fc4f533e0b Added Color getter 2019-03-07 05:58:50 -05:00
ardnew c43d107310 merge https://github.com/rivo/tview into list-spanhighlight, resolving conflicts for rivo/tview#220 2019-02-20 11:06:48 -06:00
ardnew 26ff9c763a renaming new struct field as requested in rivo/tview#220 2019-02-20 10:58:59 -06:00
rivo b373355e9d
Merge pull request #235 from Bios-Marcel/prevent-regex-recompilation
Prevent recompilation of regexes
2019-02-13 21:27:03 +01:00
Marcel Schramm f3b5afb8cd
Move TabSize comment in texview.go back to where it belongs. 2019-02-13 20:23:52 +01:00
Oliver 3e289f3aca Added TextView.GetText(). Resolves #233 2019-02-13 16:36:28 +01:00
Marcel Schramm f4690e43a0
Prevent recompilation of regexes 2019-02-13 16:26:27 +01:00
Oliver a45c8edf60 Fixed region/color tag escaping bug. Fixes #234 2019-02-13 16:07:01 +01:00
Oliver 84fdb36408 Fixed confusing comments. Fixes #231 2019-01-24 13:01:53 +01:00
Oliver 0a179573ae Improved List scrolling (using an offset member variable). Fixes #217 2019-01-23 21:40:01 +01:00
Oliver 997b18eeff Introduced a separate class-wide "selected" handler for DropDown. Resolves #206 2019-01-23 16:51:16 +01:00