Commit Graph

476 Commits

Author SHA1 Message Date
Chris Young 9c7ced69d2 Shift status bar text over by a pixel and reposition the frame slightly.
Don't use WBorBottom as that is not particulary relevant to what we're
trying to do.

svn path=/trunk/netsurf/; revision=13441
2012-02-11 23:17:47 +00:00
Chris Young efa55dd3f1 Fix build
svn path=/trunk/netsurf/; revision=13403
2012-01-15 15:57:02 +00:00
Chris Young 9f08a052d0 Allow confining the pointer to part of the window during drags. Actually
we aren't acting on this for any current drag types, but if we need to do
so in the future (eg. frame resizing), this is the code to do it.  The trap
lasts 10 IntuiTicks so is re-asserted on every mouse move when an active
drag is in effect.  Drag type must be set to GDRAGGING_NONE to clear.

svn path=/trunk/netsurf/; revision=13401
2012-01-11 21:41:55 +00:00
Michael Drake 6794af012e Constify rect param to gui_window_drag_start.
svn path=/trunk/netsurf/; revision=13397
2012-01-11 16:45:17 +00:00
Michael Drake 04ece30fa9 Pass pointer constraints for drag out to front ends. Ensure content scrollbar drag termination always informs the browser window layer that the drag is over.
svn path=/trunk/netsurf/; revision=13395
2012-01-11 14:20:26 +00:00
Chris Young 13a2ceb766 Remove unnecessary cache of scroll position
svn path=/trunk/netsurf/; revision=13344
2011-12-24 13:24:09 +00:00
Chris Young 56b6970c92 Search for DejaVu Serif Italic before DejaVu Serif Oblique, this fixes the fonts used
on the splash screen if newer DejaVu fonts have been installed and the old ones
removed.

svn path=/trunk/netsurf/; revision=13342
2011-12-24 12:57:42 +00:00
Chris Young 135a11db35 Fix scrollbar scroll
svn path=/trunk/netsurf/; revision=13341
2011-12-24 12:49:55 +00:00
Michael Drake 67f2470d5a Pass whether background images are wanted in redraw_context.
svn path=/trunk/netsurf/; revision=13335
2011-12-23 22:39:25 +00:00
Chris Young 879383e21e Pass keyboard scroll events to the core
svn path=/trunk/netsurf/; revision=13334
2011-12-23 22:14:00 +00:00
John Mark Bell f2993e6ed0 content_get_url -> hlcache_handle_get_url, content__get_url -> content_get_url
svn path=/trunk/netsurf/; revision=13236
2011-12-04 14:55:23 +00:00
Chris Young 8d685d7ac0 Use core file drop.
Loop through entire list of dropped files.
If multiple files are dropped and not handled by core, open in tabs;
Activate the window on first file drop to workaround a bug where the window needed to
be clicked before the file would appear.
As using core functionality, DataTypes no longer used to parse dropped files (likely
to be rarely needed anyway).


svn path=/trunk/netsurf/; revision=13218
2011-12-02 12:47:11 +00:00
Chris Young a7af4ba0c1 Pass mouse scrollwheel events to the core first
svn path=/trunk/netsurf/; revision=13201
2011-11-29 20:58:57 +00:00
Chris Young b14c4f0a0b Revert r13138
svn path=/trunk/netsurf/; revision=13144
2011-11-10 14:22:02 +00:00
Chris Young 87c5f14c08 Update the title of the initial tab, even when the tab bar is hidden (ensures the
correct title will be present if it is made visible)

svn path=/trunk/netsurf/; revision=13138
2011-11-09 19:22:49 +00:00
Chris Young 4cbe7d9d94 Remove any need for LangNames to be imported as a Messages file
svn path=/trunk/netsurf/; revision=13099
2011-10-29 14:14:13 +00:00
Chris Young b84ebeed36 Stop abusing Messages with continual load of LangNames
svn path=/trunk/netsurf/; revision=13098
2011-10-29 13:51:19 +00:00
Chris Young d0ad76a77a Simplify
svn path=/trunk/netsurf/; revision=13097
2011-10-29 13:35:55 +00:00
Chris Young 4a0de7cd5c Allow usage of a resource.map file to map resource: requests to other files.
svn path=/trunk/netsurf/; revision=13096
2011-10-29 13:32:53 +00:00
Chris Young 62900af515 Search the current theme dir for resources.
svn path=/trunk/netsurf/; revision=13091
2011-10-29 11:24:29 +00:00
Chris Young c1afe81e06 Complete extended context menus
svn path=/trunk/netsurf/; revision=13076
2011-10-23 13:15:44 +00:00
Chris Young a4f14eb0e9 Avoid horizontal pixel-height lines of the background appearing when "fast scrolling"
down the page.  There is a similar problem with scrolling up pages which may be a bug
in ami_do_redraw_limits or plotters (probably bitmap tile plotter), as drawing
additional pixel lines after scrolling is not redrawing the affected area.
Example sites where this problem is apparent:
http://www.nintendolife.com (border pattern does not redraw)
http://www.amigaos.net/content/72/supported-hardware (clouds show through the main
text area)

svn path=/trunk/netsurf/; revision=13072
2011-10-22 13:52:13 +00:00
Chris Young 6959a30b26 Move non-requester user file operations to file.c
svn path=/trunk/netsurf/; revision=13065
2011-10-15 15:27:56 +00:00
Chris Young c3fafd63f8 Move all main file req save ops to file.c
svn path=/trunk/netsurf/; revision=13064
2011-10-15 14:55:03 +00:00
Chris Young ad8a965548 Start to consolidate user file operation into one file
svn path=/trunk/netsurf/; revision=13062
2011-10-15 14:09:35 +00:00
Chris Young 70aad31df6 Default search ico should only come from theme
svn path=/trunk/netsurf/; revision=13011
2011-10-08 13:49:31 +00:00
Chris Young 3bb98823f7 correct filename
svn path=/trunk/netsurf/; revision=12996
2011-10-07 23:26:39 +00:00
Chris Young 39b490d1f0 Add favicon to iconification icon
svn path=/trunk/netsurf/; revision=12995
2011-10-07 23:12:12 +00:00
Chris Young f9ca9f3595 comment removal
svn path=/trunk/netsurf/; revision=12988
2011-10-07 21:53:35 +00:00
Chris Young c8d9e012e5 favicon fixes
svn path=/trunk/netsurf/; revision=12985
2011-10-07 21:41:31 +00:00
John Mark Bell d5bb9d98e7 Build resource: map at start time
Remove stylesheet url globals -- the core will always use resource:{default,quirks,adblock}.css as appropriate

svn path=/trunk/netsurf/; revision=12949
2011-10-05 08:32:52 +00:00
Chris Young b9a40d8e47 Fix crash when switching tabs
svn path=/trunk/netsurf/; revision=12932
2011-10-03 18:08:52 +00:00
Michael Drake e52aaecd7a Fix up for nsurl changes. Untested.
svn path=/trunk/netsurf/; revision=12928
2011-10-03 16:41:55 +00:00
Chris Young 87ba84abfe Disable RAmiga-U temporarily as ActivateGadget() is causing a bizarre but fatal
interaction with context menus.

svn path=/trunk/netsurf/; revision=12913
2011-09-29 22:13:13 +00:00
Chris Young 5d7c1caffe Also read mimetype mappings from mimetypes.user
svn path=/trunk/netsurf/; revision=12876
2011-09-25 17:03:37 +00:00
Chris Young 4573560c61 increase keyboard scroll speed to 10px
svn path=/trunk/netsurf/; revision=12875
2011-09-25 10:08:23 +00:00
Chris Young 215c31ac0d When pressing mouse button don't try to go forwards in history first... instead make
releasing mouse button 5 go forwards in history.

svn path=/trunk/netsurf/; revision=12873
2011-09-24 15:20:05 +00:00
John Mark Bell f27d5a3e15 Remove gui_multitask
svn path=/trunk/netsurf/; revision=12828
2011-09-21 00:25:09 +00:00
Chris Young 9bb586769a Remove AMINS_FRAME
svn path=/trunk/netsurf/; revision=12801
2011-09-16 18:00:39 +00:00
John Mark Bell 339bed7272 Virtualise content handler finalisation calls. Remove pointless implementations.
svn path=/trunk/netsurf/; revision=12797
2011-09-15 22:47:50 +00:00
Chris Young 049a3eb80a Fix search icon disappearing when layout size bar dragged
svn path=/trunk/netsurf/; revision=12790
2011-09-12 22:38:51 +00:00
Chris Young 6a5b10c685 Convert keypresses to UCS4. Fixes issue with typing Euro symbol (¤). Probably fixes
other characters in more exotic character sets.

svn path=/trunk/netsurf/; revision=12789
2011-09-12 21:56:15 +00:00
Chris Young f5d91344b7 Change option to get accepted languages from Locale into a checkbox so it updates at
startup

svn path=/trunk/netsurf/; revision=12787
2011-09-11 14:53:33 +00:00
Chris Young 9d952f2ae2 Setting screen signals this late doesn't work, so revert r12486 completely and return
to busy-looping (but a bit friendlier this time, waiting 1 second between attempts)

svn path=/trunk/netsurf/; revision=12785
2011-09-10 23:25:49 +00:00
Chris Young 8e67ad8051 Select fonts, sizes and colours for splash screen text rather than relying on system
default

svn path=/trunk/netsurf/; revision=12776
2011-09-07 23:01:53 +00:00
Chris Young 98a0c25344 Use Michael Drake's proper splash screen
svn path=/trunk/netsurf/; revision=12773
2011-09-07 18:38:08 +00:00
Chris Young 0f79ab2c19 Avoid button flicker
svn path=/trunk/netsurf/; revision=12761
2011-09-06 20:58:26 +00:00
Michael Drake 0401d52f51 Remove gui_window_frame_resize_start() functions.
svn path=/trunk/netsurf/; revision=12738
2011-09-05 15:35:34 +00:00
Chris Young 330227d87a Remove more checks for browser_window_type
svn path=/trunk/netsurf/; revision=12719
2011-09-04 22:35:11 +00:00
Chris Young 985bf9e191 Remove browser_window type from ami_create_menu()
Remove DrawInfo too, as only there for image menus which never worked.

svn path=/trunk/netsurf/; revision=12718
2011-09-04 22:26:24 +00:00
Michael Drake 235bc41941 Fix indentation.
svn path=/trunk/netsurf/; revision=12714
2011-09-04 18:53:54 +00:00
Michael Drake 202f972199 Delete a whole bunch of redundant tests for browser_window_type. Front ends now only ever have any connection to browser windows of type BROWSER_WINDOW_NORMAL. Still a couple of uses in there; ami_menu_create() shouldn't need take a browser_window_type param now.
svn path=/trunk/netsurf/; revision=12713
2011-09-04 18:50:46 +00:00
Michael Drake 5be6bd452d Remove gui_window_position_frame() definition from core and remove all implementations from front ends.
svn path=/trunk/netsurf/; revision=12711
2011-09-04 18:20:24 +00:00
John Mark Bell 4b189ab0bc Squash warnings resulting from mismatched type expectations
svn path=/trunk/netsurf/; revision=12701
2011-09-02 22:09:23 +00:00
Chris Young 25fea2721d Avoid calling AllocSignal() until the last minute, as it causes PM_OPEN to initiate
an Intuition or Input deadlock.
Re-enable context menus as they are now safe.
Remove sticky context menus option as this can be set in GUI prefs as a global option.

svn path=/trunk/netsurf/; revision=12698
2011-09-02 17:31:47 +00:00
Chris Young 1cb60828ea Don't refresh buttons when enabling/disabling. Fixes bitmap alpha/overprinting
problem (thanks to Simon Archer)

svn path=/trunk/netsurf/; revision=12694
2011-08-31 19:53:34 +00:00
Michael Drake 42467f16dd Don't need to set current_redraw_browser any more.
svn path=/trunk/netsurf/; revision=12654
2011-08-24 13:33:58 +00:00
Chris Young 39e5c04da7 Fix warnings
svn path=/trunk/netsurf/; revision=12616
2011-07-23 14:06:13 +00:00
Chris Young 31d1313944 Ensure buttons update (stop button activates) when new URL starts to load
svn path=/trunk/netsurf/; revision=12606
2011-07-16 13:53:22 +00:00
Michael Drake ed8778ddb3 Fix up Amiga for r12574 API change.
svn path=/trunk/netsurf/; revision=12575
2011-07-06 12:42:17 +00:00
Chris Young b1e425a967 Correctly select FILLPEN or FOREGROUNDPEN for scroller knob colour
svn path=/trunk/netsurf/; revision=12569
2011-07-03 18:20:18 +00:00
Chris Young d253daa020 Pick scroller gadget colours from the screen's DrawInfo pens
svn path=/trunk/netsurf/; revision=12568
2011-07-03 17:22:23 +00:00
Chris Young 9d30f67d54 Fix AppIcons for non-HTML contents
svn path=/trunk/netsurf/; revision=12564
2011-07-03 11:47:54 +00:00
Chris Young aa8e6de67d Make AmiDock icon behave a little more sensibly when all windows are iconified.
svn path=/trunk/netsurf/; revision=12563
2011-07-03 11:20:00 +00:00
Chris Young e3447be7a3 Iconfication; only enabled when running on WB screen at present
svn path=/trunk/netsurf/; revision=12562
2011-07-03 11:05:18 +00:00
Chris Young bb7408a56e When opening new tabs next to the active one, open them sequentially until the tab is
switched away from.  This is more akin to how Firefox etc do it.  Make this the
default.

svn path=/trunk/netsurf/; revision=12561
2011-07-02 22:40:45 +00:00
Chris Young bdc0d994c1 Add an option to open new tabs next to the current tab. Needs some additional logic
as opening multiple tabs results in the new tabs being in reverse order to that
expected.

svn path=/trunk/netsurf/; revision=12559
2011-07-02 22:04:51 +00:00
Chris Young 910c6d314f Put a search icon where the old search favicon was
svn path=/trunk/netsurf/; revision=12558
2011-07-02 19:38:54 +00:00
Chris Young 6fd47035c1 Fix compilation
svn path=/trunk/netsurf/; revision=12547
2011-06-30 18:58:52 +00:00
Michael Drake eddae6af06 Remove plotter table global. Pass a redraw context around redraw functions. Knockout could be handled better. Note: untested on most front ends.
svn path=/trunk/netsurf/; revision=12543
2011-06-30 15:48:07 +00:00
Michael Drake 2bedf4d88f Frond ends signal end of drag with call to browser_window_mouse_track.
svn path=/trunk/netsurf/; revision=12515
2011-06-27 17:45:17 +00:00
Chris Young f747bbb79e Shortcut backspace = go back one page in history
svn path=/trunk/netsurf/; revision=12506
2011-06-25 16:00:02 +00:00
Michael Drake dea7683985 Remove gui_window_set_scale().
svn path=/trunk/netsurf/; revision=12502
2011-06-24 12:01:24 +00:00
Michael Drake 5a4c8916ef If iframes are reformatted due to containing document reflow, don't need to redraw them since they will be redrawn when the containing document is redrawn. Make iframe handling more robust.
svn path=/trunk/netsurf/; revision=12497
2011-06-24 09:30:33 +00:00
Chris Young 548e1f2f77 Ensure the WB screen gets unlocked, avoid passing a NULL to CloseScreen
svn path=/trunk/netsurf/; revision=12491
2011-06-19 11:16:48 +00:00
Chris Young e61ad6326a screen type should be PUBLICSCREEN not CUSTOMSCREEN
svn path=/trunk/netsurf/; revision=12490
2011-06-18 17:58:36 +00:00
Chris Young 2dd8fcd6d0 initialise context menus regardless of user's preferences on startup
svn path=/trunk/netsurf/; revision=12489
2011-06-18 17:40:27 +00:00
Chris Young 66b52c0af0 Reinstate waiting for visitor windows to close if the public screen could not be
closed.  Do it properly this time, with signals.

svn path=/trunk/netsurf/; revision=12486
2011-06-16 18:46:43 +00:00
Chris Young a7c9fbfa04 remove no_iframes
svn path=/trunk/netsurf/; revision=12482
2011-06-15 17:40:36 +00:00
Chris Young f2ef7ba6ba up = down and down = up
svn path=/trunk/netsurf/; revision=12454
2011-06-03 18:11:19 +00:00
Chris Young 4270e80d7a Make 4th mouse button go back in history, and 5th go forward. Untested.
svn path=/trunk/netsurf/; revision=12453
2011-06-03 18:08:17 +00:00
Chris Young f214d3ecc8 Allow mixing of AmigaOS and NetSurf command line options
svn path=/trunk/netsurf/; revision=12449
2011-05-30 18:17:09 +00:00
Chris Young ca8d2c9feb update variable names
svn path=/trunk/netsurf/; revision=12382
2011-05-11 18:34:43 +00:00
Chris Young 1f1fe78c17 New style MIME typing; maps MIME types to DataTypes and DefIcon format names.
Currently only able to resolve DataTypes to MIME Types.

TODO:
- DT MIME type guessing needs mostly removing (only use if no matches in mimetypes
file)
- Migrate the rest of filetype.c to the new format (can filetype using icon.library
and reverse lookup MIME type, for example)
- Use to distinguish between CONTENT_IMAGE types
- Simplify so DefIcon type defaults to lowercase DataType name

svn path=/trunk/netsurf/; revision=12360
2011-05-09 22:11:18 +00:00
Chris Young 489c35c5f7 Simple initialisation splash screen
svn path=/trunk/netsurf/; revision=12303
2011-05-07 22:21:41 +00:00
Chris Young 208363fe2a Rename DataTypes related code/files/defines to avoid confusion and aid adding support
for other DataType classes.
Disable MNG/WebP by default as they aren't common and the required libs are quite
large; DataTypes can handle these formats for now.

svn path=/trunk/netsurf/; revision=12284
2011-05-06 22:42:37 +00:00
John Mark Bell e71691bae8 Merge branches/jmb/content-factory to trunk
svn path=/trunk/netsurf/; revision=12283
2011-05-06 20:40:09 +00:00
Chris Young 06213b4dd2 Make Y DPI a configurable option. Default is 72 (AmigaOS standard)
svn path=/trunk/netsurf/; revision=12237
2011-04-25 17:43:22 +00:00
Chris Young be16cd70c5 Fix treeview display
svn path=/trunk/netsurf/; revision=12233
2011-04-22 17:17:05 +00:00
Chris Young 0a24f4dbca Aspect-corrected font DPI (files missing from previous commit)
svn path=/trunk/netsurf/; revision=12231
2011-04-22 16:54:11 +00:00
Chris Young 83914b9c3e Set font DPI from nscss_screen_dpi to ensure it is always in sync
Reset font DPI when opening screens to allow us to correct for aspect ratio in the
future

svn path=/trunk/netsurf/; revision=12229
2011-04-22 16:06:46 +00:00
Chris Young c737dbd5f8 Use PROGDIR: instead of current dir when setting the path to the executable for
AmiUpdate

svn path=/trunk/netsurf/; revision=12223
2011-04-22 13:55:25 +00:00
Chris Young dad9306e2a print caret at scroll position netsurf believes the page is at, rather than where the
gui says it is

svn path=/trunk/netsurf/; revision=12108
2011-03-19 22:40:02 +00:00
Chris Young e8ca07b0dc Redraw the area under a caret when it is cleared, rather than relying on a potentially
out-of-date off-screen copy of what used to be there.

svn path=/trunk/netsurf/; revision=12107
2011-03-19 13:00:45 +00:00
Chris Young ef02bcc122 Enable fast scrolling for non-HTML contents
svn path=/trunk/netsurf/; revision=12103
2011-03-17 23:13:50 +00:00
Michael Drake d86e8b49c4 Remove what should now be redundant special casing of text/plain.
svn path=/trunk/netsurf/; revision=12099
2011-03-17 18:53:04 +00:00
Michael Drake a70c32422a gui_find_resource --> gui_get_resource_url.
svn path=/trunk/netsurf/; revision=12089
2011-03-17 11:57:09 +00:00
Chris Young 7e64826e60 Move remaining popupmenu.class stuff to context_menu.c, and #ifdef it for
__amigaos4__ only.

svn path=/trunk/netsurf/; revision=12077
2011-03-16 18:53:58 +00:00
Chris Young a81a7b5af2 Only extend the clipping area for plain text contents
svn path=/trunk/netsurf/; revision=12063
2011-03-15 18:43:13 +00:00
Chris Young 1cfc5b8970 More rigourous MIME type checking for CSS allows us to remove the icons from included
CSS files.

svn path=/trunk/netsurf/; revision=12049
2011-03-14 18:53:13 +00:00