[ Return to Bugs & Features | Post Text | Post File | Prev | Next ]
|Status:||5 - New|
|Priority:||1 - Request for Enhancement, e.g. asking for a feature|
|Scope:||3 - Applies to all machines and operating systems|
Trouble Report Files:
[ Post File ]
Trouble Report Comments:
[ Post Text ]
03:25 Jul 18, 2010
|Make it possible to attach multiple arbitrary data-blocks to widgets. |
There are 2 patches attached:
wa_basis.diff contains the basic infrastructure
wa_tooltip.diff contains an example where the tooltip pointer is removed from the widget base class and replaces by an association
See forum discussion (first entry 11.7.2010) for further information
04:25 Jul 25, 2010
|I just posted an update for the patch. It no longer contains the tooltips example, but a widget layouter as a more complicated example. |
I renamed the functions to set_assoc, ...
I removed functions that are only needed when attaching multiple data pointers of the same type. It is now only possible to append exactly one pointer per association type.
The foreach helper functions are gone, making the interface a another bit smaller
Doxygen comments should be more in line with the coding style of fltk.
03:33 Jul 26, 2010
|Layouter_example is a nice example, although it has some problems: |
For Fl_input it doesn't resize properly when the textsize is set to a bigger one.
On Layouter there is a lot of global functions that probably should be wrapped in class/namespace.
I propose move from Fl_Table, Fl_Table_Row to Fl.H the IntVector and CharVector this way they can be used in other places like in the Layouter.
08:56 Jul 26, 2010
|Yes that is only an example that works well inside my project. |
It has many flaws, it should use the fl_height function for the height of input lines instead of a constant value... but it does work this way.
If/when the widget associations are includes, my next step will be to make the layouter ready for inclusion... That will be much more work, I fear.
11:18 Jul 28, 2010
|Hello everybody, |
I updated the patch again:
- Some more doxygen text to some of the functions
- All functions use a pointer to the Fl_Association_Type class instead of some a pointer and some a reference
- Removed the special function that got called on widget destruction. The standard remove_assoc function can handle the same case now
- Renamed the file from Fl_WidgetAssociation to Fl_Widget_Association
I do think that it should now fit all requirements and coding styles and it should also be pretty much finished...
12:52 Nov 14, 2010
|Not essential for the 1.3.0 release. Temporarily moved to 1.4 . |
I love the feature though, an dI want it in later versions!
[ Return to Bugs & Features | Post Text | Post File ]