コード例 #1
0
ファイル: GrassAlgorithm.py プロジェクト: pdesgagnes/QGIS
 def checkBeforeOpeningParametersDialog(self):
     msg = GrassUtils.checkGrassIsInstalled()
     if msg is not None:
         html = '<p>This algorithm requires GRASS to be run. \
             Unfortunately, it seems that GRASS 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 to be used with QGIS</p>'
         return html
コード例 #2
0
ファイル: GrassAlgorithm.py プロジェクト: ACorradini/QGIS
 def checkBeforeOpeningParametersDialog(self):
     msg = GrassUtils.checkGrassIsInstalled()
     if msg is not None:
         html = '<p>This algorithm requires GRASS to be run. \
             Unfortunately, it seems that GRASS 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 to be used with QGIS</p>'
         return html
コード例 #3
0
ファイル: GrassAlgorithm.py プロジェクト: ACorradini/QGIS
    def getPostProcessingErrorMessage(self, wrongLayers):
        html = GeoAlgorithm.getPostProcessingErrorMessage(self, wrongLayers)
        msg = GrassUtils.checkGrassIsInstalled(True)
        html += '<p>This algorithm requires GRASS to be run. A test \
            to check if GRASS is correctly installed and configured in \
            your system has been performed, with the following \
            result:</p><ul><i>'
        if msg is None:
            html += 'GRASS 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 to be used with QGIS</p>'

        return html
コード例 #4
0
ファイル: GrassAlgorithm.py プロジェクト: pdesgagnes/QGIS
    def getPostProcessingErrorMessage(self, wrongLayers):
        html = GeoAlgorithm.getPostProcessingErrorMessage(self, wrongLayers)
        msg = GrassUtils.checkGrassIsInstalled(True)
        html += '<p>This algorithm requires GRASS to be run. A test \
            to check if GRASS is correctly installed and configured in \
            your system has been performed, with the following \
            result:</p><ul><i>'
        if msg is None:
            html += 'GRASS 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 to be used with QGIS</p>'

        return html
コード例 #5
0
ファイル: GrassAlgorithm.py プロジェクト: om-henners/QGIS
 def checkBeforeOpeningParametersDialog(self):
     msg = GrassUtils.checkGrassIsInstalled()
     if msg is not None:
         return msg
コード例 #6
0
ファイル: GrassAlgorithm.py プロジェクト: luipir/QGIS
 def checkBeforeOpeningParametersDialog(self):
     return GrassUtils.checkGrassIsInstalled()
コード例 #7
0
ファイル: GrassAlgorithm.py プロジェクト: JudeHu/QGIS
 def checkBeforeOpeningParametersDialog(self):
     msg = GrassUtils.checkGrassIsInstalled()
     if msg is not None:
         return msg
コード例 #8
0
ファイル: GrassAlgorithm.py プロジェクト: aroche/QGIS
 def checkBeforeOpeningParametersDialog(self):
     return GrassUtils.checkGrassIsInstalled()
コード例 #9
0
 def canBeActivated(self):
     return not bool(GrassUtils.checkGrassIsInstalled())