Michael Drake
99fc8d3f0d
Move html textarea's selection colour chooser to plot_style.h, as it could be used elsewhere.
2013-02-11 00:41:22 +00:00
Michael Drake
e4e2917787
Merge branch 'master' of git://git.netsurf-browser.org/netsurf
2013-02-10 23:37:36 +00:00
Chris Young
d78777276c
Bring nsfont_split up to core expectations. Slightly bodged.
2013-02-10 23:24:04 +00:00
Michael Drake
b38520da99
Implement delete line. (Ctrl+U on RISC OS.)
2013-02-10 23:22:46 +00:00
Michael Drake
315f5a8ca1
Merge branch 'master' of git://git.netsurf-browser.org/netsurf
...
Conflicts:
gtk/font_pango.c
Conflict resolved.
2013-02-10 21:52:36 +00:00
Michael Drake
f6703dcbaa
Merge branch 'master' of git://git.netsurf-browser.org/netsurf
2013-02-10 18:35:18 +00:00
Michael Drake
97c658fea1
Update for new nsfont_split expectations. Untested, but code similar to framebuffer. Looks /really/ slow. It only needs to measure the text when it finds a space, not for every character.
2013-02-10 18:33:27 +00:00
Michael Drake
e7e5211eb9
Update for new nsfont_split expectations. Untested, but code similar to framebuffer.
2013-02-10 18:32:08 +00:00
Michael Drake
bd2ca73de7
Update for new nsfont_split expectations. Untested, but code same as framebuffer.
2013-02-10 18:30:44 +00:00
Michael Drake
6bab556827
Make comaptible with new nsfont_split expectation. Untested, but code is same as framebuffer front end, so should work.
2013-02-10 18:28:59 +00:00
Michael Drake
3148f8a6c3
Make compatible with new nsfont_split expectations. Only splits on spaces.
2013-02-10 18:26:59 +00:00
Michael Drake
db8ec60fc0
Update nsfont_split documentation. Implementation was already compatible. Can only split on spaces.
2013-02-10 18:25:09 +00:00
Michael Drake
4843658742
Don't need to break on space any more. This gives us unicode line breaking from pango.
2013-02-10 18:23:34 +00:00
Michael Drake
285a7ca6c3
Document new nsfont_split expected behaviour.
2013-02-10 18:22:51 +00:00
Michael Drake
7bc725fe1f
Update HTML layout not to demand that nsfont_split only splits on a space.
...
This allows the HTML layout code to wrap unicode text correctly.
For example on our Japanese Welcome page, the characters will be wrapped
if the platform's nsfont_split implementation implements the Unicode line
breaking algorithm.
2013-02-10 16:50:15 +00:00
Michael Drake
f98c0d848c
Make nowrap code path a bit plainer.
2013-02-10 12:19:13 +00:00
Chris Young
af3ef0fb41
Queue fast scroll redraws same as any other box redraw
2013-02-10 12:13:39 +00:00
Chris Young
c7bfbffd51
minor correction from samir
2013-02-10 11:53:03 +00:00
Michael Drake
2a4b9b2217
Comment current html wrap/text-splitting behaviour.
2013-02-10 11:50:04 +00:00
Michael Drake
ceb1668a8a
Choose pretty colours for selection.
2013-02-09 22:55:31 +00:00
Michael Drake
10edbc45bd
If a character is replaced by a character of different width, the caret needs to move. Checking change in character index isn't enough, so move caret if redraw was required too.
2013-02-09 18:41:23 +00:00
Michael Drake
32e9602126
When updating textarea layout settings, remember scrollbar status.
2013-02-09 18:21:10 +00:00
Michael Drake
1be54d7b10
If restarting reflow for scrollbar change, need to start at line 0.
2013-02-09 16:50:30 +00:00
Michael Drake
56cfa93531
Empty textarea has one line.
2013-02-09 16:28:00 +00:00
Michael Drake
25b036418e
Stop it from using past the end of lines data allocation. (It could add up to 2 lines per pass, but assumed 1 for allocation.)
2013-02-09 15:26:20 +00:00
Michael Drake
8c3e0cf81a
[Return] will replace selection.
2013-02-09 14:43:21 +00:00
Michael Drake
b4609f41bc
Support front ends that pass CR for [return], as well as those that pass NL.
2013-02-09 14:19:38 +00:00
Michael Drake
eb1113e4c3
Fix handling of empty textarea.
2013-02-09 14:18:17 +00:00
Michael Drake
048b344a43
Take account of scrollbar-occupied regions.
2013-02-09 13:34:28 +00:00
Michael Drake
f848de3dd0
Fix use of x values when y is required.
2013-02-09 13:18:16 +00:00
Michael Drake
7fa8f30f44
Don't add box scrollbar padding to gadgets.
2013-02-09 13:01:56 +00:00
Michael Drake
2bd0d13817
Take account of caret height when scrolling to show caret.
2013-02-09 11:54:13 +00:00
Michael Drake
688e1b0e4f
Slight selection auto-scroll optimisation.
2013-02-09 11:24:44 +00:00
Michael Drake
363d02b8ad
Pedantic wrap.
2013-02-08 23:39:41 +00:00
Michael Drake
50c52408f5
Fix seg fault when moving cursor up onto empty top line.
2013-02-08 23:38:05 +00:00
Michael Drake
6fee220c52
Adjust code to reduce indentation.
2013-02-08 23:35:42 +00:00
Michael Drake
0d831c4ab6
Scaled textarea rendering support. Ugly.
2013-02-08 23:25:40 +00:00
Michael Drake
586e02e915
Implement text selection auto-scroll.
2013-02-08 20:03:44 +00:00
Michael Drake
7a397d29c6
Improve scroll-to-caret behaviour.
2013-02-08 19:46:35 +00:00
Michael Drake
59d24187f7
Support dropping text file on textarea widget.
2013-02-08 16:05:44 +00:00
Michael Drake
0a4e1a05e3
Merge branch 'master' of git://git.netsurf-browser.org/netsurf
2013-02-08 15:28:38 +00:00
Michael Drake
698f391289
Add scrollwheel support to textareas.
2013-02-08 15:26:24 +00:00
Michael Drake
f57e89cc25
Add ta to documentation.
2013-02-08 15:15:27 +00:00
Michael Drake
98befbb770
Fix comment.
2013-02-08 15:10:39 +00:00
Michael Drake
9c20ff9592
Drag fixup. Add some documentation.
2013-02-08 15:05:07 +00:00
Michael Drake
4747bbbfb2
HTML drags now go via content msg.
2013-02-08 13:22:53 +00:00
Michael Drake
9ec663f3a9
Tweak selection rendering. Adjusting layout doesn't emit redraw request. Client must redraw when it wants it.
2013-02-08 13:16:24 +00:00
Vincent Sanders
4ffa39177d
fix docuemnt/window location to correctly navigate, fixes http://www.avaaz.org/ base page
2013-02-07 18:16:37 +00:00
Michael Drake
76b0e59b18
Don't lose fractional part of text pt size to rounding.
2013-02-07 15:03:35 +00:00
Michael Drake
08035f1197
Remove unused textinput widget. (Old html form text editing.)
2013-02-07 14:36:54 +00:00