Пример #1
0
    def __init__(self):
        super().__init__()
        self.actions = [
            CreateNewModelAction(),
            OpenModelFromFileAction(),
            AddModelFromFileAction()
        ]
        sep_action = ContextAction()
        sep_action.is_separator = True
        self.contextMenuActions = [
            EditModelAction(),
            DeleteModelAction(), sep_action,
            ExportModelAsPythonScriptAction()
        ]
        self.algs = []
        self.isLoading = False

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