mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
[processing] remove obsolete code and disable exporting models as script
until we update it so support new scripts format
This commit is contained in:
parent
fa5ab81a2a
commit
4f2a4644db
@ -1,39 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
***************************************************************************
|
||||
__init__.py
|
||||
---------------------
|
||||
Date : May 2016
|
||||
Copyright : (C) 2016 by Victor Olaya
|
||||
Email : volayaf at gmail dot com
|
||||
***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************
|
||||
"""
|
||||
|
||||
__author__ = 'Victor Olaya'
|
||||
__date__ = 'May 2016'
|
||||
__copyright__ = '(C) 2016, Victor Olaya'
|
||||
|
||||
# This will get replaced with a git SHA1 when you do a git archive
|
||||
|
||||
__revision__ = '$Format:%H$'
|
||||
|
||||
import os
|
||||
|
||||
from processing.core.Processing import Processing
|
||||
|
||||
|
||||
class ProcessingExampleScriptsPlugin:
|
||||
|
||||
def initGui(self):
|
||||
Processing.addScripts(os.path.join(os.path.dirname(__file__), "scripts"))
|
||||
|
||||
def unload(self):
|
||||
Processing.removeScripts(os.path.join(os.path.dirname(__file__), "scripts"))
|
@ -1,31 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
***************************************************************************
|
||||
__init__.py
|
||||
---------------------
|
||||
Date : July 2013
|
||||
Copyright : (C) 2013 by Victor Olaya
|
||||
Email : volayaf at gmail dot com
|
||||
***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************
|
||||
"""
|
||||
from .ProcessingExampleScriptsPlugin import ProcessingExampleScriptsPlugin
|
||||
|
||||
__author__ = 'Victor Olaya'
|
||||
__date__ = 'July 2013'
|
||||
__copyright__ = '(C) 2013, Victor Olaya'
|
||||
|
||||
# This will get replaced with a git SHA1 when you do a git archive
|
||||
|
||||
__revision__ = '$Format:%H$'
|
||||
|
||||
|
||||
def classFactory(iface):
|
||||
return ProcessingExampleScriptsPlugin()
|
@ -1,18 +0,0 @@
|
||||
[general]
|
||||
name=Processing Example Scripts
|
||||
description=An example plugin that adds algorithms to Processing as plugins
|
||||
category=Analysis
|
||||
version=1.0
|
||||
qgisMinimumVersion=2.0
|
||||
|
||||
author=Victor Olaya
|
||||
email=volayaf@gmail.com
|
||||
|
||||
tags=analysis,processing
|
||||
|
||||
homepage=
|
||||
tracker=
|
||||
repository=
|
||||
|
||||
experimental=False
|
||||
deprecated=False
|
@ -1,5 +0,0 @@
|
||||
##text=string
|
||||
# fix_print_with_import
|
||||
|
||||
# fix_print_with_import
|
||||
print(text)
|
@ -103,28 +103,6 @@ class Processing(object):
|
||||
|
||||
Processing.BASIC_PROVIDERS = []
|
||||
|
||||
@staticmethod
|
||||
def addScripts(folder):
|
||||
#Processing.initialize()
|
||||
#provider = QgsApplication.processingRegistry().providerById("qgis")
|
||||
#scripts = ScriptUtils.loadFromFolder(folder)
|
||||
#for script in scripts:
|
||||
# script.allowEdit = False
|
||||
# script._icon = provider.icon()
|
||||
#provider.externalAlgs.extend(scripts)
|
||||
#provider.refreshAlgorithms()
|
||||
pass
|
||||
|
||||
@staticmethod
|
||||
def removeScripts(folder):
|
||||
#provider = QgsApplication.processingRegistry().providerById("qgis")
|
||||
#for alg in provider.externalAlgs[::-1]:
|
||||
# path = os.path.dirname(alg.descriptionFile)
|
||||
# if path == folder:
|
||||
# provider.externalAlgs.remove(alg)
|
||||
#provider.refreshAlgorithms()
|
||||
pass
|
||||
|
||||
@staticmethod
|
||||
def runAlgorithm(algOrName, parameters, onFinish=None, feedback=None, context=None):
|
||||
if isinstance(algOrName, QgsProcessingAlgorithm):
|
||||
|
@ -114,8 +114,8 @@ class ModelerDialog(BASE, WIDGET):
|
||||
QgsApplication.getThemeIcon('/mActionSaveAsPDF.svg'))
|
||||
self.mActionExportSvg.setIcon(
|
||||
QgsApplication.getThemeIcon('/mActionSaveAsSVG.svg'))
|
||||
self.mActionExportPython.setIcon(
|
||||
QgsApplication.getThemeIcon('/mActionSaveAsPython.svg'))
|
||||
#~ self.mActionExportPython.setIcon(
|
||||
#~ QgsApplication.getThemeIcon('/mActionSaveAsPython.svg'))
|
||||
self.mActionEditHelp.setIcon(
|
||||
QgsApplication.getThemeIcon('/mActionEditHelpContent.svg'))
|
||||
self.mActionRun.setIcon(
|
||||
@ -270,7 +270,7 @@ class ModelerDialog(BASE, WIDGET):
|
||||
self.mActionExportImage.triggered.connect(self.exportAsImage)
|
||||
self.mActionExportPdf.triggered.connect(self.exportAsPdf)
|
||||
self.mActionExportSvg.triggered.connect(self.exportAsSvg)
|
||||
self.mActionExportPython.triggered.connect(self.exportAsPython)
|
||||
#self.mActionExportPython.triggered.connect(self.exportAsPython)
|
||||
self.mActionEditHelp.triggered.connect(self.editHelp)
|
||||
self.mActionRun.triggered.connect(self.runModel)
|
||||
|
||||
|
@ -1,104 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
***************************************************************************
|
||||
CreateScriptCollectionPluginAction.py
|
||||
---------------------
|
||||
Date : May 2016
|
||||
Copyright : (C) 2016 by Victor Olaya
|
||||
Email : volayaf at gmail dot com
|
||||
***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************
|
||||
"""
|
||||
|
||||
__author__ = 'Victor Olaya'
|
||||
__date__ = 'May 2016'
|
||||
__copyright__ = '(C) 2016, Victor Olaya'
|
||||
|
||||
# This will get replaced with a git SHA1 when you do a git archive
|
||||
|
||||
__revision__ = '$Format:%H$'
|
||||
|
||||
import os
|
||||
|
||||
from qgis.core import QgsApplication
|
||||
|
||||
from processing.gui.ToolboxAction import ToolboxAction
|
||||
from processing.script.ScriptSelector import ScriptSelector
|
||||
from processing.tools.system import mkdir
|
||||
|
||||
pluginPath = os.path.split(os.path.dirname(__file__))[0]
|
||||
|
||||
initTemplate = """from .plugin import ProcessingScriptCollectionPlugin
|
||||
|
||||
def classFactory(iface):
|
||||
return ProcessingScriptCollectionPlugin()
|
||||
"""
|
||||
|
||||
metadataTemplate = """[general]
|
||||
name=$name$
|
||||
description=$description$
|
||||
category=Plugins
|
||||
version=1.0
|
||||
qgisMinimumVersion=3.0
|
||||
|
||||
author=$author$
|
||||
email=$email$
|
||||
|
||||
tags=processing,analysis
|
||||
|
||||
homepage=
|
||||
tracker=
|
||||
repository=
|
||||
"""
|
||||
|
||||
pluginTemplate = """import os
|
||||
|
||||
from processing.core.Processing import Processing
|
||||
|
||||
class ProcessingScriptCollectionPlugin:
|
||||
|
||||
def initGui(self):
|
||||
Processing.addScripts(os.path.join(os.path.dirname(__file__), "scripts"))
|
||||
|
||||
def unload(self):
|
||||
Processing.removeScripts(os.path.join(os.path.dirname(__file__), "scripts"))
|
||||
"""
|
||||
|
||||
|
||||
class CreateScriptCollectionPluginAction(ToolboxAction):
|
||||
|
||||
def __init__(self):
|
||||
self.name = self.tr("Create script collection plugin")
|
||||
self.group = self.tr("Tools")
|
||||
|
||||
def getIcon(self):
|
||||
return QgsApplication.getThemeIcon("/processingScript.svg")
|
||||
|
||||
def execute(self):
|
||||
dlg = ScriptSelector()
|
||||
dlg.exec_()
|
||||
if dlg.scripts:
|
||||
mkdir(dlg.folder)
|
||||
initFile = os.path.join(dlg.folder, "__init__.py")
|
||||
with open(initFile, "w") as f:
|
||||
f.write(initTemplate)
|
||||
metadataFile = os.path.join(dlg.folder, "metadata.txt")
|
||||
with open(metadataFile, "w") as f:
|
||||
f.write(metadataTemplate.replace("$name$", dlg.name).replace("$description$", dlg.description)
|
||||
.replace("$author$", dlg.author).replace("$email$", dlg.email))
|
||||
pluginFile = os.path.join(dlg.folder, "plugin.py")
|
||||
with open(pluginFile, "w") as f:
|
||||
f.write(pluginTemplate)
|
||||
scriptsFolder = os.path.join(dlg.folder, "scripts")
|
||||
mkdir(scriptsFolder)
|
||||
for script in dlg.scripts:
|
||||
scriptFile = os.path.join(scriptsFolder, os.path.basename(script.descriptionFile))
|
||||
with open(scriptFile, "w") as f:
|
||||
f.write(script.script)
|
@ -39,7 +39,6 @@ from processing.script.AddScriptFromFileAction import AddScriptFromFileAction
|
||||
from processing.script.CreateNewScriptAction import CreateNewScriptAction
|
||||
from processing.script.DeleteScriptAction import DeleteScriptAction
|
||||
from processing.script.EditScriptAction import EditScriptAction
|
||||
#from processing.script.CreateScriptCollectionPluginAction import CreateScriptCollectionPluginAction
|
||||
from processing.script import ScriptUtils
|
||||
|
||||
|
||||
@ -51,7 +50,6 @@ class ScriptAlgorithmProvider(QgsProcessingProvider):
|
||||
self.folder_algorithms = []
|
||||
self.actions = [CreateNewScriptAction(),
|
||||
AddScriptFromFileAction(),
|
||||
#CreateScriptCollectionPluginAction()
|
||||
]
|
||||
self.contextMenuActions = [EditScriptAction(),
|
||||
DeleteScriptAction()]
|
||||
|
@ -1,117 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
***************************************************************************
|
||||
ScriptSelector.py
|
||||
---------------------
|
||||
Date : May 2016
|
||||
Copyright : (C) 2016 by Victor Olaya
|
||||
Email : volayaf at gmail dot com
|
||||
***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************
|
||||
"""
|
||||
|
||||
__author__ = 'Victor Olaya'
|
||||
__date__ = 'May 2016'
|
||||
__copyright__ = '(C) 2016, Victor Olaya'
|
||||
|
||||
# This will get replaced with a git SHA1 when you do a git archive
|
||||
|
||||
import os
|
||||
from collections import defaultdict
|
||||
|
||||
from qgis.PyQt import uic
|
||||
from qgis.PyQt.QtCore import Qt
|
||||
from qgis.PyQt.QtWidgets import QTreeWidgetItem, QFileDialog
|
||||
|
||||
from qgis.core import QgsApplication
|
||||
|
||||
pluginPath = os.path.split(os.path.dirname(__file__))[0]
|
||||
WIDGET, BASE = uic.loadUiType(
|
||||
os.path.join(pluginPath, 'ui', 'scriptselector.ui'))
|
||||
|
||||
|
||||
class ScriptSelector(BASE, WIDGET):
|
||||
|
||||
def __init__(self):
|
||||
super(ScriptSelector, self).__init__(None)
|
||||
self.setupUi(self)
|
||||
|
||||
self.scripts = None
|
||||
|
||||
allScripts = defaultdict(list)
|
||||
alglist = QgsApplication.processingRegistry().providerById("script").algorithms()
|
||||
for script in alglist:
|
||||
allScripts[script.group()].append(script)
|
||||
|
||||
for group, groupScripts in list(allScripts.items()):
|
||||
groupItem = QTreeWidgetItem()
|
||||
groupItem.setText(0, group)
|
||||
groupItem.setFlags(groupItem.flags() | Qt.ItemIsTristate)
|
||||
for script in groupScripts:
|
||||
scriptItem = QTreeWidgetItem()
|
||||
scriptItem.setFlags(scriptItem.flags() | Qt.ItemIsUserCheckable)
|
||||
scriptItem.setCheckState(0, Qt.Checked)
|
||||
scriptItem.script = script
|
||||
scriptItem.setText(0, script.name())
|
||||
groupItem.addChild(scriptItem)
|
||||
self.scriptsTree.addTopLevelItem(groupItem)
|
||||
|
||||
self.scriptsTree.expandAll()
|
||||
|
||||
self.selectAllLabel.linkActivated.connect(lambda: self.checkScripts(True))
|
||||
self.deselectAllLabel.linkActivated.connect(lambda: self.checkScripts(False))
|
||||
|
||||
self.folderButton.clicked.connect(self.selectFolder)
|
||||
|
||||
self.buttonBox.accepted.connect(self.okPressed)
|
||||
self.buttonBox.rejected.connect(self.cancelPressed)
|
||||
|
||||
def selectFolder(self):
|
||||
folder = QFileDialog.getExistingDirectory(self, "Select folder")
|
||||
if folder:
|
||||
self.folderBox.setText(folder)
|
||||
|
||||
def checkScripts(self, b):
|
||||
state = Qt.Checked if b else Qt.Unchecked
|
||||
for i in range(self.scriptsTree.topLevelItemCount()):
|
||||
item = self.scriptsTree.topLevelItem(i)
|
||||
for j in range(item.childCount()):
|
||||
child = item.child(j)
|
||||
child.setCheckState(0, state)
|
||||
|
||||
def cancelPressed(self):
|
||||
self.close()
|
||||
|
||||
def _getValue(self, textBox):
|
||||
textBox.setStyleSheet("QLineEdit{background: white}")
|
||||
value = textBox.text()
|
||||
if value:
|
||||
return value
|
||||
textBox.setStyleSheet("QLineEdit{background: yellow}")
|
||||
raise Exception("Wrong parameter value")
|
||||
|
||||
def okPressed(self):
|
||||
self.scripts = []
|
||||
for i in range(self.scriptsTree.topLevelItemCount()):
|
||||
groupItem = self.scriptsTree.topLevelItem(i)
|
||||
for j in range(groupItem.childCount()):
|
||||
scriptItem = groupItem.child(j)
|
||||
if scriptItem.checkState(0) == Qt.Checked:
|
||||
self.scripts.append(scriptItem.script)
|
||||
self.folder = self._getValue(self.folderBox)
|
||||
try:
|
||||
self.name = self._getValue(self.nameBox)
|
||||
self.description = self._getValue(self.descriptionBox)
|
||||
self.author = self._getValue(self.authorBox)
|
||||
self.email = self._getValue(self.emailBox)
|
||||
except:
|
||||
return
|
||||
|
||||
self.close()
|
@ -6,8 +6,8 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>1000</width>
|
||||
<height>600</height>
|
||||
<width>891</width>
|
||||
<height>596</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
@ -18,12 +18,21 @@
|
||||
<property name="spacing">
|
||||
<number>3</number>
|
||||
</property>
|
||||
<property name="margin">
|
||||
<property name="leftMargin">
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="rightMargin">
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<number>2</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QGraphicsView" name="view"/>
|
||||
</item>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QgsDockWidget" name="propertiesDock">
|
||||
@ -41,7 +50,16 @@
|
||||
<property name="spacing">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="margin">
|
||||
<property name="leftMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="rightMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
@ -69,51 +87,53 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>287</width>
|
||||
<height>500</height>
|
||||
<width>280</width>
|
||||
<height>68</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<property name="leftMargin">
|
||||
<number>6</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>6</number>
|
||||
</property>
|
||||
<property name="rightMargin">
|
||||
<number>6</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<number>6</number>
|
||||
</property>
|
||||
<property name="spacing">
|
||||
<number>4</number>
|
||||
</property>
|
||||
<property name="margin">
|
||||
<number>6</number>
|
||||
</property>
|
||||
<item>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<property name="spacing">
|
||||
<number>4</number>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_1">
|
||||
<property name="text">
|
||||
<string>Name</string>
|
||||
</property>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_1">
|
||||
<property name="text">
|
||||
<string>Name</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QLineEdit" name="textName">
|
||||
<property name="toolTip">
|
||||
<string>Enter model name here</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>Group</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QLineEdit" name="textGroup">
|
||||
<property name="toolTip">
|
||||
<string>Enter group name here</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QLineEdit" name="textName">
|
||||
<property name="toolTip">
|
||||
<string>Enter model name here</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>Group</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QLineEdit" name="textGroup">
|
||||
<property name="toolTip">
|
||||
<string>Enter group name here</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
@ -133,13 +153,7 @@
|
||||
<number>1</number>
|
||||
</attribute>
|
||||
<widget class="QWidget" name="inputsDockContents">
|
||||
<layout class="QVBoxLayout" name="verticalDockLayout_2">
|
||||
<property name="spacing">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="margin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||||
<item>
|
||||
<widget class="QgsScrollArea" name="scrollArea_2">
|
||||
<property name="sizePolicy">
|
||||
@ -165,41 +179,40 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>287</width>
|
||||
<height>1113</height>
|
||||
<width>262</width>
|
||||
<height>198</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<property name="spacing">
|
||||
<number>4</number>
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="margin">
|
||||
<number>2</number>
|
||||
<property name="leftMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="rightMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_4">
|
||||
<property name="spacing">
|
||||
<number>4</number>
|
||||
<widget class="QTreeWidget" name="inputsTree">
|
||||
<property name="alternatingRowColors">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="margin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QTreeWidget" name="inputsTree">
|
||||
<property name="alternatingRowColors">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<attribute name="headerVisible">
|
||||
<bool>false</bool>
|
||||
</attribute>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string notr="true">1</string>
|
||||
</property>
|
||||
</column>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
<attribute name="headerVisible">
|
||||
<bool>false</bool>
|
||||
</attribute>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string notr="true">1</string>
|
||||
</property>
|
||||
</column>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
@ -219,13 +232,7 @@
|
||||
<number>1</number>
|
||||
</attribute>
|
||||
<widget class="QWidget" name="algorithmsDockContents">
|
||||
<layout class="QVBoxLayout" name="verticalDockLayout_3">
|
||||
<property name="spacing">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="margin">
|
||||
<number>2</number>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_4">
|
||||
<item>
|
||||
<widget class="QgsScrollArea" name="scrollArea_3">
|
||||
<property name="sizePolicy">
|
||||
@ -251,55 +258,54 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>287</width>
|
||||
<height>1113</height>
|
||||
<width>262</width>
|
||||
<height>220</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_5">
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<property name="spacing">
|
||||
<number>4</number>
|
||||
</property>
|
||||
<property name="leftMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="margin">
|
||||
<number>2</number>
|
||||
<property name="topMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="rightMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_6">
|
||||
<property name="spacing">
|
||||
<number>0</number>
|
||||
<widget class="QgsFilterLineEdit" name="searchBox">
|
||||
<property name="toolTip">
|
||||
<string>Enter algorithm name to filter list</string>
|
||||
</property>
|
||||
<property name="margin">
|
||||
<number>0</number>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QTreeWidget" name="algorithmTree">
|
||||
<property name="alternatingRowColors">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QgsFilterLineEdit" name="searchBox">
|
||||
<property name="toolTip">
|
||||
<string>Enter algorithm name to filter list</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QTreeWidget" name="algorithmTree">
|
||||
<property name="alternatingRowColors">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<attribute name="headerVisible">
|
||||
<bool>false</bool>
|
||||
</attribute>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string notr="true">1</string>
|
||||
</property>
|
||||
</column>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
<attribute name="headerVisible">
|
||||
<bool>false</bool>
|
||||
</attribute>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string notr="true">1</string>
|
||||
</property>
|
||||
</column>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
<widget class="QToolBar" name="mToolbar">
|
||||
<property name="windowTitle">
|
||||
@ -309,7 +315,7 @@
|
||||
<enum>TopToolBarArea</enum>
|
||||
</attribute>
|
||||
<attribute name="toolBarBreak">
|
||||
<bool>true</bool>
|
||||
<bool>false</bool>
|
||||
</attribute>
|
||||
<addaction name="mActionOpen"/>
|
||||
<addaction name="mActionSave"/>
|
||||
@ -323,17 +329,12 @@
|
||||
<addaction name="mActionExportImage"/>
|
||||
<addaction name="mActionExportPdf"/>
|
||||
<addaction name="mActionExportSvg"/>
|
||||
<addaction name="mActionExportPython"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="mActionEditHelp"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="mActionRun"/>
|
||||
</widget>
|
||||
<action name="mActionOpen">
|
||||
<property name="icon">
|
||||
<iconset resource="../../images/images.qrc">
|
||||
<normaloff>:/images/themes/default/mActionFileOpen.svg</normaloff>:/images/themes/default/mActionFileOpen.svg</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Open model...</string>
|
||||
</property>
|
||||
@ -345,10 +346,6 @@
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionSave">
|
||||
<property name="icon">
|
||||
<iconset resource="../../images/images.qrc">
|
||||
<normaloff>:/images/themes/default/mActionFileSave.svg</normaloff>:/images/themes/default/mActionFileSave.svg</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Save model</string>
|
||||
</property>
|
||||
@ -360,10 +357,6 @@
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionSaveAs">
|
||||
<property name="icon">
|
||||
<iconset resource="../../images/images.qrc">
|
||||
<normaloff>:/images/themes/default/mActionFileSaveAs.svg</normaloff>:/images/themes/default/mActionFileSaveAs.svg</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Save model as...</string>
|
||||
</property>
|
||||
@ -375,10 +368,6 @@
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionZoomActual">
|
||||
<property name="icon">
|
||||
<iconset resource="../../images/images.qrc">
|
||||
<normaloff>:/images/themes/default/mActionZoomActual.svg</normaloff>:/images/themes/default/mActionZoomActual.svg</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Zoom to &100%</string>
|
||||
</property>
|
||||
@ -390,10 +379,6 @@
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionZoomIn">
|
||||
<property name="icon">
|
||||
<iconset resource="../../images/images.qrc">
|
||||
<normaloff>:/images/themes/default/mActionZoomIn.svg</normaloff>:/images/themes/default/mActionZoomIn.svg</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Zoom in</string>
|
||||
</property>
|
||||
@ -405,10 +390,6 @@
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionZoomOut">
|
||||
<property name="icon">
|
||||
<iconset resource="../../images/images.qrc">
|
||||
<normaloff>:/images/themes/default/mActionZoomOut.svg</normaloff>:/images/themes/default/mActionZoomOut.svg</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Zoom out</string>
|
||||
</property>
|
||||
@ -420,10 +401,6 @@
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionExportImage">
|
||||
<property name="icon">
|
||||
<iconset resource="../../images/images.qrc">
|
||||
<normaloff>:/images/themes/default/mActionSaveMapAsImage.svg</normaloff>:/images/themes/default/mActionSaveMapAsImage.svg</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Export as image...</string>
|
||||
</property>
|
||||
@ -432,10 +409,6 @@
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionZoomToItems">
|
||||
<property name="icon">
|
||||
<iconset resource="../../images/images.qrc">
|
||||
<normaloff>:/images/themes/default/mActionZoomFullExtent.svg</normaloff>:/images/themes/default/mActionZoomFullExtent.svg</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Zoom full</string>
|
||||
</property>
|
||||
@ -447,10 +420,6 @@
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionExportPdf">
|
||||
<property name="icon">
|
||||
<iconset resource="../../images/images.qrc">
|
||||
<normaloff>:/images/themes/default/mActionSaveAsPDF.svg</normaloff>:/images/themes/default/mActionSaveAsPDF.svg</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Export as PDF...</string>
|
||||
</property>
|
||||
@ -459,10 +428,6 @@
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionExportSvg">
|
||||
<property name="icon">
|
||||
<iconset resource="../../images/images.qrc">
|
||||
<normaloff>:/images/themes/default/mActionSaveAsSVG.svg</normaloff>:/images/themes/default/mActionSaveAsSVG.svg</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Export as SVG...</string>
|
||||
</property>
|
||||
@ -471,10 +436,6 @@
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionExportPython">
|
||||
<property name="icon">
|
||||
<iconset resource="../../images/images.qrc">
|
||||
<normaloff>:/images/themes/default/mActionSaveAsPython.svg</normaloff>:/images/themes/default/mActionSaveAsPython.svg</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Export as Python script...</string>
|
||||
</property>
|
||||
@ -483,10 +444,6 @@
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionEditHelp">
|
||||
<property name="icon">
|
||||
<iconset resource="../../images/images.qrc">
|
||||
<normaloff>:/images/themes/default/mActionEditHelpContent.svg</normaloff>:/images/themes/default/mActionEditHelpContent.svg</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Edit model help...</string>
|
||||
</property>
|
||||
@ -495,10 +452,6 @@
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionRun">
|
||||
<property name="icon">
|
||||
<iconset resource="../../images/images.qrc">
|
||||
<normaloff>:/images/themes/default/mActionStart.svg</normaloff>:/images/themes/default/mActionStart.svg</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Run model...</string>
|
||||
</property>
|
||||
@ -515,6 +468,7 @@
|
||||
<class>QgsScrollArea</class>
|
||||
<extends>QScrollArea</extends>
|
||||
<header>qgis.gui</header>
|
||||
<container>1</container>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>QgsFilterLineEdit</class>
|
||||
@ -525,17 +479,6 @@
|
||||
<class>QgsDockWidget</class>
|
||||
<extends>QDockWidget</extends>
|
||||
<header>qgis.gui</header>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>QgsCollapsibleGroupBox</class>
|
||||
<extends>QGroupBox</extends>
|
||||
<header>qgis.gui</header>
|
||||
<container>1</container>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>QgsCollapsibleGroupBoxBasic</class>
|
||||
<extends>QGroupBox</extends>
|
||||
<header>qgis.gui</header>
|
||||
<container>1</container>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
|
@ -1,168 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>Dialog</class>
|
||||
<widget class="QDialog" name="Dialog">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>787</width>
|
||||
<height>334</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Script selector</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||
<item>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Scripts to include</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="selectAllLabel">
|
||||
<property name="text">
|
||||
<string><a href='#'>All</a></string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="deselectAllLabel">
|
||||
<property name="text">
|
||||
<string><a href='#'>None</a></string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QTreeWidget" name="scriptsTree">
|
||||
<attribute name="headerVisible">
|
||||
<bool>false</bool>
|
||||
</attribute>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string notr="true">1</string>
|
||||
</property>
|
||||
</column>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="Line" name="line">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>Plugin name</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="nameBox"/>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_4">
|
||||
<property name="text">
|
||||
<string>Plugin description</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="descriptionBox"/>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string>Author's name</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="authorBox"/>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_5">
|
||||
<property name="text">
|
||||
<string>Author's email</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="emailBox"/>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="Line" name="line_2">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_6">
|
||||
<property name="text">
|
||||
<string>Output folder</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
||||
<item>
|
||||
<widget class="QLineEdit" name="folderBox"/>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="folderButton">
|
||||
<property name="text">
|
||||
<string>...</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QDialogButtonBox" name="buttonBox">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="standardButtons">
|
||||
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
Loading…
x
Reference in New Issue
Block a user