/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/UI/application.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/UI/application.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2446 by frank, Mon Dec 13 11:52:34 2004 UTC revision 2581 by jan, Thu Mar 10 22:44:18 2005 UTC
# Line 1  Line 1 
1  # Copyright (C) 2001, 2002, 2003, 2004 by Intevation GmbH  # Copyright (C) 2001-2005 by Intevation GmbH
2  # Authors:  # Authors:
3  # Jan-Oliver Wagner <[email protected]>  # Jan-Oliver Wagner <[email protected]>
4  # Bernhard Herzog <[email protected]>  # Bernhard Herzog <[email protected]>
# Line 30  from Thuban.Model.messages import MAPS_C Line 30  from Thuban.Model.messages import MAPS_C
30  from Thuban.Model.layer import RasterLayer  from Thuban.Model.layer import RasterLayer
31  import Thuban.Model.resource  import Thuban.Model.resource
32    
33    from extensionregistry import ext_registry
34    
35  import view  import view
36  import tree  import tree
37  import mainwindow  import mainwindow
# Line 71  class ThubanApplication(wxApp, Publisher Line 73  class ThubanApplication(wxApp, Publisher
73          if self.splash is not None:          if self.splash is not None:
74              self.splash.Show()              self.splash.Show()
75          self.read_startup_files()          self.read_startup_files()
76            self.init_extensions()
77          self.top = self.CreateMainWindow()          self.top = self.CreateMainWindow()
78          # The session was alredy created above and we need to get the          # The session was alredy created above and we need to get the
79          # map into the mainwindow.  maps_changed does that.          # map into the mainwindow.  maps_changed does that.
# Line 122  class ThubanApplication(wxApp, Publisher Line 125  class ThubanApplication(wxApp, Publisher
125              # There's no .thuban directory              # There's no .thuban directory
126              sys.stderr.write(_("No ~/.thuban directory\n"))              sys.stderr.write(_("No ~/.thuban directory\n"))
127    
128        def init_extensions(self):
129            """Call initialization callbacks for all registered extensions."""
130            for ext in ext_registry:
131                ext.init_ext()
132    
133      def splash_screen(self):      def splash_screen(self):
134          """Create and return a splash screen.          """Create and return a splash screen.
135    

Legend:
Removed from v.2446  
changed lines
  Added in v.2581

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26