Commit Graph

38 Commits

Author SHA1 Message Date
ViRb3 c2e0525ec0
Fix TreeView CollapseAll 2023-05-10 17:55:14 +01:00
Oliver 5796b0cd5c Fixed scrolling issue in TreeView. Fixes #796 2023-03-30 20:34:52 +02:00
Oliver 87723e5081 Fixed the logic for triggering a TreeView's "changed" callback, allowing it to be triggered for calls to SetCurrentNode(), too. 2023-03-25 22:05:34 +01:00
Oliver becbc92f00 Clarified the "changed" callback trigger mechanism of a TreeView. 2023-03-25 21:34:35 +01:00
Oliver 5bc948d2ca Missed a call to process(). 2022-12-17 15:00:28 +01:00
Oliver 968b7463f7 Added a Move() function to the TreeView. Resolves #432 2022-12-17 14:39:28 +01:00
Oliver cecb44578c Setting focus is now based on a "mouse down" event instead of a "click" event. 2022-09-02 17:49:12 +02:00
Oliver 25fe827270 TreeView scrolling now allows current selection to go out of view. Resolves #613 2021-06-01 10:44:49 +02:00
Oliver 435b99e1df Mouse scrolling on TreeView scrolls instead of selecting nodes. Fixes #607 2021-05-29 11:36:04 +02:00
Oliver 3ac88670dd TreeView.process() fires the changed callback and therefore needs to remain in input handler. Fixes #579 2021-04-26 16:43:34 +02:00
Oliver ae9464cc35 Upgraded printing and style handling to the new definition of tcell.ColorDefault. 2021-03-12 18:48:52 +01:00
Oliver 8a8f78a6dd Added RemoveChild() to TreeNode. Resolves #561 2021-02-17 12:04:21 +01:00
Oliver dfabe788d4 Allowing list items to shift horizontally. Resolves #512, fixes #513 2021-02-15 18:26:27 +01:00
Oliver 4624fa9b67 Added hierarchy navigation to TreeView. Resolves #489 2021-01-11 16:07:39 +01:00
Oliver efed17a61c Added TreeNode.GetLevel(). Resolves #502 2020-12-04 16:52:57 +01:00
Oliver 675ed5b96b Removed Focusable interface. 2020-11-17 19:33:25 +01:00
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