Commit Graph

5471 Commits

Author SHA1 Message Date
Steve Fryatt 2820ff0d6f Use dashed boxes for treeview drags.
svn path=/trunk/netsurf/; revision=11095
2010-12-19 10:45:13 +00:00
Steve Fryatt 6cc0f1b24b Give macro expansion less potential for ambiguity.
svn path=/trunk/netsurf/; revision=11094
2010-12-19 10:33:14 +00:00
Chris Young de5cbf9ee4 Make drag scrolls work more reliably and only within 10px of render area
svn path=/trunk/netsurf/; revision=11093
2010-12-18 23:34:56 +00:00
Michael Drake 75c82c33e6 Draw tree background when there are no nodes.
svn path=/trunk/netsurf/; revision=11092
2010-12-18 16:35:52 +00:00
Chris Young 00a18370e0 Stop empty mouse events being reported, remove spurious extra button presses
svn path=/trunk/netsurf/; revision=11091
2010-12-17 20:30:50 +00:00
Steve Fryatt cef10de11b Don\'t pass spurious drag event data to the core treeview.
svn path=/trunk/netsurf/; revision=11090
2010-12-17 17:13:34 +00:00
Michael Drake d5b18c69fd Take some calculations out of line redraw loop and fix rounding error.
svn path=/trunk/netsurf/; revision=11089
2010-12-17 14:11:06 +00:00
Michael Drake 74ecfe0036 Simplify text plot position calc.
svn path=/trunk/netsurf/; revision=11088
2010-12-17 14:07:33 +00:00
Michael Drake a01f9508b0 Base treeview line height on text height, unless that's too small for the icon to fit.
svn path=/trunk/netsurf/; revision=11087
2010-12-17 13:32:43 +00:00
Rob Kendrick 4f03905955 Move setting of the CSS DPI to before any treeviews are created, from when the first browser window is created.
svn path=/trunk/netsurf/; revision=11086
2010-12-17 13:07:38 +00:00
Michael Drake bb4bda0b3a When a hotlist entry edit ends by cancelling, rather than confirming the change, end the whole edit and don't pass onto next element for edit.
svn path=/trunk/netsurf/; revision=11085
2010-12-17 11:10:22 +00:00
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