Commit Graph

22 Commits

Author SHA1 Message Date
Oliver 237e3862e0 Bugfix: TreeView mouse events need to consider scroll offset. Fixes #528 2020-11-17 15:08:43 +01:00
Oliver e4d167311d Upgraded to latest tcell version. Results in a minor incompatibility in the Table class. 2020-10-18 14:15:57 +02:00
Chris Miller 591e235272 Also call node.selected on node click 2020-04-29 01:18:31 +00:00
Chris Miller 089ac467f8 Allow changing focus in handler 2020-04-17 02:16:20 +00:00
Chris Miller 7b79cb6347 Allow changing current node during handler 2020-04-17 02:15:53 +00:00
Chris Miller 77ccc1ff41 Allow changing current node during handler
Avoids wrong handler being called or even crash on nil
2020-04-17 02:12:37 +00:00
Oliver f395cf6e33 Added mouse scrolling to List, Table, TextView, and TreeView. 2020-03-29 21:36:06 +02:00
Oliver 5f5b79b00e Added mouse support for Table and TreeView. 2020-03-27 21:13:03 +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 ae3d8cac5e Avoiding panics for empty tree views. 2020-02-04 12:03:23 +01:00
Oliver f15d087aa0 Added SetDoneFunc() to TreeView. Resolves #394 2020-01-25 13:36:38 +01: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