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

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26