1 |
# Copyright (c) 2001, 2002, 2003 by Intevation GmbH |
# Copyright (c) 2001-2005 by Intevation GmbH |
2 |
# Authors: |
# Authors: |
3 |
# Jonathan Coles <[email protected]> |
# Jonathan Coles <[email protected]> |
4 |
|
# Bernhard Reiter <[email protected]> |
5 |
|
# Silke Reimer <[email protected]> |
6 |
# |
# |
7 |
# This program is free software under the GPL (>=v2) |
# This program is free software under the GPL (>=v2) |
8 |
# Read the file COPYING coming with Thuban for details. |
# Read the file COPYING coming with Thuban for details. |
15 |
|
|
16 |
from wxPython.wx import * |
from wxPython.wx import * |
17 |
|
|
18 |
from Thuban import _ |
from locale import getdefaultlocale |
19 |
|
|
20 |
|
from Thuban import _, internal_from_unicode |
21 |
from Thuban.version import versions |
from Thuban.version import versions |
22 |
|
from Thuban.Model.resource import gdal_support_status |
23 |
|
|
24 |
|
from Thuban.UI.extensionregistry import ext_registry |
25 |
|
|
26 |
class About(wxDialog): |
class About(wxDialog): |
27 |
|
|
34 |
| wxRESIZE_BORDER, |
| wxRESIZE_BORDER, |
35 |
size = (400, 250)) |
size = (400, 250)) |
36 |
|
|
37 |
text = _(#"Build Date: %s\n" |
# Note: The source code is in ASCII, so we escape some |
38 |
"%s\n\n" |
# characters to get byte strings in latin1. |
39 |
"Currently using:\n" |
lead_developer = 'Bernhard Herzog' |
40 |
"\t%s\n" |
developers = [ 'Jonathan Coles', |
41 |
"\t%s\n" |
'Frank Koormann', |
42 |
"\t%s\n" |
internal_from_unicode(u'Martin M\xfcller'), |
43 |
"\t%s\n" |
'Bernhard Reiter', |
44 |
"\t%s\n\n" |
'Jan-Oliver Wagner' ] |
45 |
"Compiled against:\n" |
translators = [ ( _('French'), 'Daniel Calvelo Aros' ), |
46 |
"\t%s\n" |
( _('German'), |
47 |
"\t%s\n\n" |
internal_from_unicode(u'Bj\xf6rn Broscheit')), |
48 |
"Lead Developer:\n" |
( _('Hungarian'), 'Norbert Solymosi'), |
49 |
"\tBernhard Herzog\n\n" |
( _('Italian'), 'Maurizio Napolitano'), |
50 |
"Developers:\n" |
( _('Portuguese (Brazilian)'), 'Eduardo Patto Kanegae'), |
51 |
"\tJonathan Coles\n" |
( _('Russian'), 'Alex Shevlakov'), |
52 |
"\tFrank Koormann\n" |
( _('Spanish'), 'Daniel Calvelo Aros') ] |
53 |
"\tMartin M�ller\n" |
other_contributors = [ 'Jonathan Byron', |
54 |
"\tJan-Oliver Wagner\n\n" |
'Ole Rahn', |
55 |
"Translators:\n" |
'Silke Reimer' ] |
56 |
"\tFrench: Daniel Calvelo Aros\n" |
dyn_modules = [ ('wxPython', versions['wxPython']), |
57 |
"\tGerman: Bj�rn Broscheit\n" |
('Python', versions['python']), |
58 |
"\tItalian: Maurizio Napolitano\n" |
('PySQLite', versions['pysqlite']), |
59 |
"\tRussian: Alex Shevlakov\n" |
('SQLite', versions['sqlite']), |
60 |
"\tSpanish: Daniel Calvelo Aros\n\n" |
('GDAL', versions.get('gdal', _('- not available'))), |
61 |
"Other Contributors:\n" |
('psycopg', versions.get('psycopg', |
62 |
"\tJonathan Byron\n" |
_('- not available')))] |
63 |
"\tSilke Reimer\n" |
direct_modules = [ \ |
64 |
"\tBernhard Reiter\n\n" |
('GTK', versions.get('gtk', _('- not available'))), |
65 |
"Questions and comments can be sent to the following addresses:\n" |
('proj', versions['proj']) ] |
66 |
"\tThuban developers:\n\t\t<[email protected]>\n" |
|
67 |
"\tThuban mailing list:\n\t\t<[email protected]>" |
text = 'Thuban %s\n\n' % versions['thuban-long'] |
68 |
% ("Thuban %s" % versions['thuban-long'], |
|
69 |
"wxPython %s" % versions['wxPython'], |
text += _('Currently using:\n') |
70 |
"Python %s" % versions['python'], |
|
71 |
"PySQLite %s" % versions['pysqlite'], |
for name, version in dyn_modules: |
72 |
"SQLite %s" % versions['sqlite'], |
text+= '\t%s %s\n' % (name, version) |
73 |
"GDAL %s" % versions.get('gdal', "- not available"), |
text += '\n' |
74 |
"GTK %s" % versions.get('gtk', "- not available"), |
|
75 |
"proj %s" % versions['proj'])) |
if gdal_support_status: |
76 |
|
text += gdal_support_status + "\n\n" |
77 |
|
|
78 |
|
text += _('Compiled for:\n') |
79 |
|
|
80 |
|
for name, version in direct_modules: |
81 |
|
text+= '\t%s %s\n' % (name, version) |
82 |
|
text += '\n' |
83 |
|
|
84 |
|
text += _('Extensions:\n') |
85 |
|
if ext_registry: |
86 |
|
for ext in ext_registry: |
87 |
|
text += '\t%s %s\n' % (ext.name, ext.version) |
88 |
|
else: |
89 |
|
text += _('\tNone registered.\n') |
90 |
|
text += '\n' |
91 |
|
|
92 |
|
text += _('Lead Developer:\n') |
93 |
|
text += '\t%s\n\n' % lead_developer |
94 |
|
|
95 |
|
text += _('Developers:\n') |
96 |
|
for name in developers: |
97 |
|
text += '\t%s\n' % name |
98 |
|
text += '\n' |
99 |
|
|
100 |
|
text += _('Translators:\n') |
101 |
|
for lang, name in translators: |
102 |
|
text += '\t%s: %s\n' % (lang, name) |
103 |
|
text += '\n' |
104 |
|
|
105 |
|
text += _('Other Contributors:\n') |
106 |
|
for name in other_contributors: |
107 |
|
text += '\t%s\n' % name |
108 |
|
text += '\n' |
109 |
|
|
110 |
|
text += \ |
111 |
|
_("Questions and comments can be sent to the following addresses:\n" |
112 |
|
"\tGeneral list (public):\n\t\t<[email protected]>\n" |
113 |
|
"\tDevelopers list (public):\n\t\t<[email protected]>\n" |
114 |
|
"\tThuban team at Intevation:\n\t\t<[email protected]>\n" |
115 |
|
) |
116 |
|
|
117 |
|
text += '\n\n' |
118 |
|
|
119 |
|
text += _("Details on the registered extensions:\n\n") |
120 |
|
|
121 |
|
if ext_registry: |
122 |
|
for ext in ext_registry: |
123 |
|
text += '%s %s:\n' % (ext.name, ext.version) |
124 |
|
text += _('Copyright %s\n') % ext.copyright |
125 |
|
text += _('Authors:\n') |
126 |
|
for author in ext.authors: |
127 |
|
text+= '\t%s\n' % author |
128 |
|
text += ext.desc |
129 |
|
text += '\n' |
130 |
|
text += 'Status: %s' % ext.status |
131 |
|
text += '\n\n' |
132 |
|
else: |
133 |
|
text += _('\tNone registered.\n') |
134 |
|
|
135 |
self.text = text |
self.text = text |
136 |
|
|
137 |
text_title = wxStaticText(self, -1, |
text_title = wxStaticText(self, -1, |
138 |
"Thuban is a program for exploring geographic data.\n\n" |
_("Thuban is a program for exploring geographic data.\n\n") + |
139 |
"Copyright 2001-2003 Intevation GmbH.\n" |
"Copyright 2001-2004 Intevation GmbH.\n" + |
140 |
"Thuban is licensed under the GNU GPL", |
_("Thuban is licensed under the GNU GPL"), |
141 |
style=wxST_NO_AUTORESIZE|wxALIGN_CENTRE) |
style=wxST_NO_AUTORESIZE|wxALIGN_CENTRE) |
142 |
|
|
143 |
textBox = wxTextCtrl(self, -1, text, |
textBox = wxTextCtrl(self, -1, text, |
164 |
|
|
165 |
def OnCancel(self, event): |
def OnCancel(self, event): |
166 |
self.EndModal(wxID_CANCEL) |
self.EndModal(wxID_CANCEL) |
|
|
|
|
|
|