FLTK logo

STR #2402

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]

Return to Bugs & Features | Post Text | Post File | SVN ⇄ GIT | Prev | Next ]

STR #2402

Application:FLTK Library
Status:5 - New
Priority:1 - Request for Enhancement, e.g. asking for a feature
Scope:3 - Applies to all machines and operating systems
Subsystem:Core Library
Summary:Widget Associations
Created By:Andreas
Assigned To:Unassigned
Fix Version:Unassigned
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

Post File ]
Name/Time/Date Filename/Size  
#1 Andreas
03:25 Jul 18, 2010
#2 Andreas
04:22 Jul 25, 2010
#3 mingodad
03:36 Jul 26, 2010
#4 Andreas
11:13 Jul 28, 2010

Trouble Report Comments:

Post Text ]
Name/Time/Date Text  
#1 Andreas
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
#2 Andreas
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.
#3 mingodad
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.
#4 Andreas
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.
#5 Andreas
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...
#6 matt
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 ]


Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.