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
Chris Young
6a7402b330
Empty the schedule list before freeing and closing resources
...
svn path=/trunk/netsurf/; revision=12034
2011-03-13 19:43:56 +00:00
Chris Young
d3b8961017
Move timer initialisation for scheduler so netsurf_init can queue scheduled events.
...
svn path=/trunk/netsurf/; revision=12033
2011-03-13 19:26:16 +00:00
Chris Young
dd5b65e33b
Search for resources in user's preferred languages, en, and outside the
...
language-specific dirs.
svn path=/trunk/netsurf/; revision=12030
2011-03-13 18:33:57 +00:00
Chris Young
02361309ed
Remove gui_globals scale as no longer needed
...
svn path=/trunk/netsurf/; revision=11962
2011-03-10 20:07:14 +00:00
Chris Young
5ac45472c7
Fix broken CONTENT_PLUGIN API.
...
Add a default content handler for Amiga using the plugin interface, which passes
unknown files (currently images only) through DataTypes.
svn path=/trunk/netsurf/; revision=11924
2011-03-06 13:58:02 +00:00
Chris Young
f892e59d76
Direct rendering. Testing only; has problems with inline image placement, grey
...
background for all text, won't work with Cairo renderer, may crash with certain
gfx lib operations (AreaFill). However, seems to be much faster in 16-bit mode than
off-screen buffered rendering.
svn path=/trunk/netsurf/; revision=11913
2011-03-05 14:36:55 +00:00
Chris Young
912b3bcde8
Enable selection of rendering engine (graphics.library, Cairo) at runtime, if we're
...
compiled with Cairo support.
svn path=/trunk/netsurf/; revision=11912
2011-03-05 11:42:31 +00:00
Chris Young
020239fd62
Use browser_window_redraw_ready
...
svn path=/trunk/netsurf/; revision=11907
2011-03-04 19:13:23 +00:00
Chris Young
a1d8f565c8
Use BltBitMapTags
...
svn path=/trunk/netsurf/; revision=11906
2011-03-04 19:05:12 +00:00
Chris Young
46915c6b7b
Brand new windows should not be cloning an existing browser_window or they pick up old
...
local history.
Brand new tabs should not either but that appears to be unavoidable at present.
svn path=/trunk/netsurf/; revision=11872
2011-03-01 19:09:57 +00:00
Vincent Sanders
9660442e92
remove obsolete, unused gui_window_redraw API
...
svn path=/trunk/netsurf/; revision=11870
2011-03-01 14:31:54 +00:00
Chris Young
b768440a58
Memory leak
...
svn path=/trunk/netsurf/; revision=11864
2011-02-28 22:12:34 +00:00
Chris Young
4a174fd670
Allow context menus in arbitrary positions outside the browsing area.
...
Add a Local History item to a new back button context menu, eventually this will give
a recent history list.
svn path=/trunk/netsurf/; revision=11858
2011-02-28 19:31:35 +00:00
Chris Young
b0635ea5dd
Rename confusingly-named file; Remove about from unsupported protocols, as will never
...
reach this code now.
svn path=/trunk/netsurf/; revision=11829
2011-02-26 17:38:43 +00:00
Chris Young
8bda9725b8
Very basic resource selection (resource: simply points to PROGDIR:Resources)
...
svn path=/trunk/netsurf/; revision=11781
2011-02-23 23:29:24 +00:00
Chris Young
124de0c84a
Disable fast scrolling for scaled contents for now
...
svn path=/trunk/netsurf/; revision=11779
2011-02-23 23:11:26 +00:00
Vincent Sanders
0231675abf
add resource handling
...
move gtk and framebuffer to use generic resource handling
svn path=/trunk/netsurf/; revision=11772
2011-02-23 22:27:55 +00:00
Chris Young
0ca3e6e00e
Get one timer message per signal to allow other non-scheduled events to be actioned.
...
This fixes a curious pause upon starting NetSurf.
svn path=/trunk/netsurf/; revision=11713
2011-02-19 20:01:11 +00:00
Chris Young
3123192dfc
Move timer.device stuff to schedule.c
...
svn path=/trunk/netsurf/; revision=11712
2011-02-19 17:19:38 +00:00
Chris Young
6bced73998
Modify scheduler to use a binary heap (using libpbl).
...
Scheduled events are now in event time order, so schedule_run simply takes the top
event off the heap and runs it (if we're polling, rather than having received a signal
that the next event is due to be run, we check first that we have passed the scheduled
time).
This should provide performance benefits as we are no longer trawling the entire list
of scheduled events (potentially hundreds) every time an event is signalled or the
schedule list is polled.
svn path=/trunk/netsurf/; revision=11703
2011-02-16 21:29:39 +00:00
Chris Young
7d03e1f969
New tabs should show the homepage
...
svn path=/trunk/netsurf/; revision=11701
2011-02-16 19:14:48 +00:00
Michael Drake
5cefc9584a
Pass clip rect to browser_window_redraw as pointer.
...
svn path=/trunk/netsurf/; revision=11672
2011-02-13 23:04:26 +00:00
Chris Young
db2f823e99
Don't clear window before redraw or blit if the redraw didn't complete
...
svn path=/trunk/netsurf/; revision=11669
2011-02-13 19:59:32 +00:00
Chris Young
5487b42cb7
Fix clip parameters, plain text scrolling now works
...
svn path=/trunk/netsurf/; revision=11650
2011-02-12 10:54:41 +00:00
Chris Young
da130ad67d
port to new api
...
svn path=/trunk/netsurf/; revision=11649
2011-02-12 10:39:21 +00:00
Chris Young
c247d54fb5
Port to browser_window_redraw()
...
- Scrolling text contents only shows the initial screenful
- Fast-scrolling HTML while scaled does not work properly (this is an old issue)
svn path=/trunk/netsurf/; revision=11646
2011-02-11 19:03:01 +00:00
Chris Young
4703d643f5
Fix some long-standing issues with events not getting captured, make sure the
...
timer.device version of the scheduler is working and make it the default.
svn path=/trunk/netsurf/; revision=11637
2011-02-09 21:52:28 +00:00
Chris Young
8895e0a0bc
Kiosk mode now fills screen every time
...
svn path=/trunk/netsurf/; revision=11544
2011-01-30 22:15:16 +00:00
Chris Young
2cc738f2f0
Pick the CSS system colours from the pens in the screen DrawInfo table, and force
...
repicking them if the screen changes.
Think these are right - some of the CSS descriptions are a bit ambiguous.
svn path=/trunk/netsurf/; revision=11532
2011-01-30 17:30:32 +00:00
Daniel Silverstone
699f0cb344
Make the tree icon dir a non-option
...
svn path=/trunk/netsurf/; revision=11422
2011-01-20 14:05:13 +00:00
John Mark Bell
64b26c85a3
More #ifdef __amigaos4__. This is getting a little messy.
...
svn path=/trunk/netsurf/; revision=11235
2011-01-06 23:50:50 +00:00
John Mark Bell
d83f683e96
Sprinkle some #ifdef __amigaos4__ around
...
svn path=/trunk/netsurf/; revision=11230
2011-01-06 23:17:17 +00:00
Chris Young
de5cbf9ee4
Make drag scrolls work more reliably and only within 10px of render area
...
svn path=/trunk/netsurf/; revision=11093
2010-12-18 23:34:56 +00:00
Chris Young
96cb4b40e7
Allow double-clicks in main browser and middle button double-clicks in treeview
...
svn path=/trunk/netsurf/; revision=11083
2010-12-16 23:28:33 +00:00
Vincent Sanders
60c840628f
Small refactor to change icon names to being passed in from frontends instead of core treeview globals
...
svn path=/trunk/netsurf/; revision=11053
2010-12-14 00:18:24 +00:00
Michael Drake
5eaeaed909
Remove Hubbub and Wapcaplet initialisation and finalisation.
...
svn path=/trunk/netsurf/; revision=10980
2010-12-04 20:14:33 +00:00
Chris Young
c14f335454
Fix serious crash if NetSurf is running twice (once with the FORCE switch) on a
...
NetSurf-created public screen, and the sessions are quit in the reverse order to which
they were launched.
svn path=/trunk/netsurf/; revision=10950
2010-11-21 23:30:35 +00:00
Chris Young
835d033e7b
Amiga icon loader. Treeviews will now use the user's icons for content types.
...
svn path=/trunk/netsurf/; revision=10925
2010-10-30 14:23:38 +00:00
Chris Young
078ff2fd51
Move drag icon stuff to own file; fix warnings
...
svn path=/trunk/netsurf/; revision=10922
2010-10-30 11:20:53 +00:00
Chris Young
d250c43e4f
Fix content icons in treeviews
...
svn path=/trunk/netsurf/; revision=10918
2010-10-29 18:05:48 +00:00
Chris Young
bdf3c32f44
Only allow auto-scroll on selection and selection drags
...
svn path=/trunk/netsurf/; revision=10904
2010-10-24 17:51:00 +00:00
Chris Young
5d40458ad5
Auto-scroll on drags beyond window boundaries
...
svn path=/trunk/netsurf/; revision=10894
2010-10-19 22:22:03 +00:00
John Mark Bell
6173bb0e6c
Merge treeview-redux to trunk
...
svn path=/trunk/netsurf/; revision=10865
2010-10-05 19:14:46 +00:00
Chris Young
c46e0e6015
Ensure kiosk_mode and frame windows are (a) handled the same wrt menus and (b) not
...
trying to manipulate non-existant menus
svn path=/trunk/netsurf/; revision=10855
2010-09-28 18:03:03 +00:00
Chris Young
6124966ab9
Revert previous change
...
svn path=/trunk/netsurf/; revision=10800
2010-09-19 12:58:25 +00:00
Chris Young
f3bf62bdbb
Try to avoid corruption when moving cursor around in text boxes
...
svn path=/trunk/netsurf/; revision=10799
2010-09-19 12:38:23 +00:00
Chris Young
300d094f2f
Remove unused #include
...
svn path=/trunk/netsurf/; revision=10795
2010-09-17 23:31:15 +00:00
Chris Young
86b6535b85
Prevent assert on non-HTML contents
...
svn path=/trunk/netsurf/; revision=10789
2010-09-16 20:55:25 +00:00
Chris Young
c0332c4394
Use core file fetcher
...
svn path=/trunk/netsurf/; revision=10759
2010-09-12 10:23:12 +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
0a70f6ede1
Correct font name
...
svn path=/trunk/netsurf/; revision=10683
2010-08-06 17:29:57 +00:00