/[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 1068 by bh, Tue May 27 15:02:37 2003 UTC revision 1072 by bh, Tue May 27 16:47:48 2003 UTC
# Line 619  class MainWindow(DockFrame): Line 619  class MainWindow(DockFrame):
619          dialog.Raise()          dialog.Raise()
620    
621      def LayerJoinTable(self):      def LayerJoinTable(self):
622          print "LayerJoinTable: Not implemented."          layer = self.canvas.SelectedLayer()
623            if layer is not None:
624                dlg = JoinDialog(self, _("Join Layer with Table"),
625                                 self.application.session,
626                                 layer = layer)
627                dlg.ShowModal()
628    
629      def LayerUnjoinTable(self):      def LayerUnjoinTable(self):
630          print "LayerUnjoinTable: Not implemented."          print "LayerUnjoinTable: Not implemented."
# Line 931  _method_command("layer_unjointable", _(" Line 936  _method_command("layer_unjointable", _("
936    
937  # Table menu  # Table menu
938  _method_command("table_open", _("&Open..."), "TableOpen")  _method_command("table_open", _("&Open..."), "TableOpen")
939  _method_command("table_close", _("&Close"), "TableClose")  _method_command("table_close", _("&Close"), "TableClose",
940           sensitive = lambda context: bool(context.session.UnreferencedTables()))
941  _method_command("table_show", _("&Show"), "TableShow")  _method_command("table_show", _("&Show"), "TableShow")
942  _method_command("table_join", _("&Join..."), "TableJoin")  _method_command("table_join", _("&Join..."), "TableJoin")
943    

Legend:
Removed from v.1068  
changed lines
  Added in v.1072

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26