-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathcadtoolsaboutgui.py
45 lines (34 loc) · 2.02 KB
/
cadtoolsaboutgui.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# -*- coding: latin1 -*-
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from qgis.core import *
from ui_cadtoolsabout import Ui_CadToolsAbout
import webbrowser, os
currentPath = os.path.dirname(__file__)
class CadToolsAboutGui(QDialog, QObject, Ui_CadToolsAbout):
def __init__(self, iface):
QDialog.__init__(self, iface)
self.iface = iface
self.setupUi(self)
self.btnWeb.clicked.connect(self.openWeb)
self.btnHelp.clicked.connect(self.openHelp)
self.lblVersion.setText("CadTools 0.6.2")
self.txtAbout.setText(self.getText())
def openWeb(self):
webbrowser.open("http://plugins.qgis.org/plugins/cadtools/")
def openHelp(self):
webbrowser.open(currentPath + "/help/cadtools_help.html")
def getText(self):
return self.tr("""
CadTools provides some tools to perform CAD like functions in QGIS.
There is some code adopted from the Numerical Vertex Edit plugin (Cédric Möri), fTools (Carson Farmer) and the Python console. Thank you!
And thanks to Giuseppe Sucameli for solving the lost icons issue.
Ported to QGIS 2.0 API version by Angelos Tzotsos (gcpp.kalxas@gmail.com) and Matthias Uden (matthias.uden@gmail.com)
LICENSING INFORMATION:
CadTools is copyright (C) 2009-2011 Stefan Ziegler
stefan.ziegler@bd.so.ch
Licensed under the terms of GNU GPL 2
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
""")