Status: New Owner: ---- Labels: Type-Enhancement Priority-Medium Component-Glamour
New issue 582 by tudor.gi...@gmail.com: Watcher support in Glamour http://code.google.com/p/moose-technology/issues/detail?id=582
Like we now have a statusbar, we should also have a detailed preview shown in a floating Watcher window. The behavior would be similar to Quick Look on Mac.
Updates: Status: Fixed Owner: tudor.gi...@gmail.com Labels: Milestone-4.7
Comment #1 on issue 582 by tudor.gi...@gmail.com: Watcher support in Glamour http://code.google.com/p/moose-technology/issues/detail?id=582
A first version is available now.
For example try:
| 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
Comment #2 on issue 582 by google....@ben.coman.com.au: Watcher support in Glamour http://code.google.com/p/moose-technology/issues/detail?id=582
This does not work for me out of the box with a fresh Moose 4.7 downloaded this evening. There is no response when clicking on the method list.
I see in GLMMorphicWatcherRender>>actOnMatchingPresentationsChanged that you use you have [ GLMWatcherWindow uniqueInstance ] and a stab in the dark is that something broke since your uniqueInstance was created. I wonder your example still works for you after [ GLMWatcherWindow reset ].
In any case, I got it partially working with the following (likely inappropriate) hack... GLMMorphicWatcherRenderer>>actOnMatchingPresentationsChanged: anAnnouncement "whenever a relevant pane changes its presentations, we override the contents from the GLMWatcherWindow" | window | window := GLMWatcherWindow uniqueInstance. window contentsMorph removeAllMorphs; addMorph: (self renderObject: anAnnouncement pane) fullFrame: (LayoutFrame fractions: (0@0 corner: 1@1)) . window openInWorld.
Clicking in turn on several methods shows each in the single Glamorous Watcher. However Glamorous Watcher keeps repositioning on top of the Glamorous Browser.
cheers -ben
Comment #3 on issue 582 by tudor.gi...@gmail.com: Watcher support in Glamour http://code.google.com/p/moose-technology/issues/detail?id=582
It should work :)