Commit Graph

143 Commits

Author SHA1 Message Date
Vincent Sanders 1490b52a6b NetSurf options rework (a=vince r=daniels,jmb)
svn path=/trunk/netsurf/; revision=13548
2012-03-22 09:34:34 +00:00
Michael Drake 075c18b27d Redraw old width after deletion too.
svn path=/trunk/netsurf/; revision=13340
2011-12-24 09:54:51 +00:00
Michael Drake 9a44d4b535 Delete comment that seems incorrect.
svn path=/trunk/netsurf/; revision=13307
2011-12-20 14:51:47 +00:00
Michael Drake 8fc3baa48d When deleting multiple treeview nodes, don't redraw after every node is deleted, only after the whole lot has gone. (Much faster.) Fix redraw to clear bottom of treeview after deleting nodes.
svn path=/trunk/netsurf/; revision=13306
2011-12-20 14:46:29 +00:00
Chris Young d169eefe59 Allow new (blank) hotlist entries to be created in the currently-selected folder
(if there is one) as this gives the user more control where their additions are
being created.
Functionality can be enabled/disabled by passing true/false to
hotlist_add_folder/hotlist_add_entry.

svn path=/trunk/netsurf/; revision=13185
2011-11-27 20:07:26 +00:00
Chris Young dd267bd90a Trap RMB and select the node under the pointer if no other node selected
svn path=/trunk/netsurf/; revision=13146
2011-11-11 13:09:12 +00:00
Chris Young ee58cd0ea0 fix redraw
svn path=/trunk/netsurf/; revision=13143
2011-11-10 14:02:37 +00:00
Chris Young a8471a9343 Make default folder appear different (redraw seems to be broken at present)
svn path=/trunk/netsurf/; revision=13142
2011-11-10 13:47:24 +00:00
Chris Young dd6d1ce527 Make default hotlist folder persistent across sessions
svn path=/trunk/netsurf/; revision=13141
2011-11-10 13:07:47 +00:00
Chris Young 0b6e5da662 Allow setting a default folder in the tree for hotlist entries to go into. Frontends
will need to be updated to use hotlist_set_default_folder() if they want to use this
functionality.

svn path=/trunk/netsurf/; revision=13139
2011-11-10 12:22:48 +00:00
Michael Drake 36eff6da2b Port more internals to nsurl. Front ends may need updating.
svn path=/trunk/netsurf/; revision=12926
2011-10-03 15:56:47 +00:00
Michael Drake 24110be310 Fix treeview deselection redraw issue.
svn path=/trunk/netsurf/; revision=12662
2011-08-24 15:03:02 +00:00
Chris Young 4364b280e7 Revert accidental change
svn path=/trunk/netsurf/; revision=12631
2011-07-28 19:29:43 +00:00
Chris Young 0979992f83 Fix memory leak
svn path=/trunk/netsurf/; revision=12630
2011-07-28 19:29:03 +00:00
John Mark Bell 63cc03a5dc Fix GCC 4.6 warnings in core
svn path=/trunk/netsurf/; revision=12629
2011-07-26 21:30:38 +00:00
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
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
Michael Drake ba23e4b693 Update project URL.
svn path=/trunk/netsurf/; revision=3073
2006-11-27 15:35:18 +00:00
Richard Wilson 0309e937e6 Allow the user to delete cookies.
svn path=/trunk/netsurf/; revision=2770
2006-07-16 21:42:37 +00:00
Richard Wilson 2ebc9d2c50 Slightly improve positioning of lists.
svn path=/trunk/netsurf/; revision=2759
2006-07-16 00:40:13 +00:00
Richard Wilson 00d74fdd2d Allow the viewing of the entire SSL certificate chain.
svn path=/trunk/netsurf/; revision=2755
2006-07-16 00:21:15 +00:00
Richard Wilson 546bf17a7f Add relevent extensions to allow treeviews to be used as an embedded list component.
svn path=/trunk/netsurf/; revision=2753
2006-07-15 15:39:33 +00:00
John Mark Bell 4c564c28bf Display session cookies' expiry correctly
Fix urldb debug build
Fix GTK build's cookie_update API

svn path=/trunk/netsurf/; revision=2752
2006-07-15 11:59:25 +00:00
Richard Wilson a836591435 Add basic cookie viewer, make trees use textarea components for UTF8 editing, trim headers, fix tree redraw issues.
svn path=/trunk/netsurf/; revision=2739
2006-07-13 12:46:02 +00:00
John Mark Bell 691087a534 Fix crash when deleting directories
svn path=/trunk/netsurf/; revision=2533
2006-04-15 18:52:06 +00:00
John Mark Bell e0ba508992 Store URLs explicitly in URL database for faster access.
Iteration callbacks now passed url_data struct to remove need to look up

svn path=/trunk/netsurf/; revision=2522
2006-04-11 02:39:55 +00:00
John Mark Bell c09eb457df Unify information databases
svn path=/trunk/netsurf/; revision=2519
2006-04-09 23:21:13 +00:00
Richard Wilson d586f64316 [project @ 2006-01-06 13:25:29 by rjw]
Update last child reference on delinking. This will fix the bug where parts of the tree became inaccessible after insertion.

svn path=/import/netsurf/; revision=1992
2006-01-06 13:25:29 +00:00
Richard Wilson 17d7880bf9 [project @ 2006-01-06 12:50:37 by rjw]
Stop hotlist being lost on QUIT.

svn path=/import/netsurf/; revision=1990
2006-01-06 12:50:37 +00:00
Richard Wilson 2054391345 [project @ 2006-01-06 02:56:00 by rjw]
Stop slight tree redraw errors from wrapping of 16-bit units. Pass the data to update URL tree nodes to where applicable.

svn path=/import/netsurf/; revision=1988
2006-01-06 02:56:00 +00:00
Richard Wilson a1c3e05e0a [project @ 2006-01-04 22:40:36 by rjw]
Don't allow folders to be launched.

svn path=/import/netsurf/; revision=1981
2006-01-04 22:40:36 +00:00
Richard Wilson e9601cb35a [project @ 2006-01-01 17:00:56 by rjw]
Optimise node element creation.

svn path=/import/netsurf/; revision=1927
2006-01-01 17:00:56 +00:00
Richard Wilson b02995aed9 [project @ 2006-01-01 15:46:43 by rjw]
Deleting from the global history resets URL data

svn path=/import/netsurf/; revision=1926
2006-01-01 15:46:43 +00:00
John Mark Bell 6916d94356 [project @ 2005-12-31 06:17:36 by jmb]
Optimise degenerate trees by storing child tail pointer

svn path=/import/netsurf/; revision=1924
2005-12-31 06:17:36 +00:00
Richard Wilson 39e41ea386 [project @ 2005-12-31 04:37:56 by rjw]
Read URL data from url_store. Scroll items into view when expanding.

svn path=/import/netsurf/; revision=1914
2005-12-31 04:37:57 +00:00
Richard Wilson b88a81b9d9 [project @ 2005-06-23 17:22:28 by rjw]
Allow images to be unloaded to disk or compressed in memory. Provide thumbnails in all tree windows (hotlist, history). Optimise the application initialisation times. Part 1 of 2.

svn path=/import/netsurf/; revision=1761
2005-06-23 17:22:28 +00:00
Richard Wilson c3b1d286c3 [project @ 2005-06-13 20:41:28 by rjw]
Only reset hotlist statistics for selected items

svn path=/import/netsurf/; revision=1748
2005-06-13 20:41:28 +00:00
Richard Wilson dfdf4741f8 [project @ 2005-03-20 23:02:00 by rjw]
URL nodes without a title use the associated URL.

svn path=/import/netsurf/; revision=1563
2005-03-20 23:02:00 +00:00
Richard Wilson acb914b90a [project @ 2005-02-08 23:34:56 by rjw]
Implement nodes being retained in memory after deletion, stop nodes being able to be moved within themselves.

svn path=/import/netsurf/; revision=1507
2005-02-08 23:34:56 +00:00
Richard Wilson b6ba963b9a [project @ 2005-01-27 22:54:59 by rjw]
Recursing deleted nodes is foolish

svn path=/import/netsurf/; revision=1472
2005-01-27 22:54:59 +00:00
Richard Wilson 8de8b08371 [project @ 2004-12-16 14:12:04 by rjw]
Fix for bug when deleting an expanded tree node. JNG/PNG opacity is now tested during the first plot.

svn path=/import/netsurf/; revision=1405
2004-12-16 14:12:04 +00:00
Richard Wilson 57fbde93e6 [project @ 2004-12-13 13:48:56 by rjw]
Fix hotlist dragging inconsitency.

svn path=/import/netsurf/; revision=1402
2004-12-13 13:48:56 +00:00
Richard Wilson 32db7e04d0 [project @ 2004-12-09 10:30:43 by rjw]
Re-implementation of hotlist via general tree code. Animations can be stopped once more. Purged a few xcalloc() calls.

svn path=/import/netsurf/; revision=1394
2004-12-09 10:30:44 +00:00