Jonathan Daugherty
4a2b90eae7
Update for Vty 5.15
2017-01-24 13:48:45 -08:00
Jonathan Daugherty
07059168d4
listModify: whitespace
2017-01-03 15:15:51 -08:00
Jonathan Daugherty
2cc27d7f3d
Merge pull request #108 from diegospd/master
...
List: add listModify to modify the selected element
2017-01-03 15:13:44 -08:00
dieg
7043fa56d9
apply a function to selected element
2017-01-03 15:56:29 -06:00
Jonathan Daugherty
764610f628
Merge pull request #107 from maoe/optimize-renderBox
...
Use DList to avoid repetitive Data.List.++ in box rendering
2016-12-30 20:25:34 -08:00
Mitsutoshi Aoe
cd0e55276e
Use DList to avoid repetitive Data.List.++
2016-12-31 10:20:09 +09:00
Jonathan Daugherty
f779133ceb
Bump version, update changelog
2016-12-11 07:52:38 -08:00
Jonathan Daugherty
3a0b18e1d3
viewport: do not cull cursor locations on empty viewport ( fixes #105 )
2016-12-11 07:50:08 -08:00
Jonathan Daugherty
618cf6c95b
Merge pull request #104 from diegospd/patch-1
...
Typo on guide.rst
2016-12-10 16:59:07 -08:00
diegospd
b9b8a93f72
Update guide.rst
...
CounterEvent should stand for the e type on App s e n, instead of n.
2016-12-10 16:31:22 -06:00
Jonathan Daugherty
61090ac38e
Bump version, update changelog
2016-12-10 08:40:29 -08:00
Jonathan Daugherty
e3410aea9f
Merge pull request #103 from jchia/master
...
Fixed empty list validation in listReplace
2016-12-10 08:35:13 -08:00
Joshua Chia
1f34f94e08
Fixed empty list validation in listReplace
2016-12-10 18:53:11 +08:00
Jonathan Daugherty
339054b17c
MouseDemo: import fix
2016-12-03 20:39:51 -08:00
Jonathan Daugherty
6b2bab1ac3
Bump version
2016-12-03 20:34:24 -08:00
Jonathan Daugherty
89ff07b398
Update CHANGELOG
2016-12-03 20:34:16 -08:00
Jonathan Daugherty
104d762dd4
MouseDemo: add an editor and use mouse events to move the cursor
2016-12-03 20:26:19 -08:00
Jonathan Daugherty
1d44dad7f5
Merge branch 'master' of github.com:jtdaugherty/brick
2016-12-03 20:07:04 -08:00
Jonathan Daugherty
b0357289f0
Core: make cropToContext also crop extents ( fixes #101 )
...
This change also:
* adds record fields to the Extent type
* adds a local coordinate offset to the Extent type for tracking the
offset that the Extent's upper-left corner has into the original
coordinate space of the Extent
* updates mouse event generation to account for the local offset when
computing widget-local coordinates
2016-12-03 20:05:51 -08:00
Jonathan Daugherty
26fe2d349d
viewport: if the sub-widget is not rendered, also cull all extents and cursor locations
2016-12-03 19:39:36 -08:00
Jonathan Daugherty
81a5bc6a43
Merge pull request #102 from skapazzo/master
...
guide: fixed typo
2016-12-02 16:17:07 -08:00
skapazzo
48a443e33c
fixed typo in guide.rst (assocated -> associated)
2016-12-03 00:28:31 +01:00
Jonathan Daugherty
c72caa24d9
Edit: report mouse click events in edit widgets
2016-11-29 23:29:24 -08:00
Jonathan Daugherty
05b1eb8544
Merge pull request #99 from kquick/master
...
Enhance MouseDemo to show interaction between clickable and viewport.
2016-11-29 23:15:01 -08:00
Kevin Quick
3e51e2e5c2
Enhance MouseDemo to show interaction between clickable and viewport.
2016-11-30 00:06:44 -07:00
Jonathan Daugherty
f3a37615b6
Core: fix some haddock docstrings
2016-11-21 23:09:01 -08:00
Jonathan Daugherty
bcf6eededb
Rename TerminalLocation row/column fields to avoid commonplace name clashes ( fixes #96 )
2016-11-20 18:22:52 -08:00
Jonathan Daugherty
eacda57e84
Merge pull request #95 from kquick/master
...
guide: update example uses of getVtyHandle
2016-11-19 01:05:18 -08:00
Kevin Quick
85883e5d18
Merge branch 'master' of https://github.com/jtdaugherty/brick
2016-11-18 22:38:46 -07:00
Kevin Quick
812463409a
Update guide examples for getVtyHandle Maybe return.
2016-11-18 22:38:10 -07:00
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