Commit Graph

455 Commits

Author SHA1 Message Date
Oliver ca37f83cb2 TextView changed function is always called in a separate goroutine to avoid deadlocks. Fixes #416 2020-04-04 22:46:04 +02:00
Oliver cce7c98823 Don't forward mouse events to nil items in Flex/Grid. Fixes #425 2020-04-04 22:19:02 +02:00
rivo 7cc182c584
Merge pull request #422 from rivo/mouse
Added mouse support, closes #13
2020-03-29 21:43:46 +02:00
Oliver f395cf6e33 Added mouse scrolling to List, Table, TextView, and TreeView. 2020-03-29 21:36:06 +02:00
Oliver b3dc389cb4 Added mouse support to presentation demo. TextView "highlighted" callback also receives remaining highlights. 2020-03-29 21:03:36 +02:00
Oliver 2505a942a1 Added mouse selection of regions in TextViews. 2020-03-29 20:20:05 +02:00
Oliver 5f5b79b00e Added mouse support for Table and TreeView. 2020-03-27 21:13:03 +01:00
Oliver 9af6826328 Added/fixed comments, some structural changes/bugfixes for mouse support. Table, TextView, and TreeView still open. Closes #363 2020-03-27 18:41:44 +01:00
rivo 160d8fda1d
Merge pull request #363 from millerlogic/mouse-support
Mouse support
2020-03-26 19:28:51 +01:00
Anatoli Babenia 37ec5d08a6
Use List height for scrolling with PgUp/PgDn
Fixes #417.
2020-03-11 22:22:05 +03:00
Chris Miller 55c590d97f Refactor fireMouseActions 2020-03-03 18:07:39 +00:00
Chris Miller 12f94f688a Document DoubleClickInterval 2020-03-03 17:45:32 +00:00
Chris Miller 55cdc84e25 EnableMouse to take bool and enable/disable directly 2020-03-03 16:24:50 +00:00
Chris Miller 15700e7129 Minor changes 2020-03-03 16:16:56 +00:00
Chris Miller 1fb9862c00 Separate action events 2020-02-28 01:19:36 +00:00
Trevor Slocum 5c7d71700b Fix scrolling table with PageDown and PageUp
Resolves #402.
2020-02-20 19:57:35 -08:00
Oliver cd38d74324 Merge branch 'ajcarvajal-master' 2020-02-19 22:08:16 +01:00
Oliver 0f2b919ef2 Resolved merge conflict 2020-02-19 22:08:05 +01:00
Oliver a177a82b6c Clarifying the role of the Box class better. Resolves #373 2020-02-19 21:46:40 +01:00
rivo 640e03d648
Merge pull request #383 from tslocum/demo-append
Fix presentation demo appending TextView indefinitely
2020-02-19 21:40:39 +01:00
rivo 50771d8cae
Merge pull request #390 from tslocum/deps
Update dependencies colorful and runewidth
2020-02-19 21:28:02 +01:00
Oliver ba670d23ba The inner area of a Box does not clamp to screen borders anymore. Consequently added some drawing optimization to primitives. Resolves #405 2020-02-19 18:31:32 +01:00
Oliver fe30520195 Application.QueueUpdate() returns after its provided function has executed. 2020-02-19 17:01:20 +01:00
rivo 0ba8301b41
Merge pull request #408 from tslocum/emptylist
Fix panic when navigating empty list
2020-02-19 14:50:20 +01:00
Trevor Slocum babee1042c Fix panic when navigating empty list
Resolves #407.
2020-02-17 08:27:45 -08:00
Chris Miller 0daf286122 Improve dropdown mouse handling 2020-02-14 03:06:14 +00:00
Chris Miller 5ef51540da Double click interval 2020-02-14 02:45:13 +00:00
Chris Miller 8abbf770ec Change mouse handler func 2020-02-14 02:09:09 +00:00
Trevor Slocum f1e2d87625 Update dependencies colorful and runewidth 2020-02-13 15:45:52 -08:00
Oliver ae3d8cac5e Avoiding panics for empty tree views. 2020-02-04 12:03:23 +01:00
Oliver 3a5c6317e4 Setting time of last redraw. 2020-01-29 07:55:29 +01:00
rivo e8d1520774
Merge pull request #392 from blefevre/master
Add Flex.Clear() method to remove all items in flexbox
2020-01-27 15:38:56 +01:00
Ben LeFevre 016b6bd9e3
Update Flex.Clear() documentation 2020-01-27 14:37:07 +00:00
Oliver f1ffa42918 Throttling resize events. Resolves #378 2020-01-27 15:20:36 +01:00
Oliver f15d087aa0 Added SetDoneFunc() to TreeView. Resolves #394 2020-01-25 13:36:38 +01:00
Chris Miller 080a8e624e Fix operator 2020-01-24 23:58:34 +00:00
Chris Miller 9598ca2519 New mouse design
capture bool not finalized
2020-01-24 20:40:34 +00:00
Ben LeFevre 37b143d5fa Add Flex.Clear() method to remove all items 2020-01-21 13:13:47 -05:00
Oliver 1316ea7a4b ANSI parser now also handles SGR 39 and 49. Fixes #347 2020-01-08 17:16:08 +01:00
ajcarvajal 93e6a490c3 Revert "formatting fixes"
This reverts commit e4b4b7fe82.
2020-01-08 09:43:49 -05:00
Oliver 5bbae91e1e Fixed off-by-one error in TextView which led to line-trailing tags be moved to the next line. Fixes #336 2020-01-07 20:56:27 +01:00
Trevor Slocum 99c1df4191 Fix presentation demo appending TextView indefinitely 2020-01-06 16:06:37 -08:00
Oliver c6236f4421 Merge branch 'master' of github.com:rivo/tview 2019-12-31 11:07:00 +01:00
Oliver c5f3e4f883 Added GetFocusedItemIndex() to Form. Resolves #293 2019-12-31 11:06:47 +01:00
rivo 1ee8d9874d
Merge pull request #292 from mikeschinkel/box_gettitle
Added a GetTitle() method to Box
2019-12-29 17:56:09 +01:00
Oliver 6e00e540f2 Added a wrap-around flag to the List. Resolves #380 2019-12-29 17:47:05 +01:00
Oliver 82b05c9fb3 Grid's background box is transparent again. Fixes #359 2019-11-29 07:51:40 +01:00
Oliver 9c225ecd57 Added GetFormItemCount() to Form. Resolves #298 2019-11-27 19:18:27 +01:00
Oliver c1775d4e31 Added a clarifying note to the contributing guidelines. 2019-11-27 19:11:06 +01:00
Oliver 0f6549646b Added SetFocus() to Modal, focuses on the provided button. Resolves #364 2019-11-27 18:27:26 +01:00