/[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 1809 by bh, Fri Oct 10 17:00:17 2003 UTC revision 1819 by bh, Mon Oct 13 15:55:43 2003 UTC
# Line 252  class ProjFrame(NonModalNonParentDialog) Line 252  class ProjFrame(NonModalNonParentDialog)
252                  self.__ShowError(projfile.GetFilename(), errstr)                  self.__ShowError(projfile.GetFilename(), errstr)
253              self.availprojs.SetClientData(sel[0], [newproj, projfile])              self.availprojs.SetClientData(sel[0], [newproj, projfile])
254    
255              self.__FillAvailList( selectProj = newproj.GetName())              self.__FillAvailList( selectProj = newproj.Label())
256    
257      def _OnAddToList(self, event):      def _OnAddToList(self, event):
258    
# Line 264  class ProjFrame(NonModalNonParentDialog) Line 264  class ProjFrame(NonModalNonParentDialog)
264              except IOError, (errno, errstr):              except IOError, (errno, errstr):
265                  self.__ShowError(self.__userProjFile.GetFilename(), errstr)                  self.__ShowError(self.__userProjFile.GetFilename(), errstr)
266    
267              self.__FillAvailList( selectProj = proj.GetName())              self.__FillAvailList( selectProj = proj.Label())
268    
269      def _OnProjAvail(self, event):      def _OnProjAvail(self, event):
270          self.__DoOnProjAvail()          self.__DoOnProjAvail()
# Line 461  class ProjFrame(NonModalNonParentDialog) Line 461  class ProjFrame(NonModalNonParentDialog)
461                      # only None if the currently used projection is selected                      # only None if the currently used projection is selected
462                      self.projfilepath.SetLabel(_("Projection File: "))                      self.projfilepath.SetLabel(_("Projection File: "))
463    
464                  self.projname.SetValue(proj.GetName())                  self.projname.SetValue(proj.Label())
465    
466                  myProjType = proj.GetParameter("proj")                  myProjType = proj.GetParameter("proj")
467                  i = 0                  i = 0
# Line 581  class ProjFrame(NonModalNonParentDialog) Line 581  class ProjFrame(NonModalNonParentDialog)
581          projfile, warnings = get_system_proj_file()          projfile, warnings = get_system_proj_file()
582          self.show_warnings(_("Warnings"), projfile.GetFilename(), warnings)          self.show_warnings(_("Warnings"), projfile.GetFilename(), warnings)
583          for proj in projfile.GetProjections():          for proj in projfile.GetProjections():
584              self.availprojs.Append(proj.GetName(), [proj, projfile])              self.availprojs.Append(proj.Label(), [proj, projfile])
585          self.__sysProjFile = projfile          self.__sysProjFile = projfile
586    
587          projfile, warnings = get_user_proj_file()          projfile, warnings = get_user_proj_file()
588          self.show_warnings(_("Warnings"), projfile.GetFilename(), warnings)          self.show_warnings(_("Warnings"), projfile.GetFilename(), warnings)
589          for proj in projfile.GetProjections():          for proj in projfile.GetProjections():
590              self.availprojs.Append(proj.GetName(), [proj, projfile])              self.availprojs.Append(proj.Label(), [proj, projfile])
591          self.__usrProjFile = projfile          self.__usrProjFile = projfile
592    
593          #          #
# Line 597  class ProjFrame(NonModalNonParentDialog) Line 597  class ProjFrame(NonModalNonParentDialog)
597          #          #
598          proj = self.receiver.GetProjection()          proj = self.receiver.GetProjection()
599          if proj is not None:          if proj is not None:
600              proj_item = _("%s (current)") % proj.GetName()              proj_item = _("%s (current)") % proj.Label()
601              self.availprojs.Append(proj_item, [proj, None])              self.availprojs.Append(proj_item, [proj, None])
602              if selectCurrent:              if selectCurrent:
603                  self.availprojs.SetSelection(                  self.availprojs.SetSelection(

Legend:
Removed from v.1809  
changed lines
  Added in v.1819

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26