5 |
# This program is free software under the GPL (>=v2) |
# This program is free software under the GPL (>=v2) |
6 |
# Read the file COPYING coming with Thuban for details. |
# Read the file COPYING coming with Thuban for details. |
7 |
|
|
8 |
|
"""The About Box""" |
9 |
|
|
10 |
|
__version__ = "$Revision$" |
11 |
|
# $Source$ |
12 |
|
# $Id$ |
13 |
|
|
14 |
from wxPython.wx import * |
from wxPython.wx import * |
|
#from wxPython.wx import __version__ as wxPython_version |
|
15 |
|
|
16 |
from Thuban import _ |
from Thuban import _ |
|
#import Thuban.version |
|
17 |
from Thuban.version import versions |
from Thuban.version import versions |
18 |
|
|
|
#from sqlite import version as pysqlite_version |
|
|
#from _sqlite import sqlite_version |
|
|
|
|
|
#from wxproj import get_proj_version, get_gtk_version |
|
|
|
|
|
#from Thuban.Model.resource import has_gdal_support |
|
|
|
|
|
#if has_gdal_support(): |
|
|
# from gdalwarp import get_gdal_version |
|
|
|
|
19 |
class About(wxDialog): |
class About(wxDialog): |
20 |
|
|
21 |
def __init__(self, parent): |
def __init__(self, parent): |
27 |
| wxRESIZE_BORDER, |
| wxRESIZE_BORDER, |
28 |
size = (400, 250)) |
size = (400, 250)) |
29 |
|
|
30 |
#proj_ver = get_proj_version() |
lead_developer = 'Bernhard Herzog' |
31 |
#if proj_ver: |
developers = [ 'Jonathan Coles', 'Frank Koormann', |
32 |
#proj_ver = "%d.%d.%d" % proj_ver |
'Martin M�ller', 'Jan-Oliver Wagner' ] |
33 |
#else: |
translators = [ ( _('French'), 'Daniel Calvelo Aros' ), |
34 |
#proj_ver = " - not available" |
( _('German'), 'Bj�rn Broscheit'), |
35 |
|
( _('Italian'), 'Maurizio Napolitano'), |
36 |
#gtk_ver = get_gtk_version() |
( _('Russian'), 'Alex Shevlakov'), |
37 |
#if gtk_ver: |
( _('Spanish'), 'Daniel Calvelo Aros') ] |
38 |
#gtk_ver = "%d.%d.%d" % gtk_ver |
other_contributors = [ 'Jonathan Byron', 'Silke Reimer', |
39 |
#else: |
'Bernhard Reiter' ] |
40 |
#gtk_ver = " - not available" |
dyn_modules = [ ('wxPython', versions['wxPython']), |
41 |
|
('Python', versions['python']), |
42 |
text = _(#"Build Date: %s\n" |
('PySQLite', versions['pysqlite']), |
43 |
"%s\n\n" |
('SQLite', versions['sqlite']), |
44 |
"Currently using:\n" |
('GDAL', versions.get('gdal', _('- not available'))), |
45 |
"\t%s\n" |
('psycopg', versions.get('psycopg', |
46 |
"\t%s\n" |
_('- not available')))] |
47 |
"\t%s\n" |
direct_modules = [ \ |
48 |
"\t%s\n" |
('GTK', versions.get('gtk', _('- not available'))), |
49 |
"\t%s\n\n" |
('proj', versions['proj']) ] |
50 |
"Compiled against:\n" |
|
51 |
"\t%s\n" |
text = 'Thuban %s\n\n' % versions['thuban-long'] |
52 |
"\t%s\n\n" |
|
53 |
"Lead Developer:\n" |
text += _('Currently using:\n') |
54 |
"\tBernhard Herzog <[email protected]>\n\n" |
|
55 |
"Developers:\n" |
for name, version in dyn_modules: |
56 |
"\tJonathan Coles\n" |
text+= '\t%s %s\n' % (name, version) |
57 |
"\tFrank Koormann\n" |
text += '\n' |
58 |
"\tBernhard Reiter\n" |
|
59 |
"\tJan-Oliver Wagner\n\n" |
text += _('Compiled for:\n') |
60 |
"Contributors:\n" |
|
61 |
"\tJonathan Byron\n" |
for name, version in direct_modules: |
62 |
"\tMartin M�ller" |
text+= '\t%s %s\n' % (name, version) |
63 |
% ("Thuban %s" % versions['thuban-long'], |
text += '\n' |
64 |
"wxPython %s" % versions['wxPython'], |
|
65 |
"Python %s" % versions['python'], |
text += _('Lead Developer:\n') |
66 |
"PySQLite %s" % versions['pysqlite'], |
text += '\t%s\n\n' % lead_developer |
67 |
"SQLite %s" % versions['sqlite'], |
|
68 |
"GDAL %s" % versions.get('gdal', " - not available"), |
text += _('Developers:\n') |
69 |
"GTK %s" % versions.get('gtk', " - not available"), |
for name in developers: |
70 |
"proj %s" % versions['proj'])) |
text += '\t%s\n' % name |
71 |
|
text += '\n' |
72 |
|
|
73 |
|
text += _('Translators:\n') |
74 |
|
for lang, name in translators: |
75 |
|
text += '\t%s: %s\n' % (lang, name) |
76 |
|
text += '\n' |
77 |
|
|
78 |
|
text += _('Other Contributors:\n') |
79 |
|
for name in other_contributors: |
80 |
|
text += '\t%s\n' % name |
81 |
|
text += '\n' |
82 |
|
|
83 |
|
text += \ |
84 |
|
_("Questions and comments can be sent to the following addresses:\n" |
85 |
|
"\tThuban developers:\n\t\t<[email protected]>\n" |
86 |
|
"\tThuban mailing list:\n\t\t<[email protected]>") |
87 |
|
|
88 |
self.text = text |
self.text = text |
89 |
|
|
90 |
text_title = wxStaticText(self, -1, |
text_title = wxStaticText(self, -1, |
91 |
"Thuban is a program for exploring geographic data.\n\n" |
_("Thuban is a program for exploring geographic data.\n\n") + |
92 |
"Copyright 2001-2003 Intevation GmbH.\n" |
"Copyright 2001-2003 Intevation GmbH.\n" + |
93 |
"Thuban is licensed under the GNU GPL", |
_("Thuban is licensed under the GNU GPL"), |
94 |
style=wxST_NO_AUTORESIZE|wxALIGN_CENTRE) |
style=wxST_NO_AUTORESIZE|wxALIGN_CENTRE) |
95 |
|
|
96 |
textBox = wxTextCtrl(self, -1, text, |
textBox = wxTextCtrl(self, -1, text, |