~ubuntu-branches/ubuntu/wily/qgis/wily

« back to all changes in this revision

Viewing changes to python/plugins/fTools/doAbout.py

  • Committer: Bazaar Package Importer
  • Author(s): Johan Van de Wauw
  • Date: 2010-07-11 20:23:24 UTC
  • mfrom: (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100711202324-5ktghxa7hracohmr
Tags: 1.4.0+12730-3ubuntu1
* Merge from Debian unstable (LP: #540941).
* Fix compilation issues with QT 4.7
* Add build-depends on libqt4-webkit-dev 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# licensed under the terms of GNU GPL 2
 
2
 
3
# This program is free software; you can redistribute it and/or modify
 
4
# it under the terms of the GNU General Public License as published by
 
5
# the Free Software Foundation; either version 2 of the License, or
 
6
# (at your option) any later version.
 
7
 
8
# This program is distributed in the hope that it will be useful,
 
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
11
# GNU General Public License for more details.
 
12
 
13
# You should have received a copy of the GNU General Public License along
 
14
# with this program; if not, write to the Free Software Foundation, Inc.,
 
15
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
16
 
 
17
from PyQt4.QtCore import *
 
18
from PyQt4.QtGui import *
 
19
 
 
20
from qgis.core import *
 
21
import webbrowser, os
 
22
from ui_frmAbout import Ui_Dialog
 
23
import resources_rc
 
24
currentPath = os.path.dirname(__file__)
 
25
 
 
26
class Dialog(QDialog, Ui_Dialog):
 
27
        def __init__(self, iface):
 
28
                QDialog.__init__(self)
 
29
                self.iface = iface
 
30
                # Set up the user interface from Designer.
 
31
                self.setupUi(self)
 
32
                QObject.connect(self.btnWeb, SIGNAL("clicked()"), self.openWeb)
 
33
                QObject.connect(self.btnHelp, SIGNAL("clicked()"), self.openHelp)
 
34
                self.fToolsLogo.setPixmap(QPixmap(":/icons/default/ftools_logo.png"))
 
35
                self.label_3.setText("fTools 0.5.10")
 
36
                self.textEdit.setText(self.getText())
 
37
 
 
38
        def getText(self):
 
39
                aboutText = QString("The goal of fTools is to provide a one-stop resource for many common vector-based GIS tasks, ")
 
40
                aboutText.append("without the need for additional software, libraries, or complex workarounds.\n\n")
 
41
                aboutText.append("fTools is designed to extend the functionality of Quantum GIS using only core QGIS and python ")
 
42
                aboutText.append("libraries. It provides a growing suite of spatial data management and analysis functions that are ")
 
43
                aboutText.append("both quick and functional. In addition, the geoprocessing functions of  Dr. Horst Duester and ")
 
44
                aboutText.append("Stefan Ziegler have been incorporated to futher facilitate and streamline GIS based research and analysis.\n\n")
 
45
                aboutText.append("If you would like to report a bug, make suggestions for improving fTools, or have a question about ")
 
46
                aboutText.append("the tools, please email me: carson.farmer@gmail.com\n\n")
 
47
                licenceString = QString("LICENSING INFORMATION:\n")
 
48
                licenceString.append("fTools is copyright (C) 2009  Carson J.Q. Farmer\n")
 
49
                licenceString.append("Geoprocessing functions adapted from 'Geoprocessing Plugin',\n")
 
50
                licenceString.append("(C) 2008 by Dr. Horst Duester, Stefan Ziegler\n\n")
 
51
                licenceString.append("licensed under the terms of GNU GPL 2\n")
 
52
                licenceString.append("This program is free software; you can redistribute it and/or modify")
 
53
                licenceString.append("it under the terms of the GNU General Public License as published by")
 
54
                licenceString.append("the Free Software Foundation; either version 2 of the License, or")
 
55
                licenceString.append("(at your option) any later version.\n")
 
56
                licenceString.append("This program is distributed in the hope that it will be useful,")
 
57
                licenceString.append("but WITHOUT ANY WARRANTY; without even the implied warranty of")
 
58
                licenceString.append("MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the")
 
59
                licenceString.append("GNU General Public License for more details.\n")
 
60
                licenceString.append("You should have received a copy of the GNU General Public License along")
 
61
                licenceString.append("with this program; if not, write to the Free Software Foundation, Inc.,")
 
62
                licenceString.append("51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\n\n")
 
63
                aknowledgeString = QString("AKNOWLEDGEMENTS:\n")
 
64
                aknowledgeString.append("The following individuals (whether they know it or not) have contributed ")
 
65
                aknowledgeString.append("ideas, help, testing, code, and guidence towards this project, and I thank them.\n")
 
66
                aknowledgeString.append("Hawthorn Beyer\n")
 
67
                aknowledgeString.append("Borys Jurgiel\n")
 
68
                aknowledgeString.append("Tim Sutton\n")
 
69
                aknowledgeString.append("Barry Rowlingson\n")
 
70
                aknowledgeString.append("Horst Duester and Stefan Ziegler\n")
 
71
                aknowledgeString.append("Paolo Cavallini\n")
 
72
                aknowledgeString.append("Aaron Racicot\n")
 
73
                aknowledgeString.append("Colin Robertson\n")
 
74
                aknowledgeString.append("Agustin Lobo\n")               
 
75
                aknowledgeString.append("Jurgen E. Fischer\n")
 
76
                aknowledgeString.append("QGis developer and user communities\n")
 
77
                aknowledgeString.append("Folks on #qgis at freenode.net\n")
 
78
                aknowledgeString.append("All those who have reported bugs/fixes/suggestions/comments/etc.")
 
79
                return QString(aboutText.append(licenceString.append(aknowledgeString)))
 
80
 
 
81
        def openWeb(self):
 
82
                webbrowser.open("http://www.ftools.ca/")
 
83
 
 
84
        def openHelp(self):
 
85
                webbrowser.open(currentPath + "/ftools_help.xml")
 
86