Alexandre Bury
|
9142c545f7
|
Fix crash when removing the first item in a SelectView
|
2016-09-01 11:28:30 -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
|
6dd81faa57
|
Fix offset in SelectView::remove_item
|
2016-08-31 17:14:37 -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
|
0e08d7d058
|
Add remove_item to SelectView
And made `focus` public.
|
2016-08-31 17:00:48 -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
|
e79cc61e08
|
Remove FullView
|
2016-08-04 20:03:48 -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
|
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
|
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
|
be7f2184e9
|
Unify prefix_length and suffix_length signatures
|
2016-07-30 15:56:39 -07:00 |
|
Alexandre Bury
|
d12622b56a
|
Fix examples and tests
|
2016-07-30 13:30:56 -07:00 |
|
Alexandre Bury
|
40f9a91a7a
|
Replace some &str -> S: Into<String>
Add back the "Ok" button to `examples/edit.rs`
|
2016-07-30 12:58:25 -07:00 |
|
Alexandre Bury
|
ca6e16311f
|
Add secret mode to EditView
Only prints `*`. Prints `**` with wide chars.
|
2016-07-30 12:26:41 -07:00 |
|
Alexandre Bury
|
3726df46b7
|
Add on_submit to EditView
It simplifies the Edit example
|
2016-07-30 02:34:47 -07:00 |
|
Alexandre Bury
|
42a377d92b
|
SelectView: add methods to add items from iterators
|
2016-07-30 01:52:34 -07:00 |
|
Alexandre Bury
|
1165e70e15
|
Add on_select to SelectView
And renamed existing `on_select` to `on_submit`
|
2016-07-30 01:27:34 -07:00 |
|
Alexandre Bury
|
2e05a0825a
|
Add on_edit callback to EditView
Also fix <Del>/<Backspace> handling with precomposed characters
|
2016-07-30 01:18:12 -07:00 |
|
Alexandre Bury
|
24e4e41a85
|
Move DummyView to views module
|
2016-07-29 23:36:40 -07:00 |
|
Alexandre Bury
|
fb10e58188
|
Move LinesIterator to utils module
|
2016-07-28 23:05:33 -07:00 |
|
Alexandre Bury
|
f87d0e7c5b
|
Move views to new views module
|
2016-07-28 16:36:01 -07:00 |
|