/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/UI/view.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/UI/view.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 831 by jonathan, Tue May 6 12:07:21 2003 UTC revision 883 by jonathan, Fri May 9 16:34:39 2003 UTC
# Line 43  from renderer import ScreenRenderer, Pri Line 43  from renderer import ScreenRenderer, Pri
43    
44  import labeldialog  import labeldialog
45    
46  from messages import LAYER_SELECTED, SHAPES_SELECTED, VIEW_POSITION  from messages import LAYER_SELECTED, SHAPES_SELECTED, VIEW_POSITION, \
47                         SCALE_CHANGED
48    
49    
50  #  #
# Line 278  class MapCanvas(wxWindow, Publisher): Line 279  class MapCanvas(wxWindow, Publisher):
279                           "SelectShapes": "selection",                           "SelectShapes": "selection",
280                           "SelectedLayer": "selection",                           "SelectedLayer": "selection",
281                           "HasSelectedLayer": "selection",                           "HasSelectedLayer": "selection",
282                           "HasSelectedShapes": "selection"}                           "HasSelectedShapes": "selection",
283                             "SelectedShapes": "selection"}
284    
285      def __init__(self, parent, winid):      def __init__(self, parent, winid):
286          wxWindow.__init__(self, parent, winid)          wxWindow.__init__(self, parent, winid)
# Line 475  class MapCanvas(wxWindow, Publisher): Line 477  class MapCanvas(wxWindow, Publisher):
477          self.scale = scale          self.scale = scale
478          self.offset = offset          self.offset = offset
479          self.full_redraw()          self.full_redraw()
480            self.issue(SCALE_CHANGED, scale)
481    
482      def proj_to_win(self, x, y):      def proj_to_win(self, x, y):
483          """\          """\

Legend:
Removed from v.831  
changed lines
  Added in v.883

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26