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

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

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

revision 2469 by frank, Wed Jan 21 17:09:15 2004 UTC revision 2470 by bh, Thu Dec 16 11:00:10 2004 UTC
# Line 1  Line 1 
1  # Copyright (c) 2003 by Intevation GmbH  # Copyright (c) 2003, 2004 by Intevation GmbH
2  # Authors:  # Authors:
3  # Jonathan Coles <[email protected]>  # Jonathan Coles <[email protected]>
4  # Frank Koormann <[email protected]>  # Frank Koormann <[email protected]>
# Line 530  class ProjFrame(NonModalNonParentDialog) Line 530  class ProjFrame(NonModalNonParentDialog)
530      def _show_proj_panel(self, panel_class):      def _show_proj_panel(self, panel_class):
531          """Show the panel as the projection panel"""          """Show the panel as the projection panel"""
532          if panel_class is UnknownProjPanel:          if panel_class is UnknownProjPanel:
533                self.button_ok.Disable()
534                self.button_try.Disable()
535              self.edit_box.Disable()              self.edit_box.Disable()
536              self.nbsizer.Activate(self.unknown_projection_panel)              self.nbsizer.Activate(self.unknown_projection_panel)
537              self.curProjPanel = self.unknown_projection_panel              self.curProjPanel = self.unknown_projection_panel
538          else:          else:
539                self.button_ok.Enable(True)
540                self.button_try.Enable(True)
541              self.edit_box.Enable(True)              self.edit_box.Enable(True)
542              self.unknown_projection_panel.Hide()              self.unknown_projection_panel.Hide()
543              for panel in self.projection_panels:              for panel in self.projection_panels:
# Line 569  class ProjFrame(NonModalNonParentDialog) Line 573  class ProjFrame(NonModalNonParentDialog)
573          # self.curProjPanel should always contain the most relevant data          # self.curProjPanel should always contain the most relevant data
574          # for a projection          # for a projection
575          if self.curProjPanel is not None:          if self.curProjPanel is not None:
576              return Projection(self.curProjPanel.GetParameters(),              parameters = self.curProjPanel.GetParameters()
577                                self.projname.GetValue())              if parameters is not None:
578                    return Projection(parameters, self.projname.GetValue())
579    
580          return None          return None
581    

Legend:
Removed from v.2469  
changed lines
  Added in v.2470

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26