Commit Graph

43 Commits

Author SHA1 Message Date
Michael Drake
11ecf0b671 Amiga: Fix the corewindow get scroll call. 2019-08-03 16:18:50 +01:00
Michael Drake
3938d5340b Corewindow: Sanitise scrolling API.
Now the core has a helper so that all the front ends don't need
to implement the scroll to show area API.

Now they simply have get and set scroll APIs.
2019-08-03 15:57:23 +01:00
Chris Young
97010ecef5 Make screen pointer accesible through an accessor function only 2019-05-10 20:59:30 +01:00
Vincent Sanders
dd96a69573 fix several amiga frontend warnings 2019-05-06 10:32:16 +01:00
Vincent Sanders
5d6f189d8b Fixup everything the semantic patch missed 2017-09-07 18:12:09 +01:00
Vincent Sanders
75018632a9 Use coccinelle to change logging macro calls in c files
for F in $(git ls-files '*.c');do spatch --sp-file foo.cocci --in-place ${F};done

@@ expression E; @@
-LOG(E);
+NSLOG(netsurf, INFO, E);
@@ expression E, E1; @@
-LOG(E, E1);
+NSLOG(netsurf, INFO, E, E1);
@@ expression E, E1, E2; @@
-LOG(E, E1, E2);
+NSLOG(netsurf, INFO, E, E1, E2);
@@ expression E, E1, E2, E3; @@
-LOG(E, E1, E2, E3);
+NSLOG(netsurf, INFO, E, E1, E2, E3);
@@ expression E, E1, E2, E3, E4; @@
-LOG(E, E1, E2, E3, E4);
+NSLOG(netsurf, INFO, E, E1, E2, E3, E4);
@@ expression E, E1, E2, E3, E4, E5; @@
-LOG(E, E1, E2, E3, E4, E5);
+NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5);
@@ expression E, E1, E2, E3, E4, E5, E6; @@
-LOG(E, E1, E2, E3, E4, E5, E6);
+NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5, E6);
@@ expression E, E1, E2, E3, E4, E5, E6, E7; @@
-LOG(E, E1, E2, E3, E4, E5, E6, E7);
+NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5, E6, E7);
2017-09-06 18:45:27 +01:00
Michael Drake
92ecc77768 Core window: Ensure all front ends initialise drag_status. 2017-06-10 18:10:07 +01:00
Vincent Sanders
703427a486 Update documentation removing junk and moving to markdown for most text files 2017-06-09 17:30:00 +01:00
Vincent Sanders
6f2670ec42 update amiga corewindow implementation for changed API 2017-05-23 09:44:17 +01:00
Vincent Sanders
0f69965805 clean up some of the doxygen generation warnings 2017-02-19 11:32:17 +00:00
Chris Young
76d1758d7f Make gui_globals less... global 2017-02-13 18:27:37 +00:00
Chris Young
e38f4d2f1a Get render bitmap size via function 2017-02-13 18:16:22 +00:00
Chris Young
593ec1fbea Manage shared pens internally unless we need multiple lists (eg. per browser_window) 2017-02-13 18:09:43 +00:00
Chris Young
075e9c0258 Alloc gui_global structure when initialising 2017-02-13 17:46:20 +00:00
Chris Young
edaa9c29f2 Remove use of global context data from Amiga frontend 2017-02-13 00:18:32 +00:00
Vincent Sanders
7dab7cb43d move plot style header to netsurf include directory
move plotter style header and adjust all callers to use only what they
actually require.
2017-01-13 10:03:24 +00:00
Chris Young
c19ea4deaa Support SimpleRefresh corewindows
These queue redraws unlike the main browser window, which seems to work a bit better than redrawing immediately.
2017-01-08 13:59:51 +00:00
Chris Young
05e4463230 Update corewindow scrollbars when user resizes window 2017-01-08 13:21:32 +00:00
Chris Young
074afb43f4 Process in-window scrollbars using IDCMPUPDATE too 2017-01-08 01:55:45 +00:00
Chris Young
d885c79743 remove excessive logging 2017-01-08 00:34:06 +00:00
Chris Young
22e25971ed Working internal and tree-to-browser drags
tree-to-tree drags don't work unless the source supports internal drag moves (so global history to hotlist won't work as it did before)
2017-01-08 00:29:49 +00:00
Chris Young
0f58d92ab6 Dragging works internally
(except it doesn't, as the hotlist window is broken and doesn't respond to the mouse until selecting random menu items)
2017-01-07 18:00:48 +00:00
Chris Young
83840dca49 Possibly slightly less but still definitely broken drag handling 2017-01-07 17:43:45 +00:00
Chris Young
a4bedbbaeb Broken corewindow drag implementation 2017-01-07 00:26:15 +00:00
Chris Young
e98a05bb08 Complete cookie manager corewindow interface 2017-01-05 18:50:38 +00:00
Chris Young
6e957396a9 fix some ui corruption on scrollbar hide 2017-01-03 20:14:41 +00:00
Chris Young
d6f6326ce9 it's not a double-click if the mouse has moved 2017-01-03 20:01:58 +00:00
Chris Young
2e11f7f3cb less cranky scrollbars 2017-01-03 18:03:43 +00:00
Chris Young
5eb7ee97ed Basic conversion of cookie manager to core window
slightly broken; blank window until resized; scroll bar wrong; no menu
2017-01-03 00:26:00 +00:00
Chris Young
2bd8eb8c0b Fix sslcert redraw 2017-01-02 19:16:33 +00:00
Chris Young
64bb74bdaf fix mouse click processing 2017-01-02 18:57:16 +00:00
Chris Young
48e95ad2b3 show/hide scrollbars as required
move the sslcert scrollbars into the window as per the style guide
2017-01-02 18:41:40 +00:00
Chris Young
0fafa9576e make the window title text common 2017-01-02 15:02:32 +00:00
Chris Young
4892497a19 correct full-window redraw co-ords 2017-01-02 14:55:17 +00:00
Chris Young
98f94c4bf3 move mousemove back to the event loop and ensure the window is created cleared 2017-01-02 14:41:08 +00:00
Chris Young
e7c9b863b3 Take the redraw routine from old tree_redraw with less meddling 2017-01-02 13:47:21 +00:00
Chris Young
a9cc0792a4 migrate sslcert to use corewindow
predictably blank
2017-01-02 12:57:07 +00:00
Chris Young
dab118b6f7 Amga core window redraw
This almost certainly will not work properly
2017-01-01 23:57:35 +00:00
Chris Young
3227ed6556 handle core window mouse buttons
todo: support drags
2017-01-01 17:26:55 +00:00
Chris Young
eb1f39fe7d Process mouse moves and qualifier keys
NB: we are doing mouse moves differently by using an IDCMP hook on space.gadget, as this gives us co-ordinates relative to the render area
GID_DRAW object when the window is defined will need tagging ICA_TARGET, ICTARGET_IDCMP
2017-01-01 16:45:27 +00:00
Chris Young
31c08f39be Basic event loop, only handles keypresses and window closure so far 2017-01-01 14:53:37 +00:00
Chris Young
c40e8197c2 Allow for the prospect of in-window scrollbars 2017-01-01 14:34:04 +00:00
Chris Young
8196f5b602 Basic template for an Amiga core window
Drawing and event processing not written yet
2017-01-01 13:28:11 +00:00