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]> |
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 |
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. |
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 |
|
|