/[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 374 by jan, Mon Jan 27 14:20:02 2003 UTC revision 469 by jonathan, Wed Mar 5 18:19:25 2003 UTC
# Line 302  class MainWindow(wxFrame): Line 302  class MainWindow(wxFrame):
302    
303      def OpenSession(self):      def OpenSession(self):
304          self.save_modified_session()          self.save_modified_session()
305          dlg = wxFileDialog(self, _("Select a session file"), ".", "",          dlg = wxFileDialog(self, _("Open Session"), ".", "",
306                             "*.thuban", wxOPEN)                             "*.thuban", wxOPEN)
307          if dlg.ShowModal() == wxID_OK:          if dlg.ShowModal() == wxID_OK:
308              self.application.OpenSession(dlg.GetPath())              self.application.OpenSession(dlg.GetPath())
# Line 314  class MainWindow(wxFrame): Line 314  class MainWindow(wxFrame):
314          self.application.SaveSession()          self.application.SaveSession()
315    
316      def SaveSessionAs(self):      def SaveSessionAs(self):
317          dlg = wxFileDialog(self, _("Enter a filename for session"), ".", "",          dlg = wxFileDialog(self, _("Save Session As"), ".", "",
318                             "*.thuban", wxOPEN)                             "*.thuban", wxOPEN)
319          if dlg.ShowModal() == wxID_OK:          if dlg.ShowModal() == wxID_OK:
320              self.application.session.SetFilename(dlg.GetPath())              self.application.session.SetFilename(dlg.GetPath())
# Line 443  class MainWindow(wxFrame): Line 443  class MainWindow(wxFrame):
443          if layer is not None:          if layer is not None:
444              color = self.choose_color()              color = self.choose_color()
445              if color is not None:              if color is not None:
446                  layer.SetFill(color)                  layer.GetClassification().SetDefaultFill(color)
447    
448      def LayerTransparentFill(self):      def LayerTransparentFill(self):
449          layer = self.current_layer()          layer = self.current_layer()
450          if layer is not None:          if layer is not None:
451              layer.SetFill(None)              layer.GetClassification().SetDefaultFill(Color.None)
452    
453      def LayerOutlineColor(self):      def LayerOutlineColor(self):
454          layer = self.current_layer()          layer = self.current_layer()
455          if layer is not None:          if layer is not None:
456              color = self.choose_color()              color = self.choose_color()
457              if color is not None:              if color is not None:
458                  layer.SetStroke(color)                  layer.GetClassification().SetDefaultLineColor(color)
459    
460      def LayerNoOutline(self):      def LayerNoOutline(self):
461          layer = self.current_layer()          layer = self.current_layer()
462          if layer is not None:          if layer is not None:
463              layer.SetStroke(None)              layer.GetClassification().SetDefaultLineColor(Color.None)
464    
465      def HideLayer(self):      def HideLayer(self):
466          layer = self.current_layer()          layer = self.current_layer()

Legend:
Removed from v.374  
changed lines
  Added in v.469

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26