/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/UI/about.py
ViewVC logotype

Annotation of /branches/WIP-pyshapelib-bramz/Thuban/UI/about.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2647 - (hide annotations)
Tue Jul 5 20:04:35 2005 UTC (19 years, 8 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/about.py
File MIME type: text/x-python
File size: 5824 byte(s)
(About.__init__): Extend copyright notice to 2005

1 jan 2582 # Copyright (c) 2001-2005 by Intevation GmbH
2 jonathan 1305 # Authors:
3     # Jonathan Coles <[email protected]>
4 bernhard 2140 # Bernhard Reiter <[email protected]>
5 silke 2338 # Silke Reimer <[email protected]>
6 jonathan 1305 #
7     # This program is free software under the GPL (>=v2)
8     # Read the file COPYING coming with Thuban for details.
9    
10 bh 1542 """The About Box"""
11    
12     __version__ = "$Revision$"
13     # $Source$
14     # $Id$
15    
16 jonathan 1305 from wxPython.wx import *
17    
18 bh 2478 from locale import getdefaultlocale
19 silke 2338
20 bh 2642 from Thuban import _, internal_from_unicode
21 jonathan 1305 from Thuban.version import versions
22 bh 1964 from Thuban.Model.resource import gdal_support_status
23 jonathan 1305
24 jan 2354 from Thuban.UI.extensionregistry import ext_registry
25    
26 jonathan 1305 class About(wxDialog):
27    
28     def __init__(self, parent):
29     wxDialog.__init__(self, parent, -1, _("About Thuban"),
30     style = wxDEFAULT_DIALOG_STYLE
31     | wxSYSTEM_MENU
32     | wxMINIMIZE_BOX
33     | wxMAXIMIZE_BOX
34     | wxRESIZE_BORDER,
35     size = (400, 250))
36    
37 bh 1980 # Note: The source code is in ASCII, so we escape some
38     # characters to get byte strings in latin1.
39 jan 1628 lead_developer = 'Bernhard Herzog'
40 jan 2428 developers = [ 'Jonathan Coles',
41     'Frank Koormann',
42 bh 2642 internal_from_unicode(u'Martin M\xfcller'),
43 jan 2428 'Bernhard Reiter',
44     'Jan-Oliver Wagner' ]
45 jan 1628 translators = [ ( _('French'), 'Daniel Calvelo Aros' ),
46 bh 2642 ( _('German'),
47     internal_from_unicode(u'Bj\xf6rn Broscheit')),
48 jan 2428 ( _('Hungarian'), 'Norbert Solymosi'),
49 jan 1628 ( _('Italian'), 'Maurizio Napolitano'),
50 frank 2053 ( _('Portuguese (Brazilian)'), 'Eduardo Patto Kanegae'),
51 jan 1628 ( _('Russian'), 'Alex Shevlakov'),
52     ( _('Spanish'), 'Daniel Calvelo Aros') ]
53 jan 2428 other_contributors = [ 'Jonathan Byron',
54     'Ole Rahn',
55     'Silke Reimer' ]
56 jan 1628 dyn_modules = [ ('wxPython', versions['wxPython']),
57     ('Python', versions['python']),
58     ('PySQLite', versions['pysqlite']),
59     ('SQLite', versions['sqlite']),
60 bh 1631 ('GDAL', versions.get('gdal', _('- not available'))),
61     ('psycopg', versions.get('psycopg',
62     _('- not available')))]
63 jan 1628 direct_modules = [ \
64     ('GTK', versions.get('gtk', _('- not available'))),
65     ('proj', versions['proj']) ]
66    
67     text = 'Thuban %s\n\n' % versions['thuban-long']
68    
69     text += _('Currently using:\n')
70    
71     for name, version in dyn_modules:
72     text+= '\t%s %s\n' % (name, version)
73     text += '\n'
74    
75 bh 1964 if gdal_support_status:
76     text += gdal_support_status + "\n\n"
77    
78 jan 1628 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 jan 2354 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 jan 1628 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 bernhard 2140 "\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 jonathan 1305
117 jan 2354 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 jan 2582 text += '\n'
130     text += 'Status: %s' % ext.status
131 jan 2354 text += '\n\n'
132     else:
133     text += _('\tNone registered.\n')
134    
135 jonathan 1305 self.text = text
136    
137     text_title = wxStaticText(self, -1,
138 jan 1628 _("Thuban is a program for exploring geographic data.\n\n") +
139 bh 2647 "Copyright 2001-2005 Intevation GmbH.\n" +
140 jan 1628 _("Thuban is licensed under the GNU GPL"),
141 jonathan 1305 style=wxST_NO_AUTORESIZE|wxALIGN_CENTRE)
142    
143     textBox = wxTextCtrl(self, -1, text,
144     style=wxTE_READONLY|wxTE_MULTILINE|wxTE_LINEWRAP)
145     w, h = (300, 150)
146     textBox.SetSizeHints(w, h)
147     textBox.SetSize((w, h))
148    
149     button_close = wxButton(self, wxID_CANCEL, _("Close"))
150     button_close.SetDefault()
151    
152     sizer = wxBoxSizer(wxVERTICAL)
153     sizer.Add(text_title, 0, wxALL|wxEXPAND|wxADJUST_MINSIZE, 10)
154     sizer.Add(textBox, 1, wxALL|wxEXPAND, 10)
155     sizer.Add(button_close, 0, wxALL|wxALIGN_RIGHT, 10)
156    
157     self.SetAutoLayout(True)
158     self.SetSizer(sizer)
159     sizer.Fit(self)
160     sizer.SetSizeHints(self)
161     self.Layout()
162    
163     EVT_BUTTON(self, wxID_CANCEL, self.OnCancel)
164    
165     def OnCancel(self, event):
166     self.EndModal(wxID_CANCEL)

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26