Commit Graph

883 Commits

Author SHA1 Message Date
Chris Young
c8c806a0c2 Convert the rest of gui.c to use class pointers directly
Add missing button.gadget
2015-01-25 12:45:20 +00:00
Chris Young
01050b4415 Ensure we have the class pointer 2015-01-25 01:12:45 +00:00
Chris Young
bb9d23d040 Fix build on OS3 2015-01-25 01:06:46 +00:00
Chris Young
e89072b3d0 Open BOOPSI/ReAction classes using the new-style methods.
Create some alternative NewObject macros and make some code use them.
2015-01-25 00:27:53 +00:00
Chris Young
b3f49f9364 Abstract p96WPA, although it still needs P96 currently 2015-01-20 20:46:36 +00:00
Chris Young
e3af7f3343 Abstract P96 functions away so we can decide what to use at run-time.
This allows us to avoid opening P96 on OS4.1FE in future, and not require it to be installed on OS3.
2015-01-20 20:36:14 +00:00
Chris Young
d0f7247ea6 Merge branch 'master' of git://git.netsurf-browser.org/netsurf 2015-01-20 20:03:55 +00:00
Chris Young
2b9df1b2cd Remove some p96 usage 2015-01-20 00:39:32 +00:00
Chris Young
0c526662b3 Minor OS3 fixes 2015-01-19 20:50:06 +00:00
Chris Young
e07bbbaaff Take out some more code which won't work on OS3 2015-01-19 20:08:45 +00:00
Chris Young
15537aa2af The OS3 build doesn't appear to like non-specific layout groups 2015-01-19 00:22:22 +00:00
Chris Young
6f9d96aedf Fixup gui.c enough to make it compile for OS3 2015-01-18 18:50:01 +00:00
Chris Young
0c4f942c2d Attempt to fix some OS3 build errors in gui.c 2015-01-17 17:06:48 +00:00
Chris Young
65ab38fc1c Clear a selection after it has been copied, as per the AmigaOS Style Guide 2015-01-17 15:33:32 +00:00
Chris Young
d65c1f1cfd Remove unused variable 2015-01-15 23:50:35 +00:00
Chris Young
1391057332 Change another instance of the tab number being used as identification. Now we set the tab numbers as they must be unique, but don't use them internally. 2015-01-15 23:48:56 +00:00
Chris Young
6255e8b1dc Use clicktab node addresses rather than clicktab numbers. This fixes #2254. 2015-01-15 23:44:29 +00:00
Chris Young
0415edc9c4 avoid a crash when switching tabs 2015-01-13 19:09:48 +00:00
Chris Young
f8264189eb select a colour which isn't wholly transparent 2015-01-11 20:30:35 +00:00
Chris Young
b91d5f3ac7 Fix the passing of NetSurf internally-handled args to the core 2015-01-05 19:58:31 +00:00
Chris Young
f9ccd65545 Translate common RAmiga-shortcuts directly to their NetSurf keycodes 2015-01-03 14:20:47 +00:00
Chris Young
a10aaea989 Greatly simplify finding out if our gui_window is the one being displayed. 2015-01-02 23:14:49 +00:00
Chris Young
ef43be9989 Fix crash on startup when "always show tabs" is enabled. 2014-12-19 11:57:32 +00:00
Chris Young
17ec567266 Remove redundant check 2014-12-10 17:44:38 +00:00
Chris Young
0166083584 Get scale after memory allocated 2014-12-04 19:02:59 +00:00
Michael Drake
19fed3976f Don't need browser window private header now. 2014-12-04 12:23:24 +00:00
Michael Drake
f0b38f27d4 Use API to get at a browser window's content. 2014-12-04 12:22:56 +00:00
Michael Drake
60877b6ff5 Fix missmatched bracket. 2014-12-04 12:18:36 +00:00
Michael Drake
4af70cd1ac Use browser_window_get_extents to simplify window content size handling. 2014-12-04 12:14:16 +00:00
Michael Drake
fad6318d59 Use browser_window_get_url() 2014-12-04 12:04:36 +00:00
Michael Drake
e4437ad76b Store scale in gui_window. Remove a lot of bw dereferencing for scale. 2014-12-04 11:42:12 +00:00
Chris Young
0cd682644b Revert "Revert "Write out to the backing store asynchronously.""
This reverts commit 75623179aa.
2014-11-22 16:41:29 +00:00
Chris Young
2de1553a00 New scheduler 2014-11-22 16:27:39 +00:00
Chris Young
f8d8d218d8 Initial steps for a scheduler process 2014-11-22 16:27:39 +00:00
Chris Young
fe56795205 Revert "Should be a while loop in case of multiple simultaneous event triggers."
This reverts commit 9dcf001a0b.

For ehatever reason this is entirely broken, but I'm in the process of rewriting so just revert for now to get the working builds again.
2014-11-22 14:18:00 +00:00
Chris Young
9dcf001a0b Should be a while loop in case of multiple simultaneous event triggers. 2014-11-21 23:47:26 +00:00
Chris Young
75623179aa Revert "Write out to the backing store asynchronously."
This reverts commit 1ddf8215cf.

Appears to be unsafe to run this in a new process.
2014-11-19 23:34:53 +00:00
Chris Young
1ddf8215cf Write out to the backing store asynchronously.
Despite the fact AmigaOS filesystems run as separate processes,
DOS filesystem writes occur synchronously waiting for the disk
write to finish before returning.  Here we have effectively taken
the core's fs backing store and extended it slightly so the store
operation is spun off into a new process, running at a lower task
priority than NetSurf itself.  This stops the UI pauses that occur
shortly after loading pages as NetSurf commits the cache to disk.

Somewhat experimental, pending more extensive user testing.
2014-11-18 19:31:11 +00:00
Chris Young
cfc9971d0e Remove no longer used poll option from schedule runner 2014-11-17 23:47:28 +00:00
Chris Young
230e348315 update comments 2014-11-16 16:44:19 +00:00
Chris Young
0966b8097c Allocate screen title when first needed and keep it private to amiga/gui.c 2014-11-16 16:40:41 +00:00
Chris Young
20705189b9 Make win_destroyed variable private to amiga/gui.c 2014-11-16 16:31:35 +00:00
Chris Young
6ce6b9ae97 Replace curbw (current browser_window, used mostly for ARexx support) with cur_gw (current gui_window) 2014-11-16 16:01:59 +00:00
Chris Young
d626487fe1 Remove any pending favicon refresh to avoid a crash on exit/window close 2014-11-16 15:06:32 +00:00
Chris Young
497994b0f4 Fix amiga/gui.c to not ref gui_window via browser_window 2014-11-16 14:44:40 +00:00
Chris Young
7cb7879427 Remove a loop which appears to do nothing 2014-11-16 14:25:31 +00:00
Chris Young
e3620ac675 Change clicktab userdata to hold gui_window instead of browser_window 2014-11-16 14:24:18 +00:00
Chris Young
e75cdeeefd Don't make the app id a global var 2014-11-16 14:06:12 +00:00
Chris Young
b2fd904eef Make the SPACE_RenderBox compatibility functions public 2014-11-15 13:52:06 +00:00
Chris Young
e909c93804 Use SPACE_RenderBox if available, as SPACE_AreaBox is "dangerous". 2014-11-15 13:46:23 +00:00
Vincent Sanders
3e4f5737aa Doxygen cleanups in frontends 2014-11-11 15:46:04 +00:00
Chris Young
fb0af6f269 Call open/close timer from schedule init/free functions 2014-11-10 23:50:28 +00:00
Chris Young
e9696b2fa9 New function for an error requester with the correct imagery which doesn't attempt to do Messages lookup. 2014-11-10 21:59:51 +00:00
Chris Young
098fbb628b Move some init functions together for the sake of clarity 2014-11-10 19:01:30 +00:00
Chris Young
225161b05e Move MIME cleanup before NetSurf's internal exit. 2014-11-10 18:58:58 +00:00
Chris Young
16e80452c2 Remove gui_init and merge the contents into main() 2014-11-10 18:57:38 +00:00
Chris Young
7bf92f6a04 Remove die()
Terminating execution abruptly on AmigaOS is dangerous.
2014-11-10 18:56:09 +00:00
Chris Young
e0833a7f2e Fix warnings 2014-11-09 01:10:52 +00:00
Chris Young
4329c7a328 Terminate execution if an essential library fails to open 2014-11-09 00:06:56 +00:00
Chris Young
c2eb205685 Open libraries *before* we need them... 2014-11-09 00:06:56 +00:00
Chris Young
3c1aeebb1e Fix headers 2014-11-09 00:06:55 +00:00
Chris Young
9601ddacad Add new libs file to centrally open/close required libraries, and move a couple of the existing manual opens to it. 2014-11-09 00:06:55 +00:00
Vincent Sanders
c14ddad660 change url setting api to take an nsurl instead of a text string 2014-11-02 22:30:45 +00:00
Vincent Sanders
c31c4babe1 Change contextual content retrieval to browser features.
Update the API which allows frontends to acquire the page features
(images, link urls or form elements) present at the given coordinates
within a browser window.

By making this an explicit browser_window API and using the browser.h
header for the associated data structure with a more appropriate API
naming the usage is much more obvious and contained.

Additionally the link url is now passed around as a nsurl stopping it
being converted from nsurl to text and back again several times.
2014-11-02 15:46:42 +00:00
Chris Young
c3522ea747 Change min stack (again) to 128K
It has come to my attention that some websites (eg amigakit.com) are using marginally more than the 96K stack space set previously.  This should give plenty of breathing space.
2014-10-30 21:51:52 +00:00
Vincent Sanders
7ace528729 Update url setting API to return nserror code instead of calling warn_user 2014-10-29 00:18:12 +00:00
Chris Young
29dfdd459d Move scroller check into update_extent, where it makes more sense 2014-10-26 22:22:15 +00:00
Chris Young
bad7780378 Check scroller requirements as part of the reformat. 2014-10-26 21:30:19 +00:00
Chris Young
784d893eb7 Avoid a crash on exit in kiosk mode 2014-10-26 17:08:23 +00:00
Chris Young
36a3e58c06 Expand status bar to entire window width 2014-10-26 17:00:18 +00:00
Chris Young
340d74ae4f Make the new hscroller work properly 2014-10-26 16:42:00 +00:00
Chris Young
80b195cdd5 Move the hscrollbar inside the window 2014-10-26 16:35:05 +00:00
Chris Young
17b87a60cf Offset new windows as per style guide 2014-10-26 16:12:34 +00:00
Chris Young
0c77d85f89 Make window counting a generic function 2014-10-26 15:41:44 +00:00
Chris Young
b751513d6f Schedule redraws for 1cs to ensure they take place after reformats (which are scheduled by the core for 0cs) 2014-10-26 13:22:02 +00:00
Chris Young
a01cb0f635 Don't need redraw_scheduld as the scheduler stops it being scheduled twice anyway 2014-10-26 13:18:19 +00:00
Chris Young
69c7b6b1f5 Fix button update, avoid forward decl 2014-10-26 13:11:05 +00:00
Chris Young
49873c8bf3 Cache size gadget width 2014-10-25 20:17:33 +01:00
Chris Young
d89f654fbe Correct comment 2014-10-25 20:08:56 +01:00
Chris Young
a2e999584c Use the correct size gadget width (thx tboeckel) 2014-10-25 20:07:58 +01:00
Chris Young
41b08da31a Check scroller requirement after a resize 2014-10-25 20:03:14 +01:00
Chris Young
b2ff4877e4 Remove the vertical scroll bar if there's nothing to scroll 2014-10-25 19:59:11 +01:00
Chris Young
7e95b7ffb1 Remove some old VertProp tags 2014-10-25 19:29:51 +01:00
Chris Young
b7b4db8520 Merge branch 'chris/shorter-vscrollbar'
Move the vertical scroller into the window area and allow it to be removed when eg. framesets are being displayed.
2014-10-25 19:27:40 +01:00
Chris Young
d31aa9a959 Use more sensible default value for size gadget width 2014-10-25 19:24:58 +01:00
Chris Young
fa7d44702a Fix warnings 2014-10-25 16:22:28 +01:00
Chris Young
2ad41a78c4 Returns bool, not void 2014-10-25 15:52:10 +01:00
Chris Young
8d930afb3d Reduce code duplication 2014-10-25 15:49:42 +01:00
Chris Young
088c03a9b7 Reformat page after scrollbar add/remove 2014-10-25 15:47:05 +01:00
Chris Young
e22273c0ff Remove scrollbar for framesets too 2014-10-25 15:38:57 +01:00
Chris Young
8590780ff5 Avoid forward decl, add comments 2014-10-25 15:29:12 +01:00
Chris Young
90e6cf85b6 Toggle vscroll on/off as needed 2014-10-25 15:23:31 +01:00
Chris Young
f5d866ab70 Rename OID_VSCROLL to GID_VSCROLL and ensure it exists before referencing 2014-10-25 15:08:04 +01:00
Chris Young
6034e69ad1 Creat ehte kiosk window similar to the normal one 2014-10-25 14:41:10 +01:00
Chris Young
78a8f1d967 Remove TODO: LM_REMOVECHILD disposes the objects already. 2014-10-25 14:30:17 +01:00
Chris Young
f787b22594 Add a TODO, don't break kiosk window 2014-10-25 13:29:10 +01:00
Chris Young
f9ed0af8d8 Remove built-in window scrollbar and replace with a scroller.gadget.
The style does not match the window border so looks a bit odd.
2014-10-25 13:17:49 +01:00
Michael Drake
94f32b8369 Move create_form_select_menu to window gui table. 2014-10-24 20:45:21 +01:00
Chris Young
7cfec69700 Ensure the throbber is stopped when destroying a gui_window. Fixes 2205. 2014-10-23 18:48:31 +01:00
Vincent Sanders
56a5ad11f3 remove unecessary include of browser.h in amiga frontend 2014-10-17 23:18:58 +01:00