Skip to content

Commit f55a844

Browse files
author
cfarmer
committed
initial commit of ftools
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9990 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent fc1954b commit f55a844

File tree

159 files changed

+35705
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+35705
-1
lines changed

python/plugins/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
SUBDIRS(plugin_installer mapserver_export)
1+
SUBDIRS(plugin_installer mapserver_export ftools)

python/plugins/ftools/CMakeLists.txt

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#TODO: Need to configure cmake to run pyrcc4 and pyuic4 as required when the resource
2+
# file or the ui change
3+
SET(INSTALLER_FILES
4+
__init__.py
5+
frmAbout.py
6+
ftools_help.xsl
7+
resources.qrc
8+
frmAbout.ui
9+
fTools.py
10+
doAbout.py
11+
ftools_help.xml
12+
i18n.cpp
13+
resources.py
14+
)
15+
INSTALL(FILES ${INSTALLER_FILES} DESTINATION ${QGIS_DATA_DIR}/python/plugins/ftools)
16+
17+
SUBDIRS(tools icons)

python/plugins/ftools/__init__.py

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
def name():
18+
return "fTools"
19+
20+
def description():
21+
return "Tools for vector data analysis and management"
22+
23+
def version():
24+
return "0.5.2"
25+
26+
def qgisMinimumVersion():
27+
return "1.0.0"
28+
29+
def classFactory( iface ):
30+
from fTools import fToolsPlugin
31+
return fToolsPlugin( iface )

python/plugins/ftools/doAbout.py

+84
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
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 frmAbout import Ui_Dialog
23+
import resources
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.2")
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("QGis developer and user communities\n")
75+
aknowledgeString.append("Folks on #qgis at freenode.net\n")
76+
aknowledgeString.append("All those who have reported bugs/fixes/suggestions/comments/etc.")
77+
return QString(aboutText.append(licenceString.append(aknowledgeString)))
78+
79+
def openWeb(self):
80+
webbrowser.open("http://www.ftools.ca/fTools.html")
81+
82+
def openHelp(self):
83+
webbrowser.open(currentPath + "/ftools_help.xml")
84+

0 commit comments

Comments
 (0)