Commit Graph

1095 Commits

Author SHA1 Message Date
Chris Young
97aabaf49d Test for opaqueness where we create bitmaps in the platform code 2012-08-05 14:02:32 +01:00
Chris Young
28ddb10268 Fix opaqueness test: the alpha channel is the first byte, not the last. 2012-08-05 13:50:14 +01:00
Chris Young
2694a98f81 Remove any forcing of UTF-8 in the clipboard, as internally NetSurf will use the UTF8 chunks now. 2012-08-03 21:04:38 +01:00
Chris Young
3a00eca535 Clear the StopChunks before scanning for the UTF8 chunk, otherwise we risk thinking a CHRS chunk is a UTF8 chunk. 2012-08-03 21:02:29 +01:00
Chris Young
0b0c6a4f6a Support pasting the UTF8 chunk of clipboard IFF FTXT when present, instead of CHRS 2012-08-03 19:19:04 +01:00
Chris Young
c4a4126041 Also write a (duplicate) UTF8 chunk, irregardless of the "UTF-8 clipboard" option. We don't support pasting UTF8 chunks yet. 2012-08-03 18:33:49 +01:00
Chris Young
ca6be72dff Remove extraneous functionage 2012-08-03 18:28:07 +01:00
Chris Young
cc3b9435ea Use core clipboard copy function. ami_selection_to_text() will need fixing as it still needs selection_traverse() 2012-08-03 18:19:54 +01:00
Chris Young
18db6826f1 Move Push- and PopChunk out of the selection_traversal function 2012-08-03 18:15:16 +01:00
Chris Young
c48d7fa2da missing 'defined' 2012-07-28 22:32:32 +01:00
Chris Young
8ac36b64b1 Add a GUI option to enable/disable Javascript, if NetSurf is built with Javascript support. 2012-07-28 22:27:53 +01:00
Chris Young
dfef1d6fde Use requester.class directly, so we can get requesters to appear on NetSurf's screen. Untested. 2012-07-28 21:56:27 +01:00
Chris Young
b085eab6b0 Correct library name. Update versions to 1.7. 2012-07-07 10:00:34 +01:00
Chris Young
20e99e4f20 Remove visible and invalid uses of git revision hashes. Anybody who needs to know hich revision it is can check about:testament, to everybody else the string is meaningless. 2012-07-01 16:40:24 +01:00
Chris Young
0f1c918949 Add lines to enable building against Spidermonkey 1.5 or 1.8.5
svn path=/trunk/netsurf/; revision=14015
2012-06-30 09:43:55 +00:00
Chris Young
76b0243a0a Run NetSurf at priority 0 by default, dropping to priority -1 when
downloading.

svn path=/trunk/netsurf/; revision=13955
2012-06-04 16:15:12 +00:00
Chris Young
cb9cee3ab7 Don't show a "download complete" message if there was an error or the user
aborted.

svn path=/trunk/netsurf/; revision=13944
2012-06-04 15:10:13 +00:00
Chris Young
319c463894 Add DoNotTrack to Amiga options GUI
svn path=/trunk/netsurf/; revision=13929
2012-05-20 17:53:07 +00:00
Chris Young
560d5d2035 Allow a comma-separated list of fonts to be specified in font_unicode_list
to provide more preferred fonts.  eg. if a user has dedicated Japanese
and Korean fonts available they might want a config like:
font_unicode:Japanese
font_unicode_list:Korean,Code2000
This will scan Japanese and Korean fonts first, then fill in any blanks
with Code2000 (followed by alphabetically all other fonts installed)

svn path=/trunk/netsurf/; revision=13917
2012-05-09 22:23:10 +00:00
Chris Young
36e9d114ea Stop abusing certain Messages; add some dedicated non-crazy HelpHints
svn path=/trunk/netsurf/; revision=13912
2012-05-07 15:06:48 +00:00
Chris Young
effdcf0fe4 Generate all appropriate Messages files when making a package for
distribution.

svn path=/trunk/netsurf/; revision=13910
2012-05-07 14:26:38 +00:00
Chris Young
727cae9461 Progress display for font scanning
svn path=/trunk/netsurf/; revision=13909
2012-05-07 14:18:22 +00:00
Chris Young
0161b2a33e Rescan fonts if preferred fallback font is changed in the GUI
svn path=/trunk/netsurf/; revision=13908
2012-05-06 17:55:35 +00:00
Chris Young
7003f6932e Use font_unicode option as preferred (first scanned) font. Ideally need to
expand this so multiple fonts can be specified.  Allow disabling of
scanning other fonts. Add stubs for a scanning progress GUI.

svn path=/trunk/netsurf/; revision=13907
2012-05-05 19:09:42 +00:00
Chris Young
2f7061b894 Reject non-scalable BulletAPI fonts
svn path=/trunk/netsurf/; revision=13906
2012-05-05 16:00:14 +00:00
Chris Young
d5608581b9 Integrate Unicode font scanner into NetSurf.
NetSurf will now use any available font when trying to print
characters that are missing from the current font.
TODO: Preferred font list.

svn path=/trunk/netsurf/; revision=13905
2012-05-05 15:58:17 +00:00
Chris Young
59f8e00434 Add loading, parse OS fonts into a list (which can optionally already
contain fonts) before scanning

svn path=/trunk/netsurf/; revision=13904
2012-05-05 14:46:18 +00:00
Chris Young
e635d907aa Tidy-up, split into sensible functions for NetSurf integration,
documentation. Cache file loading needs adding and ami_font_scan_fonts
needs to add to a list of fonts, and then send those to the scanner so we
can put some preferred fonts on the top of the list and avoid duplication.

svn path=/trunk/netsurf/; revision=13903
2012-05-05 11:09:19 +00:00
Chris Young
febea7ec4b Font glyph scanner. Currently works as a standalone program which outputs a
file for NetSurf to ignore.

svn path=/trunk/netsurf/; revision=13902
2012-05-04 19:30:30 +00:00
Chris Young
a4ff885365 Ensure we are using the faster(?) character size functions in all
applicable places.

svn path=/trunk/netsurf/; revision=13901
2012-05-02 18:29:59 +00:00
Chris Young
a44ead03cf fix crash
svn path=/trunk/netsurf/; revision=13900
2012-05-01 18:51:05 +00:00
Chris Young
9b984e8b3f Only struct gui_window_2 should use variable name 'gwin'. gui_window is
always 'g'.

svn path=/trunk/netsurf/; revision=13899
2012-04-29 16:13:53 +00:00
Chris Young
286a128e1b Change menus so menu functions are called internally by window.class
(RA_HandleInput). This makes menu selection more reliable and stops us
missing menu events which appeared to be getting lost within the
HANDLEINPUT method.

svn path=/trunk/netsurf/; revision=13898
2012-04-29 15:59:37 +00:00
Chris Young
2d854c549c Make simple refresh a configurable option
svn path=/trunk/netsurf/; revision=13896
2012-04-28 23:23:29 +00:00
Chris Young
682b2f2420 Fix simplerefresh. When dragging windows back on-screen, damaged areas are
still not repaired fully.  Overlapping windows have no such problem.
Menu events seem to be getting lost in simple refresh mode (this may be
related to event triggered for redrawing the area under the menu when it is
closed)

svn path=/trunk/netsurf/; revision=13895
2012-04-28 22:53:50 +00:00
Chris Young
8d4678b04b Add AppWindow ourself rather than letting window.class create it. Initial
tests indicate we are no longer losing icon drop events although there is
still an "event leak" somewhere.
Fix warnings.

svn path=/trunk/netsurf/; revision=13894
2012-04-28 19:43:46 +00:00
Chris Young
f6b15c1061 Re-jig URL launch as would never have fallen back to using openurl.library.
Add it as an option instead.

svn path=/trunk/netsurf/; revision=13882
2012-04-18 19:44:09 +00:00
Chris Young
b4977fbdcc Replace strncpy with strlcpy, as strncpy is not guaranteed to be
NULL-terminated. (thx Colin Wenzel)

svn path=/trunk/netsurf/; revision=13881
2012-04-18 18:54:15 +00:00
Chris Young
3a264e102d Correct comment
svn path=/trunk/netsurf/; revision=13871
2012-04-15 12:03:51 +00:00
Chris Young
65b128b088 Just get glyph widths rather than the entire glyph when calculating sizes.
This should be faster but isn't (probably still rendering the glyph
internally)

svn path=/trunk/netsurf/; revision=13843
2012-04-09 12:01:57 +00:00
Chris Young
5b79dbe36f Update NetSurf's system colours when OS prefs change
svn path=/trunk/netsurf/; revision=13822
2012-04-07 17:16:32 +00:00
Chris Young
97af7afedf Convert to use image cache
svn path=/trunk/netsurf/; revision=13797
2012-04-06 17:05:25 +00:00
Chris Young
183174b25a Move status basr left one pixel
svn path=/trunk/netsurf/; revision=13786
2012-04-02 18:05:09 +00:00
Chris Young
d434749953 Remove old commented out tags
svn path=/trunk/netsurf/; revision=13784
2012-03-31 21:51:44 +00:00
Chris Young
7a12cad439 Change the status bar frameiclass to a gaugeiclass, as it is more
aesthetically pleasing, and also allows us to show progress bar if it is
possible to get this data from the core in the future.

svn path=/trunk/netsurf/; revision=13783
2012-03-31 21:49:50 +00:00
Chris Young
9a6b4efc7b Use the same default favicon as other platforms.
svn path=/trunk/netsurf/; revision=13782
2012-03-31 15:29:08 +00:00
Chris Young
e8d90a532a Search user data dir first for resources
svn path=/trunk/netsurf/; revision=13779
2012-03-30 19:28:37 +00:00
Chris Young
e30905be75 Use 'user' env-var to determine username
svn path=/trunk/netsurf/; revision=13778
2012-03-30 18:18:15 +00:00
Chris Young
cbd3c31120 Update with new path
svn path=/trunk/netsurf/; revision=13769
2012-03-28 22:21:37 +00:00
Chris Young
38b310ad5f Move user-specifics out of Resources
svn path=/trunk/netsurf/; revision=13768
2012-03-28 22:17:27 +00:00