1 |
# Copyright (c) 2001, 2002, 2003, 2004 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]> |
# 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 Thuban import _, internal_from_unicode, get_internal_encoding |
19 |
from Thuban.version import versions |
from Thuban.version import versions |
20 |
from Thuban.Model.resource import gdal_support_status |
from Thuban.Model.resource import gdal_support_status |
21 |
|
|
22 |
|
from Thuban.UI.extensionregistry import ext_registry |
23 |
|
|
24 |
class About(wxDialog): |
class About(wxDialog): |
25 |
|
|
26 |
def __init__(self, parent): |
def __init__(self, parent): |
35 |
# Note: The source code is in ASCII, so we escape some |
# Note: The source code is in ASCII, so we escape some |
36 |
# characters to get byte strings in latin1. |
# characters to get byte strings in latin1. |
37 |
lead_developer = 'Bernhard Herzog' |
lead_developer = 'Bernhard Herzog' |
38 |
developers = [ 'Jonathan Coles', 'Frank Koormann', |
developers = [ 'Jonathan Coles', |
39 |
'Martin M\xfcller', 'Jan-Oliver Wagner' ] |
'Frank Koormann', |
40 |
|
internal_from_unicode(u'Martin M\xfcller'), |
41 |
|
'Bernhard Reiter', |
42 |
|
'Jan-Oliver Wagner' ] |
43 |
translators = [ ( _('French'), 'Daniel Calvelo Aros' ), |
translators = [ ( _('French'), 'Daniel Calvelo Aros' ), |
44 |
( _('German'), 'Bj\xf6rn Broscheit'), |
( _('German'), |
45 |
|
internal_from_unicode(u'Bj\xf6rn Broscheit')), |
46 |
|
( _('Hungarian'), 'Norbert Solymosi'), |
47 |
( _('Italian'), 'Maurizio Napolitano'), |
( _('Italian'), 'Maurizio Napolitano'), |
48 |
( _('Portuguese (Brazilian)'), 'Eduardo Patto Kanegae'), |
( _('Portuguese (Brazilian)'), 'Eduardo Patto Kanegae'), |
49 |
( _('Russian'), 'Alex Shevlakov'), |
( _('Russian'), 'Alex Shevlakov'), |
50 |
( _('Spanish'), 'Daniel Calvelo Aros') ] |
( _('Spanish'), 'Daniel Calvelo Aros') ] |
51 |
other_contributors = [ 'Jonathan Byron', 'Silke Reimer', |
other_contributors = [ 'Jonathan Byron', |
52 |
'Bernhard Reiter' ] |
'Ole Rahn', |
53 |
|
'Silke Reimer' ] |
54 |
dyn_modules = [ ('wxPython', versions['wxPython']), |
dyn_modules = [ ('wxPython', versions['wxPython']), |
55 |
('Python', versions['python']), |
('Python', versions['python']), |
56 |
('PySQLite', versions['pysqlite']), |
('PySQLite', versions['pysqlite']), |
70 |
text+= '\t%s %s\n' % (name, version) |
text+= '\t%s %s\n' % (name, version) |
71 |
text += '\n' |
text += '\n' |
72 |
|
|
73 |
|
text += _('\tInternal encoding: %s\n') % get_internal_encoding() |
74 |
|
text += '\n' |
75 |
|
|
76 |
if gdal_support_status: |
if gdal_support_status: |
77 |
text += gdal_support_status + "\n\n" |
text += gdal_support_status + "\n\n" |
78 |
|
|
82 |
text+= '\t%s %s\n' % (name, version) |
text+= '\t%s %s\n' % (name, version) |
83 |
text += '\n' |
text += '\n' |
84 |
|
|
85 |
|
text += _('Extensions:\n') |
86 |
|
if ext_registry: |
87 |
|
for ext in ext_registry: |
88 |
|
text += '\t%s %s\n' % (ext.name, ext.version) |
89 |
|
else: |
90 |
|
text += _('\tNone registered.\n') |
91 |
|
text += '\n' |
92 |
|
|
93 |
text += _('Lead Developer:\n') |
text += _('Lead Developer:\n') |
94 |
text += '\t%s\n\n' % lead_developer |
text += '\t%s\n\n' % lead_developer |
95 |
|
|
115 |
"\tThuban team at Intevation:\n\t\t<[email protected]>\n" |
"\tThuban team at Intevation:\n\t\t<[email protected]>\n" |
116 |
) |
) |
117 |
|
|
118 |
|
text += '\n\n' |
119 |
|
|
120 |
|
text += _("Details on the registered extensions:\n\n") |
121 |
|
|
122 |
|
if ext_registry: |
123 |
|
for ext in ext_registry: |
124 |
|
text += '%s %s:\n' % (ext.name, ext.version) |
125 |
|
text += _('Copyright %s\n') % ext.copyright |
126 |
|
text += _('Authors:\n') |
127 |
|
for author in ext.authors: |
128 |
|
text+= '\t%s\n' % author |
129 |
|
text += ext.desc |
130 |
|
text += '\n' |
131 |
|
text += 'Status: %s' % ext.status |
132 |
|
text += '\n\n' |
133 |
|
else: |
134 |
|
text += _('\tNone registered.\n') |
135 |
|
|
136 |
self.text = text |
self.text = text |
137 |
|
|
138 |
text_title = wxStaticText(self, -1, |
text_title = wxStaticText(self, -1, |
139 |
_("Thuban is a program for exploring geographic data.\n\n") + |
_("Thuban is a program for exploring geographic data.\n\n") + |
140 |
"Copyright 2001-2004 Intevation GmbH.\n" + |
"Copyright 2001-2005 Intevation GmbH.\n" + |
141 |
_("Thuban is licensed under the GNU GPL"), |
_("Thuban is licensed under the GNU GPL"), |
142 |
style=wxST_NO_AUTORESIZE|wxALIGN_CENTRE) |
style=wxST_NO_AUTORESIZE|wxALIGN_CENTRE) |
143 |
|
|
165 |
|
|
166 |
def OnCancel(self, event): |
def OnCancel(self, event): |
167 |
self.EndModal(wxID_CANCEL) |
self.EndModal(wxID_CANCEL) |
|
|
|
|
|
|