Commit Graph

374 Commits

Author SHA1 Message Date
Trevor Slocum 57ef7437e3 Add ContextMenu 2020-04-18 20:00:36 -07:00
Trevor Slocum ae4c7b398c Do not handle double clicks by default 2020-04-14 09:46:24 -07:00
Trevor Slocum d2f2938ea0 Update presentation demo 2020-04-03 08:01:21 -07:00
Trevor Slocum 0aa37dca06 Expand click area of presentation demo tabs 2020-04-01 08:59:06 -07:00
Trevor Slocum 1cbf8e9f74 Update presentation demo cover text 2020-04-01 08:42:30 -07:00
Trevor Slocum a560854b28 Specify merged commits in LICENSE 2020-03-31 09:51:12 -07:00
rivo 1f765c8695 Merge pull request #422 from rivo/mouse
Add mouse support
2020-03-30 10:22:55 -07:00
Trevor Slocum aae1af2a19 Make ProgressBar fields private 2020-03-27 12:54:05 -07:00
Trevor Slocum 49d23a331a Merge branch 'thread' into 'master'
Make cview thread-safe

Closes #5

See merge request tslocum/cview!1
2020-03-25 14:32:57 +00:00
Trevor Slocum e29d4b73b9 Make cview thread-safe 2020-03-25 14:32:57 +00:00
Trevor Slocum d045073571 Improve docs regarding widgets 2020-02-25 15:19:17 -08:00
Trevor Slocum 6379e357de Improve docs regarding mouse support and thread safety 2020-02-24 18:41:39 -08:00
Trevor Slocum b90f05a226 Update README 2020-02-24 18:11:37 -08:00
Trevor Slocum d815ca837d Fix scrolling Table with PageDown and PageUp when some fixedRows are not visible 2020-02-24 08:49:00 -08:00
Trevor Slocum 74844d6d3f Fix applying ScrollBarAlways to List 2020-02-24 08:06:04 -08:00
Trevor Slocum afcd7dcdab Do not wrap around form by default 2020-02-22 10:19:34 -08:00
Trevor Slocum 3bf6bb259c Document non-blocking behavior of QueueUpdate and QueueUpdateDraw 2020-02-20 09:48:15 -08:00
Trevor Slocum 7175730374 Fix panic when navigating empty list 2020-02-17 08:25:21 -08:00
Trevor Slocum c6599f4ee2 Clarify that Box does not have inner text 2020-02-16 10:13:07 -08:00
Trevor Slocum 82689e7fb8 Clear and redraw screen when resizing 2020-02-15 07:53:48 -08:00
Trevor Slocum 2a8ba3160c Fix resize event dimensions on Windows 2020-02-13 15:39:06 -08:00
Trevor Slocum de6819cc76 Fix applying ScrollBarNever to DropDown or InputField 2020-02-13 15:08:36 -08:00
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