diff --git a/python/plugins/GdalTools/GdalTools.py b/python/plugins/GdalTools/GdalTools.py index be1b19d1327d..5c7c4128fb56 100644 --- a/python/plugins/GdalTools/GdalTools.py +++ b/python/plugins/GdalTools/GdalTools.py @@ -264,12 +264,6 @@ def initGui( self ): QObject.connect( self.settings, SIGNAL( "triggered()" ), self.doSettings ) self.menu.addAction( self.settings ) - self.about = QAction( QIcon( ":icons/about.png" ), QCoreApplication.translate( "GdalTools", "About GdalTools" ), self.iface.mainWindow() ) - self.about.setStatusTip( QCoreApplication.translate( "GdalTools", "Displays information about Gdal Tools" ) ) - QObject.connect( self.about, SIGNAL( "triggered()" ), self.doAbout ) - self.menu.addSeparator() - self.menu.addAction( self.about ) - menu_bar = self.iface.mainWindow().menuBar() actions = menu_bar.actions() lastAction = actions[ len( actions ) - 1 ] @@ -393,8 +387,3 @@ def doSettings( self ): from tools.doSettings import GdalToolsSettingsDialog as Settings d = Settings( self.iface ) d.exec_() - - def doAbout( self ): - from tools.doAbout import GdalToolsAboutDialog as About - d = About( self.iface ) - d.exec_() diff --git a/python/plugins/GdalTools/tools/doAbout.py b/python/plugins/GdalTools/tools/doAbout.py deleted file mode 100644 index ff1da628870a..000000000000 --- a/python/plugins/GdalTools/tools/doAbout.py +++ /dev/null @@ -1,51 +0,0 @@ -# -*- coding: utf-8 -*- - -from PyQt4.QtCore import * -from PyQt4.QtGui import * -from qgis.core import * -from qgis.gui import * - -from ui_dialogAbout import Ui_GdalToolsAboutDialog as Ui_Dialog -from GdalTools import version -from GdalTools_utils import GdalConfig - -class GdalToolsAboutDialog(QDialog, Ui_Dialog): - - def __init__(self, iface): - QDialog.__init__(self, iface.mainWindow()) - self.setAttribute(Qt.WA_DeleteOnClose) - self.iface = iface - self.setupUi(self) - - QObject.connect(self.btnWeb, SIGNAL("clicked()"), self.openWebsite) - - self.lblVersion.setText( version() + self.tr( "\n(using GDAL v. %1)" ).arg( str( GdalConfig.version() ) ) ) - self.textEdit.setText(self.getText()) - - def getText(self): - return self.tr("""GDAL Tools (AKA Raster Tools) is a plugin for QuantumGIS aiming at making life simpler for users of GDAL Utilities, providing a simplified graphical interface for most commonly used programs. - -The plugin is being developed by Faunalia (http://faunalia.it) with help from GIS-lab (http://gis-lab.info). -Icons by Robert Szczepanek. -Sponsorship by Silvio Grosso was much appreciated. - -Please help us by testing the tools, reporting eventual issues, improving the code, or providing financial support. - -DEVELOPERS: - Faunalia - Paolo Cavallini - Giuseppe Sucameli - Lorenzo Masini - GIS-lab - Maxim Dubinin - Alexander Bruy -icons by Robert Szepanek - -HOMEPAGE: -http://trac.faunalia.it/GdalTools-plugin""") - - def openWebsite(self): - url = QUrl("http://trac.faunalia.it/GdalTools-plugin") - QDesktopServices.openUrl(url) - -