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 * |
15 |
|
|
16 |
from Thuban import _ |
from Thuban import _ |
17 |
from Thuban.version import versions |
from Thuban.version import versions |
18 |
|
from Thuban.Model.resource import gdal_support_status |
19 |
|
|
20 |
class About(wxDialog): |
class About(wxDialog): |
21 |
|
|
28 |
| wxRESIZE_BORDER, |
| wxRESIZE_BORDER, |
29 |
size = (400, 250)) |
size = (400, 250)) |
30 |
|
|
31 |
text = _(#"Build Date: %s\n" |
# Note: The source code is in ASCII, so we escape some |
32 |
"%s\n\n" |
# characters to get byte strings in latin1. |
33 |
"Currently using:\n" |
lead_developer = 'Bernhard Herzog' |
34 |
"\t%s\n" |
developers = [ 'Jonathan Coles', 'Frank Koormann', |
35 |
"\t%s\n" |
'Martin M\xfcller', 'Jan-Oliver Wagner' ] |
36 |
"\t%s\n" |
translators = [ ( _('French'), 'Daniel Calvelo Aros' ), |
37 |
"\t%s\n" |
( _('German'), 'Bj\xf6rn Broscheit'), |
38 |
"\t%s\n\n" |
( _('Italian'), 'Maurizio Napolitano'), |
39 |
"Compiled against:\n" |
( _('Portuguese (Brazilian)'), 'Eduardo Patto Kanegae'), |
40 |
"\t%s\n" |
( _('Russian'), 'Alex Shevlakov'), |
41 |
"\t%s\n\n" |
( _('Spanish'), 'Daniel Calvelo Aros') ] |
42 |
"Lead Developer:\n" |
other_contributors = [ 'Jonathan Byron', 'Silke Reimer', |
43 |
"\tBernhard Herzog\n\n" |
'Bernhard Reiter' ] |
44 |
"Developers:\n" |
dyn_modules = [ ('wxPython', versions['wxPython']), |
45 |
"\tJonathan Coles\n" |
('Python', versions['python']), |
46 |
"\tFrank Koormann\n" |
('PySQLite', versions['pysqlite']), |
47 |
"\tBernhard Reiter\n" |
('SQLite', versions['sqlite']), |
48 |
"\tJan-Oliver Wagner\n\n" |
('GDAL', versions.get('gdal', _('- not available'))), |
49 |
"Contributors:\n" |
('psycopg', versions.get('psycopg', |
50 |
"\tJonathan Byron\n" |
_('- not available')))] |
51 |
"\tMartin M�ller\n\n" |
direct_modules = [ \ |
52 |
"Questions and comments can be sent to the following addresses:\n" |
('GTK', versions.get('gtk', _('- not available'))), |
53 |
|
('proj', versions['proj']) ] |
54 |
|
|
55 |
|
text = 'Thuban %s\n\n' % versions['thuban-long'] |
56 |
|
|
57 |
|
text += _('Currently using:\n') |
58 |
|
|
59 |
|
for name, version in dyn_modules: |
60 |
|
text+= '\t%s %s\n' % (name, version) |
61 |
|
text += '\n' |
62 |
|
|
63 |
|
if gdal_support_status: |
64 |
|
text += gdal_support_status + "\n\n" |
65 |
|
|
66 |
|
text += _('Compiled for:\n') |
67 |
|
|
68 |
|
for name, version in direct_modules: |
69 |
|
text+= '\t%s %s\n' % (name, version) |
70 |
|
text += '\n' |
71 |
|
|
72 |
|
text += _('Lead Developer:\n') |
73 |
|
text += '\t%s\n\n' % lead_developer |
74 |
|
|
75 |
|
text += _('Developers:\n') |
76 |
|
for name in developers: |
77 |
|
text += '\t%s\n' % name |
78 |
|
text += '\n' |
79 |
|
|
80 |
|
text += _('Translators:\n') |
81 |
|
for lang, name in translators: |
82 |
|
text += '\t%s: %s\n' % (lang, name) |
83 |
|
text += '\n' |
84 |
|
|
85 |
|
text += _('Other Contributors:\n') |
86 |
|
for name in other_contributors: |
87 |
|
text += '\t%s\n' % name |
88 |
|
text += '\n' |
89 |
|
|
90 |
|
text += \ |
91 |
|
_("Questions and comments can be sent to the following addresses:\n" |
92 |
"\tThuban developers:\n\t\t<[email protected]>\n" |
"\tThuban developers:\n\t\t<[email protected]>\n" |
93 |
"\tThuban mailing list:\n\t\t<[email protected]>" |
"\tThuban mailing list:\n\t\t<[email protected]>") |
|
% ("Thuban %s" % versions['thuban-long'], |
|
|
"wxPython %s" % versions['wxPython'], |
|
|
"Python %s" % versions['python'], |
|
|
"PySQLite %s" % versions['pysqlite'], |
|
|
"SQLite %s" % versions['sqlite'], |
|
|
"GDAL %s" % versions.get('gdal', "- not available"), |
|
|
"GTK %s" % versions.get('gtk', "- not available"), |
|
|
"proj %s" % versions['proj'])) |
|
94 |
|
|
95 |
self.text = text |
self.text = text |
96 |
|
|
97 |
text_title = wxStaticText(self, -1, |
text_title = wxStaticText(self, -1, |
98 |
"Thuban is a program for exploring geographic data.\n\n" |
_("Thuban is a program for exploring geographic data.\n\n") + |
99 |
"Copyright 2001-2003 Intevation GmbH.\n" |
"Copyright 2001-2003 Intevation GmbH.\n" + |
100 |
"Thuban is licensed under the GNU GPL", |
_("Thuban is licensed under the GNU GPL"), |
101 |
style=wxST_NO_AUTORESIZE|wxALIGN_CENTRE) |
style=wxST_NO_AUTORESIZE|wxALIGN_CENTRE) |
102 |
|
|
103 |
textBox = wxTextCtrl(self, -1, text, |
textBox = wxTextCtrl(self, -1, text, |