(no commit message)
[drlaunch] / 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 maemo's bugzilla:
54 https://bugs.maemo.org/enter_bug.cgi?product=DrLaunch (preferred)
55 or directly to Stefanos Harhalakis <v13@v13.gr>
56
57 DrLaunch is free software: you can redistribute it and/or modify
58 it under the terms of the GNU General Public License as published by
59 the Free Software Foundation, either version 3 of the License, or
60 (at your option) any later version.
61
62 DrLaunch is distributed in the hope that it will be useful,
63 but WITHOUT ANY WARRANTY; without even the implied warranty of
64 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
65 GNU General Public License for more details.
66
67 You should have received a copy of the GNU General Public License
68 along with DrLaunch.  If not, see <http://www.gnu.org/licenses/>.
69
70 DrLaunch uses a modified version of about.py from gpodder which is also
71 distributed under the terms of the GPLv3 license. It also uses a
72 modified version of portrait.py from gpodder which is also distributed
73 under the terms of the GPLv3 license.
74 """
75
76         args={
77         "app_name":         "DrLaunch",
78         "version":          config.version,
79         "copyright":        _copyright + "\n" + _license,
80         "description":      _description,
81         "bugtracker_url":   "https://bugs.maemo.org/enter_bug.cgi?product=DrLaunch",
82         "parent":           parent,
83         }
84
85         cls.present(**args)
86
87     def set_icon_name(self, icon_name):
88         pass
89
90 # vim: set ts=8 sts=4 sw=4 noet formatoptions=r ai nocindent:
91