Issue 582 in moose-technology: Watcher support in Glamour

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 582 in moose-technology: Watcher support in Glamour

moose-technology
Status: New
Owner: ----
Labels: Type-Enhancement Priority-Medium Component-Glamour

New issue 582 by [hidden email]: 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.

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Issue 582 in moose-technology: Watcher support in Glamour

moose-technology
Updates:
        Status: Fixed
        Owner: [hidden email]
        Labels: Milestone-4.7

Comment #1 on issue 582 by [hidden email]: 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

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Issue 582 in moose-technology: Watcher support in Glamour

moose-technology

Comment #2 on issue 582 by [hidden email]: 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

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Issue 582 in moose-technology: Watcher support in Glamour

moose-technology

Comment #3 on issue 582 by [hidden email]: Watcher support in Glamour
http://code.google.com/p/moose-technology/issues/detail?id=582

It should work :)

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev