Commit Graph

32 Commits

Author SHA1 Message Date
Vincent Sanders
c105738fa3 Change LOG() macro to be varadic
This changes the LOG macro to be varadic removing the need for all
callsites to have double bracketing and allows for future improvement
on how we use the logging macros.

The callsites were changed with coccinelle and the changes checked by
hand. Compile tested for several frontends but not all.

A formatting annotation has also been added which allows the compiler
to check the parameters and types passed to the logging.
2015-05-28 16:08:46 +01:00
Vincent Sanders
9fde3502b6 doxygen cleanups in utils 2014-11-12 23:27:13 +00:00
Vincent Sanders
ac70da346c Update the RISC OS frontend to cope with split operations table headers 2014-10-16 22:33:44 +01:00
Michael Drake
910efb0156 Scope reduce several variables. 2014-05-30 23:57:04 +01:00
Steve Fryatt
0114cc825d Provide a dedicated interface for destroying open menus.
Add ro_gui_menu_destroy(), so that this specific task does not share the same code as the more general task of tidying up after menus have been closed by other means.
The original ro_gui_menu_closed() now simply cleans up from a known (or assumed) closure, without forcing a closure itself.
2014-01-29 16:54:34 +00:00
Steve Fryatt
849bb5911c Don't poll when converting a menu to a dialogue, as the resulting Message_MenusDeleted no longer kills any newly-opened menus. 2014-01-28 23:59:51 +00:00
Vincent Sanders
54b7482f78 fix up riscos build errors 2014-01-16 14:28:25 +00:00
Steve Fryatt
a00e0f91c7 Move all mouse tracking into ro_mouse module.
Add Pointer Entering Window events to wimp_event module and add handlers to all modules requiring mouse tracking.
Updated: Treeview, URL Complete, History and GUI Window.
Delete all handling for Pointer Entering/Leaving from ro_gui.
2013-09-08 11:55:21 +01:00
Steve Fryatt
80249f5f2a Make scroll event handling module specific.
svn path=/trunk/netsurf/; revision=13285
2011-12-17 17:31:35 +00:00
Steve Fryatt
cd9c0998e9 Merge branches/stevef/toolbars to trunk.
svn path=/trunk/netsurf/; revision=11741
2011-02-20 23:16:33 +00:00
Steve Fryatt
3529ead319 Restore toolbar menus in RO treeview windows.
svn path=/trunk/netsurf/; revision=10908
2010-10-24 23:17:21 +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
John Mark Bell
fbec0d96c9 Another wimp_window_state->wimp_open conversion.
Avoid aliasing an int ** and a void **.

svn path=/trunk/netsurf/; revision=6946
2009-03-27 17:54:33 +00:00
John Mark Bell
be6d60c555 Squash warning
svn path=/trunk/netsurf/; revision=6906
2009-03-27 01:11:52 +00:00
John Tytgat
c40fc354b3 - Teached ro_gui_set_icon_string() and ro_gui_get_icon_string() about the difference between direct and indirect icons.
- ro_gui_get_icon_string(): 
    - Constify return value of ro_gui_get_icon_string() as you really shouldn't change its contents via this pointer.
    - Enfore NUL string termination as return value (instead of other control char termination) 
- Merged ro_gui_set_icon_string_le() into ro_gui_set_icon_string() by adding ro_gui_set_icon_string() and extra to_utf8 parameter.
- ro_gui_strncmp(): added

svn path=/trunk/netsurf/; revision=4907
2008-08-05 01:23:04 +00:00
John Tytgat
5f6c2cbff7 - Compiler warning squash
- Changed a lineending \n\r -> \n for a couple of files.
- More code style conformance.

svn path=/trunk/netsurf/; revision=4762
2008-07-26 22:29:15 +00:00
John Mark Bell
b15a6af3d2 s/wchar_t/uint32_t/g
We always assumed that the keycode type was 32bits wide, anyway. wchar_t isn't guaranteed to be that big, so isn't remotely portable.

svn path=/trunk/netsurf/; revision=4165
2008-05-16 09:37:22 +00:00
Vincent Sanders
2f864eeecc Update all source code file headers to reflect GPL version 2 only and contain appropriate licence text
svn path=/trunk/netsurf/; revision=3486
2007-08-08 16:16:03 +00:00
Daniel Silverstone
6807b4208a Remove the netsurf/ from the include paths and rationalise use of <> vs "" in includes
NetSurf includes are now done with ""s and other system includes with <>s as C intended.
The scandeps tool has been updated to only look for ""ed includes, and to verify that the
files exist in the tree before adding them to the dependency lines. The depend rule has
therefore been augmented to make sure the autogenerated files are built before it is run.

This is untested under self-hosted RISC OS builds. All else tested and works.


svn path=/trunk/netsurf/; revision=3307
2007-05-30 22:39:54 +00:00
Richard Wilson
933c642019 Call close function for submenu windows.
svn path=/trunk/netsurf/; revision=3226
2007-03-26 20:33:50 +00:00
Richard Wilson
e5129294c0 Call close functions when automatically closing child windows and when automatically handlign Cancel buttons.
svn path=/trunk/netsurf/; revision=3225
2007-03-26 12:28:19 +00:00
Michael Drake
ba23e4b693 Update project URL.
svn path=/trunk/netsurf/; revision=3073
2006-11-27 15:35:18 +00:00
Richard Wilson
d5540f344d Finish event based GUI system transiton and begin code cleanup.
svn path=/trunk/netsurf/; revision=2923
2006-09-06 14:46:18 +00:00
Richard Wilson
54950fad08 Add missing include
svn path=/trunk/netsurf/; revision=2763
2006-07-16 14:09:37 +00:00
John Mark Bell
25501c695e Centralise keypress handling (download and query dialogs still need porting over to wimp_event)
Make core browser window invalidate caret callback on mouse clicks

svn path=/trunk/netsurf/; revision=2746
2006-07-13 21:57:35 +00:00
John Mark Bell
5adef63ac5 Localise configure icon strings when appropriate.
Fix gright menu handling - now writes into display field without 
attempting to localise the selection string - it's already localised.
Update German Messages file appropriately.

svn path=/trunk/netsurf/; revision=2638
2006-06-20 21:35:33 +00:00
Adrian Lees
158b6e1835 [project @ 2006-02-01 17:34:36 by adrianl]
Use hash table for faster access to event_windows

svn path=/import/netsurf/; revision=2051
2006-02-01 17:34:36 +00:00
Richard Wilson
e87907a76d [project @ 2006-01-03 01:38:20 by rjw]
Remove redundant code.

svn path=/import/netsurf/; revision=1973
2006-01-03 01:38:20 +00:00
Richard Wilson
9fb14f4d93 [project @ 2006-01-02 15:57:55 by rjw]
Only pass on selection changes.

svn path=/import/netsurf/; revision=1950
2006-01-02 15:57:55 +00:00
Richard Wilson
053793f851 [project @ 2006-01-02 04:08:11 by rjw]
Automatically tick selected items. Add menu selection handler.

svn path=/import/netsurf/; revision=1940
2006-01-02 04:08:11 +00:00
Richard Wilson
178c2f62fd [project @ 2006-01-02 00:16:47 by rjw]
Move the caret out of shaded icons on _restore

svn path=/import/netsurf/; revision=1934
2006-01-02 00:16:47 +00:00
Richard Wilson
251763331d [project @ 2005-12-31 04:06:40 by rjw]
Automated WIMP event handling functions.

svn path=/import/netsurf/; revision=1904
2005-12-31 04:06:40 +00:00