Commit Graph

166 Commits

Author SHA1 Message Date
Jesse Hallett
d8538b10db Implements listReplace - replaces list content while preserving selected index 2015-05-26 03:00:56 -07:00
Jesse Hallett
76a3379d2f Implements listSelectedElement 2015-05-26 03:00:22 -07:00
Jesse Hallett
a7a8ffd940 Implements listRemove 2015-05-26 03:00:22 -07:00
Jonathan Daugherty
0008d6d1e0 Remove some unused language extension pragmas 2015-05-25 22:31:39 -07:00
Jonathan Daugherty
e29a0b1bb6 Update todo 2015-05-25 22:10:11 -07:00
Jonathan Daugherty
d17754b35f Rename with to withLens 2015-05-25 22:05:32 -07:00
Jonathan Daugherty
9ef4fa3a95 Fix list and scrolling wrappers to properly postpone state accesses 2015-05-25 20:43:30 -07:00
Jonathan Daugherty
91dd580781 Make rendering use a reader monad for the rendering context 2015-05-25 20:17:52 -07:00
Jonathan Daugherty
382b4e0b8f Get rid of Primitive type in favor of primitive computations; move prim-building into a rendering monad 2015-05-25 19:57:57 -07:00
Jonathan Daugherty
653e828de1 Move all rendering internals to internal module, export selectively 2015-05-25 19:40:47 -07:00
Jonathan Daugherty
3bf0bafdc3 Back out change to make Prim a monad since it is not yet an effectful rendering monad, but rather a prim construction environment 2015-05-25 18:36:26 -07:00
Jonathan Daugherty
da9ada013f Cleanup and Prim monad usage fixes 2015-05-25 18:31:55 -07:00
Jonathan Daugherty
c5ccbfcdfe Make prim-building happen in a state monad over underlying data model 2015-05-25 18:07:20 -07:00
Jonathan Daugherty
526fc05f22 Rename SetSize to SaveSize 2015-05-24 12:14:43 -07:00
Jonathan Daugherty
0173aa55db Add gross hack to work around rendering staleness in With interpretation 2015-05-24 12:11:51 -07:00
Jonathan Daugherty
8ff7a3d390 Make Render fields lazy 2015-05-24 12:11:36 -07:00
Jonathan Daugherty
44e211d18f Export list moveBy and use in demo 2015-05-24 12:11:27 -07:00
Jonathan Daugherty
6c1a61abe2 v/hBox: long lines 2015-05-24 00:11:00 -07:00
Jonathan Daugherty
fdcdf21b09 Update todo 2015-05-22 13:20:52 -07:00
Jonathan Daugherty
debe0e4653 Make list/edit draw functions build outer prims and take a lens for list/edit access 2015-05-19 20:43:15 -07:00
Jonathan Daugherty
6130d81e3e Add hBorderWithLabel 2015-05-19 20:34:54 -07:00
Jonathan Daugherty
1489557418 whitespace 2015-05-19 20:26:48 -07:00
Jonathan Daugherty
6a2bbf6bbf Improve organization of scrolling types and re-use common logic 2015-05-19 19:56:22 -07:00
Jonathan Daugherty
aaab0edfa1 Update todo 2015-05-19 19:34:28 -07:00
Jonathan Daugherty
6eb4f7ca28 hScroll: add support for scrolling to windows rather than points 2015-05-19 19:34:18 -07:00
Jonathan Daugherty
6221a2e229 whitespace/layout 2015-05-19 19:31:24 -07:00
Jonathan Daugherty
0977f4bd2c Update todo 2015-05-19 19:29:49 -07:00
Jonathan Daugherty
76a7fc83c8 Add support for scrolling to windows rather than points and add support for variably-sized list prims 2015-05-19 19:28:22 -07:00
Jonathan Daugherty
0c7914175a Merge simple demo 2015-05-19 10:25:12 -07:00
Jonathan Daugherty
2af0357d46 Add ultra-minimal demo program 2015-05-19 10:23:58 -07:00
Jonathan Daugherty
5232a53b97 Add gitignore 2015-05-18 22:17:36 -07:00
Jonathan Daugherty
94b891ee6b Add ctrl-arrow note 2015-05-18 21:58:56 -07:00
Jonathan Daugherty
1f91ed32ff Improve translation prim, add translation demo 2015-05-18 21:58:16 -07:00
Jonathan Daugherty
5a75e0a7b5 Update UI 2015-05-18 21:52:26 -07:00
Jonathan Daugherty
54f26d9ba5 Remove "ed" suffix from bordering and centering functions 2015-05-18 21:48:02 -07:00
Jonathan Daugherty
327ea3045b List: pad horizontally on the right to fill available space 2015-05-18 21:34:50 -07:00
Jonathan Daugherty
c9c4b611fb Make demo UI a little more interesting 2015-05-18 21:18:51 -07:00
Jonathan Daugherty
9d3367e46a Just use a single style keybinding in the demo 2015-05-18 21:09:59 -07:00
Jonathan Daugherty
cb61befb03 Syntax nit 2015-05-18 21:07:55 -07:00
Jonathan Daugherty
f277551e88 Improve border function argument ordering 2015-05-18 21:03:48 -07:00
Jonathan Daugherty
188883dfdb Shorten border style names 2015-05-18 21:01:59 -07:00
Jonathan Daugherty
0357bd22ce Demo: show different border styles 2015-05-18 20:59:58 -07:00
Jonathan Daugherty
00baf3ad1e Update cabal author/maintainer 2015-05-18 19:37:11 -07:00
Jonathan Daugherty
efcaac93df Enable -O3 ghc option 2015-05-18 19:36:35 -07:00
Jonathan Daugherty
3a8bb03e03 renderer: move w/h region into rendering context 2015-05-18 19:30:35 -07:00
Jonathan Daugherty
d47de345ab Use shorter name for rendering context 2015-05-18 19:18:37 -07:00
Jonathan Daugherty
51c73b01f6 Make rendering context use lenses 2015-05-18 19:17:33 -07:00
Jonathan Daugherty
1856574c2e renderer: move attribute into rendering context 2015-05-18 19:15:04 -07:00
Jonathan Daugherty
900bc295c8 Make bordered widgets skinnable 2015-05-18 19:10:28 -07:00
Jonathan Daugherty
1bf497d43a Use more idiomatic state change operator 2015-05-18 18:57:03 -07:00