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

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

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

revision 767 by jonathan, Tue Apr 29 09:01:35 2003 UTC revision 768 by jonathan, Tue Apr 29 13:03:59 2003 UTC
# Line 401  class MainWindow(DockFrame): Line 401  class MainWindow(DockFrame):
401      def SetMap(self, map):      def SetMap(self, map):
402          self.canvas.SetMap(map)          self.canvas.SetMap(map)
403          self.__SetTitle(map.Title())          self.__SetTitle(map.Title())
404          #self.legendPanel.SetMap(map)  
405            dialog = self.FindRegisteredDock("legend")
406            if dialog is not None:
407                dialog.GetPanel().SetMap(self.Map())
408    
409      def Map(self):      def Map(self):
410          """Return the map displayed by this mainwindow"""          """Return the map displayed by this mainwindow"""
411    
         # sanity check  
         #assert(self.canvas.Map() is self.legendPanel.GetMap())  
   
412          return self.canvas.Map()          return self.canvas.Map()
413    
414      def ToggleSessionTree(self):      def ToggleSessionTree(self):

Legend:
Removed from v.767  
changed lines
  Added in v.768

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26