v0.7
[drlaunch] / src / about.py
1 #!/usr/bin/env python
2 # coding=UTF-8
3
4 # Copyright (C) 2010 Stefanos Harhalakis
5 #
6 # This file is part of DrLaunch.
7 #
8 # DrLaunch is free software: you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation, either version 3 of the License, or
11 # (at your option) any later version.
12 #
13 # DrLaunch is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 # GNU General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with DrLaunch.  If not, see <http://www.gnu.org/licenses/>.
20 #
21 # $Id: 0.py 2265 2010-02-21 19:16:26Z v13 $
22
23 __version__ = "$Id: 0.py 2265 2010-02-21 19:16:26Z v13 $"
24
25 from gtk import AboutDialog
26 import config
27 from about0 import HeAboutDialog
28 from portrait import FremantleRotation
29
30 class DlgAbout(HeAboutDialog, FremantleRotation):
31     def __init__(self):
32         HeAboutDialog.__init__(self)
33         FremantleRotation.__init__(self, "DrlaunchPlugin",
34             mode=FremantleRotation.AUTOMATIC)
35
36     @classmethod
37     def present2(cls, parent):
38         _copyright="""\
39 Copyright (C) 2010 Stefanos Harhalakis <v13@v13.gr>
40 Copyright (C) 2005-2010 Thomas Perl and the gPodder Team (for about0.py
41 and portrait.py)
42 """
43         _description="""
44 DrLaunch is a desktop launcher widget that
45 supports portrait mode by rotating program
46 icons. Whenever the device is rotated, icons
47 are also rotated.
48
49 Thanks to Thomas Perl and the gPodder Team.
50 """
51
52         _license="""\
53 Send bug reports and feature requests to Stefanos Harhalakis <v13@v13.gr>
54
55 DrLaunch is free software: you can redistribute it and/or modify
56 it under the terms of the GNU General Public License as published by
57 the Free Software Foundation, either version 3 of the License, or
58 (at your option) any later version.
59
60 DrLaunch is distributed in the hope that it will be useful,
61 but WITHOUT ANY WARRANTY; without even the implied warranty of
62 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
63 GNU General Public License for more details.
64
65 You should have received a copy of the GNU General Public License
66 along with DrLaunch.  If not, see <http://www.gnu.org/licenses/>.
67
68 DrLaunch uses a modified version of about.py from gpodder which is also
69 distributed under the terms of the GPLv3 license. It also uses a
70 modified version of portrait.py from gpodder which is also distributed
71 under the terms of the GPLv3 license.
72 """
73
74         args={
75         "app_name":         "DrLaunch",
76         "version":          config.version,
77         "copyright":        _copyright + "\n" + _license,
78         "description":      _description,
79         "bugtracker_url":   "mailto:v13@v13.gr",
80         "parent":           parent,
81         }
82
83         cls.present(**args)
84
85     def set_icon_name(self, icon_name):
86         pass
87
88 # vim: set ts=8 sts=4 sw=4 noet formatoptions=r ai nocindent:
89