Esempio n. 1
0
 def checkBeforeOpeningParametersDialog(self):
     msg = Grass7Utils.checkGrass7IsInstalled()
     if msg is not None:
         html = '<p>This algorithm requires GRASS GIS 7 to be run. \
             Unfortunately, it seems that GRASS GIS 7 is not installed in \
             your system, or it is not correctly configured to be used \
             from QGIS</p>'
         html += '<p><a href="http://docs.qgis.org/2.0/en/docs/user_manual/processing/3rdParty.html">Click here</a> to know more about how to install and configure GRASS GIS 7 to be used with QGIS</p>' # FIXME update URL or page
         return html
Esempio n. 2
0
    def checkBeforeOpeningParametersDialog(self):
        msg = Grass7Utils.checkGrass7IsInstalled()
        if msg is not None:
            html = '<p>This algorithm requires GRASS GIS 7 to be run. \
                Unfortunately, it seems that GRASS GIS 7 is not installed in \
                your system, or it is not correctly configured to be used \
                from QGIS</p>'

            html += '<p><a href="http://docs.qgis.org/2.0/en/docs/user_manual/processing/3rdParty.html">Click here</a> to know more about how to install and configure GRASS GIS 7 to be used with QGIS</p>'  # FIXME update URL or page
            return html
Esempio n. 3
0
    def getPostProcessingErrorMessage(self, wrongLayers):
        html = GeoAlgorithm.getPostProcessingErrorMessage(self, wrongLayers)
        msg = Grass7Utils.checkGrass7IsInstalled(True)
        html += '<p>This algorithm requires GRASS GIS 7 to be run. A test \
            to check if GRASS GIS 7 is correctly installed and configured in \
            your system has been performed, with the following \
            result:</p><ul><i>'
        if msg is None:
            html += 'GRASS GIS 7 seems to be correctly installed and \
                configured</i></li></ul>'
        else:
            html += msg + '</i></li></ul>'
            html += '<p><a href= "http://docs.qgis.org/2.0/en/docs/user_manual/processing/3rdParty.html">Click here</a> to know more about how to install and configure GRASS GIS 7 to be used with QGIS</p>'

        return html
Esempio n. 4
0
    def getPostProcessingErrorMessage(self, wrongLayers):
        html = GeoAlgorithm.getPostProcessingErrorMessage(self, wrongLayers)
        msg = Grass7Utils.checkGrass7IsInstalled(True)
        html += self.tr(
            '<p>This algorithm requires GRASS GIS 7 to be run. A test '
            'to check if GRASS GIS 7 is correctly installed and configured in '
            'your system has been performed, with the following result:</p><ul><i>')
        if msg is None:
            html += self.tr(
                'GRASS GIS 7 seems to be correctly installed and configured</i></li></ul>')
        else:
            html += msg + '</i></li></ul>'
            html += self.tr(
                '<p><a href="http://docs.qgis.org/testing/en/docs/user_manual/processing/3rdParty.html">Click here</a> '
                'to know more about how to install and configure GRASS GIS 7 to be used with QGIS</p>')

        return html
Esempio n. 5
0
 def checkBeforeOpeningParametersDialog(self):
     msg = Grass7Utils.checkGrass7IsInstalled()
     if msg is not None:
         return msg
Esempio n. 6
0
 def checkBeforeOpeningParametersDialog(self):
     msg = Grass7Utils.checkGrass7IsInstalled()
     if msg is not None:
         return msg
Esempio n. 7
0
 def checkBeforeOpeningParametersDialog(self):
     return Grass7Utils.checkGrass7IsInstalled()
Esempio n. 8
0
 def checkBeforeOpeningParametersDialog(self):
     return Grass7Utils.checkGrass7IsInstalled()
 def canBeActivated(self):
     return not bool(Grass7Utils.checkGrass7IsInstalled())