Re: [fltk.bugs] [MOD] STR #2795: Fl_Tree: needs to be optimized to handle very large contents (10000)

2012-04-12 Thread Domingo Alvarez Duarte
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR Pending] Link: http://www.fltk.org/str.php?L2795 Version: 1.3-current Fix Version: 1.4-feature (r9232) Fl_Tree is drawing all it's nodes even when they are not visible, with this discussion about optimizing

Re: [fltk.bugs] [MOD] STR #2795: Fl_Tree: needs to be optimized to handle very large contents (10000)

2012-04-12 Thread Domingo Alvarez Duarte
Also would be a nice feature to allow inheritance of Fl_Tree and Fl_Tree_Item, actually Fl_Tree do not allow insertion of custom Fl_Tree_Items, also support for virtual widgets instead of one widget per node. ___ fltk-bugs mailing list

Re: [fltk.bugs] [MOD] STR #2795: Fl_Tree: needs to be optimized to handle very large contents (10000)

2012-04-12 Thread Matthias Melcher
On 12.04.2012, at 15:34, Domingo Alvarez Duarte wrote: Also would be a nice feature to allow inheritance of Fl_Tree and Fl_Tree_Item, actually Fl_Tree do not allow insertion of custom Fl_Tree_Items, also support for virtual widgets instead of one widget per node. For FLTK3, Fl_tree

Re: [fltk.bugs] [MOD] STR #2795: Fl_Tree: needs to be optimized to handle very large contents (10000)

2012-04-12 Thread Greg Ercolano
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR Pending] Link: http://www.fltk.org/str.php?L2795 Version: 1.3-current Fix Version: 1.4-feature (r9232) @Domingo: Yes, optimization in this case was wrt the tree being used to contain its native 'items', and not

Re: [fltk.bugs] [MOD] STR #2795: Fl_Tree: needs to be optimized to handle very large contents (10000)

2012-04-12 Thread Domingo Alvarez Duarte
Where is it's repository for 1.4-feature (r9232) ? And yes I tested it and it's drawing everything all the time. even when we only scroll it by only one line. Link: http://www.fltk.org/str.php?L2795 Version: 1.3-current Fix Version: 1.4-feature (r9232)

Re: [fltk.bugs] [MOD] STR #2795: Fl_Tree: needs to be optimized to handle very large contents (10000)

2012-04-12 Thread Domingo Alvarez Duarte
Do you mean something like Flu_Tree_Browser for FLU widgets ? ___ fltk-bugs mailing list fltk-bugs@easysw.com http://lists.easysw.com/mailman/listinfo/fltk-bugs

Re: [fltk.bugs] [MOD] STR #2795: Fl_Tree: needs to be optimized to handle very large contents (10000)

2012-04-12 Thread Domingo Alvarez Duarte
Also there is one static variable inside Fl_Tree::handle that is a bug waiting to wakeup if someone try to make some kind of master detail with two or more Fl_Trees: static Fl_Tree_Item *lastselect = 0; ___ fltk-bugs mailing list

Re: [fltk.bugs] [MOD] STR #2795: Fl_Tree: needs to be optimized tohandle very large contents (10000)

2012-04-12 Thread Domingo Alvarez Duarte
Fl_Tree_items are not lightweight text nodes they basically duplicate several data members of Fl_Widget so when we add an widget to it we have basically two widgets to use one right now. class FL_EXPORT Fl_Tree_Item { const char *_label; // label (memory managed)

[fltk.bugs] [LOW] STR #2822: Fl_Input UTF-8 handling

2012-04-12 Thread chris
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2822 Version: 1.3-current Using Fl_Input::insert() with real UTF-8 strings, I found the documentation and/or the functionality of the positional parameters not

Re: [fltk.bugs] [MOD] STR #2795: Fl_Tree: needs to be optimizedtohandle very large contents (10000)

2012-04-12 Thread Greg Ercolano
On 04/12/12 09:21, Domingo Alvarez Duarte wrote: Fl_Tree_items are not lightweight text nodes they basically duplicate several data members of Fl_Widget so when we add an widget to it we have basically two widgets to use one right now. I think the reason Fl_Browser (and by

Re: [fltk.bugs] [MOD] STR #2795: Fl_Tree: needs to be optimizedtohandlevery large contents (10000)

2012-04-12 Thread Greg Ercolano
On 04/12/12 12:02, Greg Ercolano wrote: Fl_Tree | |-- Fl_Tree_Item - Fl_Button |-- Fl_Tree_Item - Fl_Button |-- Fl_Tree_Item - Fl_Button ..whereas if Fl_Tree_Item derived from Fl_Widget, then you could probably create something more memory frugal, such as: Fl_Tree

Re: [fltk.bugs] [MOD] STR #2795: Fl_Tree: needs to be optimizedtohandlevery large contents (10000)

2012-04-12 Thread Domingo Alvarez Duarte
For comparison sizeof(Flu_Tree_Browser) = 92 , sizeof(Flu_Tree_Browser::Node) = 92 and they have a lot of functionality and facilities to query tree nodes. ___ fltk-bugs mailing list fltk-bugs@easysw.com

Re: [fltk.bugs] [MOD] STR #2795: Fl_Tree: needs to be optimizedtohandlevery large contents (10000)

2012-04-12 Thread Domingo Alvarez Duarte
And I'm testing Flu_Browser_Tree and it only draws (call draw) on nodes that are visible on the viewport. ___ fltk-bugs mailing list fltk-bugs@easysw.com http://lists.easysw.com/mailman/listinfo/fltk-bugs

[fltk.bugs] [LOW] STR #2823: Fl_Preferences unecessary setting of dirty attribute

2012-04-12 Thread Andrzej Popowski
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2823 Version: 1.3-current Class Fl_Preferences uses to overwrite preferences file even when data is not changed. Simple reading preferences can result in writing to file.

Re: [fltk.bugs] [MOD] STR #2795: Fl_Tree: needs to beoptimizedtohandlevery large contents (10000)

2012-04-12 Thread Greg Ercolano
On 04/12/12 13:40, Domingo Alvarez Duarte wrote: For comparison sizeof(Flu_Tree_Browser) = 92 , sizeof(Flu_Tree_Browser::Node) = 92 and they have a lot of functionality and facilities to query tree nodes. Sorry, but I don't know what to do about that. I take it you think

Re: [fltk.bugs] [MOD] STR #2795: Fl_Tree: needs to beoptimizedtohandlevery large contents (10000)

2012-04-12 Thread Greg Ercolano
On 04/12/12 13:54, Domingo Alvarez Duarte wrote: And I'm testing Flu_Browser_Tree and it only draws (call draw) on nodes that are visible on the viewport. Yes, sounds like they have that optimization is in that widget already, which might be useful for reference. I

Re: [fltk.bugs] [MOD] STR #2795: Fl_Tree: needs to beoptimizedtohandlevery large contents (10000)

2012-04-12 Thread Domingo Alvarez Duarte
When I pointed FLU Widgets and thinking a bit about it, why not talk with it's authors and ask to include then to FLTK instead of reinventing the wheel ? I don't think they will make any objection ! ___ fltk-bugs mailing list fltk-bugs@easysw.com

Re: [fltk.bugs] [MOD] STR #2795: Fl_Tree: needs to beoptimizedtohandleverylarge contents (10000)

2012-04-12 Thread Greg Ercolano
On 04/12/12 14:34, Greg Ercolano wrote: On 04/12/12 13:40, Domingo Alvarez Duarte wrote: For comparison sizeof(Flu_Tree_Browser) = 92 , sizeof(Flu_Tree_Browser::Node) = 92 and they have a lot of functionality and facilities to query tree nodes. I just pulled FLU 2.14 (*) on my

Re: [fltk.bugs] [MOD] STR #2795: Fl_Tree: needs to beoptimizedtohandleverylarge contents (10000)

2012-04-12 Thread Domingo Alvarez Duarte
Looking again at the program I've got the sizeof numbers I did a mistake because it printed more numbers together: Flu_Tree_Browser = 524 Flu_Tree_Browser::Node = 92 I was thinking of only have the minimun on an Fl_Tree_item and derived ones to each specific task. Lets say: class

Re: [fltk.bugs] [MOD] STR #2795: Fl_Tree: needs to beoptimizedtohandleverylarge contents (10000)

2012-04-12 Thread Domingo Alvarez Duarte
And doing the last example I realized that the field Fl_Tree_Item_Array _children;// array of child items probably should be a pointer instead, because most of the entries on a tipical tree do not have childreen, and in taht case it will be a null pointer.

Re: [fltk.bugs] [MOD] STR #2795: Fl_Tree: needs tobeoptimizedtohandlevery large contents (10000)

2012-04-12 Thread Greg Ercolano
On 04/12/12 15:35, Domingo Alvarez Duarte wrote: When I pointed FLU Widgets and thinking a bit about it, why not talk with it's authors and ask to include then to FLTK instead of reinventing the wheel ? ..because Fl_Tree has already been written and merged, and FLU is

Re: [fltk.bugs] [MOD] STR #2795: Fl_Tree: needs tobeoptimizedtohandleverylarge contents (10000)

2012-04-12 Thread Greg Ercolano
On 04/12/12 17:26, Domingo Alvarez Duarte wrote: I was thinking of only have the minimun on an Fl_Tree_item and derived ones to each specific task. Lets say: class Fl_Tree_Item { char_open; // item is open? char_visible;

Re: [fltk.bugs] [MOD] STR #2795: Fl_Tree: needs to be optimized tohandlevery large contents (10000)

2012-04-12 Thread Greg Ercolano
Greg Ercolano wrote: Domingo Alvarez Duarte wrote: static Fl_Tree_Item *lastselect = 0; Yes, thanks for pointing it out. It's not quite a bug so much as a 'carefully applied fix' to avoid breaking ABI. [..] Since that code was added, we now have a way to