/[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 1628 by jan, Fri Aug 22 12:53:41 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 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  class About(wxDialog):  class About(wxDialog):
20    
21      def __init__(self, parent):      def __init__(self, parent):
# Line 33  class About(wxDialog): Line 27  class About(wxDialog):
27                    | wxRESIZE_BORDER,                    | wxRESIZE_BORDER,
28              size = (400, 250))              size = (400, 250))
29    
30          #proj_ver = get_proj_version()          lead_developer = 'Bernhard Herzog'
31          #if proj_ver:          developers = [ 'Jonathan Coles', 'Frank Koormann',
32              #proj_ver = "%d.%d.%d" % proj_ver                         'Martin M�ller', 'Jan-Oliver Wagner' ]
33          #else:          translators = [ ( _('French'), 'Daniel Calvelo Aros' ),
34              #proj_ver = " - not available"                          ( _('German'), 'Bj�rn Broscheit'),
35                            ( _('Italian'), 'Maurizio Napolitano'),
36          #gtk_ver = get_gtk_version()                          ( _('Russian'), 'Alex Shevlakov'),
37          #if gtk_ver:                          ( _('Spanish'), 'Daniel Calvelo Aros') ]
38              #gtk_ver = "%d.%d.%d" % gtk_ver          other_contributors = [ 'Jonathan Byron', 'Silke Reimer',
39          #else:                                 'Bernhard Reiter' ]
40              #gtk_ver = " - not available"          dyn_modules = [ ('wxPython', versions['wxPython']),
41                            ('Python',   versions['python']),
42          text = _(#"Build Date: %s\n"                          ('PySQLite', versions['pysqlite']),
43              "%s\n\n"                          ('SQLite',  versions['sqlite']),
44              "Currently using:\n"                          ('GDAL',     versions.get('gdal',_('- not available')))]
45              "\t%s\n"          direct_modules = [ \
46              "\t%s\n"                  ('GTK',      versions.get('gtk', _('- not available'))),
47              "\t%s\n"                  ('proj',     versions['proj']) ]
48              "\t%s\n"  
49              "\t%s\n\n"          text = 'Thuban %s\n\n' % versions['thuban-long']
50              "Compiled against:\n"  
51              "\t%s\n"          text += _('Currently using:\n')
52              "\t%s\n\n"  
53              "Lead Developer:\n"          for name, version in dyn_modules:
54              "\tBernhard Herzog <[email protected]>\n\n"              text+= '\t%s %s\n' % (name, version)
55              "Developers:\n"          text += '\n'
56              "\tJonathan Coles\n"  
57              "\tFrank Koormann\n"          text += _('Compiled for:\n')
58              "\tBernhard Reiter\n"  
59              "\tJan-Oliver Wagner\n\n"          for name, version in direct_modules:
60              "Contributors:\n"              text+= '\t%s %s\n' % (name, version)
61              "\tJonathan Byron\n"          text += '\n'
62              "\tMartin M�ller"  
63              % ("Thuban %s"      % versions['thuban-long'],          text += _('Lead Developer:\n')
64                 "wxPython %s"    % versions['wxPython'],          text += '\t%s\n\n' % lead_developer
65                 "Python %s"      % versions['python'],  
66                 "PySQLite %s"    % versions['pysqlite'],          text += _('Developers:\n')
67                 "SQLite %s"      % versions['sqlite'],          for name in developers:
68                 "GDAL %s"        % versions.get('gdal', " - not available"),              text += '\t%s\n' % name
69                 "GTK %s"         % versions.get('gtk', " - not available"),          text += '\n'
70                 "proj %s"        % versions['proj']))  
71            text += _('Translators:\n')
72            for lang, name in translators:
73                text += '\t%s: %s\n' % (lang, name)
74            text += '\n'
75    
76            text += _('Other Contributors:\n')
77            for name in other_contributors:
78                text += '\t%s\n' % name
79            text += '\n'
80    
81            text += \
82                _("Questions and comments can be sent to the following addresses:\n"
83                "\tThuban developers:\n\t\t<[email protected]>\n"
84                "\tThuban mailing list:\n\t\t<[email protected]>")
85    
86          self.text = text          self.text = text
87    
88          text_title = wxStaticText(self, -1,          text_title = wxStaticText(self, -1,
89              "Thuban is a program for exploring geographic data.\n\n"              _("Thuban is a program for exploring geographic data.\n\n") +
90              "Copyright 2001-2003 Intevation GmbH.\n"              "Copyright 2001-2003 Intevation GmbH.\n" +
91              "Thuban is licensed under the GNU GPL",              _("Thuban is licensed under the GNU GPL"),
92                                    style=wxST_NO_AUTORESIZE|wxALIGN_CENTRE)                                    style=wxST_NO_AUTORESIZE|wxALIGN_CENTRE)
93    
94          textBox = wxTextCtrl(self, -1, text,          textBox = wxTextCtrl(self, -1, text,

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26