Commit Graph

532 Commits

Author SHA1 Message Date
Alexandre Bury
24511ae5f1 Accept Into<String> in EditView::set_content 2016-09-01 11:49:47 -07:00
Alexandre Bury
d51772f714 EditView: move cursor on content change
To the end of the content.
2016-09-01 11:42:16 -07:00
Alexandre Bury
53178a2d6d Bump version to 0.2.5 2016-09-01 11:29:15 -07:00
Alexandre Bury
9142c545f7 Fix crash when removing the first item in a SelectView 2016-09-01 11:28:30 -07:00
Alexandre Bury
f9f8fb0c75 Add feedback message in Readme 2016-09-01 11:26:06 -07:00
Alexandre Bury
0364f577b2 Add EditView::set_cursor
And fix a crash with `set_content` (it wasn't updating the cursor).
2016-09-01 11:10:12 -07:00
Alexandre Bury
67ba15045f Add links to next tutorial 2016-09-01 08:22:40 -07:00
Alexandre Bury
7a4e99a5de Bump version to 0.2.4 2016-09-01 00:22:21 -07:00
Alexandre Bury
de1ca0c880 Update toml to 0.2 2016-09-01 00:22:04 -07:00
Alexandre Bury
3719b28e43 Add tutorial screenshot 2016-08-31 18:22:33 -07:00
Alexandre Bury
a37790a0ed Fix tutorial image 2016-08-31 18:21:28 -07:00
Alexandre Bury
653ebb08c4 Add 3rd tutorial 2016-08-31 18:18:52 -07:00
Alexandre Bury
77abb5729e Add DummyView to prelude 2016-08-31 17:19:22 -07:00
Alexandre Bury
6dd81faa57 Fix offset in SelectView::remove_item 2016-08-31 17:14:37 -07:00
Alexandre Bury
eca389ed97 Bump version to 0.2.3 2016-08-31 17:07:16 -07:00
Alexandre Bury
484f81861a Replace SelectView::focus with selected_id
Returns None if the list is empty.
Also add `SelectView::len`
2016-08-31 17:05:58 -07:00
Alexandre Bury
16dea393c9 Bump version to 0.2.2 2016-08-31 17:01:47 -07:00
Alexandre Bury
0e08d7d058 Add remove_item to SelectView
And made `focus` public.
2016-08-31 17:00:48 -07:00
Alexandre Bury
2afe9787c2 Add second tutorial 2016-08-20 01:22:58 -07:00
Alexandre Bury
789c65c1b3 Add missing use to tutorial 2016-08-15 18:40:51 -07:00
Alexandre Bury
5d86c5e1f2 Remove % line in the tutorial
Artifact from rustdoc experiment
2016-08-15 17:38:37 -07:00
Alexandre Bury
8ed1ee6639 Add links to documentation in tutorial 2016-08-15 17:36:04 -07:00
Alexandre Bury
635657e3d1 Fix tutorial image link 2016-08-15 17:27:39 -07:00
Alexandre Bury
207e7e0b52 Add first tutorial 2016-08-15 17:27:02 -07:00
Alexandre Bury
ce6992a8c5 Add SliderView 2016-08-13 01:03:40 -07:00
Alexandre Bury
921e4a451e Add outset border functions to Printer 2016-08-05 10:49:16 -07:00
Alexandre Bury
215e88ae3e Use Dialog instead of Panel in progress example 2016-08-05 10:48:23 -07:00
Alexandre Bury
6fd47f443e Bump version to 0.2.1 2016-08-04 20:04:04 -07:00
Alexandre Bury
e79cc61e08 Remove FullView 2016-08-04 20:03:48 -07:00
Alexandre Bury
8a09702f66 Bump version to 0.2.0 2016-08-04 19:54:29 -07:00
Alexandre Bury
2ee5c6f4e9 Don't run the print_box example
It was messing with travis?
2016-08-04 18:01:46 -07:00
Alexandre Bury
cadb585948 Fix Printer::print_box documentation 2016-08-04 17:38:26 -07:00
Alexandre Bury
f7a3d821d1 Actually use Theme::{shadow,borders} when drawing
Also add the 8 light base colors
2016-08-04 17:27:04 -07:00
Alexandre Bury
db09930fe2 Fix clippy warning 2016-08-04 09:58:13 -07:00
Alexandre Bury
9db3c87851 Add Cursive::set_theme method
Allow setting a theme without having to load a toml file.
2016-08-04 00:11:16 -07:00
Alexandre Bury
1052c0b74c Remove EditView::min_length
Uses `.fixed_width()` from `Boxable` or something like that.
2016-08-03 21:58:00 -07:00
Alexandre Bury
b38995b906 Refactor BoxView
Add `Boxable` trait.
2016-08-03 21:55:41 -07:00
Alexandre Bury
a25d744ff6 Update crate description. 2016-08-03 10:48:57 -07:00
Alexandre Bury
6827d2ed59 Update scrollbase on any row computation 2016-08-03 00:01:18 -07:00
Alexandre Bury
095367166b TextArea: starts with no rows.
The first `layout()` will build what's required.
2016-08-02 23:33:07 -07:00
Alexandre Bury
d3d86a2f45 Fix clippy warning 2016-08-02 23:26:59 -07:00
Alexandre Bury
fab05b8b9f Fix layout bugs in TextArea 2016-08-02 23:24:47 -07:00
Alexandre Bury
5d124e452e TextArea: cache layout computations 2016-08-02 21:48:12 -07:00
Alexandre Bury
e4bc129f4b Smarter TextArea row computation
Only re-compute damaged areas.
2016-08-02 21:22:23 -07:00
Alexandre Bury
bd78418083 Add scrollbar_padding to ScrollBase
And use it in TextArea
2016-08-02 00:49:59 -07:00
Alexandre Bury
93ceb17c21 Rename scrollbar_padding -> scrollbar_offset in ScrollBase 2016-08-02 00:36:27 -07:00
Alexandre Bury
75c365451f Add initial TextArea 2016-08-02 00:32:16 -07:00
Alexandre Bury
ede5c616f6 Update EditView doc
With updated `examples/edit.rs` content
2016-07-31 17:53:00 -07:00
Alexandre Bury
3410150ed5 Fix clippy warning
Use `for` loop instead of discarding `collect` result.
2016-07-31 11:29:55 -07:00
Alexandre Bury
191cfcecfd Fix typo 2016-07-30 15:58:52 -07:00