예제 #1
0
    def __init__(self):
        super().__init__()
        self.actions = [
            CreateNewModelAction(),
            AddModelFromFileAction(),
            GetModelsAction()
        ]
        self.contextMenuActions = [EditModelAction(), DeleteModelAction()]
        self.algs = []

        # must reload models if providers list is changed - previously unavailable algorithms
        # which models depend on may now be available
        QgsApplication.processingRegistry().providerAdded.connect(
            self.refreshAlgorithms)
예제 #2
0
 def __init__(self):
     AlgorithmProvider.__init__(self)
     self.actions = [CreateNewModelAction(), AddModelFromFileAction(), GetModelsAction()]
     self.contextMenuActions = [EditModelAction(), DeleteModelAction()]
예제 #3
0
 def __init__(self):
     super().__init__()
     self.actions = [CreateNewModelAction(), AddModelFromFileAction(), GetModelsAction()]
     self.contextMenuActions = [EditModelAction(), DeleteModelAction()]
     self.algs = []