PK 3CUȍH identifyplus/.gitmodules[submodule "ngw_external_api_python"]
path = ngw_external_api_python
url = https://github.com/nextgis/ngw_external_api_python.git
PK KDU*6 identifyplus/aboutdialog.py# -*- coding: utf-8 -*-
#******************************************************************************
#
# IdentifyPlus
# ---------------------------------------------------------
# Extended identify tool. Supports displaying and modifying photos.
#
# Copyright (C) 2012-2015 NextGIS (info@nextgis.com)
#
# This source 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 code 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.
#
# A copy of the GNU General Public License is available on the World Wide Web
# at . You can also obtain it by writing
# to the Free Software Foundation, 51 Franklin Street, Suite 500 Boston,
# MA 02110-1335 USA.
#
#******************************************************************************
import os
import configparser
from qgis.PyQt.QtGui import QPixmap, QTextDocument
from qgis.PyQt.QtWidgets import QDialog, QDialogButtonBox
from .ui_aboutdialogbase import Ui_Dialog
from . import resources_rc
class AboutDialog(QDialog, Ui_Dialog):
def __init__(self):
QDialog.__init__(self)
self.setupUi(self)
self.btnHelp = self.buttonBox.button(QDialogButtonBox.Help)
cfg = configparser.SafeConfigParser()
cfg.read(os.path.join(os.path.dirname(__file__), "metadata.txt"))
version = cfg.get("general", "version")
self.lblLogo.setPixmap(QPixmap(":/plugins/identifyplus/icons/identifyplus.png"))
self.lblVersion.setText(self.tr("Version: %s") % (version))
doc = QTextDocument()
doc.setHtml(self.getAboutText())
self.textBrowser.setDocument(doc)
self.buttonBox.helpRequested.connect(self.openHelp)
def reject(self):
QDialog.reject(self)
def openHelp(self):
pass
#~ overrideLocale = QSettings().value("locale/overrideFlag", QVariant(False)).toBool()
#~ if not overrideLocale:
#~ localeFullName = QLocale.system().name()
#~ else:
#~ localeFullName = QSettings().value("locale/userLocale", QVariant("")).toString()
#~
#~ localeShortName = localeFullName[0:2]
#~ if localeShortName in ["ru", "uk"]:
#~ QDesktopServices.openUrl(QUrl("http://hub.qgis.org/projects/geotagphotos/wiki"))
#~ else:
#~ QDesktopServices.openUrl(QUrl("http://hub.qgis.org/projects/geotagphotos/wiki"))
def getAboutText(self):
return self.tr("""
Alternate identify tool with additional capabilities.
NOTE: Plugin needs access to special web-service in order to be able display
photos associated with features. If you need more info please contact us
""")
PK 3CUn?<