Commit Graph

62 Commits

Author SHA1 Message Date
Vincent Sanders
0d811963c1 fixup all the remaining logging macro callsites
The semantic patch tool appears to have missed some difficult to
reason about callsites which have now been manually cleaned up
2015-05-28 17:06:18 +01:00
Vincent Sanders
c105738fa3 Change LOG() macro to be varadic
This changes the LOG macro to be varadic removing the need for all
callsites to have double bracketing and allows for future improvement
on how we use the logging macros.

The callsites were changed with coccinelle and the changes checked by
hand. Compile tested for several frontends but not all.

A formatting annotation has also been added which allows the compiler
to check the parameters and types passed to the logging.
2015-05-28 16:08:46 +01:00
Vincent Sanders
ac70da346c Update the RISC OS frontend to cope with split operations table headers 2014-10-16 22:33:44 +01:00
Vincent Sanders
54fcb66d87 cleanup RISC OS frontend header usage 2014-06-05 15:14:49 +01:00
Michael Drake
0b39a3750c Reduce scope of a few variables. 2014-05-30 23:02:02 +01:00
Vincent Sanders
886a3106db move utf8 local conversion operations to table 2014-02-01 22:17:36 +00:00
Vincent Sanders
1f62b5a980 make the clipboard operation table and members static to textselection module and cleanup unnecessary includes 2014-02-01 10:45:20 +00:00
Vincent Sanders
654da2ffb5 move utf8 conversion routines to use nserror instead of their own error enum 2014-01-28 21:40:13 +00:00
Vincent Sanders
d18c8ed452 move teh final optional window operations into the table 2014-01-13 22:54:19 +00:00
Steve Fryatt
ee8fb6f39f Allow ro_mouse to enable null polls; remove unused global variables.
Implement ro_mouse_poll_interval() to allow ro_mouse to influence null polling.
Remove unused calls to drag type globals.
2013-09-08 13:27:11 +01:00
Steve Fryatt
e87596ad1f Restructure handling of DragEnd events.
Add ro_mouse module to process mouse events during drags and on null polls.
Implement support in ro_mouse for tracking the mouse during drags and passing on DragEnd events.
Remove ro_gui_drag_end() and update all of its clients so that they use ro_mouse.
Remove the unused ro_gui_window_frame_resize_end().

Termination of save drags with Escape is unimplemented, but appears broken anyway.
The use of gui_drag_type is still required to handle Message_DatasaveAck processing.
Mouse tracking is still handled via gui.c.
2013-09-08 00:47:55 +01:00
Michael Drake
631265ef6b Front ends have no reason to include desktop/selection.h now. 2013-05-10 12:16:05 +01:00
Steve Fryatt
dd35da2cac Merge branch 'master' of git://git.netsurf-browser.org/netsurf 2013-02-24 23:59:09 +00:00
Steve Fryatt
3c373994f9 Set Message_DataRequest length correctly. 2013-02-24 23:58:02 +00:00
John-Mark Bell
142922d10a Fix leak when handling paste 2013-02-24 23:05:56 +00:00
Michael Drake
058acae43f Fix potential double free when we've had something in our clipboard, another app has claimed the clipboard, and the clipboard is now empty/disowned by all apps, and we try to paste the empty clipboard twice in NetSurf. 2013-02-13 23:46:06 +00:00
John-Mark Bell
64ae9e8693 Fix paste. Store clipboard as UTF-8 internally, to avoid unnecessary data loss when copying internally. 2013-01-22 08:51:58 +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
153c444454 Move browser_window struct to private header. Places that shouldn't include it do, such as front end code.
Frontends that have been updated to build:
  framebuffer
  gtk
  monkey
  riscos

TODO:
  amiga
  atari
  beos
  cocoa
  windows
2012-08-22 12:22:58 +01:00
Michael Drake
d106091d6e Pass font plot style out to front end clipboard append function. 2012-08-13 14:43:04 +01:00
Michael Drake
c5bcf0b809 Remove remaining use of core internals. 2012-08-02 15:03:12 +01:00
Michael Drake
1cb5272c95 Use selection_copy_to_clipboard instead of peering into core innards. 2012-08-02 14:46:20 +01:00
Michael Drake
9a6b4b1b07 Include render/box.h and render/html.h to fix build.
svn path=/trunk/netsurf/; revision=13719
2012-03-26 11:01:48 +00:00
Michael Drake
e9b0a3ffb4 Fix build.
svn path=/trunk/netsurf/; revision=12588
2011-07-07 18:35:03 +00:00
Michael Drake
2bedf4d88f Frond ends signal end of drag with call to browser_window_mouse_track.
svn path=/trunk/netsurf/; revision=12515
2011-06-27 17:45:17 +00:00
Michael Drake
311080ff54 Simplify browser_window_mouse_drag_end calls.
svn path=/trunk/netsurf/; revision=12513
2011-06-27 16:16:21 +00:00
John Mark Bell
de688b59e1 Fix text selection
svn path=/trunk/netsurf/; revision=11927
2011-03-06 18:04:13 +00:00
Steve Fryatt
cd9c0998e9 Merge branches/stevef/toolbars to trunk.
svn path=/trunk/netsurf/; revision=11741
2011-02-20 23:16:33 +00:00
John Mark Bell
86c2948eb4 Fix copying text/plain to clipboard
svn path=/trunk/netsurf/; revision=11636
2011-02-09 20:31:34 +00:00
John Mark Bell
6173bb0e6c Merge treeview-redux to trunk
svn path=/trunk/netsurf/; revision=10865
2010-10-05 19:14:46 +00:00
Chris Young
004aee8281 Amiga: Add "cut" option; make cut/copy/paste menus context sensitive; allow dragging
selections within NetSurf window to text fields (does not work across windows).

todo: switching tabs will reset cut/copy/paste menus to initial state; cut option is
putting something on the clipboard which causes a crash when pasting it back

svn path=/trunk/netsurf/; revision=10660
2010-07-24 16:39:37 +00:00
Michael Drake
6a55bafba8 Fix for new cache.
svn path=/trunk/netsurf/; revision=10283
2010-04-07 17:42:21 +00:00
John Mark Bell
ddeadd1c02 Merge LibCSS port to trunk.
svn path=/trunk/netsurf/; revision=8752
2009-07-23 23:05:34 +00:00
John Mark Bell
1db6b5d93e Tidy up somewhat. Lose redundant assignment.
svn path=/trunk/netsurf/; revision=7638
2009-05-29 23:12:18 +00:00
John Mark Bell
3251f4b49c Squash warning
svn path=/trunk/netsurf/; revision=6915
2009-03-27 01:29:39 +00:00
Michael Drake
b661f3deaf Don't constrain mouse pointer to window area during text selection.
svn path=/trunk/netsurf/; revision=4256
2008-06-03 21:51:25 +00:00
Michael Drake
62ca5e3e11 Tidy up.
svn path=/trunk/netsurf/; revision=4064
2008-03-31 18:59:23 +00:00
Michael Drake
5def4f5e0c Fix formatting of copied or saved text selections.
svn path=/trunk/netsurf/; revision=4063
2008-03-31 18:04:36 +00:00
Adrian Lees
084bcd631a Ensure 'tracking window' defined when starting selection
svn path=/trunk/netsurf/; revision=4042
2008-03-23 06:06:44 +00:00
Vincent Sanders
2f864eeecc Update all source code file headers to reflect GPL version 2 only and contain appropriate licence text
svn path=/trunk/netsurf/; revision=3486
2007-08-08 16:16:03 +00:00
Daniel Silverstone
6807b4208a Remove the netsurf/ from the include paths and rationalise use of <> vs "" in includes
NetSurf includes are now done with ""s and other system includes with <>s as C intended.
The scandeps tool has been updated to only look for ""ed includes, and to verify that the
files exist in the tree before adding them to the dependency lines. The depend rule has
therefore been augmented to make sure the autogenerated files are built before it is run.

This is untested under self-hosted RISC OS builds. All else tested and works.


svn path=/trunk/netsurf/; revision=3307
2007-05-30 22:39:54 +00:00
Michael Drake
ba23e4b693 Update project URL.
svn path=/trunk/netsurf/; revision=3073
2006-11-27 15:35:18 +00:00
Richard Wilson
3e0c02e8e5 Simplify and tidy up RISC OS gui_ functions. Fix toolbar height changing issues for framesets.
svn path=/trunk/netsurf/; revision=2924
2006-09-06 22:15:58 +00:00
Daniel Silverstone
17d059f53f [project @ 2006-03-10 09:09:03 by dsilvers]
Minor refactor to pass the gui_window to gui_window_set_pointer and gui_window_hide_pointer

svn path=/import/netsurf/; revision=2123
2006-03-10 09:09:03 +00:00
Adrian Lees
dbfdafdf18 [project @ 2006-02-15 23:09:53 by adrianl]
Extend text selection, copying, saving and searching code to handle textplain contents; modified textplain code to accept other line terminators

svn path=/import/netsurf/; revision=2081
2006-02-15 23:09:55 +00:00
Adrian Lees
edded10c0f [project @ 2006-02-11 18:33:05 by adrianl]
Textarea/selection improvements and fixes

svn path=/import/netsurf/; revision=2072
2006-02-11 18:33:05 +00:00
John Mark Bell
779bc57970 [project @ 2006-02-02 17:32:00 by jmb]
Tidy up and fix 1422623.

svn path=/import/netsurf/; revision=2053
2006-02-02 17:32:00 +00:00
Adrian Lees
84f43ac3a0 [project @ 2005-09-01 03:21:13 by adrianl]
Fix NULL read

svn path=/import/netsurf/; revision=1858
2005-09-01 03:21:13 +00:00
Adrian Lees
1a1901d19b [project @ 2005-07-20 23:27:27 by adrianl]
2D scrolling of text areas/frames; First cut at selection in textareas; Further text editing actions (Word left/right; Page up/down; Cut block; Delete line start/end)

svn path=/import/netsurf/; revision=1812
2005-07-20 23:27:28 +00:00
Adrian Lees
56baede6fd [project @ 2005-07-19 04:05:08 by adrianl]
Convert to local encoding when copying to clipboard

svn path=/import/netsurf/; revision=1807
2005-07-19 04:05:08 +00:00