Excellent
Can the window be permanent?
Stef
On May 22, 2012, at 11:20 PM, Tudor Girba wrote:
Hi,
I enhanced Glamour with a first version of a Watcher browser that offers a behavior
similar to Quick Preview on Mac.
For example, if you run the code below in a Moose image, and then press Ctrl+Shift+Space
you will get a preview of source code in a window floating above the current one. See the
attachment.
| browser |
browser := GLMTabulator new.
browser column: #methods.
browser transmit to: #methods; andShow: [:a | a list display: #methods; format: #selector
].
browser transmit from: #methods; toWatcher; andShow: [:a |
a smalltalkCode
smalltalkClass: [ :method | method methodClass ];
display: [:method | method getSource ] ].
browser openOn: GLMBrowser
To get it 100% useable I would need help with some Morphic magic:
- to make the Watcher window not appear in the taskbar
- to make the rendering of Watcher happen in another thread so that it does not block the
current UI
Cheers,
Doru
--
www.tudorgirba.com
"Not knowing how to do something is not an argument for how it cannot be
done."
<Screen Shot 2012-05-22 at 23.11.26.png>
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev