예제 #1
0
class DigitizingToolsAbout(QtGui.QDialog):
    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 += "Alexandre Neto"
        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 [email protected]\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)
예제 #2
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)
예제 #3
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)
예제 #4
0
 def __init__(self):
     '''
     Constructor
     '''
     QtCore.QObject.__init__(self)
     self.ui=Ui_about()
     self.ui.setupUi(self)
     self.setFixedSize(self.size())
예제 #5
0
class About(QtGui.QDialog):
    '''
    classdocs
    '''


    def __init__(self):
        '''
        Constructor
        '''
        QtCore.QObject.__init__(self)
        self.ui=Ui_about()
        self.ui.setupUi(self)
        self.setFixedSize(self.size())
        
    def on_pushButton_clicked(self):
        self.close()
        self.destroy()
예제 #6
0
class About(QDialog):
    def __init__(self):
        super(About, self).__init__()

        self.ui = Ui_about()
        self.ui.setupUi(self)
        self.setWindowFlags(QtCore.Qt.Tool)
        self.setFixedSize(483, 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)

    def closeEvent(self, event):
        event.ignore()
        self.hide()