Commit Graph

352 Commits

Author SHA1 Message Date
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 c40fd422f0 Do not wrap around list by default 2020-02-10 17:17:22 -08:00
Trevor Slocum 3c170e9696 Migrate docs to docs.rocketnine.space 2020-02-06 16:06:47 -08:00
Trevor Slocum d7ac9e862c Add SetFocusedFunc to TreeNode
Resolves #3.
2020-02-03 16:13:20 -08:00
Trevor Slocum e976a7ce62 Fix mouse support when resuming after Application.Suspend
Resolves #2.
2020-02-02 06:16:27 -08:00
Trevor Slocum 96f3c15040 Add scroll bar to List, DropDown, Table and TreeView 2020-02-01 07:27:15 -08:00
Trevor Slocum 339db80f66 Always fill Box background
This resolves rendering issues with TextViews which have their background
color set to ColorDefault.
2020-01-28 07:10:41 -08:00
Trevor Slocum e877362f62 Update CI script 2020-01-28 07:10:28 -08:00
Oliver eebbcab38f Added SetDoneFunc() to TreeView. Resolves #394 2020-01-25 08:34:51 -08:00
Trevor Slocum d9aac80a70 Release v1.4.1 2020-01-23 08:03:22 -08:00
Trevor Slocum 5f880bc2c7 Migrate to GitLab 2020-01-22 15:28:19 -08:00
Trevor Slocum 51704b9844 Add documentation for GetChildren methods 2020-01-16 22:34:51 -08:00
Trevor Slocum dd0792c33a Add example multi-layout application and mouse-enabled application 2020-01-16 21:34:21 -08:00
Trevor Slocum dbba9159b3 Add Application.RingBell 2020-01-16 18:25:24 -08:00
Trevor Slocum eff6577116 Add ProgressBar widget 2020-01-16 16:53:51 -08:00
Trevor Slocum bb52b8e428 Supply screen width and height to resize callback 2020-01-16 07:50:19 -08:00
Trevor Slocum e3fafa9dc3 Release v1.4.0 2020-01-16 07:50:11 -08:00
Oliver a5d5a39c38 ANSI parser now also handles SGR 39 and 49. Fixes #347 2020-01-08 16:31:52 -08:00
Oliver 2941d561fb Added GetFocusedItemIndex() to Form. Resolves #293 2020-01-08 16:31:04 -08:00
Trevor Slocum 6bbae595a9 Document mouse support 2020-01-08 16:27:20 -08:00
Trevor Slocum 200d8a5791 Release v0.2.2 2020-01-06 16:59:59 -08:00
Trevor Slocum 8f9e826a57 Fix presentation demo appending TextView indefinitely 2020-01-06 16:02:31 -08:00
Trevor Slocum c90e430fdf Add optional message displayed after Checkbox 2020-01-05 09:41:15 -08:00
Daniel P. Berrangé 697baf37a8 Add support for displaying text next to a checkbox
When building forms the label field is typically quite short, just one
or two words. For checkboxes it is often desirable to have a longer
descriptive piece of text. This is not practical to use as a label and
in many applications would more commonly be placed to the right of the
checkbox.

This adds support for a "SetMessage()" method which provides support
for text adjacent to the checkbox

As an example, this form shows one usage pattern, where the checkbox
is used to require case sensitive matching of the author name query.
In this case the checkbox label is an empty string, and the message
text is used instead:

 ╔════════════ User filtering ════════════════════╗
 ║                                                ║
 ║    Age:   ________                             ║
 ║                                                ║
 ║ Author:   ______________                       ║
 ║                                                ║
 ║           X Case sensitive                     ║
 ║                                                ║
 ║   Apply     Cancel                             ║
 ╚════════════════════════════════════════════════╝

Another pattern is where there are a series of checkboxes, all
related to the same attribute. Thus they have a common form
label but different message text

 ╔════════════ Request filtering ═════════════════╗
 ║                                                ║
 ║    State:    X Opened                          ║
 ║                                                ║
 ║              _ Closed                          ║
 ║                                                ║
 ║              _ Merged                          ║
 ║                                                ║
 ║              X Locked                          ║
 ║                                                ║
 ║   Apply     Cancel                             ║
 ╚════════════════════════════════════════════════╝

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2020-01-05 09:27:00 -08:00
Trevor Slocum 73e0d9d3bb Update README.md and FORK.md 2020-01-05 09:14:15 -08:00
Sam Whited 6e0ac2dd4b Don't skip regions at end of line 2020-01-05 08:53:56 -08:00
Trevor Slocum 7c849dd501 Update dependencies 2020-01-04 21:49:02 -08:00
Trevor Slocum 6d9b735867 Fix dropdown mouse capture behavior 2020-01-04 21:43:26 -08:00
Trevor Slocum a8fe476d77 Add presentation demo portal to README 2020-01-04 14:58:58 -08:00
Trevor Slocum 990a2abc33 Add mouse support to presentation demo tabs 2020-01-03 18:46:23 -08:00
Chris Miller 1207c71f9f Observe mouse events inward ("capture") 2020-01-02 16:48:46 -08:00
Trevor Slocum 0f299388e5 Merge tview pull request: Mouse support 2020-01-01 20:58:10 -08:00
Trevor Slocum a9f6e039c7 Fix type error 2020-01-01 20:54:40 -08:00
Chris Miller a52eae5a0d Refactor EventMouse 2020-01-01 20:24:34 -08:00
Chris Miller ad59b43801 Get mouse actions rather than just mouse state 2020-01-01 20:18:40 -08:00
Chris Miller 806d63d900 Fix dropdown focus 2020-01-01 20:18:40 -08:00
Chris Miller 5bac390ebc Dismiss dropdown by click 2020-01-01 20:18:40 -08:00
Chris Miller b243f370d8 DropDown mouse support 2020-01-01 20:18:40 -08:00
Chris Miller 67c158fa9c Fire Selected on list item click 2020-01-01 20:18:40 -08:00
Chris Miller 5b47ba1f32 More mouse handling for primitives 2020-01-01 20:18:40 -08:00
Chris Miller 84d2372c82 Return self 2020-01-01 20:18:40 -08:00
Chris Miller 74b2573bf9 Added mouse handling 2020-01-01 20:18:40 -08:00
Trevor Slocum 6a97e2648e Update README.md 2020-01-01 20:14:14 -08:00
Trevor Slocum 884d92dd16 Update CHANGELOG and FORK.md 2020-01-01 19:43:18 -08:00
Sean Smith 9aa08ad7c7 Handle ansi code 39 and 49
39 is apparently the "default foreground color"
49 is apparently the "default background color"
2020-01-01 19:35:05 -08:00
Trevor Slocum 6e548abb6b Update FORK.md 2020-01-01 19:30:03 -08:00
diamondburned (Forefront) 3d7e978b90 Fixed TextView's reset [-] setting the wrong color 2020-01-01 19:28:02 -08:00
Trevor Slocum 384d842226 runewidth: Disable East Asian width 2020-01-01 08:38:28 -08:00
Trevor Slocum 004751ce25 Throttle resize event callbacks 2020-01-01 08:37:50 -08:00