Commit Graph

1432 Commits

Author SHA1 Message Date
Chris Young
90266d117c Schedule browser-initiated reformats too, with the caveat that a message of some description needs to arrive at the message port before the reformat will be queued (think this only affects scale changes). 2013-04-04 19:47:46 +01:00
Chris Young
6686d9dad8 Schedule redraws from local history too, hide ami_do_redraw and friends as only gui.c needs to call those directly now 2013-04-04 19:46:33 +01:00
Chris Young
c297f45bb9 Schedule redraws to prevent expected redraws from not happening when no events are occuring 2013-04-04 19:31:42 +01:00
Chris Young
7de97e8d6a ensure the closest character is picked 2013-03-24 11:35:27 +00:00
Chris Young
f70e58b4a1 update posn_in_string loop to be similar to nsfont_split 2013-03-24 11:27:26 +00:00
Chris Young
e678df267e Handle UTF-16 multi-length characters properly 2013-03-24 11:06:36 +00:00
Michael Drake
d0966c9d3f Fix leaked utf16 string. 2013-03-20 22:22:36 +00:00
Michael Drake
91d05fc0f1 Ensure that actual_x is set when string fits inside available_width. 2013-03-20 22:07:22 +00:00
Michael Drake
918aa9d266 Fix error. 2013-03-20 20:59:00 +00:00
Michael Drake
138d2529ef More meddling. 2013-03-20 20:55:03 +00:00
Michael Drake
5d7b1f40a3 Another attempt. 2013-03-20 20:06:24 +00:00
Michael Drake
ea4b7eb3a8 Try fixing Amiga nsfont_split. (Untested!) 2013-03-20 13:14:17 +00:00
Chris Young
5f7ed448d4 This needs to be set as CustomScreen to ensure it isn't classed as a "visitor" window, for reasons not fully understood. 2013-03-20 08:28:08 +00:00
Chris Young
22c7c1259b We are opening on a public screen, not a custom screen (even our own screen is a public screen) 2013-03-20 08:22:03 +00:00
Michael Drake
dd704c2c43 Fix can paste/copy tests. 2013-03-18 23:06:06 +00:00
Chris Young
20e4bdadaf Support old picture.datatype 2013-03-09 15:29:30 +00:00
Michael Drake
037beb44fb Pass caret clip rect out to front ends. (Nothing actually using them yet.) 2013-03-05 22:54:51 +00:00
Chris Young
cd25e581cf Fix drag saving text selections 2013-02-22 21:03:52 +00:00
Chris Young
5d34d48a4b Remove obsolete ami_selection_to_text 2013-02-22 19:06:13 +00:00
Chris Young
4d9b674997 Remove struct selection from ami_file_save and anywhere that feeds into it 2013-02-22 19:02:58 +00:00
Michael Drake
8195113196 More fixup for new core selection treatment. 2013-02-22 14:08:24 +00:00
Michael Drake
8a4bfc537f Update for new core selection stuff. Save handling still needs fixing. Core now gives a char * that the front end should free. 2013-02-22 13:46:01 +00:00
Michael Drake
67c6046fb1 Update for new core selection handling. 2013-02-22 13:37:11 +00:00
Chris Young
5a307b5fa5 remove alloc.c 2013-02-21 23:51:40 +00:00
Chris Young
a89148332f Remove this; it's worse in real-life situations than the buggy newlib version. 2013-02-21 23:49:39 +00:00
Chris Young
28ddfb27c4 Deactivate alloc replacement; it refuses to work when other libs are involved. Replacing the relevant malloc/realloc/free triplets in textarea.c does appear to work with the replacement, however. 2013-02-21 23:15:46 +00:00
Chris Young
70df2d197d Attempt replacement of memory allocation functions with primitive working alternatives 2013-02-21 23:10:36 +00:00
Chris Young
486593df35 memory leak 2013-02-20 20:28:07 +00:00
Chris Young
5beca9d71f Remove spurious error message after closing About 2013-02-18 18:39:31 +00:00
Chris Young
a86ff2ac2c Add missing flag 2013-02-18 16:24:58 +00:00
Vincent Sanders
15d39c6ebf fix remaining errors introduced in refactor 2013-02-18 13:05:23 +00:00
Vincent Sanders
0eb0798873 fix errors introduced in refactor 2013-02-18 12:24:49 +00:00
Vincent Sanders
529ca251fc rename flags for browser_window routines to be shorter 2013-02-18 11:51:42 +00:00
Vincent Sanders
b112dec78d change browser_window_create and refactor all callsites 2013-02-18 11:23:48 +00:00
Vincent Sanders
3bfb5b96a7 browser_window_navigate refactor 2013-02-18 11:23:27 +00:00
Chris Young
c545bb4b42 Identify JavaScript by extension as a fallback 2013-02-15 23:38:27 +00:00
Chris Young
05969e52ef Set default JavaScript icon to report correct MIME type 2013-02-15 23:28:46 +00:00
Chris Young
8da8f14396 More logical splitting code 2013-02-15 16:51:50 +00:00
Chris Young
9fe2873f04 rationalise the removal of the box redraw queue 2013-02-13 20:23:17 +00:00
Chris Young
1809143ff3 Implement triple-click 2013-02-12 19:12:14 +00:00
Chris Young
d25fd5fb6c Set the split point to the end of the line if the entire string fits in the allocated space 2013-02-12 00:21:56 +00:00
Chris Young
d78777276c Bring nsfont_split up to core expectations. Slightly bodged. 2013-02-10 23:24:04 +00:00
Chris Young
af3ef0fb41 Queue fast scroll redraws same as any other box redraw 2013-02-10 12:13:39 +00:00
Chris Young
a853194c1d Correct SSL certificate accept/reject messages name 2013-02-06 20:00:46 +00:00
Chris Young
02115a8958 Optimise box redraws some more by discarding simple subsets 2013-02-06 18:44:41 +00:00
Chris Young
7c671378aa Don't add the same box redraw to the queue more than once 2013-02-05 19:44:21 +00:00
Chris Young
9c7031143f Use last known scroll pos, not current 2013-02-03 22:19:31 +00:00
Chris Young
b704ad3e88 Correct fast scroll co-ordinates 2013-02-03 19:30:11 +00:00
Chris Young
4c27d6dd8e Ensure scale can be accssed from the keyboard 2013-02-03 19:14:25 +00:00
Chris Young
34f1e427f9 Un-fix scaled box redraw, as it cause more problems than it solves 2013-02-03 19:10:30 +00:00
Chris Young
ccaeced4bf Make fast scroll code easier to read 2013-02-03 18:50:16 +00:00
Chris Young
871a8e7cba Fix scaled redraw of boxes 2013-02-03 18:21:28 +00:00
Chris Young
43fe4490d3 Defer the redraw of boxes. This fixes a redraw problem with form select menus. 2013-02-03 14:01:48 +00:00
Chris Young
89856f5592 ifdef some code that will never work under AmigaOS <4.0 2013-01-30 18:23:48 +00:00
Chris Young
7710214ec2 Remove p96EncodeColour and ensure the alpha byte is set to 0xff. 2013-01-27 23:09:26 +00:00
Chris Young
a30d51cb50 Ensure we free the same size raster that we allocated 2013-01-27 11:09:54 +00:00
Chris Young
30dfa09008 Disable help for now, as it causes the popupmenu.class deadlock again 2013-01-24 20:16:35 +00:00
Chris Young
12890d3c60 Attempt fix screen close problem 2013-01-24 20:08:59 +00:00
Chris Young
f058e98817 Added more pages to AmigaGuide doc 2013-01-24 20:01:27 +00:00
Chris Young
18091ec1a9 Add basic context-sensitive help. 2013-01-24 20:00:09 +00:00
Chris Young
db71ffc8ea AmigaGuide class provided by Daniel Jedlicka 2013-01-24 19:22:01 +00:00
Chris Young
e547026dfa Copy hotlist from the pre-3.0 to the 3.0 location during install, if it exists and there isn't one present in the new location already. 2013-01-20 11:38:26 +00:00
Chris Young
f16229552a Entering the search string now find the first occurence immediately 2013-01-18 21:20:10 +00:00
Chris Young
c4e8651b27 Activate the find window's string gadget on open 2013-01-18 21:16:47 +00:00
Chris Young
3f1c2a8315 OS3 needs PBL too 2013-01-17 18:50:02 +00:00
Chris Young
78e956607f Don't busy the pointer when removing the caret - it's pointless and flickery 2013-01-15 19:23:20 +00:00
Chris Young
6975360e1c Disable compositing if simple refresh is enabled; set it back to "like WB" if simple refresh is disabled. 2013-01-13 19:19:59 +00:00
Chris Young
8625933812 Expand the damaged area rectangle by one pixel each side to stop missing lines 2013-01-13 19:11:48 +00:00
Chris Young
e7ef916b53 Prevent deadlock during simple refresh damaged area redraw 2013-01-13 19:06:51 +00:00
Chris Young
453301f961 Fix fast scroll up 2013-01-12 14:06:48 +00:00
Chris Young
d7ddfd6ac3 Make logic compare clearer 2013-01-10 22:07:11 +00:00
Chris Young
3269333658 Fix reading of clipboard 2013-01-10 00:00:51 +00:00
Chris Young
6e4c82265c Get CSET using PropChunk rather than StopChunk 2013-01-09 23:42:14 +00:00
Chris Young
6b4ab8141f Remove unused variables 2013-01-09 20:20:54 +00:00
Chris Young
f15f19f788 Convert to UTF-8 before doing length calculations (untested) 2013-01-09 18:41:53 +00:00
Chris Young
7ae27476a7 Re-implement reading the clipboard using CollectionChunk; this removes the need for an initial UTF8 chunk scan and allows the chunks to be collated before sending back to the core. Untested and length calculations ignore charset conversion. 2013-01-08 23:44:13 +00:00
Chris Young
5aae2c3ed0 Fix drag selection 2013-01-08 23:01:57 +00:00
Chris Young
d1dabbb0e2 remove gui_copy_to_clipbaord call - this needs fixing 2013-01-08 20:21:16 +00:00
Chris Young
78f3f53622 re-enable ami_drag_selection 2013-01-08 20:15:27 +00:00
Chris Young
5a43a5a1a9 fix typo 2013-01-08 20:07:46 +00:00
Chris Young
e408c9ea43 Update copy to new API (untested), pasting needs work, ami_drag_selection needs thought. 2013-01-08 19:58:44 +00:00
Chris Young
94118d22be Remove unused global 2013-01-06 11:44:37 +00:00
Chris Young
a6c6d476e2 Set the default pointer, not the busy pointer, after completing a redraw 2013-01-06 11:42:19 +00:00
Chris Young
4011cc8671 Only set the busy pointer after we've decided not to bail out early 2013-01-06 11:40:37 +00:00
Chris Young
cc321d5f63 Track the mouse pointer on a per-window basis 2013-01-06 00:21:15 +00:00
Chris Young
07024b05c4 Change the mouse pointer back to what it was (and what NetSurf thinks it is) instead of to the default pointer. Additionally don't use ami_update_pointer for treeview windows as AmigaOS has a pointer setting per window, but NetSurf is only storing the current one as a single global variable. 2013-01-03 19:53:20 +00:00
Chris Young
dfc2fe6f97 gui_window_2 var should be gwin for consistency 2013-01-03 19:32:21 +00:00
Chris Young
625012a869 Set the busy pointer during redraws 2013-01-03 19:26:51 +00:00
Vincent Sanders
484fa8b110 move common include path setup to core Makefile 2012-12-20 15:27:07 +00:00
Chris Young
8e416ec226 Ensure the menu checked state remain in sync with reality 2012-12-15 15:39:09 +00:00
Chris Young
79b1496d30 Update menu checked state 2012-12-15 15:30:26 +00:00
Chris Young
2a42b028b2 Check the checked state of the menu items a more correct way 2012-12-15 14:39:01 +00:00
Chris Young
8c74aeb6e1 Add some options to the browser menu 2012-12-15 14:21:15 +00:00
Chris Young
ea5096fb8d These values shouldn't be declared static 2012-12-15 13:43:05 +00:00
Chris Young
08cb5a09b2 Work around a speedbar.gadget layout bug 2012-12-15 13:39:40 +00:00
Vincent Sanders
c87cbe5655 split target defaults out 2012-12-13 19:26:24 +00:00
Vincent Sanders
45906b9dc2 make macro name more correct 2012-12-13 16:31:05 +00:00
Chris Young
ec7389a18f Update the current pressed qualifier keys at every RAWKEY event, as the update doesn't work during IDCMP_IDCMPUPDATE 2012-12-10 20:26:40 +00:00
Chris Young
47579b468c Add dither quality options to GUI 2012-12-09 21:57:58 +00:00
Chris Young
589c8a28a4 Add simple refresh option to GUI 2012-12-09 21:45:12 +00:00