Commit Graph

5460 Commits

Author SHA1 Message Date
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
Chris Young
ddd677e72a Copy shared libraries too
svn path=/trunk/netsurf/; revision=11082
2010-12-16 23:04:30 +00:00
Steve Fryatt
689123822a Apply simple weighted averaging to download rate calculations.
svn path=/trunk/netsurf/; revision=11081
2010-12-16 22:09:10 +00:00
Michael Drake
d2b8d00cd3 Remove redundant code from drag browser_mouse_state setup.
svn path=/trunk/netsurf/; revision=11080
2010-12-16 21:38:42 +00:00
Michael Drake
ccdafcc4d7 Document RISC OS front end's setup of browser_mouse_state.
svn path=/trunk/netsurf/; revision=11079
2010-12-16 21:33:19 +00:00
Michael Drake
4960449811 Don't require CTRL or ALT for treeview window to claim input focus on click.
svn path=/trunk/netsurf/; revision=11078
2010-12-16 21:31:14 +00:00
Michael Drake
3a2df10787 Make drags less jerky.
svn path=/trunk/netsurf/; revision=11077
2010-12-16 20:46:13 +00:00
Michael Drake
ad7283780d When we get a motion notify event, only set of a drag in the core if the mouse has moved at least 5px from where it was pressed.
svn path=/trunk/netsurf/; revision=11076
2010-12-16 20:30:10 +00:00
Michael Drake
b067265bd3 Set last_{x|y} coords on press event so they are not used uninitialised in motion_notify_event.
svn path=/trunk/netsurf/; revision=11075
2010-12-16 20:13:44 +00:00
Michael Drake
c84ab4b21e Pass adjust double clicks to the core too.
svn path=/trunk/netsurf/; revision=11074
2010-12-16 19:26:23 +00:00
John Mark Bell
bcfb508f86 User may have no handle if it was the target of an iterator when the handle was aborted
svn path=/trunk/netsurf/; revision=11071
2010-12-16 00:18:41 +00:00
Michael Drake
1248c21a0e A double click fires a click as well.
svn path=/trunk/netsurf/; revision=11070
2010-12-16 00:04:51 +00:00
John Mark Bell
c96f682d9d Fix bug #3138151: shut down caches before killing off fetch layer
svn path=/trunk/netsurf/; revision=11069
2010-12-16 00:03:57 +00:00
Michael Drake
064c8e50d2 Improve double click handling.
svn path=/trunk/netsurf/; revision=11068
2010-12-15 23:55:39 +00:00
John Mark Bell
c675c3552d Ensure that we clean up after the client even if they report an error from their notification callback.
svn path=/trunk/netsurf/; revision=11067
2010-12-15 22:59:19 +00:00
Michael Drake
a2a0e25382 Ensure mouse button press events are sent to the core for treeview type windows. Keep track of both select and adjust drags, and inform the core which is being held during a drag.
svn path=/trunk/netsurf/; revision=11066
2010-12-15 22:02:27 +00:00
Michael Drake
cbe24279f8 Don't give up on a mouse action because BROWSER_MOUSE_PRESS_{1|2} is set. The RISC OS front end sets them for action-on-button-press (rather than release) behaviour.
svn path=/trunk/netsurf/; revision=11065
2010-12-15 21:58:01 +00:00
Michael Drake
95870c95dd Give caret for alt and ctrl since both start an edit.
svn path=/trunk/netsurf/; revision=11064
2010-12-15 21:53:38 +00:00
John Mark Bell
d745dae903 Make llcache_object_user objects distinct from llcache_handles.
This allows us to be robust against clients completely changing the contents of the user list underneath us during iteration.
Fix llcache_send_event_to_users to also be robust against the user list changing under it.

svn path=/trunk/netsurf/; revision=11063
2010-12-15 21:15:49 +00:00
Michael Drake
0e56e9c21b Possible fix for issue reported by Chris Young.
svn path=/trunk/netsurf/; revision=11062
2010-12-15 19:48:59 +00:00
Michael Drake
20aedef6d8 Debug function for dumping browser_mouse_state.
svn path=/trunk/netsurf/; revision=11061
2010-12-15 18:05:25 +00:00
Michael Drake
4b64e92194 Only draw caret if there is no selection.
svn path=/trunk/netsurf/; revision=11060
2010-12-15 15:10:15 +00:00
Michael Drake
b037763e6e Position text and caret correctly in single line text area. Make caret red so it stands out for now. It should be an OS caret anyway.
svn path=/trunk/netsurf/; revision=11059
2010-12-15 14:15:43 +00:00
Michael Drake
bf4968f334 Much faster redraw of treeviews.
svn path=/trunk/netsurf/; revision=11058
2010-12-15 10:38:41 +00:00
Michael Drake
f474bc06bf Further tidy up of node redraw.
svn path=/trunk/netsurf/; revision=11057
2010-12-15 01:05:10 +00:00
Michael Drake
771b0e3b8b Pass clip rectangle around tree redraw. Update clipping area with respect to what's being plotted. Simplify tree redraw and add more comments.
svn path=/trunk/netsurf/; revision=11056
2010-12-15 00:32:37 +00:00
Vincent Sanders
f6b0a33fd2 make the history, download, hotlist and cookies initialisation actually use the generic glade file finding code instead of their own thing and erroring out.
svn path=/trunk/netsurf/; revision=11055
2010-12-14 18:54:20 +00:00
John Mark Bell
b550f27f4b Fix OpenBSD build (credit: Anthony Bentley)
svn path=/trunk/netsurf/; revision=11054
2010-12-14 08:38:20 +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
John Mark Bell
67556f54fe Always invalidate next/prev pointers
svn path=/trunk/netsurf/; revision=11052
2010-12-13 08:36:27 +00:00
John Mark Bell
c0f49a2785 Revert r11047-11050: if we remove a user from an object while it's the iterator target, the effect will be that the iteration terminates early.
Subsequent users that require notifications will simply have their notifications delayed

svn path=/trunk/netsurf/; revision=11051
2010-12-13 08:34:01 +00:00
John Mark Bell
f919b689ba Take 2: make callers of llcache_object_user_destroy invalidate next/prev pointers
svn path=/trunk/netsurf/; revision=11050
2010-12-13 08:28:22 +00:00
John Mark Bell
a5221248c2 Revert last change
svn path=/trunk/netsurf/; revision=11049
2010-12-13 08:25:54 +00:00
John Mark Bell
991472d264 Remove bogus assertions
svn path=/trunk/netsurf/; revision=11048
2010-12-13 08:24:04 +00:00
John Mark Bell
f40da966ad We cannot invalidate a user's next/prev pointers when removing it from an object, as it may be the target of iteration
svn path=/trunk/netsurf/; revision=11047
2010-12-13 08:16:32 +00:00
John Mark Bell
702c94bb30 Fix assertion: user->next may be NULL, so there's no point asserting that it isn't
svn path=/trunk/netsurf/; revision=11046
2010-12-13 08:12:31 +00:00
John Mark Bell
d9f8b8949e Fix assertion to compare, and not assign
svn path=/trunk/netsurf/; revision=11045
2010-12-13 08:10:29 +00:00
John Mark Bell
650f884527 Make llcache_object_notify_users robust to the object's user list changing underneath it
svn path=/trunk/netsurf/; revision=11044
2010-12-12 23:37:21 +00:00
Michael Drake
2e249ac9e6 Set text position with respect to TREE_LINE_HEIGHT.
svn path=/trunk/netsurf/; revision=11043
2010-12-12 22:37:51 +00:00
Michael Drake
f777a58ec5 Set expansion toggle position with respect to TREE_LINE_HEIGHT.
svn path=/trunk/netsurf/; revision=11042
2010-12-12 21:24:35 +00:00
Michael Drake
d1d3a65b06 Set icon position with respect to TREE_LINE_HEIGHT.
svn path=/trunk/netsurf/; revision=11041
2010-12-12 21:13:55 +00:00
Michael Drake
eabf7e8afd Remove redundant line plots, from tree_draw_node() and add comments.
svn path=/trunk/netsurf/; revision=11040
2010-12-12 20:39:46 +00:00
Michael Drake
cff0709528 More "NetSurfy" colours. Note treeview restyling is still in progress; this will change.
svn path=/trunk/netsurf/; revision=11039
2010-12-12 16:48:26 +00:00
Michael Drake
55d9191bb5 Create some tree plot styles and use them.
svn path=/trunk/netsurf/; revision=11038
2010-12-12 16:45:41 +00:00
Michael Drake
86b8057c60 Remove pointless rectangle fill under text.
svn path=/trunk/netsurf/; revision=11037
2010-12-12 16:32:39 +00:00
Michael Drake
18b2824d6c Rename usages of "furniture" which applied to expansion toggle boxes to "expansion_toggle". Now "furniture" refers exclusively to all tree furniture. Start commenting things.
svn path=/trunk/netsurf/; revision=11036
2010-12-12 14:30:33 +00:00
Michael Drake
79b87832a4 Rename tree_draw_node_expansion() to tree_draw_node_expansion_toggle(). Pedantic wrap/indentation changes in tree_draw_node.
svn path=/trunk/netsurf/; revision=11035
2010-12-12 13:55:25 +00:00
Michael Drake
a7240fd6a9 Fix TREE_ICON_SIZE to match size of actual icons. Fix clip rectangle for icon redraw.
svn path=/trunk/netsurf/; revision=11034
2010-12-12 13:01:27 +00:00
Michael Drake
4c5a0d845c Use TREE_LINE_HEIGHT define instead of magic 20 everywhere.
svn path=/trunk/netsurf/; revision=11033
2010-12-12 12:45:12 +00:00
Michael Drake
ff9bd6540c Clearer font styles.
svn path=/trunk/netsurf/; revision=11032
2010-12-12 12:14:03 +00:00