/[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 620 by jonathan, Mon Apr 7 08:57:38 2003 UTC revision 621 by jonathan, Mon Apr 7 10:14:50 2003 UTC
# Line 387  class MainWindow(DockFrame): Line 387  class MainWindow(DockFrame):
387          dlg.Destroy()          dlg.Destroy()
388    
389      def Exit(self):      def Exit(self):
390          self.Close(false)          self.Close(False)
391    
392      def _OnClose(self, event):      def _OnClose(self, event):
393          result = self.save_modified_session(can_veto = event.CanVeto())          result = self.save_modified_session(can_veto = event.CanVeto())
# Line 467  class MainWindow(DockFrame): Line 467  class MainWindow(DockFrame):
467      def CanRemoveLayer(self):      def CanRemoveLayer(self):
468          """Return true if the currently selected layer can be deleted.          """Return true if the currently selected layer can be deleted.
469    
470          If no layer is selected return false.          If no layer is selected return False.
471    
472          The return value of this method determines whether the remove          The return value of this method determines whether the remove
473          layer command is sensitive in menu.          layer command is sensitive in menu.
# Line 475  class MainWindow(DockFrame): Line 475  class MainWindow(DockFrame):
475          layer = self.current_layer()          layer = self.current_layer()
476          if layer is not None:          if layer is not None:
477              return self.canvas.Map().CanRemoveLayer(layer)              return self.canvas.Map().CanRemoveLayer(layer)
478          return 0          return False
479    
480      def RaiseLayer(self):      def RaiseLayer(self):
481          layer = self.current_layer()          layer = self.current_layer()
# Line 603  class MainWindow(DockFrame): Line 603  class MainWindow(DockFrame):
603          dialog.Raise()          dialog.Raise()
604    
605    
606      def ShowLegend(self, switch = False):      def ShowLegend(self):
607          name = "legend"          name = "legend"
608          dialog = self.FindRegisteredDock(name)          dialog = self.FindRegisteredDock(name)
609    

Legend:
Removed from v.620  
changed lines
  Added in v.621

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26