/[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 1625 by bh, Thu Aug 21 16:02:23 2003 UTC revision 1648 by bh, Mon Aug 25 13:55:35 2003 UTC
# Line 12  The main window Line 12  The main window
12  """  """
13    
14  __version__ = "$Revision$"  __version__ = "$Revision$"
15    # $Source$
16  __ThubanVersion__ = "0.8" #"$THUBAN_0_2$"  # $Id$
 #__BuildDate__ = "$Date$"  
17    
18  import os  import os
19  import copy  import copy
# Line 49  from about import About Line 48  from about import About
48    
49  from Thuban.UI.dock import DockFrame  from Thuban.UI.dock import DockFrame
50  from Thuban.UI.join import JoinDialog  from Thuban.UI.join import JoinDialog
51  from Thuban.UI.dbdialog import DBFrame, ChooseDBTableDialog  from Thuban.UI.dbdialog import DBFrame, DBDialog, ChooseDBTableDialog
52  import resource  import resource
53  import Thuban.Model.resource  import Thuban.Model.resource
54    
# Line 376  class MainWindow(DockFrame): Line 375  class MainWindow(DockFrame):
375                                 "Thuban Session File (*.thuban)|*.thuban",                                 "Thuban Session File (*.thuban)|*.thuban",
376                                 wxOPEN)                                 wxOPEN)
377              if dlg.ShowModal() == wxID_OK:              if dlg.ShowModal() == wxID_OK:
378                  self.application.OpenSession(dlg.GetPath())                  self.application.OpenSession(dlg.GetPath(),
379                                                 self.run_db_param_dialog)
380              dlg.Destroy()              dlg.Destroy()
381    
382        def run_db_param_dialog(self, parameters, message):
383            dlg = DBDialog(self, _("DB Connection Parameters"), parameters,
384                           message)
385            return dlg.RunDialog()
386    
387      def SaveSession(self):      def SaveSession(self):
388          if self.application.session.filename == None:          if self.application.session.filename == None:
389              self.SaveSessionAs()              self.SaveSessionAs()

Legend:
Removed from v.1625  
changed lines
  Added in v.1648

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26