On Thu, Dec 17, 2009 at 10:12 PM, Henrik Sperre Johansen < henrik.s.johansen@veloxit.no> wrote:
On 16.12.2009 11:29, Mariano Martinez Peck wrote:
This is an excellent job. Congratulations Hernán.
I have a question....how could you draw the photo instead of the array of bytes on the browser? I really hate when developing with seaside and I have some pictures in my filelibrary class and when I browse them I see the array of bits...but I want to see the picture!!!
Thanks
Mariano For a proof of concept of what is possible using the NewInspector, install this method: Form>>asNINode ^ (super asNINode) addAction: (NIAction labeled: 'Preview' shortcut: $p target: [ :aForm | aForm depth < 32 ifTrue: [ Display getCanvas image: aForm at: 10 @ 10 ] ifFalse: [ Display getCanvas translucentImage: aForm at: 10 @ 10 ] ] actionSelector: #value: withArgs: {self} category: 'Preview'); yourself
then inspect a form (Say, ThemeIcons infoIcons ), right-click the Form node, and select preview.
Excellent! I have just tested, is really cool! Thank you very much! I wish I have this some time before hahahhaha (when I was developing a seaside webappp with images in filelibrary). I will keep this ch :)
Ideally it'd be nice to add an extra "Preview" item to the subnodes of Forms in the NI, which when clicked would show the form on the right side, but I don't (easily) see how you can temporarily replace the TextMorph on the right side with something capable of displaying Forms
With some more work on the closure it should be possible to open the preview in a separate window though :)
would be awesome
Cheers, Henry
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project