Commit Graph

147 Commits

Author SHA1 Message Date
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
Michael Drake 368861faab Remove useless includes of utils/url.h 2014-10-31 14:36:34 +00:00
Michael Drake b7deca9296 Don't dereference bw to get window scale. 2014-10-15 22:04:31 +01:00
Vincent Sanders 02bbaa3e88 split version info into its own header and remove unnecessary nesurf.h includes
The netsurf.h header should *only* contain the registration, core
initialisation and finalisation methods. Version information is best
placed in its own header.

Also remove any unneeded inclusion of this header limiting it to
solely the places the relevant API is required.
2014-10-13 15:08:16 +01:00
Vincent Sanders 17be8cf216 Put the font operations table alongside all the other core API
The netsurf core is driven from numerous operation tables most of
which are now set through a common netsurf_register() interface. The
font and plotting interfaces are currently separate and unlike all the
other operation tables are modified for differing contexts.

This change moves the font operations alongside all the other
operations table and remove unnecessary interaction with the renderers
font internals. Further this also removes the need for css internals
to be visible in frontends.
2014-10-13 11:56:31 +01:00
Vincent Sanders 3a9fa29ee5 try and improve usage of browser window internals 2014-07-06 18:34:34 +01:00
Vincent Sanders 54fcb66d87 cleanup RISC OS frontend header usage 2014-06-05 15:14:49 +01:00
Michael Drake ba2f3c1cb8 Scope reduce a couple of variables. 2014-05-26 10:09:55 +01:00
Michael Drake af014bce99 Allow tab creation without history clone. Changes browser_window_create and browser_window_navigate flags. 2014-02-10 14:08:45 +00:00
Steve Fryatt 27fdcb90f2 Update copyright dates in modified files. 2014-01-26 16:28:56 +00:00
Steve Fryatt def97156d3 Make Open URL dialogue allocate memory for the URL field.
Add global constant for URL length, to manage both URL Bar and Open URL.
2014-01-26 14:35:57 +00:00
Michael Drake c720ecf449 Remove old debug window template. 2013-10-03 20:04:29 +01:00
Steve Fryatt a00e0f91c7 Move all mouse tracking into ro_mouse module.
Add Pointer Entering Window events to wimp_event module and add handlers to all modules requiring mouse tracking.
Updated: Treeview, URL Complete, History and GUI Window.
Delete all handling for Pointer Entering/Leaving from ro_gui.
2013-09-08 11:55:21 +01:00
Vincent Sanders a92e5930ff fixup issues with new options API merge 2013-05-28 16:44:46 +01:00
Vincent Sanders ee6e6eec05 move options include 2013-05-28 14:16:10 +01:00
Vincent Sanders 529ca251fc rename flags for browser_window routines to be shorter 2013-02-18 11:51:42 +00:00
Vincent Sanders b112dec78d change browser_window_create and refactor all callsites 2013-02-18 11:23:48 +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
Vincent Sanders 1490b52a6b NetSurf options rework (a=vince r=daniels,jmb)
svn path=/trunk/netsurf/; revision=13548
2012-03-22 09:34:34 +00:00
Michael Drake 22a34841f7 Don't need to url_normalise, since the core is nsurl based.
svn path=/trunk/netsurf/; revision=12965
2011-10-06 10:07:33 +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 6173bb0e6c Merge treeview-redux to trunk
svn path=/trunk/netsurf/; revision=10865
2010-10-05 19:14:46 +00:00
John Mark Bell 70f81c8bcf Aliasing fixes
svn path=/trunk/netsurf/; revision=6959
2009-03-28 01:15:02 +00:00
John Mark Bell 903edd1bf5 Purge WITH_SEARCH
svn path=/trunk/netsurf/; revision=6604
2009-02-22 15:21:54 +00:00
John Mark Bell 851da107c9 Purge WITH_PRINT
svn path=/trunk/netsurf/; revision=6601
2009-02-22 15:16:04 +00:00
John Mark Bell b98f105b24 Purge WITH_AUTH
svn path=/trunk/netsurf/; revision=6600
2009-02-22 15:13:10 +00:00
John Mark Bell 847b776285 Purge NETSURF_USE_SSL and WITH_SSL
svn path=/trunk/netsurf/; revision=6599
2009-02-22 15:07:50 +00:00
Adrian Lees d67a57c1e9 Assorted saving-related changes (WIP)
svn path=/trunk/netsurf/; revision=6010
2009-01-10 00:18:34 +00:00
Adrian Lees 327606f0fd A few usability tweaks
svn path=/trunk/netsurf/; revision=5922
2008-12-26 09:25:30 +00:00
Rob Kendrick afdf592637 Merge Mike's tabs changes. Still needs some cleaning.
svn path=/trunk/netsurf/; revision=5189
2008-08-24 10:31:38 +00:00
John Tytgat c40fc354b3 - Teached ro_gui_set_icon_string() and ro_gui_get_icon_string() about the difference between direct and indirect icons.
- ro_gui_get_icon_string(): 
    - Constify return value of ro_gui_get_icon_string() as you really shouldn't change its contents via this pointer.
    - Enfore NUL string termination as return value (instead of other control char termination) 
- Merged ro_gui_set_icon_string_le() into ro_gui_set_icon_string() by adding ro_gui_set_icon_string() and extra to_utf8 parameter.
- ro_gui_strncmp(): added

svn path=/trunk/netsurf/; revision=4907
2008-08-05 01:23:04 +00:00
John Tytgat 5f6c2cbff7 - Compiler warning squash
- Changed a lineending \n\r -> \n for a couple of files.
- More code style conformance.

svn path=/trunk/netsurf/; revision=4762
2008-07-26 22:29:15 +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
James Bursa 07c54283e3 Move window scaling from platform-specific code to desktop/browser.c. Modify gtk gui to handle scaling in the same way as RO.
svn path=/trunk/netsurf/; revision=3478
2007-08-07 03:55:18 +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
Richard Wilson e5129294c0 Call close functions when automatically closing child windows and when automatically handlign Cancel buttons.
svn path=/trunk/netsurf/; revision=3225
2007-03-26 12:28:19 +00:00
Richard Wilson 7368688642 Dynamically update scale view (implement 1556975) and prevent double redraws.
svn path=/trunk/netsurf/; revision=3191
2007-03-03 19:46:20 +00:00
Richard Wilson a674848f29 Fix invalid window initialisation
svn path=/trunk/netsurf/; revision=3083
2006-12-01 14:37:21 +00:00
Michael Drake ba23e4b693 Update project URL.
svn path=/trunk/netsurf/; revision=3073
2006-11-27 15:35:18 +00:00
Richard Wilson 02a8722cc6 Fix 1553282.
svn path=/trunk/netsurf/; revision=2932
2006-09-08 16:57:26 +00:00
Richard Wilson 1999becb42 Finish event based GUI system transition and begin code cleanup.
svn path=/trunk/netsurf/; revision=2922
2006-09-06 14:44:42 +00:00
Richard Wilson 00d74fdd2d Allow the viewing of the entire SSL certificate chain.
svn path=/trunk/netsurf/; revision=2755
2006-07-16 00:21:15 +00:00
Richard Wilson a836591435 Add basic cookie viewer, make trees use textarea components for UTF8 editing, trim headers, fix tree redraw issues.
svn path=/trunk/netsurf/; revision=2739
2006-07-13 12:46:02 +00:00
Richard Wilson c7f77b0165 Finish history cloning.
svn path=/trunk/netsurf/; revision=2547
2006-04-22 18:24:18 +00:00
John Mark Bell c098703201 [project @ 2006-03-25 22:48:32 by jmb]
Assert that template names are <=11 chars long.
Rename con_language to con_lang

svn path=/import/netsurf/; revision=2165
2006-03-25 22:48:32 +00:00
James Bursa 016128c37d [project @ 2006-03-25 20:13:51 by bursa]
Make dialogs open fully on screen even if they are already open.

svn path=/import/netsurf/; revision=2163
2006-03-25 20:13:51 +00:00
John Mark Bell d4d3e5ee1c [project @ 2006-02-23 15:06:53 by jmb]
Handle invalid SSL certificates better - UI still needs work.
Modify fetch callback data parameter type to remove compiler warnings.
Constify things.
Lose global ssl_verify_certificates option.
Fix issue when closing a dialog without input focus.

svn path=/import/netsurf/; revision=2092
2006-02-23 15:06:54 +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
Richard Wilson 45b78bc199 [project @ 2006-01-25 12:49:51 by rjw]
Possible workaround for OS template loading bug.

svn path=/import/netsurf/; revision=2041
2006-01-25 12:49:51 +00:00
Richard Wilson 3a3e27b7c6 [project @ 2006-01-25 00:33:00 by rjw]
Supress error message if parent window is already closed.

svn path=/import/netsurf/; revision=2037
2006-01-25 00:33:00 +00:00