Commit Graph

78 Commits

Author SHA1 Message Date
Chris Young
4147c185c8 When launching multiple URLs from a treeview, allow to open one window with multiple
tabs instead of one window per URL.  Make compatible frontends do this by default.

svn path=/trunk/netsurf/; revision=12552
2011-07-02 11:41:06 +00:00
Michael Drake
eddae6af06 Remove plotter table global. Pass a redraw context around redraw functions. Knockout could be handled better. Note: untested on most front ends.
svn path=/trunk/netsurf/; revision=12543
2011-06-30 15:48:07 +00:00
Michael Drake
3128ecf2a5 Unify content_redraw params in content_redraw_data struct. Core and RISC OS content handlers updated.
svn path=/trunk/netsurf/; revision=12529
2011-06-28 20:17:39 +00:00
Chris Young
861137d3b2 Disable extra logging. Here treeview init is down to ~5 seconds from ~20.
Still more room for improvement, as adding nodes appears to recalculate the widths of
all the parent nodes even though (the text and icon of) those haven't changed.

svn path=/trunk/netsurf/; revision=12463
2011-06-04 21:33:33 +00:00
Chris Young
522ddf0416 Rudimentary text width caching to speed up many duplicate "Today", "Yesterday" calcs
svn path=/trunk/netsurf/; revision=12461
2011-06-04 21:10:39 +00:00
Chris Young
48a0663999 Remove at least one instance of unnecessary recalculation
svn path=/trunk/netsurf/; revision=12460
2011-06-04 20:46:08 +00:00
Chris Young
24d0a07f8f Extra logging to track the source of node size calculations
A couple of minor changes to prevent unnecessary recalculation

svn path=/trunk/netsurf/; revision=12459
2011-06-04 20:22:24 +00:00
Vincent Sanders
8be1e85e91 consolidate content redraw
more cleanups ready for image content refactor

svn path=/trunk/netsurf/; revision=12317
2011-05-08 19:54:35 +00:00
John Mark Bell
e71691bae8 Merge branches/jmb/content-factory to trunk
svn path=/trunk/netsurf/; revision=12283
2011-05-06 20:40:09 +00:00
Michael Drake
94e7b44ebc Pass clip rect to clip plotters as struct. Simplify clip rect handling in debug window code. Pass clip rect to select menu as struct.
svn path=/trunk/netsurf/; revision=11683
2011-02-14 22:05:39 +00:00
Michael Drake
a089ad0e1d Pass clip rect to textarea redraw as struct rect.
svn path=/trunk/netsurf/; revision=11681
2011-02-14 19:26:45 +00:00
Michael Drake
fe7921a387 Pass clip rect as struct through content_redraw api. Update the front ends to use this. Note only RO build tested.
svn path=/trunk/netsurf/; revision=11670
2011-02-13 22:25:11 +00:00
Michael Drake
27b6096dcd Move stuct rect out of box.h and tree.c.
svn path=/trunk/netsurf/; revision=11647
2011-02-11 19:35:16 +00:00
Daniel Silverstone
699f0cb344 Make the tree icon dir a non-option
svn path=/trunk/netsurf/; revision=11422
2011-01-20 14:05:13 +00:00
Michael Drake
c154e7242d Fix empty tree rendering.
svn path=/trunk/netsurf/; revision=11135
2010-12-29 16:39:23 +00:00
Michael Drake
873fa857a7 Use colour options for treeview rendering.
svn path=/trunk/netsurf/; revision=11118
2010-12-21 17:01:30 +00:00
Michael Drake
1aad3b71c0 Enable knockout for tree redraw.
svn path=/trunk/netsurf/; revision=11099
2010-12-19 16:14:06 +00:00
Steve Fryatt
0bd39eed21 Allow tree drag status to reflect drags within textareas.
svn path=/trunk/netsurf/; revision=11097
2010-12-19 12:27:33 +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
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
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
Michael Drake
064c8e50d2 Improve double click handling.
svn path=/trunk/netsurf/; revision=11068
2010-12-15 23:55:39 +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
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
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
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
Chris Young
755e45028d If a drag is in progress that the tree can't handle, it is a TREE_UNKNOWN_DRAG not a
TREE_NO_DRAG, as the platform code might be able to deal with it.

svn path=/trunk/netsurf/; revision=10920
2010-10-30 10:43:14 +00:00
Chris Young
f2c834ac51 Only set TREE_MOVE_DRAG is the tree is TREE_MOVABLE
svn path=/trunk/netsurf/; revision=10919
2010-10-30 09:23:03 +00:00
Chris Young
25e9b79f5c Allow getting the tree's drag property. This ensures we can see whether the current
drag is something we might need to display an icon for.

svn path=/trunk/netsurf/; revision=10917
2010-10-29 17:40:36 +00:00
Chris Young
c5b9e45960 Make CR also stop and save tree edits
svn path=/trunk/netsurf/; revision=10892
2010-10-17 13:00:51 +00:00
Steve Fryatt
73cf86e437 - Request correct redraw area when changing a node's size in tree_handle_node_changed().
- Update parameter documentation to match function definitions.

svn path=/trunk/netsurf/; revision=10876
2010-10-10 09:10:44 +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
Vincent Sanders
bd6c884020 Fix up confusing formatting
svn path=/trunk/netsurf/; revision=10586
2010-06-28 11:31:51 +00:00
John Mark Bell
73a89e8a0f Lose redundant variable.
Ensure name_t is used in tree_delete_node_internal()

svn path=/trunk/netsurf/; revision=7609
2009-05-28 16:16:16 +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
James Bursa
d8b810b46b Bug fixes by Franz Korntner.
svn path=/trunk/netsurf/; revision=3636
2007-10-28 17:05:39 +00:00