/[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 2470 by bh, Thu Dec 16 11:00:10 2004 UTC revision 2561 by bh, Tue Feb 8 20:34:29 2005 UTC
# Line 113  class ProjFrame(NonModalNonParentDialog) Line 113  class ProjFrame(NonModalNonParentDialog)
113          self.button_export = wxButton(self, ID_PROJ_EXPORT, _("Export..."))          self.button_export = wxButton(self, ID_PROJ_EXPORT, _("Export..."))
114          EVT_BUTTON(self, ID_PROJ_EXPORT, self._OnExport)          EVT_BUTTON(self, ID_PROJ_EXPORT, self._OnExport)
115          buttons.Add(self.button_export, 1, wxALL|wxEXPAND, 4)          buttons.Add(self.button_export, 1, wxALL|wxEXPAND, 4)
116          buttons.Add(20, 20, 0, wxEXPAND, 0)          buttons.Add( (20, 20), 0, wxEXPAND, 0)
117          self.button_remove = wxButton(self, ID_PROJ_REMOVE, _("Remove"))          self.button_remove = wxButton(self, ID_PROJ_REMOVE, _("Remove"))
118          EVT_BUTTON(self, ID_PROJ_REMOVE, self._OnRemove)          EVT_BUTTON(self, ID_PROJ_REMOVE, self._OnRemove)
119          buttons.Add(self.button_remove, 1, wxALL|wxEXPAND, 4)          buttons.Add(self.button_remove, 1, wxALL|wxEXPAND, 4)
120    
121          buttons.Add(20, 20, 0, wxEXPAND, 0)          buttons.Add( (20, 20), 0, wxEXPAND, 0)
122          label = wxStaticText(self, -1, _("Show EPSG:"))          label = wxStaticText(self, -1, _("Show EPSG:"))
123          buttons.Add(label, 0, wxLEFT|wxRIGHT|wxTOP, 4)          buttons.Add(label, 0, wxLEFT|wxRIGHT|wxTOP, 4)
124          self.check_epsg = wxCheckBox(self, -1, _("Normal"))          self.check_epsg = wxCheckBox(self, -1, _("Normal"))
# Line 186  class ProjFrame(NonModalNonParentDialog) Line 186  class ProjFrame(NonModalNonParentDialog)
186          self.button_add = wxButton(self, ID_PROJ_ADDTOLIST, _("Add to List"))          self.button_add = wxButton(self, ID_PROJ_ADDTOLIST, _("Add to List"))
187          EVT_BUTTON(self, ID_PROJ_ADDTOLIST, self._OnAddToList)          EVT_BUTTON(self, ID_PROJ_ADDTOLIST, self._OnAddToList)
188          buttons.Add(self.button_add, 0, wxEXPAND|wxALL, 4)          buttons.Add(self.button_add, 0, wxEXPAND|wxALL, 4)
189          buttons.Add(20, 20, 0, wxEXPAND, 0)          buttons.Add( (20, 20), 0, wxEXPAND, 0)
190          self.button_save = wxButton(self, ID_PROJ_SAVE,_("Update"))          self.button_save = wxButton(self, ID_PROJ_SAVE,_("Update"))
191          EVT_BUTTON(self, ID_PROJ_SAVE, self._OnSave)          EVT_BUTTON(self, ID_PROJ_SAVE, self._OnSave)
192          buttons.Add(self.button_save, 0, wxEXPAND|wxALL|wxALIGN_BOTTOM, 4)          buttons.Add(self.button_save, 0, wxEXPAND|wxALL|wxALIGN_BOTTOM, 4)
# Line 586  class ProjFrame(NonModalNonParentDialog) Line 586  class ProjFrame(NonModalNonParentDialog)
586          with get_user_proj_file and cache it in self.__usrProjFile.          with get_user_proj_file and cache it in self.__usrProjFile.
587    
588          Show a busy cursor while loading the file.          Show a busy cursor while loading the file.
589        
590          If the file is not available, leave a note to the console.          If the file is not available, leave a note to the console.
591          """          """
592          if self.__usrProjFile is None:          if self.__usrProjFile is None:
# Line 595  class ProjFrame(NonModalNonParentDialog) Line 595  class ProjFrame(NonModalNonParentDialog)
595                  projfile, warnings = get_user_proj_file()                  projfile, warnings = get_user_proj_file()
596                  if warnings:                  if warnings:
597                      sys.stderr.write("".join(warnings))                      sys.stderr.write("".join(warnings))
598                        sys.stderr.write("\n")
599                  self.__usrProjFile = projfile                  self.__usrProjFile = projfile
600              finally:              finally:
601                  ThubanEndBusyCursor()                  ThubanEndBusyCursor()

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26