/[thuban]/trunk/thuban/Thuban/UI/about.py
ViewVC logotype

Diff of /trunk/thuban/Thuban/UI/about.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1305 by jonathan, Thu Jun 26 16:59:41 2003 UTC revision 2674 by bernhard, Wed Oct 19 08:56:47 2005 UTC
# Line 1  Line 1 
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.
9    
10  from wxPython.wx import *  """The About Box"""
 #from wxPython.wx import __version__ as wxPython_version  
   
 from Thuban import _  
 #import Thuban.version  
 from Thuban.version import versions  
11    
12  #from sqlite import version as pysqlite_version  __version__ = "$Revision$"
13  #from _sqlite import sqlite_version  # $Source$
14    # $Id$
15    
16  #from wxproj import get_proj_version, get_gtk_version  from wxPython.wx import *
17    
18  #from  Thuban.Model.resource import has_gdal_support  from Thuban import _, internal_from_unicode, get_internal_encoding
19    from Thuban.version import versions
20    from Thuban.Model.resource import gdal_support_status
21    
22  #if has_gdal_support():  from Thuban.UI.extensionregistry import ext_registry
 #    from gdalwarp import get_gdal_version  
23    
24  class About(wxDialog):  class About(wxDialog):
25    
# Line 33  class About(wxDialog): Line 32  class About(wxDialog):
32                    | wxRESIZE_BORDER,                    | wxRESIZE_BORDER,
33              size = (400, 250))              size = (400, 250))
34    
35          #proj_ver = get_proj_version()          # Note: The source code is in ASCII, so we escape some
36          #if proj_ver:          # characters to get byte strings in latin1.
37              #proj_ver = "%d.%d.%d" % proj_ver          lead_developer = 'Bernhard Herzog'
38          #else:          developers = [ 'Jonathan Coles',
39              #proj_ver = " - not available"                         'Frank Koormann',
40                           internal_from_unicode(u'Martin M\xfcller'),
41          #gtk_ver = get_gtk_version()                         'Bernhard Reiter',
42          #if gtk_ver:                         'Jan-Oliver Wagner' ]
43              #gtk_ver = "%d.%d.%d" % gtk_ver          translators = [ ( _('French'), 'Daniel Calvelo Aros' ),
44          #else:                          ( _('German'),
45              #gtk_ver = " - not available"                            internal_from_unicode(u'Bj\xf6rn Broscheit')),
46                            ( _('Hungarian'), 'Norbert Solymosi'),
47          text = _(#"Build Date: %s\n"                          ( _('Italian'), 'Maurizio Napolitano'),
48              "%s\n\n"                          ( _('Portuguese (Brazilian)'), 'Eduardo Patto Kanegae'),
49              "Currently using:\n"                          ( _('Russian'), 'Alex Shevlakov'),
50              "\t%s\n"                          ( _('Spanish'), 'Daniel Calvelo Aros') ]
51              "\t%s\n"          other_contributors = [ 'Jonathan Byron',
52              "\t%s\n"                                 'Ole Rahn',
53              "\t%s\n"                                 'Silke Reimer' ]
54              "\t%s\n\n"          dyn_modules = [ ('wxPython', versions['wxPython']),
55              "Compiled against:\n"                          ('Python',   versions['python']),
56              "\t%s\n"                          ('PySQLite', versions['pysqlite']),
57              "\t%s\n\n"                          ('SQLite',  versions['sqlite']),
58              "Lead Developer:\n"                          ('GDAL', versions.get('gdal', _('- not available'))),
59              "\tBernhard Herzog <[email protected]>\n\n"                          ('psycopg', versions.get('psycopg',
60              "Developers:\n"                                                   _('- not available')))]
61              "\tJonathan Coles\n"          direct_modules = [ \
62              "\tFrank Koormann\n"                  ('GTK',      versions.get('gtk', _('- not available'))),
63              "\tBernhard Reiter\n"                  ('proj',     versions['proj']) ]
64              "\tJan-Oliver Wagner\n\n"  
65              "Contributors:\n"          text = 'Thuban %s\n\n' % versions['thuban-long']
66              "\tJonathan Byron\n"  
67              "\tMartin M�ller"          text += _('Currently using:\n')
68              % ("Thuban %s"      % versions['thuban-long'],  
69                 "wxPython %s"    % versions['wxPython'],          for name, version in dyn_modules:
70                 "Python %s"      % versions['python'],              text+= '\t%s %s\n' % (name, version)
71                 "PySQLite %s"    % versions['pysqlite'],          text += '\n'
72                 "SQLite %s"      % versions['sqlite'],  
73                 "GDAL %s"        % versions.get('gdal', " - not available"),          text += _('\tInternal encoding: %s\n') % get_internal_encoding()
74                 "GTK %s"         % versions.get('gtk', " - not available"),          text += '\n'
75                 "proj %s"        % versions['proj']))  
76            if gdal_support_status:
77                text += gdal_support_status + "\n\n"
78    
79            text += _('Compiled for:\n')
80    
81            for name, version in direct_modules:
82                text+= '\t%s %s\n' % (name, version)
83            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')
94            text += '\t%s\n\n' % lead_developer
95    
96            text += _('Developers:\n')
97            for name in developers:
98                text += '\t%s\n' % name
99            text += '\n'
100    
101            text += _('Translators:\n')
102            for lang, name in translators:
103                text += '\t%s: %s\n' % (lang, name)
104            text += '\n'
105    
106            text += _('Other Contributors:\n')
107            for name in other_contributors:
108                text += '\t%s\n' % name
109            text += '\n'
110    
111            text += \
112                _("Questions and comments can be sent to the following addresses:\n"
113                "\tGeneral list (public):\n\t\t<[email protected]>\n"
114                "\tDevelopers list (public):\n\t\t<[email protected]>\n"
115                "\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-2003 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    
144          textBox = wxTextCtrl(self, -1, text,          textBox = wxTextCtrl(self, -1, text,
# Line 107  class About(wxDialog): Line 165  class About(wxDialog):
165    
166      def OnCancel(self, event):      def OnCancel(self, event):
167          self.EndModal(wxID_CANCEL)          self.EndModal(wxID_CANCEL)
   
   

Legend:
Removed from v.1305  
changed lines
  Added in v.2674

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26