On Sat, Jan 14, 2017 at 7:58 PM, Peter Uhnak <i.uhnak@gmail.com> wrote:
I feel like we are moving away from the original thread. I mentioned my FileDialog because I found it odd that VM didn't break it.

As I am not interested in using STHub, I am also not interested in integrating it into Pharo itself (relase of P6.5/7 might change that at some point), but if you want to deal with that then feel free.

On Sat, Jan 14, 2017 at 06:41:52PM +0100, philippe.back@highoctane.be wrote:
> Sure but the old one can do image and text previews. Is the new one doing
> that?

That would be image XOR text, and neither being used anywhere in Pharo.

These are services that are useful for users, maybe not in the base image. Or I think that there is a missing example in the WidgetExamples class.

Something like:

exampleFilePreviewDialogs

self exampleBuilder
chooseFileName: 'Pick a file name' extensions: nil path: nil preview: #image;
�� �� �� �� �� �� �� �� chooseFileName: 'Pick a file name' extensions: nil path: nil preview: #text

Current examples just pass nil to the preview parameter, where nil|#image|#text are accepted.

It is pretty handy to preview pictures for web content in image or looking at some files.

gtPresentations would be of course better to use. My current use case is to have a quick preview of a picture before saving on top of it, so that I know what I am trashing.

Phil



��
I don't support it yet, but the idea is to embed GTInspector, as it has many file previews and a way to drop in more. It should be easy (IMO, Johan did the work for integration between Spec and GT long time ago), but no timeline.

Peter