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

Diff of /branches/WIP-pyshapelib-bramz/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 2334 by silke, Tue Aug 10 19:58:50 2004 UTC
# Line 1  Line 1 
1  # Copyright (c) 2001, 2002, 2003 by Intevation GmbH  # Copyright (c) 2001, 2002, 2003, 2004 by Intevation GmbH
2  # Authors:  # Authors:
3  # Jonathan Coles <[email protected]>  # Jonathan Coles <[email protected]>
4    # Bernhard Reiter <[email protected]>
5  #  #
6  # This program is free software under the GPL (>=v2)  # This program is free software under the GPL (>=v2)
7  # Read the file COPYING coming with Thuban for details.  # Read the file COPYING coming with Thuban for details.
8    
9  from wxPython.wx import *  """The About Box"""
 #from wxPython.wx import __version__ as wxPython_version  
10    
11  from Thuban import _  __version__ = "$Revision$"
12  #import Thuban.version  # $Source$
13  from Thuban.version import versions  # $Id$
14    
15  #from sqlite import version as pysqlite_version  from wxPython.wx import *
 #from _sqlite import sqlite_version  
   
 #from wxproj import get_proj_version, get_gtk_version  
16    
17  #from  Thuban.Model.resource import has_gdal_support  import locale
18    
19  #if has_gdal_support():  from Thuban import _
20  #    from gdalwarp import get_gdal_version  from Thuban.version import versions
21    from Thuban.Model.resource import gdal_support_status
22    
23  class About(wxDialog):  class About(wxDialog):
24    
# Line 33  class About(wxDialog): Line 31  class About(wxDialog):
31                    | wxRESIZE_BORDER,                    | wxRESIZE_BORDER,
32              size = (400, 250))              size = (400, 250))
33    
34          #proj_ver = get_proj_version()          # Note: The source code is in ASCII, so we escape some
35          #if proj_ver:          # characters to get byte strings in latin1.
36              #proj_ver = "%d.%d.%d" % proj_ver          lead_developer = 'Bernhard Herzog'
37          #else:          developers = [ 'Jonathan Coles', 'Frank Koormann',
38              #proj_ver = " - not available"                         unicodeToLocale(u'Martin M\xfcller'), 'Jan-Oliver Wagner' ]
39            translators = [ ( _('French'), 'Daniel Calvelo Aros' ),
40          #gtk_ver = get_gtk_version()                          ( _('German'), unicodeToLocale(u'Bj\xf6rn Broscheit')),
41          #if gtk_ver:                          ( _('Italian'), 'Maurizio Napolitano'),
42              #gtk_ver = "%d.%d.%d" % gtk_ver                          ( _('Portuguese (Brazilian)'), 'Eduardo Patto Kanegae'),
43          #else:                          ( _('Russian'), 'Alex Shevlakov'),
44              #gtk_ver = " - not available"                          ( _('Spanish'), 'Daniel Calvelo Aros') ]
45            other_contributors = [ 'Jonathan Byron', 'Silke Reimer',
46          text = _(#"Build Date: %s\n"                                 'Bernhard Reiter' ]
47              "%s\n\n"          dyn_modules = [ ('wxPython', versions['wxPython']),
48              "Currently using:\n"                          ('Python',   versions['python']),
49              "\t%s\n"                          ('PySQLite', versions['pysqlite']),
50              "\t%s\n"                          ('SQLite',  versions['sqlite']),
51              "\t%s\n"                          ('GDAL', versions.get('gdal', _('- not available'))),
52              "\t%s\n"                          ('psycopg', versions.get('psycopg',
53              "\t%s\n\n"                                                   _('- not available')))]
54              "Compiled against:\n"          direct_modules = [ \
55              "\t%s\n"                  ('GTK',      versions.get('gtk', _('- not available'))),
56              "\t%s\n\n"                  ('proj',     versions['proj']) ]
57              "Lead Developer:\n"  
58              "\tBernhard Herzog <[email protected]>\n\n"          text = 'Thuban %s\n\n' % versions['thuban-long']
59              "Developers:\n"  
60              "\tJonathan Coles\n"          text += _('Currently using:\n')
61              "\tFrank Koormann\n"  
62              "\tBernhard Reiter\n"          for name, version in dyn_modules:
63              "\tJan-Oliver Wagner\n\n"              text+= '\t%s %s\n' % (name, version)
64              "Contributors:\n"          text += '\n'
65              "\tJonathan Byron\n"  
66              "\tMartin M�ller"          if gdal_support_status:
67              % ("Thuban %s"      % versions['thuban-long'],              text += gdal_support_status + "\n\n"
68                 "wxPython %s"    % versions['wxPython'],  
69                 "Python %s"      % versions['python'],          text += _('Compiled for:\n')
70                 "PySQLite %s"    % versions['pysqlite'],  
71                 "SQLite %s"      % versions['sqlite'],          for name, version in direct_modules:
72                 "GDAL %s"        % versions.get('gdal', " - not available"),              text+= '\t%s %s\n' % (name, version)
73                 "GTK %s"         % versions.get('gtk', " - not available"),          text += '\n'
74                 "proj %s"        % versions['proj']))  
75            text += _('Lead Developer:\n')
76            text += '\t%s\n\n' % lead_developer
77    
78            text += _('Developers:\n')
79            for name in developers:
80                text += '\t%s\n' % name
81            text += '\n'
82    
83            text += _('Translators:\n')
84            for lang, name in translators:
85                text += '\t%s: %s\n' % (lang, name)
86            text += '\n'
87    
88            text += _('Other Contributors:\n')
89            for name in other_contributors:
90                text += '\t%s\n' % name
91            text += '\n'
92    
93            text += \
94                _("Questions and comments can be sent to the following addresses:\n"
95                "\tGeneral list (public):\n\t\t<[email protected]>\n"
96                "\tDevelopers list (public):\n\t\t<[email protected]>\n"
97                "\tThuban team at Intevation:\n\t\t<[email protected]>\n"
98                )
99    
100          self.text = text          self.text = text
101    
102          text_title = wxStaticText(self, -1,          text_title = wxStaticText(self, -1,
103              "Thuban is a program for exploring geographic data.\n\n"              _("Thuban is a program for exploring geographic data.\n\n") +
104              "Copyright 2001-2003 Intevation GmbH.\n"              "Copyright 2001-2004 Intevation GmbH.\n" +
105              "Thuban is licensed under the GNU GPL",              _("Thuban is licensed under the GNU GPL"),
106                                    style=wxST_NO_AUTORESIZE|wxALIGN_CENTRE)                                    style=wxST_NO_AUTORESIZE|wxALIGN_CENTRE)
107    
108          textBox = wxTextCtrl(self, -1, text,          textBox = wxTextCtrl(self, -1, text,
# Line 109  class About(wxDialog): Line 131  class About(wxDialog):
131          self.EndModal(wxID_CANCEL)          self.EndModal(wxID_CANCEL)
132    
133    
134    def unicodeToLocale(unicodeStr):
135        " Function to convert a unicode object to an object \ in the user's locale encoding"
136    
137    
138        import locale
139        return unicodeStr.encode(locale.getlocale()[1])
140    

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26