Greg Ercolano wrote: > Alvin wrote: >> I wonder though, when dealing with URLs as the payload, would it be >> appropriate for the FLTK DND system to massage the URL into some standard >> FLTK form. For example, fl_dnd_x.cxx::Fl::dnd() does some checking to see >> if the URI is a "common URI scheme". > > One thing to keep in mind is FLTK apps can communicate to each other > with free form text strings through DND which are not URIs. So > wouldn't want that as "default" behavior. > > Could maybe be a separate fl_uri_convert_dnd() or some such that > could post process the DND string, as long as it doesn't bring in > a dependency on external libs (like iconv(3)). > > Sometimes FLTK allows external dependencies as compile-time options.. > but it gets tough for support. Sometimes it's best to let the app folks > figure out how to deal with such things, or with external packages. > > When external package starts looking stable, and like it should really > be brought into FLTK, the core dev folks will consider it.
That sounds like a good idea. Perhaps, for now, articles on the topic would be best. When someone searches fltk.org or posts to the newsgroup, they can be pointed to the article? If the article(s) meet fltk documentation standards, they can be included in the FLTK Manual? As for fl_uri_convert_dnd(), could that just support ASCII instead of the other character sets? Then, with UTF-8 fork of fltk could add UTF-8 support, etc.? I haven't tried the UTF-8 fork of fltk yet, but from the name, I would assume (as someone with no direct UTF-8 specific experience) that that fork would do all the "magic" for me (?). Personally, I'm very excited about DND support. I have been using the Fl_DND_Box widget concept and adding it to my existing apps and designing into any new apps. To me, apps with DND support are easier to use, from a novice perspective, and just seem all around more polished. I have been toying around with the idea of a Fl_DND_Group. My idea is that it acts just like Fl_Group with the one exception that it does the DND handshaking and passes the DND payload/FL_PASTE event to the widget under the cursor. I haven't done much on it though as I'm still trying to figure out the details. I got the idea from the Fl_Table_Group widget I made which extended your Fl_Table_Row. The idea behind that was that I dump widgets into the Fl_Table_Group and it would do the table display. I'm just about ready to release a MTP file browser that heavily uses the Fl_Table_Group. Once I do, I will post here and you can see what I'm gabbing on about. Cheers, -- Alvin _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

