[Gambas-devel] Feature request for TextView

Benoit Minisini gambas at ...1...
Sat Dec 16 20:00:11 CET 2006


On Saturday 16 December 2006 19:27, MV wrote:
> Hello,
>
> While toying around various widgets, I noticed what seems to be a gap
> between WebBrowser and TextView : in the webbrowser component, you can
> display images with an URL (eventually pointing at the local FS), and in a
> TextView you can only display images out of the local FS by supplying a
> hard link in the <img src=""> tag. But unless I'm making a mistake, there's
> no way to supply an image from memory to neither, and WebBrowser won't even
> display a page out of a String.
>
> I tried to look at the code, but I don't really know C++ nor Qt. What I
> understood is TextView can fetch external references embedded into a
> document from a MimeSourceFactory call, and that you can provide the
> default factory with "handles" on memory stored images for future
> reference.
>
> So I wondered if it would be extremely difficult to add any Image declared
> with a name to the default MimeSourceFactory, so that a trivial rewrite of
> the String holding the html-like text would point to the Image in memory,
> instead of requiring the use of a local disk cache ?
>
> Hope I was clear enough,

Sorry, but it is too complicated to do.

In the future, maybe it will be possible to go further, by using the 
equivalent of TextView in QT 4, and the rich text viewer of GTK+.

What is the problem with putting a temporary Image in a temporary file 
in /tmp ?

-- 
Benoit Minisini





More information about the Devel mailing list