Processing Toolbox Panel: Difference to QGIS

Issue #183 on hold
Fabian Thiel created an issue

I just noted that there is a small difference regarding the QGIS Processing toolbox and the one in the Box, which is basically 3 buttons missing. I think they are quite useful, so maybe we should consider updating the Processing toolbox panel?

Comments (10)

  1. Andreas Janz
    • changed version to 3.10

    I still would like to have it. Especially the History button is important. Let’s schedule it for 3.10 release.

  2. Benjamin Jakimow

    So far we just re-use the ProcessingToolbox as is.

    import processing.gui.ProcessingToolbox
    panel = processing.gui.ProcessingToolbox.ProcessingToolbox()
    self.ui.processingPanel = self.addPanel(area, panel)
    

    @Andreas you might re-implement the same actions as plugins/processing/gui/ProcessingToolbox.py initGui:

    self.modelerAction = QAction(
        QgsApplication.getThemeIcon("/processingModel.svg"),
        QCoreApplication.translate('ProcessingPlugin', '&Graphical Modeler…'), self.iface.mainWindow())
    self.modelerAction.setObjectName('modelerAction')
    self.modelerAction.triggered.connect(self.openModeler)
    self.iface.registerMainWindowAction(self.modelerAction,
                                        QKeySequence('Ctrl+Alt+G').toString(QKeySequence.NativeText))
    self.menu.addAction(self.modelerAction)
    
    self.historyAction = QAction(
        QgsApplication.getThemeIcon("/mIconHistory.svg"),
        QCoreApplication.translate('ProcessingPlugin', '&History…'), self.iface.mainWindow())
    self.historyAction.setObjectName('historyAction')
    self.historyAction.triggered.connect(self.openHistory)
    self.iface.registerMainWindowAction(self.historyAction,
                                        QKeySequence('Ctrl+Alt+H').toString(QKeySequence.NativeText))
    self.menu.addAction(self.historyAction)
    self.toolbox.processingToolbar.addAction(self.historyAction)
    
    self.resultsAction = QAction(
        QgsApplication.getThemeIcon("/processingResult.svg"),
        self.tr('&Results Viewer'), self.iface.mainWindow())
    self.resultsAction.setObjectName('resultsViewer')
    self.resultsAction.setCheckable(True)
    self.iface.registerMainWindowAction(self.resultsAction,
                                        QKeySequence('Ctrl+Alt+R').toString(QKeySequence.NativeText))
    

  3. Log in to comment