Commit Graph

120 Commits

Author SHA1 Message Date
Chris Young 4a8b0ca787 Call bitmap_save() for native drag saves.
(still does nothing as bitmap_save isn't implemented yet)

svn path=/trunk/netsurf/; revision=6903
2009-03-26 18:22:24 +00:00
Chris Young 8d58a8b87b Add save_complete to drag save
svn path=/trunk/netsurf/; revision=6896
2009-03-26 08:26:01 +00:00
Chris Young 07af1bd8fd Change pointer imagery when dragging
Disable drag saving when not running on the Workbench screen

svn path=/trunk/netsurf/; revision=6882
2009-03-25 19:59:10 +00:00
Chris Young be609c1dfa Some sort of drag-save implementation.
Limitations:
  NetSurf must be running on the Workbench screen
  Only drags to Workbench disk/drawer windows or icons are supported
  Text selection drags are always called netsurf_text_file

Until workbench.library gets a proper function to handle dragging from applications,
this is as good as it will get.

Bugs:
  Pointer imagery needs to change to reflect the dragging, and prevent the usual
pointer changes while the drag is in progress
  Functionality needs to be disabled if NetSurf isn't running on the Workbench screen
(will currently act as if things are being dropped on the WB screen)
  Overwrites existing files without prompting

svn path=/trunk/netsurf/; revision=6865
2009-03-25 00:03:43 +00:00
Chris Young 5b2d816d86 Move gui_drag_save_selection() into the same file as gui_drag_save_object() as they
will have common code when implemented.

svn path=/trunk/netsurf/; revision=6859
2009-03-24 18:53:22 +00:00
Chris Young ede9c4858d Update to new _available() functions
svn path=/trunk/netsurf/; revision=6858
2009-03-24 18:28:02 +00:00
Chris Young c9fc91c6e4 Set history scroll offsets
svn path=/trunk/netsurf/; revision=6815
2009-03-22 00:12:12 +00:00
Chris Young 317fb4ec91 Rexx dir should default to PROGDIR: too
svn path=/trunk/netsurf/; revision=6796
2009-03-17 21:34:01 +00:00
Chris Young f648479aec Access Resources relative to program directory rather than current directory.
svn path=/trunk/netsurf/; revision=6795
2009-03-17 21:25:20 +00:00
John Mark Bell 58cd142338 Remember the scroll position in the history, so that it's maintained when going back. (credit: Paweł Blokus)
svn path=/trunk/netsurf/; revision=6793
2009-03-17 12:26:41 +00:00
Chris Young eabb5339a3 Close history and search windows when associated browser window closes.
svn path=/trunk/netsurf/; revision=6786
2009-03-15 11:29:33 +00:00
Chris Young eab55f2c5a Fix warnings
Fall back to default theme if specified one can't be found

svn path=/trunk/netsurf/; revision=6785
2009-03-15 11:21:46 +00:00
Chris Young d3d7fc7c66 Stop browser resizes from crashing.
I really don't like using Forbid() and Permit() but the lock-up seems to be caused by
the window continuing the resize while the reformat is taking place and this appears
to be the only way to stop it.  Resizes are relatively rare so shouldn't cause
problems.

svn path=/trunk/netsurf/; revision=6784
2009-03-14 16:18:09 +00:00
Chris Young 305ab859ad Remove gap between the tab close gadget and the first tab
svn path=/trunk/netsurf/; revision=6776
2009-03-11 19:23:57 +00:00
Chris Young 502879043b Fix scroll position for new pages/tabs
svn path=/trunk/netsurf/; revision=6744
2009-03-09 07:21:19 +00:00
Chris Young a074bdbe54 Stop NetSurf jumping back to the top of the document when scrolling before the page
has finished loading.

svn path=/trunk/netsurf/; revision=6742
2009-03-08 23:40:58 +00:00
Chris Young 0bdcf4b8e2 Implement thumbnail creation
svn path=/trunk/netsurf/; revision=6736
2009-03-08 17:41:24 +00:00
Chris Young f6951c0d51 Mostly-working local history window
svn path=/trunk/netsurf/; revision=6733
2009-03-08 16:24:52 +00:00
Chris Young cbae6a91dd Stop local history from crashing, display mostly works (no thumbnails and offset wrong
to window), no event handling other than closing the window.

svn path=/trunk/netsurf/; revision=6730
2009-03-08 12:52:44 +00:00
Chris Young b0e61211f9 Clear clip regions after rendering finished.
svn path=/trunk/netsurf/; revision=6728
2009-03-07 20:52:50 +00:00
John Mark Bell 847b776285 Purge NETSURF_USE_SSL and WITH_SSL
svn path=/trunk/netsurf/; revision=6599
2009-02-22 15:07:50 +00:00
Chris Young 5668fa1154 Remove default theme's dependency on AISS
svn path=/trunk/netsurf/; revision=6567
2009-02-18 20:04:59 +00:00
Chris Young f90e43e2b0 Fix a bug where public screens would remain open if NetSurf was the last visitor
window to close.

svn path=/trunk/netsurf/; revision=6485
2009-02-14 12:29:07 +00:00
Chris Young b3bc3eb896 Don't bother trying to render things that are completely off the screen
svn path=/trunk/netsurf/; revision=6412
2009-02-10 18:53:17 +00:00
Chris Young e1133726c9 Fix animated GIF display
svn path=/trunk/netsurf/; revision=6397
2009-02-08 10:12:27 +00:00
Chris Young 2c78e54298 Really stop overwriting window borders (also fix fast scrolling down, and break fast
scrolling up)

svn path=/trunk/netsurf/; revision=6394
2009-02-07 16:40:56 +00:00
Chris Young 146e26a403 Some attempt at faster scrolling - can be enabled with option faster_scroll:1
svn path=/trunk/netsurf/; revision=6364
2009-02-05 12:20:23 +00:00
Chris Young 73b761ecf5 Try to stop rendering of things that can't be seen
svn path=/trunk/netsurf/; revision=6362
2009-02-04 18:10:10 +00:00
Chris Young c8a8a7808e Tidy-up of redraw code
svn path=/trunk/netsurf/; revision=6345
2009-02-01 22:54:31 +00:00
Chris Young 350ab68077 gui_window_update_box and gui_window_redraw now only update the relevant areas.. I
think.  They are liable to destroy things outside of the render area as well
currently.

svn path=/trunk/netsurf/; revision=6342
2009-02-01 21:28:59 +00:00
Chris Young ad6f72667b Remove the caret by replacing it with the area under the caret, rather than the area
displayed somewhere else on the page.

svn path=/trunk/netsurf/; revision=6338
2009-02-01 18:36:17 +00:00
Chris Young e8399d8a76 Oops, probably shouldn't double-convert text
svn path=/trunk/netsurf/; revision=6330
2009-02-01 13:30:47 +00:00
Chris Young 1c1347a215 Convert UTF-8 titles to local charset for display in tabs
Disable keyboard shortcuts for tabs as an underscore in the title was causing
keypresses to be ignored or tabs to be switched unexpectedly

svn path=/trunk/netsurf/; revision=6329
2009-02-01 13:26:21 +00:00
Chris Young fb0a2116a3 Change to use names instead of numbers for keypresses
Add missing keypresss

svn path=/trunk/netsurf/; revision=6328
2009-02-01 13:01:46 +00:00
Chris Young 4cf6935761 Added context menu option to download the link target.
Added SAVEAS/K to OPEN ARexx command to download a URL instead of displaying it.

svn path=/trunk/netsurf/; revision=6326
2009-01-31 23:45:25 +00:00
Chris Young 83d696ace7 This is the actual fix for the crashing, although this is temporary as the
implementation needs changing.

svn path=/trunk/netsurf/; revision=6283
2009-01-26 18:38:47 +00:00
Chris Young aa2df8c599 This appears to fix an odd crash
svn path=/trunk/netsurf/; revision=6262
2009-01-25 11:18:42 +00:00
Chris Young b5ee67b20e Handle key-presses manually for greater control, and to remove some keyboard
copy'n'paste annoyances.  Caps lock still fails to work though.

svn path=/trunk/netsurf/; revision=6261
2009-01-25 00:36:30 +00:00
Chris Young 0ec4f9482c Clear render area properly when switching tabs
svn path=/trunk/netsurf/; revision=6116
2009-01-17 16:13:56 +00:00
Chris Young cd4f5ebd08 nsfont_width implemented for Unicode text
cache outline fonts for big speedup

still need to implement other text size functions
and also bold and italic fonts

svn path=/trunk/netsurf/; revision=6095
2009-01-16 20:05:21 +00:00
Chris Young e7a06713af Some redraw optimisations
svn path=/trunk/netsurf/; revision=6071
2009-01-15 20:03:15 +00:00
Chris Young 60338f768f Allocate the file requester after reading the options which contain the values we need
to put in the allocation request

svn path=/trunk/netsurf/; revision=6068
2009-01-15 12:26:06 +00:00
Chris Young bb090ee7c3 Reinstate WINDOW_Qualifier - the AutoDoc is wrong, it returns a uint32 not a uint16.
This should stop shift and ctrl keys from appearing to get stuck down.

svn path=/trunk/netsurf/; revision=6035
2009-01-10 23:10:54 +00:00
Chris Young ccbf443125 Revert WINDOW_Qualifier change which was supposed to make shift and ctrl keyboard
reading more reliable, but for some reason wasn't returning the keyboard state as it
should.

svn path=/trunk/netsurf/; revision=6034
2009-01-10 22:57:23 +00:00
Chris Young 4a706860a5 If screen mode ID is not set in the options, prompt for a screenmode on startup. This
replaces the old BestModeID() guess based on the window_screen_width,
window_screen_height and screen_depth options.

use_workbench has been replaced with use_pubscreen.  If set, NetSurf will attempt to
open on the named public screen.  If this fails it will fall back to Workbench (it
will not fall back to opening an own screen).
use_pubscreen:Workbench is equivalent to use_workbench:1

Allocate ASL file requesters specially for saves, to keep a consistent load/save
interface.  May also need a seperate one for the ARexx file requester.

svn path=/trunk/netsurf/; revision=6025
2009-01-10 21:31:21 +00:00
Chris Young 59f551171c Fix crash when launching NetSurf if it is already running.
svn path=/trunk/netsurf/; revision=5941
2008-12-28 12:35:55 +00:00
Chris Young 495fa6c648 Minor changes for Amiga Cairo build
svn path=/trunk/netsurf/; revision=5940
2008-12-28 12:24:18 +00:00
Chris Young dbc6d8793f Reduce memory usage
svn path=/trunk/netsurf/; revision=5926
2008-12-26 19:04:57 +00:00
Chris Young 5bff3e3287 Update for new SDK
svn path=/trunk/netsurf/; revision=5915
2008-12-20 10:54:59 +00:00
Chris Young 0951de5c0e Clear display area when switching tabs
Remove always_open_tabs
Move pointer filenames to theme files


svn path=/trunk/netsurf/; revision=5908
2008-12-13 23:25:42 +00:00