2929from pprint import pformat
3030import time
3131
32- from qgis .PyQt .QtCore import Qt
33- from qgis .PyQt .QtWidgets import QMessageBox , QApplication , QPushButton , QWidget , QVBoxLayout , QSizePolicy , QDialogButtonBox
34- from qgis .PyQt .QtGui import QCursor , QColor , QPalette
32+ from qgis .PyQt .QtCore import QCoreApplication
33+ from qgis .PyQt .QtWidgets import QMessageBox , QPushButton , QSizePolicy , QDialogButtonBox
34+ from qgis .PyQt .QtGui import QColor , QPalette
3535
3636from qgis .core import (QgsProject ,
3737 QgsApplication ,
3838 QgsProcessingUtils ,
39- QgsMessageLog ,
4039 QgsProcessingParameterDefinition ,
41- QgsProcessingOutputRasterLayer ,
42- QgsProcessingOutputVectorLayer ,
4340 QgsProcessingAlgRunnerTask ,
4441 QgsProcessingOutputHtml ,
4542 QgsProcessingParameterVectorDestination ,
5653from processing .gui .ParametersPanel import ParametersPanel
5754from processing .gui .BatchAlgorithmDialog import BatchAlgorithmDialog
5855from processing .gui .AlgorithmDialogBase import AlgorithmDialogBase
59- from processing .gui .AlgorithmExecutor import execute , executeIterating
56+ from processing .gui .AlgorithmExecutor import executeIterating
6057from processing .gui .Postprocessing import handleAlgorithmResults
6158
6259from processing .core .parameters import ParameterRaster
6360from processing .core .parameters import ParameterVector
6461from processing .core .parameters import ParameterExtent
6562from processing .core .parameters import ParameterMultipleInput
66- from processing .core .GeoAlgorithm import executeAlgorithm
67-
68- from processing .core .outputs import OutputTable
6963
7064from processing .tools import dataobjects
7165
@@ -83,7 +77,7 @@ def __init__(self, alg):
8377 self .bar .setSizePolicy (QSizePolicy .Minimum , QSizePolicy .Fixed )
8478 self .layout ().insertWidget (0 , self .bar )
8579
86- self .runAsBatchButton = QPushButton (self . tr ( "Run as Batch Process…" ))
80+ self .runAsBatchButton = QPushButton (QCoreTranslation . translate ( "AlgorithmDialog" , "Run as Batch Process…" ))
8781 self .runAsBatchButton .clicked .connect (self .runAsBatch )
8882 self .buttonBox .addButton (self .runAsBatchButton , QDialogButtonBox .ResetRole ) # reset role to ensure left alignment
8983
@@ -179,7 +173,7 @@ def accept(self):
179173 if reply == QMessageBox .No :
180174 return
181175 checkExtentCRS = ProcessingConfig .getSetting (ProcessingConfig .WARN_UNMATCHING_EXTENT_CRS )
182- #TODO
176+ # TODO
183177 if False and checkExtentCRS and self .checkExtentCRS ():
184178 reply = QMessageBox .question (self , self .tr ("Extent CRS" ),
185179 self .tr ('Extent parameters must use the same CRS as the input layers.\n '
0 commit comments