Commit Graph

803 Commits

Author SHA1 Message Date
Jonathan Daugherty
e01d615414 guide: refactor custom widget documentation 2016-11-18 21:31:51 -08:00
Jonathan Daugherty
9ffd414483 Merge pull request #94 from kquick/master
guide: additional documentation for widget rendering
2016-11-18 21:10:49 -08:00
Kevin Quick
0f1e488ff7 Fix new simple rendering example for proper behavior. 2016-11-18 21:16:39 -07:00
Kevin Quick
9a1001c758 Merge branch 'master' of https://github.com/jtdaugherty/brick 2016-11-17 22:46:01 -07:00
Kevin Quick
620689c3ac Additional documentation for widget rendering. 2016-11-17 22:45:44 -07:00
Jonathan Daugherty
a7aea83b48 Merge pull request #93 from kquick/master
Update guide document for addition of extents to the Result type.
2016-11-17 21:05:08 -08:00
Kevin Quick
4b447221f2 Update guide document for addition of extents to the Result type. 2016-11-17 16:48:36 -07:00
Jonathan Daugherty
4ebe9d7160 guide: add section on wide character support 2016-11-13 10:54:09 -08:00
Jonathan Daugherty
647c086ecd Update TODO 2016-11-12 16:35:31 -08:00
Jonathan Daugherty
c3ed729517 Update changelog, bump version 2016-11-12 16:23:40 -08:00
Jonathan Daugherty
4560c2e70e Depend on version of vty with newer wcwidth 2016-11-12 16:21:49 -08:00
Jonathan Daugherty
6d2418771d Move TextWidth type class to Core 2016-11-12 16:20:49 -08:00
Jonathan Daugherty
eb377adbd3 ProgressBar: account for wide characters in progress bar text 2016-11-12 13:27:43 -08:00
Jonathan Daugherty
5f5bbb7431 Edit: make editors wide-character-aware
This change adds a type class, TextWidth, that must be instanced for any
kind of data that the editor will hold. We need this to be able to
compute the column width of a character sequence type such as String.
2016-11-12 13:17:26 -08:00
Jonathan Daugherty
c2b385b1f3 Core: make "str" and "txt" wide-character-aware 2016-11-12 13:13:14 -08:00
Jonathan Daugherty
427564d9cf Brick.Main: use AbsoluteCursor instead of Cursor
This change makes it so that brick has total control over cursor
positioning. The "Cursor" constructor from Vty is a wide-character-aware
cursor constructor, but we don't want that because brick's layout
algorithm needs to compute its own physical coordinates for everything
and Cursor coordinates are logical.
2016-11-12 12:50:49 -08:00
Jonathan Daugherty
346a969886 MouseDemo: remove stale imports 2016-11-12 12:45:54 -08:00
Jonathan Daugherty
74856b77fe Bump version, update changelog 2016-11-01 13:23:47 -07:00
Jonathan Daugherty
e313cc6816 Make customMain take an optional channel; do not set mouse mode by default 2016-11-01 13:22:25 -07:00
Jonathan Daugherty
036a1af956 Merge pull request #91 from seagreen/focus-functor
Make FocusRing a Functor.
2016-10-31 11:31:41 -07:00
Ian Grant Jeffries
8a7e763af3 Make FocusRing a Functor. 2016-10-31 12:47:23 -04:00
Jonathan Daugherty
c0b7264c68 README: those things are not widget types 2016-10-30 14:22:39 -07:00
Jonathan Daugherty
b6cb3f7172 Update README 2016-10-30 14:13:51 -07:00
Jonathan Daugherty
9ea44d0ee9 Update TODO 2016-10-30 14:07:17 -07:00
Jonathan Daugherty
94011993c4 CHANGELOG: add migration guide for event changes 2016-10-30 14:06:00 -07:00
Jonathan Daugherty
a34ae2ec1c Update CHANGELOG, bump version 2016-10-30 14:01:26 -07:00
Jonathan Daugherty
377cc6cb56 Send MouseDown/Up when matching regions instead of just Clicked 2016-10-30 13:44:51 -07:00
Jonathan Daugherty
3ffd35799a MouseDemo: add missing imports for older GHCs 2016-10-30 13:17:08 -07:00
Jonathan Daugherty
d4bf3745d5 guide: minor updates 2016-10-30 13:15:48 -07:00
Jonathan Daugherty
6fb31e826c User guide typo 2016-10-30 13:14:01 -07:00
Jonathan Daugherty
dd40159a55 Update user guide for mouse support, rendering cache, names, paste mode, and extents 2016-10-30 13:12:59 -07:00
Jonathan Daugherty
9d0643bbf0 Merge branch 'feature/mouse-support' of github.com:jtdaugherty/brick into feature/mouse-support 2016-10-30 11:54:59 -07:00
Jonathan Daugherty
4beab17e12 Improve reportExtent docs 2016-10-30 11:54:53 -07:00
Jonathan Daugherty
fbc7dfedc5 Main: clean up stale imports 2016-10-28 16:29:08 -07:00
Jonathan Daugherty
5af29b43f8 Mouse demo: remove dragging code, add demo buttons 2016-10-27 22:02:56 -07:00
Jonathan Daugherty
665e19ebfe Update progress bar demo for API changes 2016-10-27 21:49:35 -07:00
Jonathan Daugherty
27f91a56d3 Cleanup 2016-10-27 21:43:39 -07:00
Jonathan Daugherty
3d50122d5b Merge branch 'master' into feature/mouse-support 2016-10-27 21:43:17 -07:00
Jonathan Daugherty
170e7d7fad Merge pull request #90 from kquick/master
Added mapAttrname, mapAttrNames, overrideAttr, and progress bar demo
2016-10-26 23:49:38 -07:00
Kevin Quick
7fcf3e68e9 Added mapAttrname, mapAttrNames, and overrideAttr functions, with ProgressBarDemo to demonstrate their usage. 2016-10-26 22:49:59 -07:00
Jonathan Daugherty
a85238a115 Add extent-local coordinates to Clicked events 2016-10-25 22:32:36 -07:00
Jonathan Daugherty
940435ddcc Update mouse demo with Clicked event test 2016-10-25 20:44:22 -07:00
Jonathan Daugherty
6b427c6ce6 Add "clickable" combinator and Clicked event 2016-10-25 20:44:09 -07:00
Jonathan Daugherty
fc8cfe3b4a Remove appLiftVtyEvent in favor of library event type BrickEvent
This change makes it possible for brick to extent the event space using
its own event notions in addition those provided by Vty and the
application itself. This means we no longer need the user to provide the
type and appLiftVtyEvent went away. This makes pattern-matching in event
handlers a little noisier with the benefit that we can now add events
like mouse clicks or drags to the event type.
2016-10-25 20:19:31 -07:00
Jonathan Daugherty
831092e1bd MouseDemo: clear clicked extent list on mouse-up 2016-10-23 22:52:12 -07:00
Jonathan Daugherty
af11c17612 MouseDemo: indentation fix 2016-10-23 22:49:23 -07:00
Jonathan Daugherty
5bfd9a5537 More exploration of a mouse demo program 2016-10-23 22:42:51 -07:00
Jonathan Daugherty
752369a9ee Brick.Main: add findClickedExtents 2016-10-23 22:37:35 -07:00
Jonathan Daugherty
7b842e4d51 Internal: reverse order of reported extents so that they are ordered general to specific 2016-10-23 22:37:08 -07:00
Jonathan Daugherty
5546659a0f Depend on another Vty mouse event bug fix 2016-10-23 19:49:42 -07:00