Michael Drake
46b7691522
Start rationalising textarea widget.
2013-01-05 14:52:02 +00:00
Michael Drake
c8263d299e
Tree can't be NULL.
2012-10-11 14:06:48 +01:00
Michael Drake
8fabc6119c
Use gui_ interface to get system colours, rather than nosoption_.
...
svn path=/trunk/netsurf/; revision=13736
2012-03-27 10:34:38 +00:00
Chris Young
103c8703ec
Expose tree_setup_colours so it can be called from frontends if the system
...
colour scheme changes.
svn path=/trunk/netsurf/; revision=13730
2012-03-26 21:13:00 +00:00
Michael Drake
7831fda94d
Use system colours for treeview. Front ends must be updated to set them.
...
svn path=/trunk/netsurf/; revision=13705
2012-03-25 18:52:58 +00:00
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