russell: thuban/Thuban/UI mainwindow.py,1.137,1.138

Bernhard Herzog bh at intevation.de
Mon Jan 24 12:28:31 CET 2005


Bernhard Herzog <bh at intevation.de> writes:

> I don't have a better solution at hand, but the view_position_changed
> is only there to update the current position.  If other information is
> to be shown in the status bar it should be handled in a different way
> and by other methods.

I looked at this a bit on Friday and today.  It turns out that
generating the position message and the projection message in the same
method isn't the real problem.  The actual problem is that so far the
method was only subscribed to the VIEW_POSITION_CHANGED messages.
Therefore it was only ever called when the user moves the mouse in the
map window or when the mouse leaves that window.  Those are not the
times when the projection message may have to be displayed.  For
instance, the user may have to move the mouse into and out of the map
window just to see the message.

The easiest correct implementation, provided that the message as it
stands now is a suitable short term approach to the problem, is to
subscribe the method to some more messages and to rename it to reflect
its new meaning.  See the changes I just committed.

   Bernhard

-- 
Intevation GmbH                                 http://intevation.de/
Skencil                                           http://skencil.org/
Thuban                                  http://thuban.intevation.org/




More information about the Thuban-devel mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)