Commit Graph

242 Commits

Author SHA1 Message Date
Vincent Sanders
3a5b4571b4 update version info for next development cycle 2016-04-06 12:01:07 +01:00
Vincent Sanders
afc1d2c3c7 fix broken windows frontend font handling 2016-03-22 17:51:31 +00:00
Michael Drake
719dc37b22 Fix obvious bug in nsfont_split.
Was using nsfont_position_in_string instead of nsfont_width, resulting
in returning nonsense actual_x and char_offset values.
2016-03-21 14:44:01 +00:00
Michael Drake
af4d72416b Log nsfont_width failure. 2016-03-21 14:43:47 +00:00
Michael Drake
3c8e522c25 Remove printf logging. 2016-03-21 14:43:46 +00:00
Vincent Sanders
57c9034f31 Add missing resources to windows frontend 2016-03-20 21:59:16 +00:00
Vincent Sanders
78fd5ccbf6 fix new creating new window assert 2016-03-20 20:28:20 +00:00
Vincent Sanders
c2f321010a add certificate authority bundle handling to windows
The curl certificate handling on windows does not have a compiled in
default location so it is necessary to attempt to find a default
bundle.

This provides a bundle in the install and code to set it as the
default bundle location.
2016-03-20 10:24:18 +00:00
Vincent Sanders
d15ab96a51 Fix size_t printf formatting
The printf formatting for size_t is set in c99 as %zu but in windows
it is %Iu this is solved by adding and inttypes style PRI macro for size_t

This also uses this macro everywhere size_t is formatted.
2016-03-17 22:00:54 +00:00
Vincent Sanders
69d9d5dd22 frontends should not call the reformat API directly
The reformat API locking semantics are challenging to understand,
efectiveky browser_window_reformat should never be called by frontend
code directly except explicitly on the reformat callback. Otherwise
the content may already be locked and the system winds up asserting.
2016-03-16 21:07:14 +00:00
Vincent Sanders
123c8bc8b3 split out windows file operations into a separeate module 2015-06-30 21:10:13 +01:00
Vincent Sanders
67ded2a02a This moves message loading out of netsurf_init into each frontend
The translated message loading is dependant on configuration of
resource location in each frontend, additionally they should have the
ability to deal with errors in this loading in a implementation
specific manner.

This also extends the message loading API to be capable of loading
from an inline memory buffer instead of from a file.
2015-06-21 23:27:22 +01:00
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
c6a6c8e7fa Remove unecessary dll from windows installer script 2015-04-29 00:29:43 +01:00
Vincent Sanders
55f8a41cfe Updated mingw32 toolchain names the regex library something different 2015-04-28 16:23:35 +01:00
Vincent Sanders
2df03e2d85 Convert windows to use the bitmap render interface 2015-04-24 15:29:10 +01:00
Vincent Sanders
10f621441f Fix bounding on windows frontend window scrolling 2015-04-18 23:59:01 +01:00
Vincent Sanders
2465fc4e6b move the mandantory library config for libcss and libdom to core makefile 2015-04-17 22:48:55 +01:00
Vincent Sanders
5c7e8618d5 Convert windows frontend to using bitmap operation table 2015-04-15 22:40:36 +01:00
Vincent Sanders
7a28131e49 Fix win32 frontend bitmap creation with flags
The windows win32 frontend bitmap creation was ignoring the creation
flags, specifically those related to bitmap opacity so was plotting
images as transparent even if they had no alpha channel values set.
2015-04-12 22:45:32 +01:00
Vincent Sanders
ea9a2ff01d Fix up some doxygen errors 2015-04-03 00:28:22 +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
8a99b045bc Remove url from content thumbnailers API
The content thumbnailers for each frontend were being provided the
contents url. This was only ever used to call the urldb thumbnail
setting API.

This changes it so the single callsite that passed a valid url adds
the bitmap to that url itself in desktop_history.c instead of forcing
every frontend to require the urldb API.

Additionally the old API could pass the url as NULL which was causing
asserts where this was not an expected parameter value. Because of
this this fixes bug #2286 which was also present in the monkey
frontend as both called nsurl_access() on the url without the NULL
check and caused an assertion.
2015-03-15 00:00:45 +00:00
Vincent Sanders
52b50db3a6 Cleanup windows download window header 2015-03-13 14:55:15 +00:00
Vincent Sanders
8525c857da Clean up more windows frontend issues and split out more functionality 2015-03-13 14:32:06 +00:00
Vincent Sanders
a487f7e611 Move win32 window operations into their own module
This splits up a great deal of the win32 window code out from other
gui code. It also remove large quantities of unused and junk
variables and functions.
2015-03-12 23:48:53 +00:00
Vincent Sanders
9fde3502b6 doxygen cleanups in utils 2014-11-12 23:27:13 +00:00
Vincent Sanders
3e4f5737aa Doxygen cleanups in frontends 2014-11-11 15:46:04 +00:00
Vincent Sanders
6993e842d9 add missing content header to windows gui 2014-11-06 23:07:53 +00:00
Vincent Sanders
8c2cfecfb5 Allow content handlers to have debug values set through API
Previously content handler debugging features were accessed by global
variables. This allows the setting of debugging parameters via a
content API giving per content control over debugging features.
Currently only used by the html content handler to toggle global
redraw debugging.
2014-11-06 22:51:46 +00:00
Vincent Sanders
c14ddad660 change url setting api to take an nsurl instead of a text string 2014-11-02 22:30:45 +00:00
Vincent Sanders
ad343eccb1 remove unecessary utils/types.h
This cleans up this header and moves the functionality into more
useful places while reducing the include complexity but only pulling
in whats required.
2014-11-02 20:10:32 +00:00
Vincent Sanders
ce3d991918 use nsurl_nice and remove url_nice
change all callers over to using new API for generating nice filenames
from a url and remove the old API.
2014-10-31 00:24:57 +00:00
Vincent Sanders
7ace528729 Update url setting API to return nserror code instead of calling warn_user 2014-10-29 00:18:12 +00:00
Vincent Sanders
14e2829489 remove the die API from the core.
The die() API for abnormal termination does not belong within the core
of netsurf and instead errors are propogated back to the callers.

This is the final part of this change and the API is now only used within
some parts of the frontends
2014-10-26 12:42:53 +00:00
Vincent Sanders
f0a4422701 Update windows frontend to cope with split operations table headers 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
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
3fa0ed01c0 add API to set DPI 2014-10-13 02:34:10 +01:00
Vincent Sanders
0c7c4173c2 remove use of deprecated netsurf_quit variable in win32
The core no longer needs to run the event polling loop as fetches are now
scheduler driven. This is part of a series which will ultimately remove
netsurf_poll callback altogether.
2014-10-12 11:08:01 +01:00
Vincent Sanders
4f530a3f8f Pull warning flags out into variables that can be overriden seperately for C and C++ 2014-09-05 16:01:44 +01:00
Vincent Sanders
07f1ae7461 fixup missing includes 2014-07-06 19:36:12 +01:00
Vincent Sanders
0f151e37cb Merge branch 'vince/reformatpending'
Conflicts:
	amiga/gui.c
2014-07-06 10:45:31 +01:00
Vincent Sanders
8848f754e0 documentation fixes and cleanups 2014-07-02 16:39:08 +01:00
Vincent Sanders
18aefabd20 change reformat to be driven from the scheduler like redraw 2014-07-01 09:27:20 +01:00
Vincent Sanders
8944edd649 convert all frontends to scheduled fetch operation 2014-06-26 19:05:59 +01:00
Vincent Sanders
f1c2dde13b extend file table with mkdir all and make fs backing store use it.
enable fs backing store for RISC OS.
2014-06-05 12:06:47 +01:00
Vincent Sanders
688f60d963 fix errors with path_to_url conversion 2014-05-27 00:08:04 +01:00