Commit Graph

50 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
Witold Filipczyk
befa5e6ed3 To avoid namespace conflicts with ncurses add NetSurf key prefix.
Adds a NetSurf key code prefix of NS_ to all key codes.
2015-03-27 09:36:19 +00:00
Vincent Sanders
c31c4babe1 Change contextual content retrieval to browser features.
Update the API which allows frontends to acquire the page features
(images, link urls or form elements) present at the given coordinates
within a browser window.

By making this an explicit browser_window API and using the browser.h
header for the associated data structure with a more appropriate API
naming the usage is much more obvious and contained.

Additionally the link url is now passed around as a nsurl stopping it
being converted from nsurl to text and back again several times.
2014-11-02 15:46:42 +00:00
Michael Drake
65b4c2f86a Shouldn't need bw internals now. 2014-10-25 16:05:13 +01:00
Michael Drake
720579e110 Don't access bw internals. 2014-10-25 16:04:43 +01:00
Vincent Sanders
56731e1dbb remove all unecessary desktop/browser.h includes 2014-10-17 10:49:24 +01:00
Vincent Sanders
19c26ca182 update atari includes to accomodate gui operation table refactor 2014-10-16 22:33:44 +01:00
Vincent Sanders
30f118a86d remove unecessary css includes from fronetends 2014-10-13 15:45:51 +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
Michael Drake
1b0a968f1c Remove unused variables. 2014-05-19 17:01:40 +01:00
Michael Drake
ae621334a6 Fix line endings. 2014-05-19 17:00:53 +01:00
Michael Drake
49bed056dd Make browser_window_navigate (un)verifiable flag match browser_window_create. 2014-02-10 22:40:04 +00: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
Vincent Sanders
7227c29bba move window scroll getter and setter into operations table 2014-01-13 01:08:15 +00:00
Ole Loots
4bf410a583 Extended documentation 2013-12-29 23:15:53 +01:00
Ole Loots
e154748542 Do not use tmpnam() but a custom function. 2013-12-29 22:23:51 +01:00
Ole Loots
d3c8185eca Added comments 2013-11-24 22:02:40 +01:00
Ole Loots
2874fbd248 Fix "View Source" by setting first byte of cmdline to length of cmdline 2013-11-24 02:26:52 +01:00
Vincent Sanders
ee6e6eec05 move options include 2013-05-28 14:16:10 +01:00
Vincent Sanders
0eb0798873 fix errors introduced in refactor 2013-02-18 12:24:49 +00: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
Vincent Sanders
3bfb5b96a7 browser_window_navigate refactor 2013-02-18 11:23:27 +00:00
Ole Loots
985e4ce6be Prefixed gemtk module functions. 2013-01-22 02:33:27 +01:00
Ole Loots
adcbbbe880 Started to move the search form into the browser window. 2013-01-11 02:12:30 +01:00
Ole Loots
fe49a18332 code formating 2013-01-09 22:59:22 +01:00
Ole Loots
64f8030b28 Merge branch 'master' into mono/removing-windom-dependency
Conflicts:
	atari/gui.c
	atari/toolbar.h
2013-01-09 01:33:53 +01:00
Ole Loots
bded644d7f Fixes for new clipboard interface. 2013-01-09 01:12:30 +01:00
Ole Loots
7920daaa3f Implemented language and font renderer popups. 2013-01-07 23:45:02 +01:00
Ole Loots
0bbccaa935 Finally it compiles without WinDom - still some things to bring back:
- Serch window
 - Pop Menus in the settings dialog
2013-01-07 20:04:44 +01:00
Ole Loots
9fdd190e00 Removed browser.h/.c 2013-01-03 01:22:38 +01:00
Ole Loots
695f052237 Moved form handling into gemtk,
removed several windom includes
2012-12-31 03:37:43 +01:00
Ole Loots
fa0326af43 Context menu now opens at the correct location. 2012-12-06 00:26:50 +01:00
Ole Loots
fe0e2508e6 Refactored a lot of browser window code,... still totally WIP.
...but it compiles...
2012-11-27 02:12:09 +01:00
Ole Loots
c415f9bf98 Start to remove windom, wip.
- Refactored menu event handling.
- Load plain GEM resources.
- Refactored Event handling
2012-11-18 23:22:43 +01:00
Ole Loots
02593d170a Added is_process_running
Now the source code viewer is launched when not already
running (ShelWrite wasn't handling this correctly)
2012-08-27 20:05:35 +02:00
Vincent Sanders
32c4fdeead add includes to get browser private struct on atari 2012-08-22 17:03:46 +01:00
Michael Drake
f67a1ab4cf Avoid box_at_point. 2012-08-20 22:25:02 +01:00
Ole Loots
2e98764cdf Fix access to context data URL char *.
nsurl_access isn't intended to be used for char * params.
added missing include render/html.c
2012-07-14 22:15:05 +02:00
Ole Loots
37b8c5d83d Plotter refactor: removed one plotter abraction layer. 2012-07-13 22:19:04 +02:00
Ole Loots
bf27997312 Show alert when no editor option is configured.
svn path=/trunk/netsurf/; revision=13985
2012-06-23 00:17:57 +00:00
Ole Loots
8ea00bafc4 Added "Save link as..." context menu item.
svn path=/trunk/netsurf/; revision=13958
2012-06-04 21:53:06 +00: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
Ole Loots
66f0288398 Re-Enabled "View Source"
svn path=/trunk/netsurf/; revision=13276
2011-12-15 22:59:15 +00:00
John Mark Bell
f2993e6ed0 content_get_url -> hlcache_handle_get_url, content__get_url -> content_get_url
svn path=/trunk/netsurf/; revision=13236
2011-12-04 14:55:23 +00:00
Ole Loots
999410adc8 I'm actually trying to simplify the frontend code, changes:
- Optimized browser window caret, uses back-buffer now. ( So no content redraw is scheduled by the frontend just for a caret move ) 
- Fixed a double redraw issue when the browser reformat is pending and the AES also sends an redraw request because of the resize. 
- Started to use netsurfs textarea instead of a custom implementation ( to reduce code size ). 

svn path=/trunk/netsurf/; revision=13191
2011-11-28 23:23:28 +00:00
Ole Loots
c91a4b7035 Added missing scroll position.
svn path=/trunk/netsurf/; revision=13041
2011-10-13 20:39:39 +00:00
Michael Drake
7dc000e643 Fix up for nsurl changes. Untested.
svn path=/trunk/netsurf/; revision=12929
2011-10-03 16:45:54 +00:00
Ole Loots
28a6e41174 Added "view source" to context menu.
svn path=/trunk/netsurf/; revision=12826
2011-09-20 20:12:10 +00:00
Ole Loots
0f2871e418 Added context menu,
Allow to set bitmap for iconified window. ( altough it's usesless right now because favicon support has been dropped) 

svn path=/trunk/netsurf/; revision=12821
2011-09-19 18:38:48 +00:00