Michael Drake
58540d83d8
Merge branch 'master' of git://git.netsurf-browser.org/netsurf
2013-02-13 22:43:52 +00:00
Michael Drake
f72d4319bb
Changing browser window to get wimp double clicks meant enum value for single clicks was different. This broke the window taking focus on a single click. Fixed.
2013-02-13 22:41:24 +00:00
Chris Young
9fe2873f04
rationalise the removal of the box redraw queue
2013-02-13 20:23:17 +00:00
Michael Drake
553c55b07a
Move selection clearing into a function, and expose it in the header file.
2013-02-13 13:37:46 +00:00
Michael Drake
08a229161b
Calculate and store text offsets only when they change, rather than recalculating on every redraw and caret placement. Also ensures that caret placement and redraw get the same text offset values.
2013-02-13 13:08:05 +00:00
Michael Drake
13574018d1
Fun micro-optimisations.
2013-02-12 21:16:30 +00:00
Michael Drake
15e61743a3
Add button to quit by default. Not having it confuses people who run it as intended on the framebuffer, and it can still be turned off should somone wish to.
2013-02-12 20:18:01 +00:00
Chris Young
1809143ff3
Implement triple-click
2013-02-12 19:12:14 +00:00
Michael Drake
2c64e89641
Implement selection modification. Clicks and drags with button 2 alter the nearest end of the selection. Button 2 when there is no selection selects from caret pos to click pos.
2013-02-12 18:20:06 +00:00
Michael Drake
a846e9811e
Pass triple clicks to core.
2013-02-12 15:26:55 +00:00
Michael Drake
c2584d3f8b
Add support for double and triple clicks.
2013-02-12 14:22:09 +00:00
Michael Drake
0c0e988ea5
Pass double and triple clicks to the browser window.
2013-02-12 13:20:36 +00:00
Michael Drake
eccf590616
Triple click selects paragraph in textarea widget.
2013-02-12 12:58:12 +00:00
Michael Drake
0c88c3a89a
Pass double clicks to browser windows.
2013-02-12 12:18:26 +00:00
Michael Drake
97f0a22a8b
Tidy textarea-handled mouse action.
2013-02-12 12:09:49 +00:00
Michael Drake
19f09dcc61
Init clipboard to NULL, just in case front end implementation of gui_get_clipboard fails to set it on empty clipboard.
2013-02-12 11:15:37 +00:00
Michael Drake
c39a3d7263
When reqesting redraaw to remove internal caret, make sure caret is already removed as the redraw may be serviced immediatley.
2013-02-12 10:13:55 +00:00
Chris Young
d25fd5fb6c
Set the split point to the end of the line if the entire string fits in the allocated space
2013-02-12 00:21:56 +00:00
Michael Drake
bb601eae78
Don't reduce width of textarea box for CSS overflow scrollbar; it won't get one.
2013-02-11 18:43:50 +00:00
Michael Drake
515cef8444
Don't include '\0' in single-line nsfont_width call.
2013-02-11 18:42:51 +00:00
Michael Drake
fe7b71edbf
Selection autoscroll of scrollbarless textareas (single line).
2013-02-11 17:55:36 +00:00
Michael Drake
99cab8389a
Early detection of regions outside the visible.
2013-02-11 17:05:42 +00:00
Michael Drake
fc430dba75
Clip native caret render so it can't overwrite border. Slight simplification.
2013-02-11 16:47:11 +00:00
Michael Drake
e6bf51c3ba
Single line textareas don't have scrollbars, so they don't get the scroll redraw request from the scrollbar callback.
2013-02-11 16:31:06 +00:00
Michael Drake
3bcc79ccf0
Don't need to redraw for caret removal if using a native caret.
2013-02-11 16:10:19 +00:00
Michael Drake
fa2d5cf62c
Fix internal caret redraw bounds.
2013-02-11 14:30:26 +00:00
Michael Drake
18444f261a
Fix delete-to-line-end.
2013-02-11 13:39:56 +00:00
Michael Drake
262555099d
Pass scale to textarea redraw.
2013-02-11 10:47:15 +00:00
Michael Drake
7af0614202
Make delete line key enum value name less missleading. (Doesn't cut to clipboard.)
2013-02-11 10:34:06 +00:00
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