Commit Graph

609 Commits

Author SHA1 Message Date
Chris Young af36d00066 Alias W for WINDOW and T for TAB.
Add documentation on ARexx startup/shutdown scripts

svn path=/trunk/netsurf/; revision=10720
2010-08-28 23:48:33 +00:00
Chris Young b3a3988ff0 Add startup and shutdown ARexx scripts (default to startup.nsrx and shutdown.nsrx)
Remove PROGDIR: from arexx_dir default as AM_EXECUTE can't find files in PROGDIR:

svn path=/trunk/netsurf/; revision=10719
2010-08-28 23:46:08 +00:00
Chris Young 890e7b2b46 Add ARexx commands CLOSE (close window/tab) and ACTIVE (current window/tab number to
pass to other ARexx commands)
Add CloseTabs.nsrx script to close all tabs in the current window except the active
one

svn path=/trunk/netsurf/; revision=10718
2010-08-28 22:44:35 +00:00
Chris Young 78401298b1 Avoid libjpeg version conflicts
svn path=/trunk/netsurf/; revision=10711
2010-08-24 19:44:12 +00:00
Chris Young 9c5c03848b Absolute path for theme location
svn path=/trunk/netsurf/; revision=10710
2010-08-19 17:01:50 +00:00
Michael Drake 30880797c7 Remove todo comment for something already done.
svn path=/trunk/netsurf/; revision=10705
2010-08-14 16:29:26 +00:00
Chris Young 791bc50789 Fix some edit menu probs
svn path=/trunk/netsurf/; revision=10684
2010-08-08 09:23:34 +00:00
Chris Young 0a70f6ede1 Correct font name
svn path=/trunk/netsurf/; revision=10683
2010-08-06 17:29:57 +00:00
Chris Young 294a55ad4d off by one
svn path=/trunk/netsurf/; revision=10673
2010-07-31 11:43:25 +00:00
Chris Young 0522be76ab Add option to control whether drags have icons or just a pointer change.
svn path=/trunk/netsurf/; revision=10672
2010-07-29 21:41:25 +00:00
Chris Young 95a6de5f7e Show an icon under the pointer for drag saves (missed from previous commit)
svn path=/trunk/netsurf/; revision=10671
2010-07-28 21:33:51 +00:00
Chris Young b6b86e8acc Show an icon under the pointer for drag save operations. Might need disabling under
4.0.

svn path=/trunk/netsurf/; revision=10670
2010-07-28 21:33:16 +00:00
Chris Young acf46e01a8 Allow text selection dragging across (NetSurf) windows. DisplayBeep if it is dropped
somewhere invalid.

svn path=/trunk/netsurf/; revision=10665
2010-07-27 21:41:21 +00:00
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