Example #1
0
    def __init__(self, iface):
        QtGui.QDialog.__init__(self)
        # Set up the user interface from Designer.
        self.ui = Ui_about()
        self.ui.setupUi(self)
        # keep reference to QGIS interface
        self.iface = iface

        aboutText = QtCore.QCoreApplication.translate(
            "dtAbout",
            "Subsumes different tools useful during digitizing sessions")
        aboutText += "\n\n"
        aboutText += QtCore.QCoreApplication.translate(
            "dtAbout", "List of Contributors:")
        aboutText += "\n"
        aboutText += "Sandra Lopes (Portugese translation)"
        aboutText += "\n"
        aboutText += "Alexandre Neto"
        aboutText += "\n"
        aboutText += "Jean-Cyrille Notter (French translation)"
        aboutText += "\n"
        aboutText += u"Bernhard Ströbl"
        aboutText += "\n"
        aboutText += u"Angelos Tzotsos"
        aboutText += "\n\n"
        aboutText += u"DigitizingTools is copyright (C) 2013 Bernhard Ströbl bernhard.stroebl[at]jena.de\n\n"
        aboutText += u"Licensed under the terms of the GNU GPL V 2:\n"
        aboutText += u"This program is free software; you can redistribute it and/or modify it under the"
        aboutText += " terms of the GNU General Public License as published by the Free Software Foundation;"
        aboutText += " either version 2 of the License, or (at your option) any later version."
        #QtGui.QMessageBox.information(None, "", aboutText)
        self.ui.textArea.setPlainText(aboutText)
Example #2
0
 def __init__(self):
     super(About, self).__init__()
     
     self.ui = Ui_about()
     self.ui.setupUi(self)
     self.setWindowFlags(QtCore.Qt.Tool)
     self.setFixedSize(511,334)
     
     self.ui.lblNameVersion.setText(programTitle + " " + programVersion)
     
     f = QtCore.QFile(":/LICENSE.txt")
     if f.open(QtCore.QIODevice.ReadOnly | QtCore.QFile.Text):
         text = QtCore.QTextStream(f).readAll()
         f.close()
     self.ui.txtLicense.setPlainText(text)