Commit Graph

1029 Commits

Author SHA1 Message Date
Alexandre Bury
9b587e353c Add dot to Cargo description 2016-07-02 22:28:09 -07:00
Alexandre Bury
d89c83f0ed MenuPopup now supports PageUp/Down and Home/End 2016-07-02 20:53:13 -07:00
Alexandre Bury
692c310656 Better Menu API
Now offer non-chainable methods as well.
2016-07-02 20:44:27 -07:00
Alexandre Bury
e439b422da Fix warnings in menubar example 2016-07-02 19:48:21 -07:00
Alexandre Bury
e127392e8a Add impl Default for Menubar
To make clippy happy
2016-07-02 19:47:11 -07:00
Alexandre Bury
0fd3bc113f Fix layout bug in StackView
Only skip padding for non-centered views
2016-07-02 19:46:23 -07:00
Alexandre Bury
8220fe529e Better menubar example
Added scrolling support, and left/right navigation
2016-07-02 19:37:38 -07:00
Alexandre Bury
1d54764cdb Working menubar example
Also update callback: use Rc instead of Box
2016-07-02 15:02:42 -07:00
Alexandre Bury
1863e48b07 Add MenuPopup view 2016-07-02 01:01:09 -07:00
Alexandre Bury
c2300bb8c7 Add rustfmt.toml 2016-07-02 00:57:07 -07:00
Alexandre Bury
1b1d7166a1 Replace SizeRequest with simple Vec2
We may go back to an enum though, to handle text views in LinearLayouts.
But the previous Fixed/AtMost/Unknown distinction was useless.
2016-07-02 00:47:38 -07:00
Alexandre Bury
c958093b74 Add TrackedView to cache the view size 2016-07-01 20:23:58 -07:00
Alexandre Bury
87cd1ce23f Add position parameter to stack view layers
Can be centered, absolute or relative to the previous layer.
Can be set independently for each axis.
2016-07-01 19:19:43 -07:00
Alexandre Bury
985009e51c More ncurses isolation
Also some renaming in the theme module
2016-06-30 23:38:01 -07:00
Alexandre Bury
4dcb2ea901 Remove debug println 2016-06-29 17:51:26 -07:00
Alexandre Bury
ba26ab965b Don't run example on cargo test
Apparently it fails on travis (??)
2016-06-29 17:46:39 -07:00
Alexandre Bury
8bbab10d1c Add .bk files to gitignore
Added by rustfmt
2016-06-29 17:38:12 -07:00
Alexandre Bury
5751a293e5 Push most ncurses-specific code into separate trait
Prepare backend change.

Still not isolated is the color setup in `theme`.
2016-06-29 17:37:51 -07:00
Alexandre Bury
69e58a76db Merge pull request #35 from GuillaumeGomez/patch-1
Just because indentation
2016-06-29 09:24:21 -07:00
Guillaume Gomez
0534cf5a7a Just because indentation 2016-06-29 15:06:28 +02:00
Alexandre Bury
d0d4380d5a Add menubar example
Not working yet, but at least it shows how the API should be used.
2016-06-28 01:13:44 -07:00
Alexandre Bury
d02c30ae9f Fix clippy warnings 2016-06-27 22:40:11 -07:00
Alexandre Bury
80b219f34a Apply rustfmt 2016-06-27 22:10:59 -07:00
Alexandre Bury
042e631d9f Add base for menubar
Cursive now has a global menubar, with a `select_menubar()` method.
2016-06-27 21:59:42 -07:00
Alexandre Bury
43230534ff Add menu tree 2016-06-27 21:55:46 -07:00
Alexandre Bury
4efd84f311 Remove list of examples in Cargo.toml 2016-06-27 21:53:27 -07:00
Alexandre Bury
34f235daf0 Use UTF-8 drawing characters for printer methods
Instead of ncurses chtype.
2016-06-26 15:03:12 -07:00
Alexandre Bury
ed785940dd Fix typo in doc 2016-06-26 09:45:53 -07:00
Alexandre Bury
9e3cc76441 Update crates.io version 2016-06-25 19:41:54 -07:00
Alexandre Bury
4bb83a3bec Bump version to 0.0.2
New Key events
2016-06-25 19:40:16 -07:00
Alexandre Bury
8dbb61830f Added a Resize event
For when the window is resized.
Not exactly a key event, but...

Also (very) partial support for Alt-FX keys.
Obviously most already have a mapping,
but Alt-F9, Alt-F11 and Alt-F12 seem to work.
2016-06-25 19:38:22 -07:00
Alexandre Bury
822ffa7a7b Fix keyboard input
Shift/Ctrl/Alt + special keys (arrow, pageup/down, home/end, ins/del)
are better supported.
2016-06-25 19:28:42 -07:00
Alexandre Bury
7ad9a6ad4d Fix typo in Readme 2016-06-25 17:19:26 -07:00
Alexandre Bury
654223411d Apply rustfmt to examples 2016-06-25 17:11:42 -07:00
Alexandre Bury
a120b2cfe2 Update example screenshot
Font rendering was faulty
2016-06-25 17:07:45 -07:00
Alexandre Bury
30547c4199 Add crates.io badge 2016-06-25 16:55:24 -07:00
Alexandre Bury
1fee33be40 Update Cargo.toml with documentation link 2016-06-25 16:53:16 -07:00
Alexandre Bury
58bd274df0 Update Readme & run rustfmt 2016-06-25 16:39:05 -07:00
Alexandre Bury
8d24df5f59 Experiment: use direct utf-8 VLINE char 2016-06-25 15:52:19 -07:00
Alexandre Bury
66d5cca115 Add documentation link 2016-06-25 13:53:39 -07:00
Alexandre Bury
ee003d36d0 Add update doc script 2016-06-25 13:51:48 -07:00
Alexandre Bury
7aab403db6 Add travis & license badges 2016-06-25 13:44:01 -07:00
Alexandre Bury
5a92340dcb Update readme 2016-06-25 13:42:14 -07:00
Alexandre Bury
07c3c99e54 Update for new ncurses version 2016-03-15 15:39:08 -07:00
Alexandre Bury
0e37a7f2e4 Travis: build on stable & nightly 2015-12-21 21:10:58 -08:00
Alexandre Bury
9f29c69c8f Update dependencies 2015-12-21 21:09:16 -08:00
Alexandre Bury
af47abeaad Edit view now support content larger than display
It then scrolls horizontally
2015-07-30 15:40:03 +02:00
Alexandre Bury
fa4b52ee81 Simplified examples 2015-07-30 14:51:12 +02:00
Alexandre Bury
ac85a1f288 Fixed bug with dialog without buttons 2015-07-28 21:54:32 +02:00
Alexandre Bury
36fbc1ce5b Add some convenient ID methods 2015-07-28 15:57:52 +02:00