Ejemplo n.º 1
0
 def executeAlgorithmAsBatchProcess(self):
     alg = self.algorithmTree.selectedAlgorithm().create() if self.algorithmTree.selectedAlgorithm() is not None else None
     if alg is not None:
         dlg = BatchAlgorithmDialog(alg, iface.mainWindow())
         dlg.setAttribute(Qt.WA_DeleteOnClose)
         dlg.show()
         dlg.exec_()
Ejemplo n.º 2
0
 def executeAlgorithmAsBatchProcess(self):
     item = self.algorithmTree.currentItem()
     if isinstance(item, TreeAlgorithmItem):
         alg = QgsApplication.processingRegistry().algorithmById(item.alg.id())
         dlg = BatchAlgorithmDialog(alg)
         dlg.show()
         dlg.exec_()
Ejemplo n.º 3
0
 def executeAlgorithmAsBatchProcess(self):
     item = self.algorithmTree.currentItem()
     if isinstance(item, TreeAlgorithmItem):
         alg = Processing.getAlgorithm(item.alg.commandLineName())
         alg = alg.getCopy()
         dlg = BatchAlgorithmDialog(alg)
         dlg.exec_()
Ejemplo n.º 4
0
 def executeAlgorithmAsBatchProcess(self):
     item = self.algorithmTree.currentItem()
     if isinstance(item, TreeAlgorithmItem):
         alg = QgsApplication.processingRegistry().createAlgorithmById(item.alg.id())
         if alg:
             dlg = BatchAlgorithmDialog(alg)
             dlg.show()
             dlg.exec_()
             # have to manually delete the dialog - otherwise it's owned by the
             # iface mainWindow and never deleted
             dlg.deleteLater()
Ejemplo n.º 5
0
 def runAsBatch(self):
     self.close()
     dlg = BatchAlgorithmDialog(self.algorithm().create(), parent=iface.mainWindow())
     dlg.show()
     dlg.exec_()
Ejemplo n.º 6
0
 def runAsBatch(self):
     self.close()
     dlg = BatchAlgorithmDialog(self.algorithm())
     dlg.show()
     dlg.exec_()
Ejemplo n.º 7
0
 def runAsBatch(self):
     dlg = BatchAlgorithmDialog(self.alg)
     dlg.exec_()
Ejemplo n.º 8
0
 def runAsBatch(self):
     self.close()
     dlg = BatchAlgorithmDialog(self.algorithm())
     dlg.show()
     dlg.exec_()
Ejemplo n.º 9
0
 def executeAlgorithmAsBatchProcess(self):
     alg = self.algorithmTree.selectedAlgorithm()
     if alg is not None:
         dlg = BatchAlgorithmDialog(alg)
         dlg.show()
         dlg.exec_()
Ejemplo n.º 10
0
 def runAsBatch(self):
     dlg = BatchAlgorithmDialog(self.alg)
     dlg.show()
     dlg.exec_()
Ejemplo n.º 11
0
 def runAsBatch(self):
     self.close()
     dlg = BatchAlgorithmDialog(self.algorithm().create(), parent=iface.mainWindow())
     dlg.show()
     dlg.exec_()
Ejemplo n.º 12
0
 def executeAlgorithmAsBatchProcess(self):
     alg = self.algorithmTree.selectedAlgorithm()
     if alg is not None:
         dlg = BatchAlgorithmDialog(alg)
         dlg.show()
         dlg.exec_()
Ejemplo n.º 13
0
def _runProcessingBatch():
    alg = QgsApplication.processingRegistry().createAlgorithmById(
        'native:buffer')
    dlg = BatchAlgorithmDialog(alg.create(), parent=iface.mainWindow())
    dlg.show()
    dlg.exec_()