Commit Graph

  • 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. Michael Drake 2013-02-13 13:08:05 +0000
  • 13574018d1 Fun micro-optimisations. Michael Drake 2013-02-12 21:16:30 +0000
  • 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. Michael Drake 2013-02-12 20:16:12 +0000
  • 1809143ff3 Implement triple-click Chris Young 2013-02-12 19:12:14 +0000
  • 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. Michael Drake 2013-02-12 18:20:06 +0000
  • a846e9811e Pass triple clicks to core. Michael Drake 2013-02-12 15:26:55 +0000
  • c2584d3f8b Add support for double and triple clicks. Michael Drake 2013-02-12 14:22:09 +0000
  • 0c0e988ea5 Pass double and triple clicks to the browser window. Michael Drake 2013-02-12 13:20:36 +0000
  • eccf590616 Triple click selects paragraph in textarea widget. Michael Drake 2013-02-12 12:58:12 +0000
  • 0c88c3a89a Pass double clicks to browser windows. Michael Drake 2013-02-12 12:18:26 +0000
  • 97f0a22a8b Tidy textarea-handled mouse action. Michael Drake 2013-02-12 12:09:49 +0000
  • 19f09dcc61 Init clipboard to NULL, just in case front end implementation of gui_get_clipboard fails to set it on empty clipboard. Michael Drake 2013-02-12 11:15:37 +0000
  • c39a3d7263 When reqesting redraaw to remove internal caret, make sure caret is already removed as the redraw may be serviced immediatley. Michael Drake 2013-02-12 10:13:55 +0000
  • d25fd5fb6c Set the split point to the end of the line if the entire string fits in the allocated space Chris Young 2013-02-12 00:21:56 +0000
  • bb601eae78 Don't reduce width of textarea box for CSS overflow scrollbar; it won't get one. Michael Drake 2013-02-11 18:43:50 +0000
  • 515cef8444 Don't include '\0' in single-line nsfont_width call. Michael Drake 2013-02-11 18:42:51 +0000
  • fe7b71edbf Selection autoscroll of scrollbarless textareas (single line). Michael Drake 2013-02-11 17:55:36 +0000
  • 99cab8389a Early detection of regions outside the visible. Michael Drake 2013-02-11 17:05:42 +0000
  • fc430dba75 Clip native caret render so it can't overwrite border. Slight simplification. Michael Drake 2013-02-11 16:47:11 +0000
  • e6bf51c3ba Single line textareas don't have scrollbars, so they don't get the scroll redraw request from the scrollbar callback. Michael Drake 2013-02-11 16:31:06 +0000
  • 3bcc79ccf0 Don't need to redraw for caret removal if using a native caret. Michael Drake 2013-02-11 16:10:19 +0000
  • fa2d5cf62c Fix internal caret redraw bounds. Michael Drake 2013-02-11 14:30:26 +0000
  • 18444f261a Fix delete-to-line-end. Michael Drake 2013-02-11 13:39:56 +0000
  • 262555099d Pass scale to textarea redraw. Michael Drake 2013-02-11 10:47:15 +0000
  • 7af0614202 Make delete line key enum value name less missleading. (Doesn't cut to clipboard.) Michael Drake 2013-02-11 10:34:06 +0000
  • 99fc8d3f0d Move html textarea's selection colour chooser to plot_style.h, as it could be used elsewhere. Michael Drake 2013-02-11 00:41:22 +0000
  • e4e2917787 Merge branch 'master' of git://git.netsurf-browser.org/netsurf Michael Drake 2013-02-10 23:37:36 +0000
  • d78777276c Bring nsfont_split up to core expectations. Slightly bodged. Chris Young 2013-02-10 23:24:04 +0000
  • b38520da99 Implement delete line. (Ctrl+U on RISC OS.) Michael Drake 2013-02-10 23:22:46 +0000
  • 315f5a8ca1 Merge branch 'master' of git://git.netsurf-browser.org/netsurf Michael Drake 2013-02-10 21:52:36 +0000
  • f6703dcbaa Merge branch 'master' of git://git.netsurf-browser.org/netsurf Michael Drake 2013-02-10 18:35:18 +0000
  • 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. Michael Drake 2013-02-10 18:33:27 +0000
  • e7e5211eb9 Update for new nsfont_split expectations. Untested, but code similar to framebuffer. Michael Drake 2013-02-10 18:32:08 +0000
  • bd2ca73de7 Update for new nsfont_split expectations. Untested, but code same as framebuffer. Michael Drake 2013-02-10 18:30:44 +0000
  • 6bab556827 Make comaptible with new nsfont_split expectation. Untested, but code is same as framebuffer front end, so should work. Michael Drake 2013-02-10 18:28:59 +0000
  • 3148f8a6c3 Make compatible with new nsfont_split expectations. Only splits on spaces. Michael Drake 2013-02-10 18:26:59 +0000
  • db8ec60fc0 Update nsfont_split documentation. Implementation was already compatible. Can only split on spaces. Michael Drake 2013-02-10 18:25:09 +0000
  • 4843658742 Don't need to break on space any more. This gives us unicode line breaking from pango. Michael Drake 2013-02-10 18:23:34 +0000
  • 285a7ca6c3 Document new nsfont_split expected behaviour. Michael Drake 2013-02-10 18:22:51 +0000
  • 7bc725fe1f Update HTML layout not to demand that nsfont_split only splits on a space. Michael Drake 2013-02-10 16:50:15 +0000
  • f98c0d848c Make nowrap code path a bit plainer. Michael Drake 2013-02-10 12:19:13 +0000
  • af3ef0fb41 Queue fast scroll redraws same as any other box redraw Chris Young 2013-02-10 12:13:39 +0000
  • c7bfbffd51 minor correction from samir Chris Young 2013-02-10 11:53:03 +0000
  • 2a4b9b2217 Comment current html wrap/text-splitting behaviour. Michael Drake 2013-02-10 11:50:04 +0000
  • ceb1668a8a Choose pretty colours for selection. Michael Drake 2013-02-09 22:55:31 +0000
  • 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. Michael Drake 2013-02-09 18:41:23 +0000
  • 32e9602126 When updating textarea layout settings, remember scrollbar status. Michael Drake 2013-02-09 18:21:10 +0000
  • 1be54d7b10 If restarting reflow for scrollbar change, need to start at line 0. Michael Drake 2013-02-09 16:50:30 +0000
  • 56cfa93531 Empty textarea has one line. Michael Drake 2013-02-09 16:28:00 +0000
  • 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.) Michael Drake 2013-02-09 15:26:20 +0000
  • 8c3e0cf81a [Return] will replace selection. Michael Drake 2013-02-09 14:43:21 +0000
  • b4609f41bc Support front ends that pass CR for [return], as well as those that pass NL. Michael Drake 2013-02-09 14:19:38 +0000
  • eb1113e4c3 Fix handling of empty textarea. Michael Drake 2013-02-09 14:18:17 +0000
  • 048b344a43 Take account of scrollbar-occupied regions. Michael Drake 2013-02-09 13:34:28 +0000
  • f848de3dd0 Fix use of x values when y is required. Michael Drake 2013-02-09 13:18:16 +0000
  • 7fa8f30f44 Don't add box scrollbar padding to gadgets. Michael Drake 2013-02-09 13:01:56 +0000
  • 2bd0d13817 Take account of caret height when scrolling to show caret. Michael Drake 2013-02-09 11:54:13 +0000
  • 688e1b0e4f Slight selection auto-scroll optimisation. Michael Drake 2013-02-09 11:24:44 +0000
  • 363d02b8ad Pedantic wrap. Michael Drake 2013-02-08 23:39:41 +0000
  • 50c52408f5 Fix seg fault when moving cursor up onto empty top line. Michael Drake 2013-02-08 23:38:05 +0000
  • 6fee220c52 Adjust code to reduce indentation. Michael Drake 2013-02-08 23:35:42 +0000
  • 0d831c4ab6 Scaled textarea rendering support. Ugly. Michael Drake 2013-02-08 23:25:40 +0000
  • 586e02e915 Implement text selection auto-scroll. Michael Drake 2013-02-08 20:03:44 +0000
  • 7a397d29c6 Improve scroll-to-caret behaviour. Michael Drake 2013-02-08 19:46:35 +0000
  • 59d24187f7 Support dropping text file on textarea widget. Michael Drake 2013-02-08 16:05:44 +0000
  • 0a4e1a05e3 Merge branch 'master' of git://git.netsurf-browser.org/netsurf Michael Drake 2013-02-08 15:28:38 +0000
  • 698f391289 Add scrollwheel support to textareas. Michael Drake 2013-02-08 15:26:24 +0000
  • f57e89cc25 Add ta to documentation. Michael Drake 2013-02-08 15:15:27 +0000
  • 98befbb770 Fix comment. Michael Drake 2013-02-08 15:10:39 +0000
  • 9c20ff9592 Drag fixup. Add some documentation. Michael Drake 2013-02-08 15:05:07 +0000
  • 4747bbbfb2 HTML drags now go via content msg. Michael Drake 2013-02-08 13:22:53 +0000
  • 9ec663f3a9 Tweak selection rendering. Adjusting layout doesn't emit redraw request. Client must redraw when it wants it. Michael Drake 2013-02-08 13:16:24 +0000
  • 4ffa39177d fix docuemnt/window location to correctly navigate, fixes http://www.avaaz.org/ base page Vincent Sanders 2013-02-07 18:16:37 +0000
  • 76b0e59b18 Don't lose fractional part of text pt size to rounding. Michael Drake 2013-02-07 15:03:35 +0000
  • 08035f1197 Remove unused textinput widget. (Old html form text editing.) Michael Drake 2013-02-07 14:36:54 +0000
  • cb283c516a Don't build or include old render/textinput module. Michael Drake 2013-02-07 14:28:20 +0000
  • 2979a19786 Remove input subtree special numberspacing. Michael Drake 2013-02-07 14:21:48 +0000
  • 94be5edbfa Native caret not now set in redraw. Prevents endless redraw when textarea has caret. Michael Drake 2013-02-07 13:58:43 +0000
  • 762e1aad73 First pass at getting html forms to use textarea widget. (Input element types text & password, and textarea element.) Can edit and submit forms, but there are loads of issues. Michael Drake 2013-02-06 22:39:45 +0000
  • 008cdb42d7 Fix empty textarea reflow. Fix empty line (just \n) redraw. Add set layout function to set size and padding. Michael Drake 2013-02-06 22:30:32 +0000
  • 2260152ebf Fix split implementation. Michael Drake 2013-02-06 22:27:51 +0000
  • 7957cc59b1 Updated Italian translation from Samir Hawamdeh Chris Young 2013-02-06 20:03:07 +0000
  • a853194c1d Correct SSL certificate accept/reject messages name Chris Young 2013-02-06 20:00:46 +0000
  • 02115a8958 Optimise box redraws some more by discarding simple subsets Chris Young 2013-02-06 18:44:41 +0000
  • 7c671378aa Don't add the same box redraw to the queue more than once Chris Young 2013-02-05 19:44:21 +0000
  • 79301e423c Merge branch 'master' of git://git.netsurf-browser.org/netsurf Michael Drake 2013-02-03 23:20:20 +0000
  • 9c7031143f Use last known scroll pos, not current Chris Young 2013-02-03 22:19:31 +0000
  • b704ad3e88 Correct fast scroll co-ordinates Chris Young 2013-02-03 19:30:11 +0000
  • 4c27d6dd8e Ensure scale can be accssed from the keyboard Chris Young 2013-02-03 19:14:25 +0000
  • 34f1e427f9 Un-fix scaled box redraw, as it cause more problems than it solves Chris Young 2013-02-03 19:10:30 +0000
  • ccaeced4bf Make fast scroll code easier to read Chris Young 2013-02-03 18:50:16 +0000
  • 871a8e7cba Fix scaled redraw of boxes Chris Young 2013-02-03 18:21:28 +0000
  • 601ab918e8 Merge branch 'master' of git://git.netsurf-browser.org/netsurf Michael Drake 2013-02-03 16:50:38 +0000
  • 43fe4490d3 Defer the redraw of boxes. This fixes a redraw problem with form select menus. Chris Young 2013-02-03 14:01:48 +0000
  • 442218cb80 Pull flags out of textarea_setup. Michael Drake 2013-02-02 22:58:35 +0000
  • 97bc1d0189 Add support for password text inputs. + Text display obscured. + Cut/Copy put the obscured version on the clipboard. Michael Drake 2013-02-01 18:29:27 +0000
  • 5ee7c6fd5c fix cast warning in location::href setter Vincent Sanders 2013-01-31 22:53:20 +0000
  • 3d075bec32 add href location setter Vincent Sanders 2013-01-31 20:28:49 +0000
  • 16603cea27 Merged toolbar changes from master Ole Loots 2013-01-31 20:33:41 +0100
  • e9932f75ad Added missing copyright headers. Ole Loots 2013-01-31 19:59:33 +0100