/[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 1035 by jan, Mon May 26 17:03:08 2003 UTC revision 1052 by bh, Tue May 27 09:34:28 2003 UTC
# Line 648  class MainWindow(DockFrame): Line 648  class MainWindow(DockFrame):
648          return dialog is not None and dialog.IsShown()          return dialog is not None and dialog.IsShown()
649    
650      def TableOpen(self):      def TableOpen(self):
         print "TableOpen: not implemented"  
651          dlg = wxFileDialog(self, _("Open Table"), ".", "",          dlg = wxFileDialog(self, _("Open Table"), ".", "",
652                             "DBF Files (*.dbf)|*.dbf|" +                             _("DBF Files (*.dbf)") + "|*.dbf|" +
653                             "CSV Files (*.csv)|*.csv|" +                             #_("CSV Files (*.csv)") + "|*.csv|" +
654                             "All Files (*.*)|*.*",                             _("All Files (*.*)") + "|*.*",
655                             wxOPEN)                             wxOPEN)
656          if dlg.ShowModal() == wxID_OK:          if dlg.ShowModal() == wxID_OK:
657              #self.application.session.OpenTable(dlg.GetPath())              self.application.session.OpenTableFile(dlg.GetPath())
             pass  
658    
659          dlg.Destroy()          dlg.Destroy()
660    
# Line 700  class MainWindow(DockFrame): Line 698  class MainWindow(DockFrame):
698              else:              else:
699                  print "Other:", d.GetTitle()                  print "Other:", d.GetTitle()
700    
     def TableHide(self):  
         print "TableHide: not implemented"  
   
701      def TableJoin(self):      def TableJoin(self):
702          dlg = JoinDialog(self, _("Join Tables"), self.application.session)          dlg = JoinDialog(self, _("Join Tables"), self.application.session)
703          dlg.ShowModal()          dlg.ShowModal()
# Line 929  _method_command("layer_unjointable", _(" Line 924  _method_command("layer_unjointable", _("
924  _method_command("table_open", _("&Open..."), "TableOpen")  _method_command("table_open", _("&Open..."), "TableOpen")
925  _method_command("table_close", _("&Close"), "TableClose")  _method_command("table_close", _("&Close"), "TableClose")
926  _method_command("table_show", _("&Show"), "TableShow")  _method_command("table_show", _("&Show"), "TableShow")
 _method_command("table_hide", _("&Hide"), "TableHide")  
927  _method_command("table_join", _("&Join..."), "TableJoin")  _method_command("table_join", _("&Join..."), "TableJoin")
928    
929  #  Export only under Windows ...  #  Export only under Windows ...
# Line 974  main_menu = Menu("<main>", "<main>", Line 968  main_menu = Menu("<main>", "<main>",
968                    Menu("table", _("&Table"),                    Menu("table", _("&Table"),
969                         ["table_open", "table_close",                         ["table_open", "table_close",
970                         None,                         None,
971                         "table_show", "table_hide",                         "table_show",
972                         None,                         None,
973                         "table_join"]),                         "table_join"]),
974                    Menu("help", _("&Help"),                    Menu("help", _("&Help"),

Legend:
Removed from v.1035  
changed lines
  Added in v.1052

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26