Hi!
After an interaction from the user (e.g., node dragging, node
selection), the announcement MOContentChanged is emitted by
MORoot>>updateWindow.
When I scroll an MOCanvas (e.g., as it occurs when in an easel or a
view renderer the picture is larger than the visible window), when
a window containing a MOCanvas is dragged, moved, resize, the event
WindowAnnouncement is emitted.
I made a dedicated method, called
MOViewRenderer>>setDefaultHandlerForWindow: systemWindow that
register relevant announcement handlers for a number of
announcement, including node dragging, key down, MOContentChanged
and WindowAnnouncement.
The only thing to do to have a proper update should be to use
setDefaultHandlerForWindow:
Cheers,
Alexandre
NB: When writing this email, I realized that the handler of
WindowAnnouncement was set in a different location than
MOContentChanged, which is odd. I produced a new version of
Mondrian that reflect this.
NB2: now that I thinking about this, maybe MORoot>>updateWindow is
not an ideal name since the root is not aware of the window in
which it is (indirectly) embedded.
On 15 Jan 2010, at 11:44, Tudor Girba wrote:
Hi Alex,
I am trying to debug the problem of embedding Mondrian in Glamour
and I have a question.
Why exactly does Mondrian need to know the window to update? Why
is it not enough to just know the Canvas morph?
Cheers,
Doru
--
www.tudorgirba.com
"Problem solving efficiency grows with the abstractness level of
problem understanding."
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
"It's not what we do that matters most, it's how we do it."
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch