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
|
191cfcecfd
|
Fix typo
|
2016-07-30 15:58:52 -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
|
db9df3dfc9
|
Add deconstruct method to ProgressReader
|
2016-07-29 23:51:41 -07:00 |
|
Alexandre Bury
|
6e247efc1c
|
Add ProgressReader to the utils module
Should allow to monitor a file download in a progress bar
|
2016-07-29 23:48:19 -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 |
|
Alexandre Bury
|
51a1a19f92
|
Fix progressbar doc
|
2016-07-28 00:29:11 -07:00 |
|
Alexandre Bury
|
2597c9a566
|
Add a center() convenient method to TextView
Avoids having to import HAlign
|
2016-07-27 23:58:57 -07:00 |
|
Alexandre Bury
|
261d2aac48
|
Remove Ticker alias
The `Counter` NewType can fill this role.
|
2016-07-27 23:55:34 -07:00 |
|
Alexandre Bury
|
c689a3ba7e
|
Add non-chainable add_child to LinearLayout
|
2016-07-27 23:52:21 -07:00 |
|
Alexandre Bury
|
bea7240271
|
Wrap Arc<AtomicUsize> around NewType Counter
And offers a simpler API
|
2016-07-26 23:29:13 -07:00 |
|
Alexandre Bury
|
8290c3f62a
|
Make progressbar more robust to invalid min/max values
|
2016-07-26 23:05:18 -07:00 |
|
Alexandre Bury
|
2cedc8ae76
|
Add comments to progress bar
|
2016-07-26 21:48:26 -07:00 |
|
Alexandre Bury
|
8eb61e0239
|
Add start and with_task to ProgressBar
|
2016-07-26 12:25:06 -07:00 |
|
Alexandre Bury
|
eb6b5d5728
|
Fix LinearLayout children width
Now properly gives the full width to every children.
|
2016-07-26 10:49:37 -07:00 |
|
Alexandre Bury
|
0643c50bd5
|
Add async-callback channel to Cursive
And remove it from ProgressBar
|
2016-07-26 10:13:36 -07:00 |
|
Alexandre Bury
|
04f961657f
|
ProgressBar takes all given width
|
2016-07-26 09:55:22 -07:00 |
|
Alexandre Bury
|
2e5262096a
|
Don't compile internal doc example
Won't compile anyway since it's not public
|
2016-07-26 00:00:45 -07:00 |
|
Alexandre Bury
|
6e021867ab
|
ProgressBar now shows a percentage status
The label can be customized though `ProgressBar::with_label`.
|
2016-07-25 23:54:33 -07:00 |
|
Alexandre Bury
|
5dd20db676
|
Add Dialog::empty and Dialog::content
Allows to set the content after the title, for when it's more
readable.
|
2016-07-25 20:43:01 -07:00 |
|
Alexandre Bury
|
7283e7f3af
|
Rustfmt
|
2016-07-25 13:39:10 -07:00 |
|
Alexandre Bury
|
5e6222bf23
|
Use intermediate type for the callback promise
Using actual promises would still be better
|
2016-07-25 13:38:13 -07:00 |
|
Alexandre Bury
|
c1c9322319
|
Add panel view
|
2016-07-25 13:35:46 -07:00 |
|
Alexandre Bury
|
6c71ac14b0
|
More linear progress bar progression
Each cell should receive the same number of ticks
|
2016-07-25 12:18:05 -07:00 |
|
Alexandre Bury
|
47acf1667d
|
Remove brackets from progress bar
It was ugly, really.
Put a Panel (doesn't exist yet) around it if you want.
|
2016-07-24 23:03:59 -07:00 |
|
Alexandre Bury
|
e29511e757
|
Add ProgressBar
Also make Callback its own NewType to add comversion methods.
|
2016-07-24 23:01:09 -07:00 |
|
Alexandre Bury
|
10e072c140
|
Allow loading themes from content.
Made `load_theme` thake a `&str` and Added `load_theme_file`.
|
2016-07-24 16:56:22 -07:00 |
|
Alexandre Bury
|
0a8228d073
|
Add examples to documentation
|
2016-07-20 22:08:06 -07:00 |
|
Alexandre Bury
|
536321ebda
|
Add Button to prelude.
|
2016-07-20 22:02:45 -07:00 |
|
Alexandre Bury
|
2a4742f67b
|
Use prelude in docs
|
2016-07-20 21:43:20 -07:00 |
|