Chris Young
7bf81dbf35
Fix clipping for non-HTML contents
...
svn path=/trunk/netsurf/; revision=10664
2010-07-26 19:52:24 +00:00
Chris Young
da25adcdfb
ami_easy_clipboard just got easier, and a buffer overrun/memory leak got fixed
...
svn path=/trunk/netsurf/; revision=10662
2010-07-24 20:18:56 +00:00
Chris Young
f7e3254798
Fix menu disable on tab switch and Cut
...
svn path=/trunk/netsurf/; revision=10661
2010-07-24 19:57:27 +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
Chris Young
d5b8cf89da
Ensure RC is 0 unless we actually have a fatal error.
...
svn path=/trunk/netsurf/; revision=10659
2010-07-23 17:59:46 +00:00
Chris Young
584cd950be
Allow targetting any window/tab with ARexx commands. Adds new command WINDOWS to find
...
out the number of windows and tabs open. ShowTitles.nsrx is an example of how to use
the new functionality.
svn path=/trunk/netsurf/; revision=10656
2010-07-20 17:20:16 +00:00
Chris Young
a182a36067
More intelligent path concatenation
...
svn path=/trunk/netsurf/; revision=10639
2010-07-14 22:36:04 +00:00
Chris Young
c4600695c5
Fix first time installs in novice mode so the files end up in a directory rather than
...
the root of whichever volume Installer decided to pick.
svn path=/trunk/netsurf/; revision=10633
2010-07-13 23:07:38 +00:00
Chris Young
82af25f4e2
Remove desbug
...
svn path=/trunk/netsurf/; revision=10630
2010-07-11 20:48:06 +00:00
Chris Young
d4c519cc05
Amiga file: URIs now translate the : in device names to / (and back), which conforms
...
better to the spec (: will still work for compatibility, but may have problems). This
fixes a problem with directory browsing.
Directory parent link now uses the full parent path returned by url_parent instead of
one relative to the current directory.
svn path=/trunk/netsurf/; revision=10629
2010-07-11 20:42:06 +00:00
Chris Young
1c48e85ce9
Add commands BACK, FORWARD, HOME and RELOAD to correspond with the buttons on the GUI.
...
svn path=/trunk/netsurf/; revision=10628
2010-07-11 15:34:35 +00:00
Chris Young
f6f1fe1cee
Allow browsing directories. Clicking through from the root of a volume doesn't work
...
(needs some url_to_path translation magic or an #ifdef'd patch in render/directory.c)
and the [..] parent link always points to "file:///" for some reason, but other than
that it works.
svn path=/trunk/netsurf/; revision=10627
2010-07-11 14:55:12 +00:00
Chris Young
d5577b64fa
Missing types
...
svn path=/trunk/netsurf/; revision=10626
2010-07-11 11:07:48 +00:00
Michael Drake
513793a060
Fix inventory file leafname.
...
svn path=/trunk/netsurf/; revision=10624
2010-07-09 21:36:55 +00:00
Chris Young
d6eb28d5de
Replace unnecessarily complicated path concatenation with something simpler and
...
easily adaptable to different platform path structures.
svn path=/trunk/netsurf/; revision=10621
2010-07-09 19:45:44 +00:00
Chris Young
d36758ad97
Fix some types
...
If "easy" charset conversion fails, return a copy of the original string.
svn path=/trunk/netsurf/; revision=10580
2010-06-26 16:26:05 +00:00
Chris Young
bd442e3750
Much better conversion of the standard NetSurf icon, courtesy of Marko K. Seppänen
...
svn path=/trunk/netsurf/; revision=10575
2010-06-16 18:40:14 +00:00
Chris Young
9bc784e8d7
More calculation fixes
...
svn path=/trunk/netsurf/; revision=10567
2010-06-06 18:50:48 +00:00
Chris Young
13a4a1633c
Remove scroll positions from ami_do_redraw_limits, fix positional calcs in
...
gui_window_set_scroll
svn path=/trunk/netsurf/; revision=10564
2010-06-05 10:37:02 +00:00
Chris Young
5753d59505
When redrawing part of a page, draw with respect to the position NetSurf believes the
...
scrollbars are in, rather than where they actually are. This resolves an issue with
graphical corruption and animations, when using the scrollbars to scroll the page (the
anim redraw was happening before the event to say the scrollbar had moved was being
received)
svn path=/trunk/netsurf/; revision=10563
2010-06-05 09:59:38 +00:00
Michael Drake
b010a25771
+ Refactor input handling from browser window code into content
...
handlers.
+ Disentangle all box tree manipulation from browser window
code and put it where it belongs.
+ Move other content specific and other irrelevant code from
browser window handling to appropriate places.
+ Put mouse state enum in new mouse header, since it's not just
used by browser window code, and it is used by treeview
windows on the treeview branch.
svn path=/trunk/netsurf/; revision=10561
2010-06-04 09:35:08 +00:00
Chris Young
c2e7c66ea3
Activate browser window after search, otherwise it doesn't get IntuiTicks events so
...
won't scroll to the search term.
svn path=/trunk/netsurf/; revision=10552
2010-05-16 16:04:40 +00:00
Chris Young
f55c11dbd6
Amiga font code revamped and fixed. Will now fall back to a different font if the
...
character isn't present in the current one, this needs a complete or near-complete
Unicode font in order to be useful - Code2000 and Bitstream Cyberbit are auto-detected
by NetSurf on startup if none is configured. Japanese websites now display correctly,
along with Japanese characters within Google UK search results etc.
svn path=/trunk/netsurf/; revision=10551
2010-05-06 10:02:58 +00:00
Chris Young
4d6abc7744
Fix assert. This is wrong, needs investigation.
...
svn path=/trunk/netsurf/; revision=10549
2010-05-03 21:45:58 +00:00
Chris Young
d752fd194c
Fix loops reading too many characters
...
svn path=/trunk/netsurf/; revision=10548
2010-05-03 20:57:32 +00:00
Chris Young
77aa68dde5
Purge parserutils
...
svn path=/trunk/netsurf/; revision=10547
2010-05-03 20:49:15 +00:00
Chris Young
048249f71d
Build libparserutils (and NetSurf) against libiconv instead of newlib's iconv.
...
This fixes the bug with lpu's iconv filter causing freezing on OS4 NetSurf. With an
appropriate font (eg. Bitstream Cyberbit) Japanese characters will now display.
Test websites work, but proper Japanese websites cause an assert which may be caused
by amiga/font.c incorrect text size calculations.
svn path=/trunk/netsurf/; revision=10546
2010-05-03 17:58:17 +00:00
Chris Young
17d76ee478
Remove Export tab properly when building without Haru
...
svn path=/trunk/netsurf/; revision=10545
2010-05-03 17:15:03 +00:00
Chris Young
8f9677dfa8
Allow building of AmigaOS4 Cairo and non-Cairo versions of NetSurf in same source tree
...
svn path=/trunk/netsurf/; revision=10544
2010-05-03 17:12:32 +00:00
Chris Young
6e0f8d9a48
Ensure we are using the libpng 1.2 includes, as OS4 Cairo is using a deprecated
...
function which does not exist in libpng 1.4.
svn path=/trunk/netsurf/; revision=10543
2010-05-03 15:12:06 +00:00
Chris Young
04cb7b3ce1
Update 2 SObjs installation (create links for updated libpng and unnecessary clutter
...
for libz)
svn path=/trunk/netsurf/; revision=10537
2010-04-30 22:55:44 +00:00
Chris Young
a3b14f6d98
Fix assert when clicking empty text boxes
...
svn path=/trunk/netsurf/; revision=10531
2010-04-30 17:28:07 +00:00
Daniel Silverstone
5e887908b3
Consolidate several 'myrealloc' functions into ns_realloc, rename one which *is* different, thereby eliminating the word 'myrealloc' from the NS codebase
...
svn path=/trunk/netsurf/; revision=10530
2010-04-30 16:06:03 +00:00
John Mark Bell
000e6ad3de
It turns out that realloc(ptr, 0) --> free(ptr) is not actually required by the C standard (whereas realloc(NULL, size) --> malloc(size) is).
...
Therefore, explicitly model the behaviour expected by our libraries (that realloc of 0 size is equivalent to free).
svn path=/trunk/netsurf/; revision=10524
2010-04-30 07:00:58 +00:00
Chris Young
b579b0deb3
Don't check if the next character is outside the printable string, if it is it'll pick
...
up the NULL terminator anyway.
svn path=/trunk/netsurf/; revision=10523
2010-04-29 23:05:52 +00:00
Chris Young
ce570ddde0
Text kerning
...
svn path=/trunk/netsurf/; revision=10522
2010-04-29 22:30:21 +00:00
Chris Young
c0d7ba762e
More correct font width calculations/placing
...
svn path=/trunk/netsurf/; revision=10518
2010-04-29 19:43:50 +00:00
Chris Young
1f529dc33f
Possibly more accurate text placement
...
svn path=/trunk/netsurf/; revision=10517
2010-04-29 18:22:20 +00:00
Chris Young
4aa363eedc
Change schedule_run to a BOOL as this more standard for platform code.
...
svn path=/trunk/netsurf/; revision=10516
2010-04-29 18:22:04 +00:00
Vincent Sanders
2fd1476f8c
The schedule_run function is only called by the frontends so remove it from the core header and add its definition to the frontend headers.
...
Alter the framebuffer schedule_run to return the time untill the next event.
svn path=/trunk/netsurf/; revision=10512
2010-04-28 22:39:37 +00:00
Chris Young
085f6b33ec
Update fonts immediately after requester use/save
...
svn path=/trunk/netsurf/; revision=10511
2010-04-28 22:34:15 +00:00
Chris Young
d6aae5876f
Don't list unvisited pages
...
svn path=/trunk/netsurf/; revision=10510
2010-04-28 22:21:30 +00:00
Chris Young
a93fa04a93
Ensure ami_remove_timer_event code doesn't get executed unless necessary.
...
svn path=/trunk/netsurf/; revision=10509
2010-04-28 22:19:10 +00:00
Chris Young
74647b752d
Reformat all tabs when window size changes
...
svn path=/trunk/netsurf/; revision=10504
2010-04-27 22:40:28 +00:00
Chris Young
a2c1afcc32
Custom version of SearchEngines file rather than modifying it during installation
...
(fixes crash with Installer)
svn path=/trunk/netsurf/; revision=10484
2010-04-25 20:17:51 +00:00
Chris Young
5fdd51d907
Remove SearchEngines link
...
svn path=/trunk/netsurf/; revision=10483
2010-04-25 20:16:05 +00:00
Chris Young
7eb3167ce3
Custom version of SearchEngines file rather than modifying it during installation
...
(fixes crash with Installer)
svn path=/trunk/netsurf/; revision=10482
2010-04-25 19:06:21 +00:00
Chris Young
311a79591c
Don't show export options if PDF export disabled. Use options if present.
...
svn path=/trunk/netsurf/; revision=10480
2010-04-25 10:31:52 +00:00
Chris Young
90079085bb
Ensure menu state is correct when switching tabs
...
svn path=/trunk/netsurf/; revision=10476
2010-04-24 19:05:53 +00:00
Chris Young
ed8759c2f2
Avoid errors running makepackage
...
fitr was written by me, and included for convenience (the install script needs it).
There are no distribution restrictions when using it wrt the OS4 version of NetSurf.
See http://www.unsatisfactorysoftware.co.uk/fitr
svn path=/trunk/netsurf/; revision=10475
2010-04-24 16:36:45 +00:00
Chris Young
695af237a9
Use our ca-bundle by default, rather than one in devs: which may not exist
...
svn path=/trunk/netsurf/; revision=10456
2010-04-22 18:33:29 +00:00
Chris Young
c1aaeae9b7
Correct indices for disabled items
...
svn path=/trunk/netsurf/; revision=10455
2010-04-22 18:32:59 +00:00
Chris Young
f373777dab
Ensure that a default CSS icon is present
...
svn path=/trunk/netsurf/; revision=10424
2010-04-17 23:12:14 +00:00
Chris Young
98b690a900
Fix file://localhost/ handling
...
svn path=/trunk/netsurf/; revision=10422
2010-04-17 10:43:12 +00:00
John Mark Bell
9c1ff9fbc1
Fixup Amiga frontend
...
svn path=/trunk/netsurf/; revision=10410
2010-04-16 20:36:29 +00:00
Chris Young
eb19a649e7
Fix crash in kiosk mode
...
svn path=/trunk/netsurf/; revision=10369
2010-04-11 19:57:06 +00:00
Chris Young
2bcf632973
Freeing the local charset version once we've finished with it is a good idea too.
...
svn path=/trunk/netsurf/; revision=10345
2010-04-10 19:39:40 +00:00
Chris Young
704e7c8d44
Show warning messages in correct charset
...
svn path=/trunk/netsurf/; revision=10344
2010-04-10 19:37:13 +00:00
Chris Young
e2225502e9
Avoid crash
...
svn path=/trunk/netsurf/; revision=10343
2010-04-10 19:36:53 +00:00
Chris Young
b6937419e1
Fix broken event handling.
...
Any structures attached to the window_list *must* have a struct nsObject * as their
first entry, and handle events outside of gui.c.
svn path=/trunk/netsurf/; revision=10332
2010-04-09 22:38:51 +00:00
Daniel Silverstone
6c9e4bea8e
Purge FETCH_TYPE which is unused throughout NetSurf. Clearing a todo in llcachec.
...
svn path=/trunk/netsurf/; revision=10300
2010-04-08 12:16:52 +00:00
Michael Drake
f310569df4
Calling a hlcache_handle "content" is confusing.
...
svn path=/trunk/netsurf/; revision=10266
2010-04-07 12:09:38 +00:00
John Mark Bell
2748fe4f64
Make downloads work again.
...
svn path=/trunk/netsurf/; revision=10243
2010-04-05 21:35:38 +00:00
Chris Young
3daffe3d6b
Events for these windows are handled by the main loop in gui.c, but the structures
...
didn't match up, thereby causing a crash. Needs tidying up; the global part of these
window structures should be defined separately, and the events handled in dedicated
routines.
svn path=/trunk/netsurf/; revision=10235
2010-04-04 11:15:05 +00:00
Chris Young
6835a312b7
Remove verbose_log from options file
...
Copy libz as I've built 1.2.4 and it has faster gzip code
svn path=/trunk/netsurf/; revision=10230
2010-04-03 10:24:43 +00:00
Chris Young
5bae5edd7b
Use DataTypes to read text files that are dropped into text boxes, this allows more
...
exotic formats to be read such as IFF FTXT.
svn path=/trunk/netsurf/; revision=10229
2010-04-02 16:25:55 +00:00
Chris Young
d927f70ad7
...and right a bit
...
svn path=/trunk/netsurf/; revision=10228
2010-04-02 10:49:18 +00:00
Chris Young
d8da93037a
Move status bar text up a bit...
...
svn path=/trunk/netsurf/; revision=10227
2010-04-02 10:29:20 +00:00
Chris Young
23b4f0996c
Updated AISS style icon by Martin Merz
...
svn path=/trunk/netsurf/; revision=10226
2010-04-01 17:55:34 +00:00
Chris Young
cb3490798e
Also update OpenURL config
...
svn path=/trunk/netsurf/; revision=10225
2010-04-01 17:52:56 +00:00
Chris Young
d3276dfbaf
netsurf_init expects a char ***, not a char **
...
Change command template so URL is a keyword. This avoids the platform code
re-interpreting core options (eg -v as a URL).
Move screen open code slightly so "NetSurf ?" shows the template visibly, rather than
opening an empty screen and the user not knowing what is happening.
svn path=/trunk/netsurf/; revision=10224
2010-04-01 17:44:42 +00:00
Chris Young
7e551cf94f
Missing include
...
svn path=/trunk/netsurf/; revision=10222
2010-03-31 16:41:56 +00:00
Vincent Sanders
95e4a737de
rationalise the usage of the file scheme
...
svn path=/trunk/netsurf/; revision=10221
2010-03-31 13:59:57 +00:00
Chris Young
fcce190701
netsurf_init expects a pointer, not an int
...
svn path=/trunk/netsurf/; revision=10216
2010-03-30 18:21:20 +00:00
Vincent Sanders
e00fb7bd2d
second pass at startup refactor removing the gui_init callback
...
svn path=/trunk/netsurf/; revision=10205
2010-03-29 20:03:44 +00:00
Vincent Sanders
7e67527267
first part of initialisation refactor move gui_init2 into frontends
...
svn path=/trunk/netsurf/; revision=10202
2010-03-29 16:59:30 +00:00
Chris Young
c2f9c06de3
Avoid failing completely if gui_window is NULL
...
svn path=/trunk/netsurf/; revision=10194
2010-03-28 21:40:22 +00:00
Chris Young
74108d1e09
Allow NetSurf to be opened from the CLI without a URL specified.
...
Add new switch FORCE which will force a new instance of NetSurf to open rather than
opening a new window in the already-running application (intended for debugging when
NetSurf has crashed)
svn path=/trunk/netsurf/; revision=10189
2010-03-28 16:42:33 +00:00
Chris Young
5bb5cedec5
Changes required for new-cache
...
svn path=/trunk/netsurf/; revision=10186
2010-03-28 15:51:05 +00:00
Daniel Silverstone
270ef59a98
Merge jmb/new-cache; r=dsilvers,rs=vince
...
svn path=/trunk/netsurf/; revision=10180
2010-03-28 12:56:39 +00:00
Chris Young
4b77c59a39
Stop javascript: links being passed to launch-handler
...
svn path=/trunk/netsurf/; revision=10149
2010-03-25 22:44:59 +00:00
Chris Young
f6d0a6aa05
If a file isn't dropped over a text box or a file box, just load it.
...
svn path=/trunk/netsurf/; revision=10148
2010-03-23 23:09:17 +00:00
Chris Young
01cf7baac6
Tidy up. Can almost tell what is going on in gui_init now.
...
svn path=/trunk/netsurf/; revision=10146
2010-03-23 22:55:56 +00:00
Chris Young
861b5b4953
Factor Amiga theme-related code out to a new file. This includes all throbber and
...
mouse pointer code (which are "theme modifiable") as well as normal theme reading
code.
svn path=/trunk/netsurf/; revision=10145
2010-03-23 22:27:33 +00:00
Chris Young
48aa33f773
Fix crash when attempting to open context menu in a browser_window with no content.
...
svn path=/trunk/netsurf/; revision=10143
2010-03-21 19:29:33 +00:00
Chris Young
dd5370ef83
Avoid corruption of bottom window border after resize
...
svn path=/trunk/netsurf/; revision=10140
2010-03-21 14:53:09 +00:00
Chris Young
033b5d815a
Move code which extracts the filename from a given path into frontend.
...
svn path=/trunk/netsurf/; revision=10139
2010-03-21 13:32:59 +00:00
Chris Young
c17ff1e9ae
Squash memory leak and an offset problem related to helphints
...
svn path=/trunk/netsurf/; revision=10137
2010-03-17 22:15:03 +00:00
Chris Young
1fedc6a36a
More HelpHints, these will work on OS4.1u1 and higher only.
...
svn path=/trunk/netsurf/; revision=10136
2010-03-17 21:43:23 +00:00
Chris Young
dcbc8cae93
Local history URL HelpHints (will show on OS4.1u1 and newer only)
...
svn path=/trunk/netsurf/; revision=10135
2010-03-17 21:00:18 +00:00
Chris Young
7220e03e7d
Help hints, mainly for the tabs but also massage messages strings HelpToolbar0-4 & 14
...
into a format we can use on the main toolbar gadgets. A couple of gadgets still
missing strings.
svn path=/trunk/netsurf/; revision=10134
2010-03-16 23:55:39 +00:00
Chris Young
04769b3f07
Remove caret when window is inactive, re-add when window becomes active again.
...
svn path=/trunk/netsurf/; revision=10133
2010-03-15 19:00:21 +00:00
Chris Young
50692dc63c
Remove caret while "fast scrolling" to prevent caret-trails over the display.
...
svn path=/trunk/netsurf/; revision=10132
2010-03-15 18:48:14 +00:00
Chris Young
f4dd2e38d4
Exclude about: as that will never be handled externally and some sites use
...
about:blank extensively.
svn path=/trunk/netsurf/; revision=10129
2010-03-14 23:00:39 +00:00
Chris Young
3921fcf173
Fix character offset, which was one character left of where the user clicked even
...
though the caret itself was placed in the correct location.
svn path=/trunk/netsurf/; revision=10128
2010-03-14 22:48:25 +00:00
Chris Young
66730eb138
Only draw search favicon on normal browser windows
...
svn path=/trunk/netsurf/; revision=10127
2010-03-14 15:33:59 +00:00
Chris Young
ee958f5983
Pass all unknown URLs to launch-handler/OpenURL.
...
launch-handler in particular can be coerced into opening things like news: just by
creating a new config file as ENVARC:launch-handler/URL/NEWS.LH
svn path=/trunk/netsurf/; revision=10106
2010-03-07 00:46:08 +00:00
Chris Young
81e9d33a22
Set file comment to URL *after* closing the file. This resolves the problem with the
...
comment not being set on some filesystems.
svn path=/trunk/netsurf/; revision=10105
2010-03-06 17:06:52 +00:00
Chris Young
33be95d328
Fix compilation
...
svn path=/trunk/netsurf/; revision=10074
2010-02-22 19:18:27 +00:00
Chris Young
f7c654885c
Attempt fix for OS4.0
...
svn path=/trunk/netsurf/; revision=10073
2010-02-21 21:24:58 +00:00