Commit Graph

8447 Commits

Author SHA1 Message Date
Michael Drake 6938efc2a0 Merge branch 'master' of git://git.netsurf-browser.org/netsurf 2013-01-13 00:09:50 +00:00
Michael Drake c7a37392e4 Add background colour to textarea_redraw API. Add source comments. 2013-01-12 20:59:32 +00:00
John-Mark Bell a6b08c674f Fix handling of junk input 2013-01-12 20:57:01 +00:00
Michael Drake 5124b8a02a Add textarea_setup struct to textarea_create API. 2013-01-12 20:46:01 +00:00
Chris Young 453301f961 Fix fast scroll up 2013-01-12 14:06:48 +00:00
John-Mark Bell 261528747c Remove code that hasn't been used since 2004. 2013-01-12 02:35:09 +00:00
Michael Drake ac03806a50 Fix redraw of caret when scroll offsets are non-zero, only caret has moved, and we're not getting a full textarea redraw. 2013-01-10 23:21:47 +00:00
Michael Drake ac89e52109 Simplify routine to scroll ta so that caret is visible. 2013-01-10 23:20:42 +00:00
Chris Young d7ddfd6ac3 Make logic compare clearer 2013-01-10 22:07:11 +00:00
Michael Drake ab5d165659 More wrap behaviour improvement. 2013-01-10 19:43:22 +00:00
Michael Drake 694c1e7eea Fix silly. 2013-01-10 18:42:56 +00:00
Michael Drake d3973b2991 Fix previous caret position redraw. 2013-01-10 18:36:25 +00:00
Michael Drake 2158ef60a8 Improve reflow in multiline textareas. 2013-01-10 17:42:43 +00:00
Michael Drake eddb0f17d1 Simplfy caret placement and redraw. 2013-01-10 15:06:05 +00:00
Michael Drake 4cad82db9f Fix caret placement in multi-line textareas. 2013-01-10 12:46:33 +00:00
Chris Young 3269333658 Fix reading of clipboard 2013-01-10 00:00:51 +00:00
Chris Young 6e4c82265c Get CSET using PropChunk rather than StopChunk 2013-01-09 23:42:14 +00:00
Chris Young 6b4ab8141f Remove unused variables 2013-01-09 20:20:54 +00:00
Chris Young f15f19f788 Convert to UTF-8 before doing length calculations (untested) 2013-01-09 18:41:53 +00:00
Michael Drake ec8e6ac91d Add support for clipboard. Improve text selection behaviour. Various fixes. 2013-01-09 18:10:20 +00:00
Michael Drake 31e7b6d983 Make get_xy_offset return both char and byte offset. (Byte being needed for selection replacement.) 2013-01-09 14:26:11 +00:00
Michael Drake 4f1553f2e9 Merge branch 'master' of git://git.netsurf-browser.org/netsurf 2013-01-09 09:44:18 +00:00
Ole Loots 1f693a8677 Removed obsolete variable tmp_clipboard 2013-01-09 01:39:34 +01:00
Ole Loots bfbb4ccbb2 Merge branch 'master' of git://git.netsurf-browser.org/netsurf 2013-01-09 01:16:17 +01:00
Ole Loots bded644d7f Fixes for new clipboard interface. 2013-01-09 01:12:30 +01:00
Chris Young 7ae27476a7 Re-implement reading the clipboard using CollectionChunk; this removes the need for an initial UTF8 chunk scan and allows the chunks to be collated before sending back to the core. Untested and length calculations ignore charset conversion. 2013-01-08 23:44:13 +00:00
Chris Young 5aae2c3ed0 Fix drag selection 2013-01-08 23:01:57 +00:00
Michael Drake 50c8e2c11d Merge branch 'master' of git://git.netsurf-browser.org/netsurf 2013-01-08 22:10:16 +00:00
Chris Young d1dabbb0e2 remove gui_copy_to_clipbaord call - this needs fixing 2013-01-08 20:21:16 +00:00
Chris Young 78f3f53622 re-enable ami_drag_selection 2013-01-08 20:15:27 +00:00
Chris Young 5a43a5a1a9 fix typo 2013-01-08 20:07:46 +00:00
Chris Young e408c9ea43 Update copy to new API (untested), pasting needs work, ami_drag_selection needs thought. 2013-01-08 19:58:44 +00:00
Michael Drake 964a736a53 Rename selection index markers. 2013-01-08 19:51:59 +00:00
Michael Drake 0767e590fd Remove unused function. 2013-01-08 17:54:55 +00:00
Michael Drake fe210c5d58 Fixups. 2013-01-08 17:52:12 +00:00
Michael Drake 9cb1da921b Prompt core to deal with copy/paste correctly. 2013-01-08 17:47:04 +00:00
Michael Drake 9dc965d51c Untested update for new clipboard API. 2013-01-08 17:07:04 +00:00
Michael Drake 94f13d8555 Untested update for new clipboard API. 2013-01-08 17:06:37 +00:00
Michael Drake 0bfc40618a Make Monkey front end build with new clipboard API. 2013-01-08 17:06:01 +00:00
Michael Drake 00a08e7b94 Update RISC OS front end to implement new clipboard API. TODO: Handle paste when NetSurf doesn't own clipboard. Might be able to do some setup before KEY_PASTE is passed to the core. 2013-01-08 17:03:50 +00:00
Michael Drake fc9199f14e Update framebuffer front end to implement new clipboard API. 2013-01-08 17:03:12 +00:00
Michael Drake e2e7aa135c Update GTK front end to implement new clipboard API. 2013-01-08 17:02:27 +00:00
Michael Drake 8af3dd9a43 Redo html textinput for new front end clipboard API. This doesn't affect the textinput code's brokenness. 2013-01-08 16:59:26 +00:00
Michael Drake de63a64b50 Update to use new front end clipboard functions. Now we build the buffer from each individual text box in the core, instead of in each front end. Styles for text runs are generated in the HTML case. 2013-01-08 16:54:46 +00:00
Michael Drake 147f2bd08a Remove content_msg for PASTE, since it doesn't need a gui_window to get the buffer from the front end now. 2013-01-08 16:53:00 +00:00
Michael Drake e93fae7f2d Change clipboard api, so it does not assume either browser_window/gui_window, or html/text-plain content selection objects. This allows desktop/textarea to use clipboard. 2013-01-08 16:44:45 +00:00
Michael Drake 8314101ada Pass various control keys to core for clipboard control, etc. 2013-01-08 12:07:56 +00:00
Vincent Sanders 87ee963ff2 Initial changes ready to improve caching decisions 2013-01-07 18:45:29 +00:00
Michael Drake f43f84f5ad Fix redraw of selection hightlight during selection drags. 2013-01-07 14:15:35 +00:00
Michael Drake 0c0f1e4b7a Remove wrong comments. 2013-01-07 12:59:06 +00:00