From d8e1cf30af977c435409663eadf7a9b530227cd9 Mon Sep 17 00:00:00 2001
From: Alexander Bruy Processing resources manager
'
@@ -114,7 +115,9 @@ class GetScriptsAndModelsDialog(QDialog, Ui_DlgGetScriptsAndModels):
SCRIPTS = 1
def __init__(self, resourceType):
- QDialog.__init__(self, iface.mainWindow())
+ super(GetScriptsAndModelsDialog, self).__init__(iface.mainWindow())
+ self.setupUi(self)
+
self.resourceType = resourceType
if self.resourceType == self.MODELS:
self.folder = ModelerUtils.modelsFolder()
@@ -124,8 +127,8 @@ class GetScriptsAndModelsDialog(QDialog, Ui_DlgGetScriptsAndModels):
self.folder = ScriptUtils.scriptsFolder()
self.urlBase = 'https://raw.githubusercontent.com/qgis/QGIS-Processing/master/scripts/'
self.icon = QIcon(os.path.join(pluginPath, 'images', 'script.png'))
+
self.lastSelectedItem = None
- self.setupUi(self)
self.populateTree()
self.updateToolbox = False
self.buttonBox.accepted.connect(self.okPressed)
diff --git a/python/plugins/processing/gui/HelpEditionDialog.py b/python/plugins/processing/gui/HelpEditionDialog.py
index 261c89fc6df..87b18e2c5e6 100644
--- a/python/plugins/processing/gui/HelpEditionDialog.py
+++ b/python/plugins/processing/gui/HelpEditionDialog.py
@@ -30,13 +30,17 @@ __revision__ = '$Format:%H$'
import os
import json
+from PyQt4 import uic
from PyQt4.QtGui import QDialog, QMessageBox, QTreeWidgetItem
-from processing.ui.ui_DlgHelpEdition import Ui_DlgHelpEdition
from processing.core.ProcessingLog import ProcessingLog
+pluginPath = os.path.split(os.path.dirname(__file__))[0]
+WIDGET, BASE = uic.loadUiType(
+ os.path.join(pluginPath, 'ui', 'DlgHelpEdition.ui'))
-class HelpEditionDialog(QDialog, Ui_DlgHelpEdition):
+
+class HelpEditionDialog(BASE, WIDGET):
ALG_DESC = 'ALG_DESC'
ALG_CREATOR = 'ALG_CREATOR'
@@ -44,8 +48,9 @@ class HelpEditionDialog(QDialog, Ui_DlgHelpEdition):
ALG_VERSION = 'ALG_VERSION'
def __init__(self, alg):
- QDialog.__init__(self)
+ super(HelpEditionDialog, self).__init__(None)
self.setupUi(self)
+
self.alg = alg
self.descriptions = {}
if isinstance(self.alg, ModelerAlgorithm):
diff --git a/python/plugins/processing/gui/HistoryDialog.py b/python/plugins/processing/gui/HistoryDialog.py
index 018ab61e3b9..006b5d4f5f8 100644
--- a/python/plugins/processing/gui/HistoryDialog.py
+++ b/python/plugins/processing/gui/HistoryDialog.py
@@ -25,17 +25,23 @@ __copyright__ = '(C) 2012, Victor Olaya'
__revision__ = '$Format:%H$'
+import os
+
+from PyQt4 import uic
from PyQt4.QtCore import Qt
-from PyQt4.QtGui import QAction, QDialog, QPushButton, QDialogButtonBox, QIcon, QStyle, QMessageBox, QFileDialog, QMenu, QTreeWidgetItem
+from PyQt4.QtGui import QAction, QPushButton, QDialogButtonBox, QIcon, QStyle, QMessageBox, QFileDialog, QMenu, QTreeWidgetItem
from processing.gui import TestTools
from processing.core.ProcessingLog import ProcessingLog
-from processing.ui.ui_DlgHistory import Ui_DlgHistory
+
+pluginPath = os.path.split(os.path.dirname(__file__))[0]
+WIDGET, BASE = uic.loadUiType(
+ os.path.join(pluginPath, 'ui', 'DlgHistory.ui'))
-class HistoryDialog(QDialog, Ui_DlgHistory):
+class HistoryDialog(BASE, WIDGET):
def __init__(self):
- QDialog.__init__(self)
+ super(HistoryDialog, self).__init__(None)
self.setupUi(self)
self.groupIcon = QIcon()
diff --git a/python/plugins/processing/gui/InputLayerSelectorPanel.py b/python/plugins/processing/gui/InputLayerSelectorPanel.py
index f841d07bff7..6dca38f4dd0 100644
--- a/python/plugins/processing/gui/InputLayerSelectorPanel.py
+++ b/python/plugins/processing/gui/InputLayerSelectorPanel.py
@@ -27,19 +27,20 @@ __revision__ = '$Format:%H$'
import os
+from PyQt4 import uic
from PyQt4.QtCore import QSettings
-from PyQt4.QtGui import QWidget, QIcon, QFileDialog
+from PyQt4.QtGui import QIcon, QFileDialog
from processing.tools import dataobjects
-from processing.ui.ui_widgetLayerSelector import Ui_Form
-
pluginPath = os.path.split(os.path.dirname(__file__))[0]
+WIDGET, BASE = uic.loadUiType(
+ os.path.join(pluginPath, 'ui', 'widgetLayerSelector.ui'))
-class InputLayerSelectorPanel(QWidget, Ui_Form):
+class InputLayerSelectorPanel(BASE, WIDGET):
def __init__(self, options, param):
- QWidget.__init__(self)
+ super(InputLayerSelectorPanel, self).__init__(None)
self.setupUi(self)
self.btnIterate.setIcon(
diff --git a/python/plugins/processing/gui/MessageDialog.py b/python/plugins/processing/gui/MessageDialog.py
index d542ff6a897..d4777e1ab5a 100644
--- a/python/plugins/processing/gui/MessageDialog.py
+++ b/python/plugins/processing/gui/MessageDialog.py
@@ -25,17 +25,21 @@ __copyright__ = '(C) 2014, Alexander Bruy'
__revision__ = '$Format:%H$'
+import os
+
+from PyQt4 import uic
from PyQt4.QtCore import QUrl
-from PyQt4.QtGui import QDialog, QDesktopServices
+from PyQt4.QtGui import QDesktopServices
+
+pluginPath = os.path.split(os.path.dirname(__file__))[0]
+WIDGET, BASE = uic.loadUiType(
+ os.path.join(pluginPath, 'ui', 'DlgMessage.ui'))
-from processing.ui.ui_DlgMessage import Ui_Dialog
-
-
-class MessageDialog(QDialog, Ui_Dialog):
+class MessageDialog(BASE, WIDGET):
def __init__(self):
- QDialog.__init__(self)
+ super(MessageDialog, self).__init__(None)
self.setupUi(self)
self.txtMessage.anchorClicked.connect(self.openLink)
diff --git a/python/plugins/processing/gui/MultipleFileInputDialog.py b/python/plugins/processing/gui/MultipleFileInputDialog.py
index 1981e52e9d4..dd6b4c7bdcf 100644
--- a/python/plugins/processing/gui/MultipleFileInputDialog.py
+++ b/python/plugins/processing/gui/MultipleFileInputDialog.py
@@ -29,16 +29,19 @@ __revision__ = '$Format:%H$'
import os
+from PyQt4 import uic
from PyQt4.QtCore import QSettings
from PyQt4.QtGui import QDialog, QAbstractItemView, QPushButton, QDialogButtonBox, QFileDialog, QStandardItemModel, QStandardItem
-from processing.ui.ui_DlgMultipleSelection import Ui_DlgMultipleSelection
+pluginPath = os.path.split(os.path.dirname(__file__))[0]
+WIDGET, BASE = uic.loadUiType(
+ os.path.join(pluginPath, 'ui', 'DlgMultipleSelection.ui'))
-class MultipleFileInputDialog(QDialog, Ui_DlgMultipleSelection):
+class MultipleFileInputDialog(BASE, WIDGET):
def __init__(self, options):
- QDialog.__init__(self)
+ super(MultipleFileInputDialog, self).__init__(None)
self.setupUi(self)
self.lstLayers.setSelectionMode(QAbstractItemView.ExtendedSelection)
diff --git a/python/plugins/processing/gui/MultipleInputDialog.py b/python/plugins/processing/gui/MultipleInputDialog.py
index 93d0091e05d..eab3050bc5e 100644
--- a/python/plugins/processing/gui/MultipleInputDialog.py
+++ b/python/plugins/processing/gui/MultipleInputDialog.py
@@ -25,16 +25,21 @@ __copyright__ = '(C) 2012, Victor Olaya'
__revision__ = '$Format:%H$'
+import os
+
+from PyQt4 import uic
from PyQt4.QtCore import Qt
from PyQt4.QtGui import QDialog, QAbstractItemView, QPushButton, QDialogButtonBox, QStandardItemModel, QStandardItem
-from processing.ui.ui_DlgMultipleSelection import Ui_DlgMultipleSelection
+pluginPath = os.path.split(os.path.dirname(__file__))[0]
+WIDGET, BASE = uic.loadUiType(
+ os.path.join(pluginPath, 'ui', 'DlgMultipleSelection.ui'))
-class MultipleInputDialog(QDialog, Ui_DlgMultipleSelection):
+class MultipleInputDialog(BASE, WIDGET):
def __init__(self, options, selectedoptions=None):
- QDialog.__init__(self)
+ super(MultipleInputDialog, self).__init__(None)
self.setupUi(self)
self.lstLayers.setSelectionMode(QAbstractItemView.NoSelection)
diff --git a/python/plugins/processing/gui/MultipleInputPanel.py b/python/plugins/processing/gui/MultipleInputPanel.py
index 70e21dd8198..a520e88cc77 100644
--- a/python/plugins/processing/gui/MultipleInputPanel.py
+++ b/python/plugins/processing/gui/MultipleInputPanel.py
@@ -25,17 +25,22 @@ __copyright__ = '(C) 2012, Victor Olaya'
__revision__ = '$Format:%H$'
-from PyQt4.QtGui import QWidget
+import os
+
+from PyQt4 import uic
from processing.gui.MultipleInputDialog import MultipleInputDialog
from processing.gui.MultipleFileInputDialog import MultipleFileInputDialog
-from processing.ui.ui_widgetBaseSelector import Ui_Form
+pluginPath = os.path.split(os.path.dirname(__file__))[0]
+WIDGET, BASE = uic.loadUiType(
+ os.path.join(pluginPath, 'ui', 'widgetBaseSelector.ui'))
-class MultipleInputPanel(QWidget, Ui_Form):
+
+class MultipleInputPanel(BASE, WIDGET):
def __init__(self, options=None, datatype=None):
- QWidget.__init__(self)
+ super(MultipleInputPanel, self).__init__(None)
self.setupUi(self)
self.leText.setEnabled(False)
diff --git a/python/plugins/processing/gui/NumberInputDialog.py b/python/plugins/processing/gui/NumberInputDialog.py
index 390c7e30086..1499b2119a3 100644
--- a/python/plugins/processing/gui/NumberInputDialog.py
+++ b/python/plugins/processing/gui/NumberInputDialog.py
@@ -25,19 +25,24 @@ __copyright__ = '(C) 2012, Victor Olaya'
__revision__ = '$Format:%H$'
+import os
+
+from PyQt4 import uic
from PyQt4.QtGui import QDialog, QTreeWidgetItem, QMessageBox
from qgis.core import QgsRasterLayer
from qgis.utils import iface
from processing.tools import dataobjects
-from processing.ui.ui_DlgNumberInput import Ui_DlgNumberInput
+pluginPath = os.path.split(os.path.dirname(__file__))[0]
+WIDGET, BASE = uic.loadUiType(
+ os.path.join(pluginPath, 'ui', 'DlgNumberInput.ui'))
-class NumberInputDialog(QDialog, Ui_DlgNumberInput):
+class NumberInputDialog(BASE, WIDGET):
def __init__(self, isInteger):
- QDialog.__init__(self)
+ super(NumberInputDialog, self).__init__(None)
self.setupUi(self)
if hasattr(self.leFormula, 'setPlaceholderText'):
diff --git a/python/plugins/processing/gui/NumberInputPanel.py b/python/plugins/processing/gui/NumberInputPanel.py
index 897b4df9725..d8b40a10105 100644
--- a/python/plugins/processing/gui/NumberInputPanel.py
+++ b/python/plugins/processing/gui/NumberInputPanel.py
@@ -25,15 +25,21 @@ __copyright__ = '(C) 2012, Victor Olaya'
__revision__ = '$Format:%H$'
-from PyQt4.QtGui import QWidget
+import os
+
+from PyQt4 import uic
+
from processing.gui.NumberInputDialog import NumberInputDialog
-from processing.ui.ui_widgetNumberSelector import Ui_Form
+pluginPath = os.path.split(os.path.dirname(__file__))[0]
+WIDGET, BASE = uic.loadUiType(
+ os.path.join(pluginPath, 'ui', 'widgetNumberSelector.ui'))
-class NumberInputPanel(QWidget, Ui_Form):
+
+class NumberInputPanel(BASE, WIDGET):
def __init__(self, number, minimum, maximum, isInteger):
- QWidget.__init__(self)
+ super(NumberInputPanel, self).__init__(None)
self.setupUi(self)
self.isInteger = isInteger
diff --git a/python/plugins/processing/gui/OutputSelectionPanel.py b/python/plugins/processing/gui/OutputSelectionPanel.py
index 359abdcad0e..eb272629a9d 100644
--- a/python/plugins/processing/gui/OutputSelectionPanel.py
+++ b/python/plugins/processing/gui/OutputSelectionPanel.py
@@ -25,26 +25,30 @@ __copyright__ = '(C) 2012, Victor Olaya'
__revision__ = '$Format:%H$'
-import os.path
import re
+import os
+from PyQt4 import uic
from PyQt4.QtCore import QCoreApplication, QSettings
-from PyQt4.QtGui import QDialog, QWidget, QMenu, QAction, QCursor, QFileDialog
+from PyQt4.QtGui import QDialog, QMenu, QAction, QCursor, QFileDialog
from qgis.gui import QgsEncodingFileDialog
from processing.core.ProcessingConfig import ProcessingConfig
from processing.core.outputs import OutputVector
from processing.core.outputs import OutputDirectory
-from processing.ui.ui_widgetBaseSelector import Ui_Form
+pluginPath = os.path.split(os.path.dirname(__file__))[0]
+WIDGET, BASE = uic.loadUiType(
+ os.path.join(pluginPath, 'ui', 'widgetBaseSelector.ui'))
-class OutputSelectionPanel(QWidget, Ui_Form):
+
+class OutputSelectionPanel(BASE, WIDGET):
SAVE_TO_TEMP_FILE = QCoreApplication.translate(
'OutputSelectionPanel', '[Save to temporary file]')
def __init__(self, output, alg):
- QWidget.__init__(self)
+ super(OutputSelectionPanel, self).__init__(None)
self.setupUi(self)
self.output = output
diff --git a/python/plugins/processing/gui/ParametersPanel.py b/python/plugins/processing/gui/ParametersPanel.py
index 23f579f6a78..58955589a9a 100644
--- a/python/plugins/processing/gui/ParametersPanel.py
+++ b/python/plugins/processing/gui/ParametersPanel.py
@@ -33,6 +33,7 @@ __revision__ = '$Format:%H$'
import os
import locale
+from PyQt4 import uic
from PyQt4.QtCore import QCoreApplication, QVariant
from PyQt4.QtGui import QWidget, QLayout, QVBoxLayout, QHBoxLayout, QToolButton, QIcon, QLabel, QCheckBox, QComboBox, QLineEdit, QPlainTextEdit
@@ -72,17 +73,17 @@ from processing.core.outputs import OutputVector
from processing.tools import dataobjects
-from processing.ui.ui_widgetParametersPanel import Ui_Form
-
pluginPath = os.path.split(os.path.dirname(__file__))[0]
+WIDGET, BASE = uic.loadUiType(
+ os.path.join(pluginPath, 'ui', 'widgetParametersPanel.ui'))
-class ParametersPanel(QWidget, Ui_Form):
+class ParametersPanel(BASE, WIDGET):
NOT_SELECTED = QCoreApplication.translate('ParametersPanel', '[Not selected]')
def __init__(self, parent, alg):
- QWidget.__init__(self)
+ super(ParametersPanel, self).__init__(None)
self.setupUi(self)
self.grpAdvanced.hide()
diff --git a/python/plugins/processing/gui/ProcessingToolbox.py b/python/plugins/processing/gui/ProcessingToolbox.py
index 5b8c38b20e0..7e8c2d9b48b 100644
--- a/python/plugins/processing/gui/ProcessingToolbox.py
+++ b/python/plugins/processing/gui/ProcessingToolbox.py
@@ -26,9 +26,13 @@ __copyright__ = '(C) 2012, Victor Olaya'
__revision__ = '$Format:%H$'
+import os
+
+from PyQt4 import uic
from PyQt4.QtCore import Qt, QSettings, QCoreApplication
-from PyQt4.QtGui import QDockWidget, QMenu, QAction, QTreeWidgetItem
+from PyQt4.QtGui import QMenu, QAction, QTreeWidgetItem
from qgis.utils import iface
+
from processing.modeler.ModelerUtils import ModelerUtils
from processing.core.Processing import Processing
from processing.core.ProcessingLog import ProcessingLog
@@ -40,15 +44,17 @@ from processing.gui.AlgorithmDialog import AlgorithmDialog
from processing.gui.BatchAlgorithmDialog import BatchAlgorithmDialog
from processing.gui.EditRenderingStylesDialog import EditRenderingStylesDialog
-from processing.ui.ui_ProcessingToolbox import Ui_ProcessingToolbox
+pluginPath = os.path.split(os.path.dirname(__file__))[0]
+WIDGET, BASE = uic.loadUiType(
+ os.path.join(pluginPath, 'ui', 'ProcessingToolbox.ui'))
-class ProcessingToolbox(QDockWidget, Ui_ProcessingToolbox):
+class ProcessingToolbox(BASE, WIDGET):
USE_CATEGORIES = '/Processing/UseSimplifiedInterface'
def __init__(self):
- QDockWidget.__init__(self, None)
+ super(ProcessingToolbox, self).__init__(None)
self.setupUi(self)
self.setAllowedAreas(Qt.LeftDockWidgetArea | Qt.RightDockWidgetArea)
@@ -101,7 +107,6 @@ class ProcessingToolbox(QDockWidget, Ui_ProcessingToolbox):
item.setHidden(True)
return False
-
def modeHasChanged(self):
idx = self.modeComboBox.currentIndex()
settings = QSettings()
diff --git a/python/plugins/processing/gui/RangePanel.py b/python/plugins/processing/gui/RangePanel.py
index db6c11c0636..74bb7b776a5 100644
--- a/python/plugins/processing/gui/RangePanel.py
+++ b/python/plugins/processing/gui/RangePanel.py
@@ -25,15 +25,19 @@ __copyright__ = '(C) 2012, Victor Olaya'
__revision__ = '$Format:%H$'
-from PyQt4.QtGui import QWidget
+import os
-from processing.ui.ui_widgetRangeSelector import Ui_Form
+from PyQt4 import uic
+
+pluginPath = os.path.split(os.path.dirname(__file__))[0]
+WIDGET, BASE = uic.loadUiType(
+ os.path.join(pluginPath, 'ui', 'widgetRangeSelector.ui'))
-class RangePanel(QWidget, Ui_Form):
+class RangePanel(BASE, WIDGET):
def __init__(self, param):
- QWidget.__init__(self)
+ super(RangePanel, self).__init__(None)
self.setupUi(self)
self.isInteger = param.isInteger
diff --git a/python/plugins/processing/gui/RenderingStyleFilePanel.py b/python/plugins/processing/gui/RenderingStyleFilePanel.py
index 9e93172b665..145735d7628 100644
--- a/python/plugins/processing/gui/RenderingStyleFilePanel.py
+++ b/python/plugins/processing/gui/RenderingStyleFilePanel.py
@@ -25,22 +25,26 @@ __copyright__ = '(C) 2012, Victor Olaya'
__revision__ = '$Format:%H$'
-from PyQt4.QtGui import QWidget, QFileDialog
+import os
+
+from PyQt4 import uic
+from PyQt4.QtGui import QFileDialog
from processing.tools.system import isWindows
-from processing.ui.ui_widgetBaseSelector import Ui_Form
+pluginPath = os.path.split(os.path.dirname(__file__))[0]
+WIDGET, BASE = uic.loadUiType(
+ os.path.join(pluginPath, 'ui', 'widgetBaseSelector.ui'))
-class RenderingStyleFilePanel(QWidget, Ui_Form):
+class RenderingStyleFilePanel(BASE, WIDGET):
def __init__(self):
- QWidget.__init__(self)
+ super(RenderingStyleFilePanel, self).__init__(None)
self.setupUi(self)
self.btnSelect.clicked.connect(self.showSelectionDialog)
-
def showSelectionDialog(self):
filename = QFileDialog.getOpenFileName(self,
self.tr('Select style file'), '',
diff --git a/python/plugins/processing/gui/ResultsDialog.py b/python/plugins/processing/gui/ResultsDialog.py
index 4e732369197..8793fd94dff 100644
--- a/python/plugins/processing/gui/ResultsDialog.py
+++ b/python/plugins/processing/gui/ResultsDialog.py
@@ -25,18 +25,23 @@ __copyright__ = '(C) 2012, Victor Olaya'
__revision__ = '$Format:%H$'
+import os
+
+from PyQt4 import uic
from PyQt4.QtCore import QUrl
-from PyQt4.QtGui import QDialog, QIcon, QStyle, QTreeWidgetItem
+from PyQt4.QtGui import QIcon, QStyle, QTreeWidgetItem
from processing.core.ProcessingResults import ProcessingResults
-from processing.ui.ui_DlgResults import Ui_DlgResults
+pluginPath = os.path.split(os.path.dirname(__file__))[0]
+WIDGET, BASE = uic.loadUiType(
+ os.path.join(pluginPath, 'ui', 'DlgResults.ui'))
-class ResultsDialog(QDialog, Ui_DlgResults):
+class ResultsDialog(BASE, WIDGET):
def __init__(self):
- QDialog.__init__(self)
+ super(ResultsDialog, self).__init__(None)
self.setupUi(self)
self.keyIcon = QIcon()
diff --git a/python/plugins/processing/gui/ScriptEditorDialog.py b/python/plugins/processing/gui/ScriptEditorDialog.py
index 3494347e9e1..9070069ae61 100644
--- a/python/plugins/processing/gui/ScriptEditorDialog.py
+++ b/python/plugins/processing/gui/ScriptEditorDialog.py
@@ -31,8 +31,9 @@ import sys
import json
import os
+from PyQt4 import uic
from PyQt4.QtCore import Qt
-from PyQt4.QtGui import QDialog, QIcon, QMenu, QAction, QCursor, QMessageBox, QFileDialog, QApplication
+from PyQt4.QtGui import QIcon, QMenu, QAction, QCursor, QMessageBox, QFileDialog, QApplication
from qgis.core import QgsApplication
from qgis.utils import iface
@@ -44,12 +45,13 @@ from processing.algs.r.RAlgorithm import RAlgorithm
from processing.algs.r.RUtils import RUtils
from processing.script.ScriptAlgorithm import ScriptAlgorithm
from processing.script.ScriptUtils import ScriptUtils
-from processing.ui.ui_DlgScriptEditor import Ui_DlgScriptEditor
pluginPath = os.path.split(os.path.dirname(__file__))[0]
+WIDGET, BASE = uic.loadUiType(
+ os.path.join(pluginPath, 'ui', 'DlgScriptEditor.ui'))
-class ScriptEditorDialog(QDialog, Ui_DlgScriptEditor):
+class ScriptEditorDialog(BASE, WIDGET):
SCRIPT_PYTHON = 0
SCRIPT_R = 1
@@ -57,7 +59,7 @@ class ScriptEditorDialog(QDialog, Ui_DlgScriptEditor):
hasChanged = False
def __init__(self, algType, alg):
- QDialog.__init__(self)
+ super(ScriptEditorDialog, self).__init__(None)
self.setupUi(self)
self.setWindowFlags(Qt.WindowMinimizeButtonHint |
diff --git a/python/plugins/processing/modeler/ModelerDialog.py b/python/plugins/processing/modeler/ModelerDialog.py
index 26737522dbf..d60b89d811d 100644
--- a/python/plugins/processing/modeler/ModelerDialog.py
+++ b/python/plugins/processing/modeler/ModelerDialog.py
@@ -29,8 +29,9 @@ import codecs
import sys
import os
+from PyQt4 import uic
from PyQt4.QtCore import Qt, QRectF, QMimeData, QPoint, QPointF, QSettings
-from PyQt4.QtGui import QDialog, QGraphicsView, QTreeWidget, QIcon, QMessageBox, QFileDialog, QImage, QPainter, QTreeWidgetItem
+from PyQt4.QtGui import QGraphicsView, QTreeWidget, QIcon, QMessageBox, QFileDialog, QImage, QPainter, QTreeWidgetItem
from qgis.core import QgsApplication
from processing.core.ProcessingConfig import ProcessingConfig
from processing.core.GeoAlgorithm import GeoAlgorithm
@@ -45,19 +46,18 @@ from processing.modeler.ModelerUtils import ModelerUtils
from processing.modeler.ModelerScene import ModelerScene
from processing.modeler.WrongModelException import WrongModelException
-from processing.ui.ui_DlgModeler import Ui_DlgModeler
-
pluginPath = os.path.split(os.path.dirname(__file__))[0]
+WIDGET, BASE = uic.loadUiType(
+ os.path.join(pluginPath, 'ui', 'DlgModeler.ui'))
-class ModelerDialog(QDialog, Ui_DlgModeler):
+class ModelerDialog(BASE, WIDGET):
USE_CATEGORIES = '/Processing/UseSimplifiedInterface'
CANVAS_SIZE = 4000
def __init__(self, alg=None):
- QDialog.__init__(self)
-
+ super(ModelerDialog, self).__init__(None)
self.setupUi(self)
self.zoom = 1
diff --git a/python/plugins/processing/ui/CMakeLists.txt b/python/plugins/processing/ui/CMakeLists.txt
new file mode 100644
index 00000000000..eb97113c4c2
--- /dev/null
+++ b/python/plugins/processing/ui/CMakeLists.txt
@@ -0,0 +1,3 @@
+FILE(GLOB UI_FILES *.ui)
+
+PLUGIN_INSTALL(processing ./ui ${UI_FILES})
diff --git a/python/plugins/processing/ui/__init__.py b/python/plugins/processing/ui/__init__.py
deleted file mode 100644
index 879fc3c1a07..00000000000
--- a/python/plugins/processing/ui/__init__.py
+++ /dev/null
@@ -1,26 +0,0 @@
-# -*- coding: utf-8 -*-
-
-"""
-***************************************************************************
- __init__.py
- ---------------------
- Date : October 2012
- Copyright : (C) 2012 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__ = 'October 2012'
-__copyright__ = '(C) 2012, Victor Olaya'
-
-# This will get replaced with a git SHA1 when you do a git archive
-
-__revision__ = '$Format:%H$'
diff --git a/python/plugins/processing/ui/convert.py b/python/plugins/processing/ui/convert.py
deleted file mode 100644
index 12b94b505de..00000000000
--- a/python/plugins/processing/ui/convert.py
+++ /dev/null
@@ -1,24 +0,0 @@
-import os
-import subprocess
-
-def convertUiFile(f):
-
- command = ["pyuic4.bat", f, "-o", "ui_" + os.path.splitext(f)[0] + ".py"]
-
- proc = subprocess.Popen(
- command,
- shell=True,
- stdout=subprocess.PIPE,
- stdin=open(os.devnull),
- stderr=subprocess.STDOUT,
- universal_newlines=True,
- ).stdout
- for line in iter(proc.readline, ''):
- pass
-
-
-if __name__ == '__main__':
- folder = "."
- for descriptionFile in os.listdir(folder):
- if descriptionFile.endswith('ui'):
- convertUiFile(descriptionFile)
diff --git a/python/plugins/processing/ui/ui_DlgAlgorithmBase.py b/python/plugins/processing/ui/ui_DlgAlgorithmBase.py
deleted file mode 100644
index 90ec7c6f5ae..00000000000
--- a/python/plugins/processing/ui/ui_DlgAlgorithmBase.py
+++ /dev/null
@@ -1,91 +0,0 @@
-# -*- coding: utf-8 -*-
-
-# Form implementation generated from reading ui file 'DlgAlgorithmBase.ui'
-#
-# Created: Thu May 07 13:11:10 2015
-# by: PyQt4 UI code generator 4.11.1
-#
-# WARNING! All changes made in this file will be lost!
-
-from PyQt4 import QtCore, QtGui
-
-try:
- _fromUtf8 = QtCore.QString.fromUtf8
-except AttributeError:
- def _fromUtf8(s):
- return s
-
-try:
- _encoding = QtGui.QApplication.UnicodeUTF8
- def _translate(context, text, disambig):
- return QtGui.QApplication.translate(context, text, disambig, _encoding)
-except AttributeError:
- def _translate(context, text, disambig):
- return QtGui.QApplication.translate(context, text, disambig)
-
-class Ui_Dialog(object):
- def setupUi(self, Dialog):
- Dialog.setObjectName(_fromUtf8("Dialog"))
- Dialog.resize(745, 525)
- self.verticalLayout = QtGui.QVBoxLayout(Dialog)
- self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
- self.tabWidget = QtGui.QTabWidget(Dialog)
- self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
- self.tab = QtGui.QWidget()
- self.tab.setObjectName(_fromUtf8("tab"))
- self.verticalLayout_4 = QtGui.QVBoxLayout(self.tab)
- self.verticalLayout_4.setSpacing(2)
- self.verticalLayout_4.setMargin(0)
- self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
- self.tabWidget.addTab(self.tab, _fromUtf8(""))
- self.tab_2 = QtGui.QWidget()
- self.tab_2.setObjectName(_fromUtf8("tab_2"))
- self.verticalLayout_2 = QtGui.QVBoxLayout(self.tab_2)
- self.verticalLayout_2.setSpacing(2)
- self.verticalLayout_2.setMargin(0)
- self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
- self.txtLog = QtGui.QTextEdit(self.tab_2)
- self.txtLog.setFrameShape(QtGui.QFrame.NoFrame)
- self.txtLog.setReadOnly(True)
- self.txtLog.setObjectName(_fromUtf8("txtLog"))
- self.verticalLayout_2.addWidget(self.txtLog)
- self.tabWidget.addTab(self.tab_2, _fromUtf8(""))
- self.tab_3 = QtGui.QWidget()
- self.tab_3.setObjectName(_fromUtf8("tab_3"))
- self.verticalLayout_3 = QtGui.QVBoxLayout(self.tab_3)
- self.verticalLayout_3.setSpacing(2)
- self.verticalLayout_3.setMargin(0)
- self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
- self.txtHelp = QtWebKit.QWebView(self.tab_3)
- self.txtHelp.setUrl(QtCore.QUrl(_fromUtf8("about:blank")))
- self.txtHelp.setObjectName(_fromUtf8("txtHelp"))
- self.verticalLayout_3.addWidget(self.txtHelp)
- self.tabWidget.addTab(self.tab_3, _fromUtf8(""))
- self.verticalLayout.addWidget(self.tabWidget)
- self.lblProgress = QtGui.QLabel(Dialog)
- self.lblProgress.setText(_fromUtf8(""))
- self.lblProgress.setObjectName(_fromUtf8("lblProgress"))
- self.verticalLayout.addWidget(self.lblProgress)
- self.progressBar = QtGui.QProgressBar(Dialog)
- self.progressBar.setProperty("value", 0)
- self.progressBar.setObjectName(_fromUtf8("progressBar"))
- self.verticalLayout.addWidget(self.progressBar)
- self.buttonBox = QtGui.QDialogButtonBox(Dialog)
- self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
- self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Close|QtGui.QDialogButtonBox.Ok)
- self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
- self.verticalLayout.addWidget(self.buttonBox)
-
- self.retranslateUi(Dialog)
- self.tabWidget.setCurrentIndex(0)
- QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), Dialog.accept)
- QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), Dialog.reject)
- QtCore.QMetaObject.connectSlotsByName(Dialog)
-
- def retranslateUi(self, Dialog):
- Dialog.setWindowTitle(_translate("Dialog", "Dialog", None))
- self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("Dialog", "Parameters", None))
- self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("Dialog", "Log", None))
- self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_3), _translate("Dialog", "Help", None))
-
-from PyQt4 import QtWebKit
diff --git a/python/plugins/processing/ui/ui_DlgAutofill.py b/python/plugins/processing/ui/ui_DlgAutofill.py
deleted file mode 100644
index 27f9b800386..00000000000
--- a/python/plugins/processing/ui/ui_DlgAutofill.py
+++ /dev/null
@@ -1,72 +0,0 @@
-# -*- coding: utf-8 -*-
-
-# Form implementation generated from reading ui file 'DlgAutofill.ui'
-#
-# Created: Fri Nov 21 13:25:46 2014
-# by: PyQt4 UI code generator 4.11.1
-#
-# WARNING! All changes made in this file will be lost!
-
-from PyQt4 import QtCore, QtGui
-
-try:
- _fromUtf8 = QtCore.QString.fromUtf8
-except AttributeError:
- def _fromUtf8(s):
- return s
-
-try:
- _encoding = QtGui.QApplication.UnicodeUTF8
- def _translate(context, text, disambig):
- return QtGui.QApplication.translate(context, text, disambig, _encoding)
-except AttributeError:
- def _translate(context, text, disambig):
- return QtGui.QApplication.translate(context, text, disambig)
-
-class Ui_DlgAutofill(object):
- def setupUi(self, DlgAutofill):
- DlgAutofill.setObjectName(_fromUtf8("DlgAutofill"))
- DlgAutofill.resize(400, 104)
- self.gridLayout = QtGui.QGridLayout(DlgAutofill)
- self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
- self.label = QtGui.QLabel(DlgAutofill)
- self.label.setObjectName(_fromUtf8("label"))
- self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
- self.cmbFillType = QtGui.QComboBox(DlgAutofill)
- self.cmbFillType.setObjectName(_fromUtf8("cmbFillType"))
- self.cmbFillType.addItem(_fromUtf8(""))
- self.cmbFillType.addItem(_fromUtf8(""))
- self.cmbFillType.addItem(_fromUtf8(""))
- self.gridLayout.addWidget(self.cmbFillType, 0, 1, 1, 1)
- self.lblParameters = QtGui.QLabel(DlgAutofill)
- self.lblParameters.setEnabled(False)
- self.lblParameters.setObjectName(_fromUtf8("lblParameters"))
- self.gridLayout.addWidget(self.lblParameters, 1, 0, 1, 1)
- self.cmbParameters = QtGui.QComboBox(DlgAutofill)
- self.cmbParameters.setEnabled(False)
- sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.cmbParameters.sizePolicy().hasHeightForWidth())
- self.cmbParameters.setSizePolicy(sizePolicy)
- self.cmbParameters.setObjectName(_fromUtf8("cmbParameters"))
- self.gridLayout.addWidget(self.cmbParameters, 1, 1, 1, 1)
- self.buttonBox = QtGui.QDialogButtonBox(DlgAutofill)
- self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
- self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
- self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
- self.gridLayout.addWidget(self.buttonBox, 2, 0, 1, 2)
-
- self.retranslateUi(DlgAutofill)
- QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), DlgAutofill.accept)
- QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), DlgAutofill.reject)
- QtCore.QMetaObject.connectSlotsByName(DlgAutofill)
-
- def retranslateUi(self, DlgAutofill):
- DlgAutofill.setWindowTitle(_translate("DlgAutofill", "Autofill settings", None))
- self.label.setText(_translate("DlgAutofill", "Autofill mode", None))
- self.cmbFillType.setItemText(0, _translate("DlgAutofill", "Do not autofill", None))
- self.cmbFillType.setItemText(1, _translate("DlgAutofill", "Fill with numbers", None))
- self.cmbFillType.setItemText(2, _translate("DlgAutofill", "Fill with parameter values", None))
- self.lblParameters.setText(_translate("DlgAutofill", "Parameter to use", None))
-
diff --git a/python/plugins/processing/ui/ui_DlgConfig.py b/python/plugins/processing/ui/ui_DlgConfig.py
deleted file mode 100644
index ec378045e5e..00000000000
--- a/python/plugins/processing/ui/ui_DlgConfig.py
+++ /dev/null
@@ -1,57 +0,0 @@
-# -*- coding: utf-8 -*-
-
-# Form implementation generated from reading ui file 'DlgConfig.ui'
-#
-# Created: Fri Nov 21 13:25:47 2014
-# by: PyQt4 UI code generator 4.11.1
-#
-# WARNING! All changes made in this file will be lost!
-
-from PyQt4 import QtCore, QtGui
-
-try:
- _fromUtf8 = QtCore.QString.fromUtf8
-except AttributeError:
- def _fromUtf8(s):
- return s
-
-try:
- _encoding = QtGui.QApplication.UnicodeUTF8
- def _translate(context, text, disambig):
- return QtGui.QApplication.translate(context, text, disambig, _encoding)
-except AttributeError:
- def _translate(context, text, disambig):
- return QtGui.QApplication.translate(context, text, disambig)
-
-class Ui_DlgConfig(object):
- def setupUi(self, DlgConfig):
- DlgConfig.setObjectName(_fromUtf8("DlgConfig"))
- DlgConfig.resize(640, 450)
- self.verticalLayout = QtGui.QVBoxLayout(DlgConfig)
- self.verticalLayout.setSpacing(6)
- self.verticalLayout.setMargin(9)
- self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
- self.searchBox = QgsFilterLineEdit(DlgConfig)
- self.searchBox.setObjectName(_fromUtf8("searchBox"))
- self.verticalLayout.addWidget(self.searchBox)
- self.tree = QtGui.QTreeView(DlgConfig)
- self.tree.setAlternatingRowColors(True)
- self.tree.setSelectionBehavior(QtGui.QAbstractItemView.SelectItems)
- self.tree.setObjectName(_fromUtf8("tree"))
- self.verticalLayout.addWidget(self.tree)
- self.buttonBox = QtGui.QDialogButtonBox(DlgConfig)
- self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
- self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
- self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
- self.verticalLayout.addWidget(self.buttonBox)
-
- self.retranslateUi(DlgConfig)
- QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), DlgConfig.accept)
- QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), DlgConfig.reject)
- QtCore.QMetaObject.connectSlotsByName(DlgConfig)
-
- def retranslateUi(self, DlgConfig):
- DlgConfig.setWindowTitle(_translate("DlgConfig", "Processing options", None))
- self.searchBox.setToolTip(_translate("DlgConfig", "Enter setting name to filter list", None))
-
-from qgis.gui import QgsFilterLineEdit
diff --git a/python/plugins/processing/ui/ui_DlgFixedTable.py b/python/plugins/processing/ui/ui_DlgFixedTable.py
deleted file mode 100644
index 70cf7813d9b..00000000000
--- a/python/plugins/processing/ui/ui_DlgFixedTable.py
+++ /dev/null
@@ -1,51 +0,0 @@
-# -*- coding: utf-8 -*-
-
-# Form implementation generated from reading ui file 'DlgFixedTable.ui'
-#
-# Created: Fri Nov 21 13:25:47 2014
-# by: PyQt4 UI code generator 4.11.1
-#
-# WARNING! All changes made in this file will be lost!
-
-from PyQt4 import QtCore, QtGui
-
-try:
- _fromUtf8 = QtCore.QString.fromUtf8
-except AttributeError:
- def _fromUtf8(s):
- return s
-
-try:
- _encoding = QtGui.QApplication.UnicodeUTF8
- def _translate(context, text, disambig):
- return QtGui.QApplication.translate(context, text, disambig, _encoding)
-except AttributeError:
- def _translate(context, text, disambig):
- return QtGui.QApplication.translate(context, text, disambig)
-
-class Ui_DlgFixedTable(object):
- def setupUi(self, DlgFixedTable):
- DlgFixedTable.setObjectName(_fromUtf8("DlgFixedTable"))
- DlgFixedTable.resize(380, 320)
- self.horizontalLayout = QtGui.QHBoxLayout(DlgFixedTable)
- self.horizontalLayout.setSpacing(6)
- self.horizontalLayout.setMargin(9)
- self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
- self.tblView = QtGui.QTableView(DlgFixedTable)
- self.tblView.setObjectName(_fromUtf8("tblView"))
- self.tblView.horizontalHeader().setStretchLastSection(True)
- self.horizontalLayout.addWidget(self.tblView)
- self.buttonBox = QtGui.QDialogButtonBox(DlgFixedTable)
- self.buttonBox.setOrientation(QtCore.Qt.Vertical)
- self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
- self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
- self.horizontalLayout.addWidget(self.buttonBox)
-
- self.retranslateUi(DlgFixedTable)
- QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), DlgFixedTable.accept)
- QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), DlgFixedTable.reject)
- QtCore.QMetaObject.connectSlotsByName(DlgFixedTable)
-
- def retranslateUi(self, DlgFixedTable):
- DlgFixedTable.setWindowTitle(_translate("DlgFixedTable", "Fixed table", None))
-
diff --git a/python/plugins/processing/ui/ui_DlgGetScriptsAndModels.py b/python/plugins/processing/ui/ui_DlgGetScriptsAndModels.py
deleted file mode 100644
index b5520b417ff..00000000000
--- a/python/plugins/processing/ui/ui_DlgGetScriptsAndModels.py
+++ /dev/null
@@ -1,93 +0,0 @@
-# -*- coding: utf-8 -*-
-
-# Form implementation generated from reading ui file 'DlgGetScriptsAndModels.ui'
-#
-# Created: Fri Nov 21 13:25:47 2014
-# by: PyQt4 UI code generator 4.11.1
-#
-# WARNING! All changes made in this file will be lost!
-
-from PyQt4 import QtCore, QtGui
-
-try:
- _fromUtf8 = QtCore.QString.fromUtf8
-except AttributeError:
- def _fromUtf8(s):
- return s
-
-try:
- _encoding = QtGui.QApplication.UnicodeUTF8
- def _translate(context, text, disambig):
- return QtGui.QApplication.translate(context, text, disambig, _encoding)
-except AttributeError:
- def _translate(context, text, disambig):
- return QtGui.QApplication.translate(context, text, disambig)
-
-class Ui_DlgGetScriptsAndModels(object):
- def setupUi(self, DlgGetScriptsAndModels):
- DlgGetScriptsAndModels.setObjectName(_fromUtf8("DlgGetScriptsAndModels"))
- DlgGetScriptsAndModels.resize(826, 520)
- self.verticalLayout = QtGui.QVBoxLayout(DlgGetScriptsAndModels)
- self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
- self.splitter = QtGui.QSplitter(DlgGetScriptsAndModels)
- self.splitter.setOrientation(QtCore.Qt.Horizontal)
- self.splitter.setObjectName(_fromUtf8("splitter"))
- self.tree = QtGui.QTreeWidget(self.splitter)
- self.tree.setMinimumSize(QtCore.QSize(350, 0))
- self.tree.setMaximumSize(QtCore.QSize(100000, 100000))
- self.tree.setSelectionMode(QtGui.QAbstractItemView.SingleSelection)
- self.tree.setObjectName(_fromUtf8("tree"))
- self.tree.headerItem().setText(0, _fromUtf8("1"))
- self.tree.header().setVisible(False)
- self.tree.header().setCascadingSectionResizes(False)
- self.tree.header().setDefaultSectionSize(350)
- self.tree.header().setHighlightSections(False)
- self.tree.header().setSortIndicatorShown(True)
- self.tree.header().setStretchLastSection(True)
- self.frame = QtGui.QFrame(self.splitter)
- self.frame.setFrameShape(QtGui.QFrame.StyledPanel)
- self.frame.setFrameShadow(QtGui.QFrame.Sunken)
- self.frame.setObjectName(_fromUtf8("frame"))
- self.horizontalLayout = QtGui.QHBoxLayout(self.frame)
- self.horizontalLayout.setSpacing(0)
- self.horizontalLayout.setMargin(0)
- self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
- self.webView = QtWebKit.QWebView(self.frame)
- self.webView.setMaximumSize(QtCore.QSize(10000, 10000))
- self.webView.setUrl(QtCore.QUrl(_fromUtf8("about:blank")))
- self.webView.setObjectName(_fromUtf8("webView"))
- self.horizontalLayout.addWidget(self.webView)
- self.verticalLayout.addWidget(self.splitter)
- self.horizontalLayout_2 = QtGui.QHBoxLayout()
- self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
- self.progressBar = QtGui.QProgressBar(DlgGetScriptsAndModels)
- sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.progressBar.sizePolicy().hasHeightForWidth())
- self.progressBar.setSizePolicy(sizePolicy)
- self.progressBar.setMinimumSize(QtCore.QSize(0, 0))
- self.progressBar.setProperty("value", 0)
- self.progressBar.setInvertedAppearance(False)
- self.progressBar.setObjectName(_fromUtf8("progressBar"))
- self.horizontalLayout_2.addWidget(self.progressBar)
- self.buttonBox = QtGui.QDialogButtonBox(DlgGetScriptsAndModels)
- sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.buttonBox.sizePolicy().hasHeightForWidth())
- self.buttonBox.setSizePolicy(sizePolicy)
- self.buttonBox.setMaximumSize(QtCore.QSize(200, 16777215))
- self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
- self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
- self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
- self.horizontalLayout_2.addWidget(self.buttonBox)
- self.verticalLayout.addLayout(self.horizontalLayout_2)
-
- self.retranslateUi(DlgGetScriptsAndModels)
- QtCore.QMetaObject.connectSlotsByName(DlgGetScriptsAndModels)
-
- def retranslateUi(self, DlgGetScriptsAndModels):
- DlgGetScriptsAndModels.setWindowTitle(_translate("DlgGetScriptsAndModels", "Get scripts and models", None))
-
-from PyQt4 import QtWebKit
diff --git a/python/plugins/processing/ui/ui_DlgHelpEdition.py b/python/plugins/processing/ui/ui_DlgHelpEdition.py
deleted file mode 100644
index 69b0ce1ffdc..00000000000
--- a/python/plugins/processing/ui/ui_DlgHelpEdition.py
+++ /dev/null
@@ -1,89 +0,0 @@
-# -*- coding: utf-8 -*-
-
-# Form implementation generated from reading ui file 'DlgHelpEdition.ui'
-#
-# Created: Fri Nov 21 13:25:47 2014
-# by: PyQt4 UI code generator 4.11.1
-#
-# WARNING! All changes made in this file will be lost!
-
-from PyQt4 import QtCore, QtGui
-
-try:
- _fromUtf8 = QtCore.QString.fromUtf8
-except AttributeError:
- def _fromUtf8(s):
- return s
-
-try:
- _encoding = QtGui.QApplication.UnicodeUTF8
- def _translate(context, text, disambig):
- return QtGui.QApplication.translate(context, text, disambig, _encoding)
-except AttributeError:
- def _translate(context, text, disambig):
- return QtGui.QApplication.translate(context, text, disambig)
-
-class Ui_DlgHelpEdition(object):
- def setupUi(self, DlgHelpEdition):
- DlgHelpEdition.setObjectName(_fromUtf8("DlgHelpEdition"))
- DlgHelpEdition.resize(600, 460)
- self.verticalLayout_3 = QtGui.QVBoxLayout(DlgHelpEdition)
- self.verticalLayout_3.setSpacing(6)
- self.verticalLayout_3.setMargin(9)
- self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
- self.splitter_2 = QtGui.QSplitter(DlgHelpEdition)
- self.splitter_2.setOrientation(QtCore.Qt.Vertical)
- self.splitter_2.setObjectName(_fromUtf8("splitter_2"))
- self.webView = QtWebKit.QWebView(self.splitter_2)
- self.webView.setUrl(QtCore.QUrl(_fromUtf8("about:blank")))
- self.webView.setObjectName(_fromUtf8("webView"))
- self.splitter = QtGui.QSplitter(self.splitter_2)
- self.splitter.setOrientation(QtCore.Qt.Horizontal)
- self.splitter.setObjectName(_fromUtf8("splitter"))
- self.layoutWidget = QtGui.QWidget(self.splitter)
- self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
- self.verticalLayout = QtGui.QVBoxLayout(self.layoutWidget)
- self.verticalLayout.setSpacing(2)
- self.verticalLayout.setMargin(0)
- self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
- self.label = QtGui.QLabel(self.layoutWidget)
- self.label.setObjectName(_fromUtf8("label"))
- self.verticalLayout.addWidget(self.label)
- self.tree = QtGui.QTreeWidget(self.layoutWidget)
- self.tree.setMinimumSize(QtCore.QSize(0, 200))
- self.tree.setAlternatingRowColors(True)
- self.tree.setObjectName(_fromUtf8("tree"))
- self.tree.headerItem().setText(0, _fromUtf8("1"))
- self.tree.header().setVisible(False)
- self.verticalLayout.addWidget(self.tree)
- self.layoutWidget1 = QtGui.QWidget(self.splitter)
- self.layoutWidget1.setObjectName(_fromUtf8("layoutWidget1"))
- self.verticalLayout_2 = QtGui.QVBoxLayout(self.layoutWidget1)
- self.verticalLayout_2.setSpacing(2)
- self.verticalLayout_2.setMargin(0)
- self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
- self.lblDescription = QtGui.QLabel(self.layoutWidget1)
- self.lblDescription.setObjectName(_fromUtf8("lblDescription"))
- self.verticalLayout_2.addWidget(self.lblDescription)
- self.text = QtGui.QTextEdit(self.layoutWidget1)
- self.text.setMinimumSize(QtCore.QSize(0, 200))
- self.text.setObjectName(_fromUtf8("text"))
- self.verticalLayout_2.addWidget(self.text)
- self.verticalLayout_3.addWidget(self.splitter_2)
- self.buttonBox = QtGui.QDialogButtonBox(DlgHelpEdition)
- self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
- self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
- self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
- self.verticalLayout_3.addWidget(self.buttonBox)
-
- self.retranslateUi(DlgHelpEdition)
- QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), DlgHelpEdition.accept)
- QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), DlgHelpEdition.reject)
- QtCore.QMetaObject.connectSlotsByName(DlgHelpEdition)
-
- def retranslateUi(self, DlgHelpEdition):
- DlgHelpEdition.setWindowTitle(_translate("DlgHelpEdition", "Help editor", None))
- self.label.setText(_translate("DlgHelpEdition", "Select element to edit", None))
- self.lblDescription.setText(_translate("DlgHelpEdition", "Element description", None))
-
-from PyQt4 import QtWebKit
diff --git a/python/plugins/processing/ui/ui_DlgHistory.py b/python/plugins/processing/ui/ui_DlgHistory.py
deleted file mode 100644
index 0b16fffa279..00000000000
--- a/python/plugins/processing/ui/ui_DlgHistory.py
+++ /dev/null
@@ -1,58 +0,0 @@
-# -*- coding: utf-8 -*-
-
-# Form implementation generated from reading ui file 'DlgHistory.ui'
-#
-# Created: Fri Nov 21 13:25:47 2014
-# by: PyQt4 UI code generator 4.11.1
-#
-# WARNING! All changes made in this file will be lost!
-
-from PyQt4 import QtCore, QtGui
-
-try:
- _fromUtf8 = QtCore.QString.fromUtf8
-except AttributeError:
- def _fromUtf8(s):
- return s
-
-try:
- _encoding = QtGui.QApplication.UnicodeUTF8
- def _translate(context, text, disambig):
- return QtGui.QApplication.translate(context, text, disambig, _encoding)
-except AttributeError:
- def _translate(context, text, disambig):
- return QtGui.QApplication.translate(context, text, disambig)
-
-class Ui_DlgHistory(object):
- def setupUi(self, DlgHistory):
- DlgHistory.setObjectName(_fromUtf8("DlgHistory"))
- DlgHistory.resize(800, 500)
- self.verticalLayout = QtGui.QVBoxLayout(DlgHistory)
- self.verticalLayout.setSpacing(6)
- self.verticalLayout.setMargin(9)
- self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
- self.splitter = QtGui.QSplitter(DlgHistory)
- self.splitter.setOrientation(QtCore.Qt.Vertical)
- self.splitter.setObjectName(_fromUtf8("splitter"))
- self.tree = QtGui.QTreeWidget(self.splitter)
- self.tree.setObjectName(_fromUtf8("tree"))
- self.tree.headerItem().setText(0, _fromUtf8("1"))
- self.tree.header().setVisible(False)
- self.text = QtGui.QTextEdit(self.splitter)
- self.text.setReadOnly(True)
- self.text.setObjectName(_fromUtf8("text"))
- self.verticalLayout.addWidget(self.splitter)
- self.buttonBox = QtGui.QDialogButtonBox(DlgHistory)
- self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
- self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Close)
- self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
- self.verticalLayout.addWidget(self.buttonBox)
-
- self.retranslateUi(DlgHistory)
- QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), DlgHistory.accept)
- QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), DlgHistory.reject)
- QtCore.QMetaObject.connectSlotsByName(DlgHistory)
-
- def retranslateUi(self, DlgHistory):
- DlgHistory.setWindowTitle(_translate("DlgHistory", "History and log", None))
-
diff --git a/python/plugins/processing/ui/ui_DlgMessage.py b/python/plugins/processing/ui/ui_DlgMessage.py
deleted file mode 100644
index 2df211b48c4..00000000000
--- a/python/plugins/processing/ui/ui_DlgMessage.py
+++ /dev/null
@@ -1,49 +0,0 @@
-# -*- coding: utf-8 -*-
-
-# Form implementation generated from reading ui file 'DlgMessage.ui'
-#
-# Created: Fri Nov 21 13:25:48 2014
-# by: PyQt4 UI code generator 4.11.1
-#
-# WARNING! All changes made in this file will be lost!
-
-from PyQt4 import QtCore, QtGui
-
-try:
- _fromUtf8 = QtCore.QString.fromUtf8
-except AttributeError:
- def _fromUtf8(s):
- return s
-
-try:
- _encoding = QtGui.QApplication.UnicodeUTF8
- def _translate(context, text, disambig):
- return QtGui.QApplication.translate(context, text, disambig, _encoding)
-except AttributeError:
- def _translate(context, text, disambig):
- return QtGui.QApplication.translate(context, text, disambig)
-
-class Ui_Dialog(object):
- def setupUi(self, Dialog):
- Dialog.setObjectName(_fromUtf8("Dialog"))
- Dialog.resize(457, 242)
- self.verticalLayout = QtGui.QVBoxLayout(Dialog)
- self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
- self.txtMessage = QtGui.QTextBrowser(Dialog)
- self.txtMessage.setOpenLinks(False)
- self.txtMessage.setObjectName(_fromUtf8("txtMessage"))
- self.verticalLayout.addWidget(self.txtMessage)
- self.buttonBox = QtGui.QDialogButtonBox(Dialog)
- self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
- self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Close)
- self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
- self.verticalLayout.addWidget(self.buttonBox)
-
- self.retranslateUi(Dialog)
- QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), Dialog.accept)
- QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), Dialog.reject)
- QtCore.QMetaObject.connectSlotsByName(Dialog)
-
- def retranslateUi(self, Dialog):
- Dialog.setWindowTitle(_translate("Dialog", "Dialog", None))
-
diff --git a/python/plugins/processing/ui/ui_DlgModeler.py b/python/plugins/processing/ui/ui_DlgModeler.py
deleted file mode 100644
index 366d924c667..00000000000
--- a/python/plugins/processing/ui/ui_DlgModeler.py
+++ /dev/null
@@ -1,161 +0,0 @@
-# -*- coding: utf-8 -*-
-
-# Form implementation generated from reading ui file 'DlgModeler.ui'
-#
-# Created: Fri Nov 21 13:25:48 2014
-# by: PyQt4 UI code generator 4.11.1
-#
-# WARNING! All changes made in this file will be lost!
-
-from PyQt4 import QtCore, QtGui
-
-try:
- _fromUtf8 = QtCore.QString.fromUtf8
-except AttributeError:
- def _fromUtf8(s):
- return s
-
-try:
- _encoding = QtGui.QApplication.UnicodeUTF8
- def _translate(context, text, disambig):
- return QtGui.QApplication.translate(context, text, disambig, _encoding)
-except AttributeError:
- def _translate(context, text, disambig):
- return QtGui.QApplication.translate(context, text, disambig)
-
-class Ui_DlgModeler(object):
- def setupUi(self, DlgModeler):
- DlgModeler.setObjectName(_fromUtf8("DlgModeler"))
- DlgModeler.resize(1000, 600)
- self.verticalLayout = QtGui.QVBoxLayout(DlgModeler)
- self.verticalLayout.setSpacing(6)
- self.verticalLayout.setMargin(9)
- self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
- self.horizontalLayout = QtGui.QHBoxLayout()
- self.horizontalLayout.setSpacing(6)
- self.horizontalLayout.setMargin(3)
- self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
- self.btnOpen = QtGui.QToolButton(DlgModeler)
- self.btnOpen.setAutoRaise(True)
- self.btnOpen.setObjectName(_fromUtf8("btnOpen"))
- self.horizontalLayout.addWidget(self.btnOpen)
- self.btnSave = QtGui.QToolButton(DlgModeler)
- self.btnSave.setAutoRaise(True)
- self.btnSave.setObjectName(_fromUtf8("btnSave"))
- self.horizontalLayout.addWidget(self.btnSave)
- self.btnSaveAs = QtGui.QToolButton(DlgModeler)
- self.btnSaveAs.setAutoRaise(True)
- self.btnSaveAs.setObjectName(_fromUtf8("btnSaveAs"))
- self.horizontalLayout.addWidget(self.btnSaveAs)
- self.line = QtGui.QFrame(DlgModeler)
- self.line.setFrameShape(QtGui.QFrame.VLine)
- self.line.setFrameShadow(QtGui.QFrame.Sunken)
- self.line.setObjectName(_fromUtf8("line"))
- self.horizontalLayout.addWidget(self.line)
- self.btnExportImage = QtGui.QToolButton(DlgModeler)
- self.btnExportImage.setAutoRaise(True)
- self.btnExportImage.setObjectName(_fromUtf8("btnExportImage"))
- self.horizontalLayout.addWidget(self.btnExportImage)
- self.line_2 = QtGui.QFrame(DlgModeler)
- self.line_2.setFrameShape(QtGui.QFrame.VLine)
- self.line_2.setFrameShadow(QtGui.QFrame.Sunken)
- self.line_2.setObjectName(_fromUtf8("line_2"))
- self.horizontalLayout.addWidget(self.line_2)
- self.btnEditHelp = QtGui.QToolButton(DlgModeler)
- self.btnEditHelp.setAutoRaise(True)
- self.btnEditHelp.setObjectName(_fromUtf8("btnEditHelp"))
- self.horizontalLayout.addWidget(self.btnEditHelp)
- self.line_3 = QtGui.QFrame(DlgModeler)
- self.line_3.setFrameShape(QtGui.QFrame.VLine)
- self.line_3.setFrameShadow(QtGui.QFrame.Sunken)
- self.line_3.setObjectName(_fromUtf8("line_3"))
- self.horizontalLayout.addWidget(self.line_3)
- self.btnRun = QtGui.QToolButton(DlgModeler)
- self.btnRun.setAutoRaise(True)
- self.btnRun.setObjectName(_fromUtf8("btnRun"))
- self.horizontalLayout.addWidget(self.btnRun)
- spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
- self.horizontalLayout.addItem(spacerItem)
- self.verticalLayout.addLayout(self.horizontalLayout)
- self.splitter = QtGui.QSplitter(DlgModeler)
- self.splitter.setOrientation(QtCore.Qt.Horizontal)
- self.splitter.setObjectName(_fromUtf8("splitter"))
- self.tabWidget = QtGui.QTabWidget(self.splitter)
- self.tabWidget.setMinimumSize(QtCore.QSize(300, 0))
- self.tabWidget.setTabPosition(QtGui.QTabWidget.South)
- self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
- self.tab = QtGui.QWidget()
- self.tab.setObjectName(_fromUtf8("tab"))
- self.verticalLayout_2 = QtGui.QVBoxLayout(self.tab)
- self.verticalLayout_2.setSpacing(2)
- self.verticalLayout_2.setMargin(0)
- self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
- self.inputsTree = QtGui.QTreeWidget(self.tab)
- self.inputsTree.setAlternatingRowColors(True)
- self.inputsTree.setObjectName(_fromUtf8("inputsTree"))
- self.inputsTree.headerItem().setText(0, _fromUtf8("1"))
- self.inputsTree.header().setVisible(False)
- self.verticalLayout_2.addWidget(self.inputsTree)
- self.tabWidget.addTab(self.tab, _fromUtf8(""))
- self.tab_2 = QtGui.QWidget()
- self.tab_2.setObjectName(_fromUtf8("tab_2"))
- self.verticalLayout_3 = QtGui.QVBoxLayout(self.tab_2)
- self.verticalLayout_3.setSpacing(2)
- self.verticalLayout_3.setMargin(0)
- self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
- self.searchBox = QgsFilterLineEdit(self.tab_2)
- self.searchBox.setObjectName(_fromUtf8("searchBox"))
- self.verticalLayout_3.addWidget(self.searchBox)
- self.algorithmTree = QtGui.QTreeWidget(self.tab_2)
- self.algorithmTree.setAlternatingRowColors(True)
- self.algorithmTree.setObjectName(_fromUtf8("algorithmTree"))
- self.algorithmTree.headerItem().setText(0, _fromUtf8("1"))
- self.algorithmTree.header().setVisible(False)
- self.verticalLayout_3.addWidget(self.algorithmTree)
- self.tabWidget.addTab(self.tab_2, _fromUtf8(""))
- self.layoutWidget = QtGui.QWidget(self.splitter)
- self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
- self.gridLayout = QtGui.QGridLayout(self.layoutWidget)
- self.gridLayout.setSpacing(2)
- self.gridLayout.setMargin(0)
- self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
- self.textName = QtGui.QLineEdit(self.layoutWidget)
- self.textName.setObjectName(_fromUtf8("textName"))
- self.gridLayout.addWidget(self.textName, 0, 0, 1, 1)
- self.textGroup = QtGui.QLineEdit(self.layoutWidget)
- self.textGroup.setObjectName(_fromUtf8("textGroup"))
- self.gridLayout.addWidget(self.textGroup, 0, 1, 1, 1)
- self.view = QtGui.QGraphicsView(self.layoutWidget)
- self.view.setObjectName(_fromUtf8("view"))
- self.gridLayout.addWidget(self.view, 1, 0, 1, 2)
- self.verticalLayout.addWidget(self.splitter)
-
- self.retranslateUi(DlgModeler)
- self.tabWidget.setCurrentIndex(1)
- QtCore.QMetaObject.connectSlotsByName(DlgModeler)
-
- def retranslateUi(self, DlgModeler):
- DlgModeler.setWindowTitle(_translate("DlgModeler", "Processing modeler", None))
- self.btnOpen.setToolTip(_translate("DlgModeler", "Open model", None))
- self.btnOpen.setText(_translate("DlgModeler", "...", None))
- self.btnOpen.setShortcut(_translate("DlgModeler", "Ctrl+O", None))
- self.btnSave.setToolTip(_translate("DlgModeler", "Save", None))
- self.btnSave.setText(_translate("DlgModeler", "...", None))
- self.btnSave.setShortcut(_translate("DlgModeler", "Ctrl+S", None))
- self.btnSaveAs.setToolTip(_translate("DlgModeler", "Save as...", None))
- self.btnSaveAs.setText(_translate("DlgModeler", "...", None))
- self.btnSaveAs.setShortcut(_translate("DlgModeler", "Ctrl+Shift+S", None))
- self.btnExportImage.setToolTip(_translate("DlgModeler", "Export as image", None))
- self.btnExportImage.setText(_translate("DlgModeler", "...", None))
- self.btnEditHelp.setToolTip(_translate("DlgModeler", "Edit model help", None))
- self.btnEditHelp.setText(_translate("DlgModeler", "...", None))
- self.btnRun.setToolTip(_translate("DlgModeler", "Run model", None))
- self.btnRun.setText(_translate("DlgModeler", "...", None))
- self.btnRun.setShortcut(_translate("DlgModeler", "F5", None))
- self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("DlgModeler", "Inputs", None))
- self.searchBox.setToolTip(_translate("DlgModeler", "Enter algorithm name to filter list", None))
- self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("DlgModeler", "Algorithms", None))
- self.textName.setToolTip(_translate("DlgModeler", "Enter model name here", None))
- self.textGroup.setToolTip(_translate("DlgModeler", "Enter group name here", None))
-
-from qgis.gui import QgsFilterLineEdit
diff --git a/python/plugins/processing/ui/ui_DlgMultipleSelection.py b/python/plugins/processing/ui/ui_DlgMultipleSelection.py
deleted file mode 100644
index 05603ee0fe1..00000000000
--- a/python/plugins/processing/ui/ui_DlgMultipleSelection.py
+++ /dev/null
@@ -1,52 +0,0 @@
-# -*- coding: utf-8 -*-
-
-# Form implementation generated from reading ui file 'DlgMultipleSelection.ui'
-#
-# Created: Fri Nov 21 13:25:48 2014
-# by: PyQt4 UI code generator 4.11.1
-#
-# WARNING! All changes made in this file will be lost!
-
-from PyQt4 import QtCore, QtGui
-
-try:
- _fromUtf8 = QtCore.QString.fromUtf8
-except AttributeError:
- def _fromUtf8(s):
- return s
-
-try:
- _encoding = QtGui.QApplication.UnicodeUTF8
- def _translate(context, text, disambig):
- return QtGui.QApplication.translate(context, text, disambig, _encoding)
-except AttributeError:
- def _translate(context, text, disambig):
- return QtGui.QApplication.translate(context, text, disambig)
-
-class Ui_DlgMultipleSelection(object):
- def setupUi(self, DlgMultipleSelection):
- DlgMultipleSelection.setObjectName(_fromUtf8("DlgMultipleSelection"))
- DlgMultipleSelection.resize(380, 320)
- self.horizontalLayout = QtGui.QHBoxLayout(DlgMultipleSelection)
- self.horizontalLayout.setSpacing(6)
- self.horizontalLayout.setMargin(9)
- self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
- self.lstLayers = QtGui.QListView(DlgMultipleSelection)
- self.lstLayers.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers)
- self.lstLayers.setAlternatingRowColors(True)
- self.lstLayers.setObjectName(_fromUtf8("lstLayers"))
- self.horizontalLayout.addWidget(self.lstLayers)
- self.buttonBox = QtGui.QDialogButtonBox(DlgMultipleSelection)
- self.buttonBox.setOrientation(QtCore.Qt.Vertical)
- self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
- self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
- self.horizontalLayout.addWidget(self.buttonBox)
-
- self.retranslateUi(DlgMultipleSelection)
- QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), DlgMultipleSelection.accept)
- QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), DlgMultipleSelection.reject)
- QtCore.QMetaObject.connectSlotsByName(DlgMultipleSelection)
-
- def retranslateUi(self, DlgMultipleSelection):
- DlgMultipleSelection.setWindowTitle(_translate("DlgMultipleSelection", "Multiple selection", None))
-
diff --git a/python/plugins/processing/ui/ui_DlgNumberInput.py b/python/plugins/processing/ui/ui_DlgNumberInput.py
deleted file mode 100644
index f51c57a142a..00000000000
--- a/python/plugins/processing/ui/ui_DlgNumberInput.py
+++ /dev/null
@@ -1,65 +0,0 @@
-# -*- coding: utf-8 -*-
-
-# Form implementation generated from reading ui file 'DlgNumberInput.ui'
-#
-# Created: Fri Nov 21 13:25:48 2014
-# by: PyQt4 UI code generator 4.11.1
-#
-# WARNING! All changes made in this file will be lost!
-
-from PyQt4 import QtCore, QtGui
-
-try:
- _fromUtf8 = QtCore.QString.fromUtf8
-except AttributeError:
- def _fromUtf8(s):
- return s
-
-try:
- _encoding = QtGui.QApplication.UnicodeUTF8
- def _translate(context, text, disambig):
- return QtGui.QApplication.translate(context, text, disambig, _encoding)
-except AttributeError:
- def _translate(context, text, disambig):
- return QtGui.QApplication.translate(context, text, disambig)
-
-class Ui_DlgNumberInput(object):
- def setupUi(self, DlgNumberInput):
- DlgNumberInput.setObjectName(_fromUtf8("DlgNumberInput"))
- DlgNumberInput.resize(445, 300)
- self.verticalLayout = QtGui.QVBoxLayout(DlgNumberInput)
- self.verticalLayout.setSpacing(6)
- self.verticalLayout.setMargin(9)
- self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
- self.label = QtGui.QLabel(DlgNumberInput)
- self.label.setWordWrap(True)
- self.label.setObjectName(_fromUtf8("label"))
- self.verticalLayout.addWidget(self.label)
- self.lblWarning = QtGui.QLabel(DlgNumberInput)
- self.lblWarning.setWordWrap(True)
- self.lblWarning.setObjectName(_fromUtf8("lblWarning"))
- self.verticalLayout.addWidget(self.lblWarning)
- self.treeValues = QtGui.QTreeWidget(DlgNumberInput)
- self.treeValues.setObjectName(_fromUtf8("treeValues"))
- self.treeValues.headerItem().setText(0, _fromUtf8("1"))
- self.treeValues.header().setVisible(False)
- self.verticalLayout.addWidget(self.treeValues)
- self.leFormula = QtGui.QLineEdit(DlgNumberInput)
- self.leFormula.setObjectName(_fromUtf8("leFormula"))
- self.verticalLayout.addWidget(self.leFormula)
- self.buttonBox = QtGui.QDialogButtonBox(DlgNumberInput)
- self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
- self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
- self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
- self.verticalLayout.addWidget(self.buttonBox)
-
- self.retranslateUi(DlgNumberInput)
- QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), DlgNumberInput.accept)
- QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), DlgNumberInput.reject)
- QtCore.QMetaObject.connectSlotsByName(DlgNumberInput)
-
- def retranslateUi(self, DlgNumberInput):
- DlgNumberInput.setWindowTitle(_translate("DlgNumberInput", "Enter number or expression", None))
- self.label.setText(_translate("DlgNumberInput", "
Enter expression in the text field. Double click on elements in the tree to add their values to the expression.
", None)) - self.lblWarning.setText(_translate("DlgNumberInput", "Warning: if expression result is float value, but integer required, result will be rounded to integer.
", None)) - diff --git a/python/plugins/processing/ui/ui_DlgRenderingStyles.py b/python/plugins/processing/ui/ui_DlgRenderingStyles.py deleted file mode 100644 index d9cf827dc9a..00000000000 --- a/python/plugins/processing/ui/ui_DlgRenderingStyles.py +++ /dev/null @@ -1,61 +0,0 @@ -# -*- coding: utf-8 -*- - -# Form implementation generated from reading ui file 'DlgRenderingStyles.ui' -# -# Created: Fri Nov 21 13:25:48 2014 -# by: PyQt4 UI code generator 4.11.1 -# -# WARNING! All changes made in this file will be lost! - -from PyQt4 import QtCore, QtGui - -try: - _fromUtf8 = QtCore.QString.fromUtf8 -except AttributeError: - def _fromUtf8(s): - return s - -try: - _encoding = QtGui.QApplication.UnicodeUTF8 - def _translate(context, text, disambig): - return QtGui.QApplication.translate(context, text, disambig, _encoding) -except AttributeError: - def _translate(context, text, disambig): - return QtGui.QApplication.translate(context, text, disambig) - -class Ui_DlgRenderingStyles(object): - def setupUi(self, DlgRenderingStyles): - DlgRenderingStyles.setObjectName(_fromUtf8("DlgRenderingStyles")) - DlgRenderingStyles.resize(550, 400) - self.verticalLayout = QtGui.QVBoxLayout(DlgRenderingStyles) - self.verticalLayout.setSpacing(6) - self.verticalLayout.setMargin(9) - self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) - self.tblStyles = QtGui.QTableWidget(DlgRenderingStyles) - self.tblStyles.setObjectName(_fromUtf8("tblStyles")) - self.tblStyles.setColumnCount(2) - self.tblStyles.setRowCount(0) - item = QtGui.QTableWidgetItem() - self.tblStyles.setHorizontalHeaderItem(0, item) - item = QtGui.QTableWidgetItem() - self.tblStyles.setHorizontalHeaderItem(1, item) - self.tblStyles.verticalHeader().setVisible(False) - self.verticalLayout.addWidget(self.tblStyles) - self.buttonBox = QtGui.QDialogButtonBox(DlgRenderingStyles) - self.buttonBox.setOrientation(QtCore.Qt.Horizontal) - self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok) - self.buttonBox.setObjectName(_fromUtf8("buttonBox")) - self.verticalLayout.addWidget(self.buttonBox) - - self.retranslateUi(DlgRenderingStyles) - QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), DlgRenderingStyles.accept) - QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), DlgRenderingStyles.reject) - QtCore.QMetaObject.connectSlotsByName(DlgRenderingStyles) - - def retranslateUi(self, DlgRenderingStyles): - DlgRenderingStyles.setWindowTitle(_translate("DlgRenderingStyles", "Dialog", None)) - item = self.tblStyles.horizontalHeaderItem(0) - item.setText(_translate("DlgRenderingStyles", "Output", None)) - item = self.tblStyles.horizontalHeaderItem(1) - item.setText(_translate("DlgRenderingStyles", "Style", None)) - diff --git a/python/plugins/processing/ui/ui_DlgResults.py b/python/plugins/processing/ui/ui_DlgResults.py deleted file mode 100644 index fa1df8c2add..00000000000 --- a/python/plugins/processing/ui/ui_DlgResults.py +++ /dev/null @@ -1,61 +0,0 @@ -# -*- coding: utf-8 -*- - -# Form implementation generated from reading ui file 'DlgResults.ui' -# -# Created: Fri Nov 21 13:25:48 2014 -# by: PyQt4 UI code generator 4.11.1 -# -# WARNING! All changes made in this file will be lost! - -from PyQt4 import QtCore, QtGui - -try: - _fromUtf8 = QtCore.QString.fromUtf8 -except AttributeError: - def _fromUtf8(s): - return s - -try: - _encoding = QtGui.QApplication.UnicodeUTF8 - def _translate(context, text, disambig): - return QtGui.QApplication.translate(context, text, disambig, _encoding) -except AttributeError: - def _translate(context, text, disambig): - return QtGui.QApplication.translate(context, text, disambig) - -class Ui_DlgResults(object): - def setupUi(self, DlgResults): - DlgResults.setObjectName(_fromUtf8("DlgResults")) - DlgResults.resize(623, 515) - self.verticalLayout = QtGui.QVBoxLayout(DlgResults) - self.verticalLayout.setSpacing(6) - self.verticalLayout.setMargin(9) - self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) - self.splitter = QtGui.QSplitter(DlgResults) - self.splitter.setOrientation(QtCore.Qt.Horizontal) - self.splitter.setObjectName(_fromUtf8("splitter")) - self.tree = QtGui.QTreeWidget(self.splitter) - self.tree.setMinimumSize(QtCore.QSize(0, 0)) - self.tree.setObjectName(_fromUtf8("tree")) - self.tree.headerItem().setText(0, _fromUtf8("1")) - self.tree.header().setVisible(False) - self.webView = QtWebKit.QWebView(self.splitter) - self.webView.setMinimumSize(QtCore.QSize(0, 0)) - self.webView.setUrl(QtCore.QUrl(_fromUtf8("about:blank"))) - self.webView.setObjectName(_fromUtf8("webView")) - self.verticalLayout.addWidget(self.splitter) - self.buttonBox = QtGui.QDialogButtonBox(DlgResults) - self.buttonBox.setOrientation(QtCore.Qt.Horizontal) - self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Close) - self.buttonBox.setObjectName(_fromUtf8("buttonBox")) - self.verticalLayout.addWidget(self.buttonBox) - - self.retranslateUi(DlgResults) - QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), DlgResults.accept) - QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), DlgResults.reject) - QtCore.QMetaObject.connectSlotsByName(DlgResults) - - def retranslateUi(self, DlgResults): - DlgResults.setWindowTitle(_translate("DlgResults", "Results", None)) - -from PyQt4 import QtWebKit diff --git a/python/plugins/processing/ui/ui_DlgScriptEditor.py b/python/plugins/processing/ui/ui_DlgScriptEditor.py deleted file mode 100644 index 01b291e7647..00000000000 --- a/python/plugins/processing/ui/ui_DlgScriptEditor.py +++ /dev/null @@ -1,153 +0,0 @@ -# -*- coding: utf-8 -*- - -# Form implementation generated from reading ui file 'DlgScriptEditor.ui' -# -# Created: Fri Nov 21 13:25:49 2014 -# by: PyQt4 UI code generator 4.11.1 -# -# WARNING! All changes made in this file will be lost! - -from PyQt4 import QtCore, QtGui - -try: - _fromUtf8 = QtCore.QString.fromUtf8 -except AttributeError: - def _fromUtf8(s): - return s - -try: - _encoding = QtGui.QApplication.UnicodeUTF8 - def _translate(context, text, disambig): - return QtGui.QApplication.translate(context, text, disambig, _encoding) -except AttributeError: - def _translate(context, text, disambig): - return QtGui.QApplication.translate(context, text, disambig) - -class Ui_DlgScriptEditor(object): - def setupUi(self, DlgScriptEditor): - DlgScriptEditor.setObjectName(_fromUtf8("DlgScriptEditor")) - DlgScriptEditor.resize(720, 480) - self.verticalLayout = QtGui.QVBoxLayout(DlgScriptEditor) - self.verticalLayout.setSpacing(6) - self.verticalLayout.setMargin(9) - self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) - self.horizontalLayout = QtGui.QHBoxLayout() - self.horizontalLayout.setSpacing(6) - self.horizontalLayout.setContentsMargins(3, 3, 3, -1) - self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) - self.btnOpen = QtGui.QToolButton(DlgScriptEditor) - self.btnOpen.setAutoRaise(True) - self.btnOpen.setObjectName(_fromUtf8("btnOpen")) - self.horizontalLayout.addWidget(self.btnOpen) - self.btnSave = QtGui.QToolButton(DlgScriptEditor) - self.btnSave.setAutoRaise(True) - self.btnSave.setObjectName(_fromUtf8("btnSave")) - self.horizontalLayout.addWidget(self.btnSave) - self.btnSaveAs = QtGui.QToolButton(DlgScriptEditor) - self.btnSaveAs.setAutoRaise(True) - self.btnSaveAs.setObjectName(_fromUtf8("btnSaveAs")) - self.horizontalLayout.addWidget(self.btnSaveAs) - self.line = QtGui.QFrame(DlgScriptEditor) - self.line.setFrameShape(QtGui.QFrame.VLine) - self.line.setFrameShadow(QtGui.QFrame.Sunken) - self.line.setObjectName(_fromUtf8("line")) - self.horizontalLayout.addWidget(self.line) - self.btnEditHelp = QtGui.QToolButton(DlgScriptEditor) - self.btnEditHelp.setAutoRaise(True) - self.btnEditHelp.setObjectName(_fromUtf8("btnEditHelp")) - self.horizontalLayout.addWidget(self.btnEditHelp) - self.line_2 = QtGui.QFrame(DlgScriptEditor) - self.line_2.setFrameShape(QtGui.QFrame.VLine) - self.line_2.setFrameShadow(QtGui.QFrame.Sunken) - self.line_2.setObjectName(_fromUtf8("line_2")) - self.horizontalLayout.addWidget(self.line_2) - self.btnRun = QtGui.QToolButton(DlgScriptEditor) - self.btnRun.setAutoRaise(True) - self.btnRun.setObjectName(_fromUtf8("btnRun")) - self.horizontalLayout.addWidget(self.btnRun) - self.line_3 = QtGui.QFrame(DlgScriptEditor) - self.line_3.setFrameShape(QtGui.QFrame.VLine) - self.line_3.setFrameShadow(QtGui.QFrame.Sunken) - self.line_3.setObjectName(_fromUtf8("line_3")) - self.horizontalLayout.addWidget(self.line_3) - self.btnCut = QtGui.QToolButton(DlgScriptEditor) - self.btnCut.setAutoRaise(True) - self.btnCut.setObjectName(_fromUtf8("btnCut")) - self.horizontalLayout.addWidget(self.btnCut) - self.btnCopy = QtGui.QToolButton(DlgScriptEditor) - self.btnCopy.setAutoRaise(True) - self.btnCopy.setObjectName(_fromUtf8("btnCopy")) - self.horizontalLayout.addWidget(self.btnCopy) - self.btnPaste = QtGui.QToolButton(DlgScriptEditor) - self.btnPaste.setAutoRaise(True) - self.btnPaste.setObjectName(_fromUtf8("btnPaste")) - self.horizontalLayout.addWidget(self.btnPaste) - self.line_4 = QtGui.QFrame(DlgScriptEditor) - self.line_4.setFrameShape(QtGui.QFrame.VLine) - self.line_4.setFrameShadow(QtGui.QFrame.Sunken) - self.line_4.setObjectName(_fromUtf8("line_4")) - self.horizontalLayout.addWidget(self.line_4) - self.btnUndo = QtGui.QToolButton(DlgScriptEditor) - self.btnUndo.setAutoRaise(True) - self.btnUndo.setObjectName(_fromUtf8("btnUndo")) - self.horizontalLayout.addWidget(self.btnUndo) - self.btnRedo = QtGui.QToolButton(DlgScriptEditor) - self.btnRedo.setAutoRaise(True) - self.btnRedo.setObjectName(_fromUtf8("btnRedo")) - self.horizontalLayout.addWidget(self.btnRedo) - self.line_5 = QtGui.QFrame(DlgScriptEditor) - self.line_5.setFrameShape(QtGui.QFrame.VLine) - self.line_5.setFrameShadow(QtGui.QFrame.Sunken) - self.line_5.setObjectName(_fromUtf8("line_5")) - self.horizontalLayout.addWidget(self.line_5) - self.btnSnippets = QtGui.QToolButton(DlgScriptEditor) - self.btnSnippets.setAutoRaise(True) - self.btnSnippets.setObjectName(_fromUtf8("btnSnippets")) - self.horizontalLayout.addWidget(self.btnSnippets) - spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) - self.horizontalLayout.addItem(spacerItem) - self.verticalLayout.addLayout(self.horizontalLayout) - self.editor = ScriptEdit(DlgScriptEditor) - self.editor.setObjectName(_fromUtf8("editor")) - self.verticalLayout.addWidget(self.editor) - - self.retranslateUi(DlgScriptEditor) - QtCore.QMetaObject.connectSlotsByName(DlgScriptEditor) - DlgScriptEditor.setTabOrder(self.btnSave, self.btnSaveAs) - DlgScriptEditor.setTabOrder(self.btnSaveAs, self.btnEditHelp) - DlgScriptEditor.setTabOrder(self.btnEditHelp, self.btnRun) - - def retranslateUi(self, DlgScriptEditor): - DlgScriptEditor.setWindowTitle(_translate("DlgScriptEditor", "Script editor", None)) - self.btnOpen.setToolTip(_translate("DlgScriptEditor", "Open script", None)) - self.btnOpen.setText(_translate("DlgScriptEditor", "...", None)) - self.btnOpen.setShortcut(_translate("DlgScriptEditor", "Ctrl+O, Return", None)) - self.btnSave.setToolTip(_translate("DlgScriptEditor", "Save", None)) - self.btnSave.setText(_translate("DlgScriptEditor", "...", None)) - self.btnSave.setShortcut(_translate("DlgScriptEditor", "Ctrl+S", None)) - self.btnSaveAs.setToolTip(_translate("DlgScriptEditor", "Save as...", None)) - self.btnSaveAs.setText(_translate("DlgScriptEditor", "...", None)) - self.btnSaveAs.setShortcut(_translate("DlgScriptEditor", "Ctrl+Shift+S", None)) - self.btnEditHelp.setToolTip(_translate("DlgScriptEditor", "Edit script help", None)) - self.btnEditHelp.setText(_translate("DlgScriptEditor", "...", None)) - self.btnRun.setToolTip(_translate("DlgScriptEditor", "Run algorithm", None)) - self.btnRun.setText(_translate("DlgScriptEditor", "...", None)) - self.btnRun.setShortcut(_translate("DlgScriptEditor", "F5", None)) - self.btnCut.setToolTip(_translate("DlgScriptEditor", "Cut", None)) - self.btnCut.setText(_translate("DlgScriptEditor", "...", None)) - self.btnCut.setShortcut(_translate("DlgScriptEditor", "Ctrl+X", None)) - self.btnCopy.setToolTip(_translate("DlgScriptEditor", "Copy", None)) - self.btnCopy.setText(_translate("DlgScriptEditor", "...", None)) - self.btnCopy.setShortcut(_translate("DlgScriptEditor", "Ctrl+C", None)) - self.btnPaste.setToolTip(_translate("DlgScriptEditor", "Paste", None)) - self.btnPaste.setText(_translate("DlgScriptEditor", "...", None)) - self.btnPaste.setShortcut(_translate("DlgScriptEditor", "Ctrl+V", None)) - self.btnUndo.setToolTip(_translate("DlgScriptEditor", "Undo", None)) - self.btnUndo.setText(_translate("DlgScriptEditor", "...", None)) - self.btnUndo.setShortcut(_translate("DlgScriptEditor", "Ctrl+Z", None)) - self.btnRedo.setToolTip(_translate("DlgScriptEditor", "Redo", None)) - self.btnRedo.setText(_translate("DlgScriptEditor", "...", None)) - self.btnRedo.setShortcut(_translate("DlgScriptEditor", "Ctrl+Shift+Z", None)) - self.btnSnippets.setText(_translate("DlgScriptEditor", "...", None)) - -from processing.gui.ScriptEdit import ScriptEdit diff --git a/python/plugins/processing/ui/ui_ProcessingToolbox.py b/python/plugins/processing/ui/ui_ProcessingToolbox.py deleted file mode 100644 index 760e470d261..00000000000 --- a/python/plugins/processing/ui/ui_ProcessingToolbox.py +++ /dev/null @@ -1,57 +0,0 @@ -# -*- coding: utf-8 -*- - -# Form implementation generated from reading ui file 'ProcessingToolbox.ui' -# -# Created: Fri Nov 21 13:25:49 2014 -# by: PyQt4 UI code generator 4.11.1 -# -# WARNING! All changes made in this file will be lost! - -from PyQt4 import QtCore, QtGui - -try: - _fromUtf8 = QtCore.QString.fromUtf8 -except AttributeError: - def _fromUtf8(s): - return s - -try: - _encoding = QtGui.QApplication.UnicodeUTF8 - def _translate(context, text, disambig): - return QtGui.QApplication.translate(context, text, disambig, _encoding) -except AttributeError: - def _translate(context, text, disambig): - return QtGui.QApplication.translate(context, text, disambig) - -class Ui_ProcessingToolbox(object): - def setupUi(self, ProcessingToolbox): - ProcessingToolbox.setObjectName(_fromUtf8("ProcessingToolbox")) - ProcessingToolbox.resize(289, 438) - self.dockWidgetContents = QtGui.QWidget() - self.dockWidgetContents.setObjectName(_fromUtf8("dockWidgetContents")) - self.verticalLayout = QtGui.QVBoxLayout(self.dockWidgetContents) - self.verticalLayout.setSpacing(3) - self.verticalLayout.setMargin(0) - self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) - self.searchBox = QgsFilterLineEdit(self.dockWidgetContents) - self.searchBox.setObjectName(_fromUtf8("searchBox")) - self.verticalLayout.addWidget(self.searchBox) - self.algorithmTree = QtGui.QTreeWidget(self.dockWidgetContents) - self.algorithmTree.setContextMenuPolicy(QtCore.Qt.CustomContextMenu) - self.algorithmTree.setHeaderHidden(True) - self.algorithmTree.setObjectName(_fromUtf8("algorithmTree")) - self.algorithmTree.headerItem().setText(0, _fromUtf8("1")) - self.verticalLayout.addWidget(self.algorithmTree) - self.modeComboBox = QtGui.QComboBox(self.dockWidgetContents) - self.modeComboBox.setObjectName(_fromUtf8("modeComboBox")) - self.verticalLayout.addWidget(self.modeComboBox) - ProcessingToolbox.setWidget(self.dockWidgetContents) - - self.retranslateUi(ProcessingToolbox) - QtCore.QMetaObject.connectSlotsByName(ProcessingToolbox) - - def retranslateUi(self, ProcessingToolbox): - ProcessingToolbox.setWindowTitle(_translate("ProcessingToolbox", "Processing Toolbox", None)) - self.searchBox.setToolTip(_translate("ProcessingToolbox", "Enter algorithm name to filter list", None)) - -from qgis.gui import QgsFilterLineEdit diff --git a/python/plugins/processing/ui/ui_widgetBaseSelector.py b/python/plugins/processing/ui/ui_widgetBaseSelector.py deleted file mode 100644 index d466156dbdd..00000000000 --- a/python/plugins/processing/ui/ui_widgetBaseSelector.py +++ /dev/null @@ -1,47 +0,0 @@ -# -*- coding: utf-8 -*- - -# Form implementation generated from reading ui file 'widgetBaseSelector.ui' -# -# Created: Fri Nov 21 13:25:49 2014 -# by: PyQt4 UI code generator 4.11.1 -# -# WARNING! All changes made in this file will be lost! - -from PyQt4 import QtCore, QtGui - -try: - _fromUtf8 = QtCore.QString.fromUtf8 -except AttributeError: - def _fromUtf8(s): - return s - -try: - _encoding = QtGui.QApplication.UnicodeUTF8 - def _translate(context, text, disambig): - return QtGui.QApplication.translate(context, text, disambig, _encoding) -except AttributeError: - def _translate(context, text, disambig): - return QtGui.QApplication.translate(context, text, disambig) - -class Ui_Form(object): - def setupUi(self, Form): - Form.setObjectName(_fromUtf8("Form")) - Form.resize(249, 23) - self.horizontalLayout = QtGui.QHBoxLayout(Form) - self.horizontalLayout.setSpacing(2) - self.horizontalLayout.setMargin(0) - self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) - self.leText = QtGui.QLineEdit(Form) - self.leText.setObjectName(_fromUtf8("leText")) - self.horizontalLayout.addWidget(self.leText) - self.btnSelect = QtGui.QToolButton(Form) - self.btnSelect.setObjectName(_fromUtf8("btnSelect")) - self.horizontalLayout.addWidget(self.btnSelect) - - self.retranslateUi(Form) - QtCore.QMetaObject.connectSlotsByName(Form) - - def retranslateUi(self, Form): - Form.setWindowTitle(_translate("Form", "Form", None)) - self.btnSelect.setText(_translate("Form", "...", None)) - diff --git a/python/plugins/processing/ui/ui_widgetBatchPanel.py b/python/plugins/processing/ui/ui_widgetBatchPanel.py deleted file mode 100644 index e8512848b3f..00000000000 --- a/python/plugins/processing/ui/ui_widgetBatchPanel.py +++ /dev/null @@ -1,69 +0,0 @@ -# -*- coding: utf-8 -*- - -# Form implementation generated from reading ui file 'widgetBatchPanel.ui' -# -# Created: Fri Nov 21 13:25:49 2014 -# by: PyQt4 UI code generator 4.11.1 -# -# WARNING! All changes made in this file will be lost! - -from PyQt4 import QtCore, QtGui - -try: - _fromUtf8 = QtCore.QString.fromUtf8 -except AttributeError: - def _fromUtf8(s): - return s - -try: - _encoding = QtGui.QApplication.UnicodeUTF8 - def _translate(context, text, disambig): - return QtGui.QApplication.translate(context, text, disambig, _encoding) -except AttributeError: - def _translate(context, text, disambig): - return QtGui.QApplication.translate(context, text, disambig) - -class Ui_Form(object): - def setupUi(self, Form): - Form.setObjectName(_fromUtf8("Form")) - Form.resize(400, 252) - self.gridLayout = QtGui.QGridLayout(Form) - self.gridLayout.setMargin(0) - self.gridLayout.setSpacing(2) - self.gridLayout.setObjectName(_fromUtf8("gridLayout")) - self.btnAdvanced = QtGui.QToolButton(Form) - self.btnAdvanced.setCheckable(True) - self.btnAdvanced.setAutoRaise(True) - self.btnAdvanced.setObjectName(_fromUtf8("btnAdvanced")) - self.gridLayout.addWidget(self.btnAdvanced, 0, 0, 1, 1) - self.btnAdd = QtGui.QToolButton(Form) - self.btnAdd.setAutoRaise(True) - self.btnAdd.setObjectName(_fromUtf8("btnAdd")) - self.gridLayout.addWidget(self.btnAdd, 0, 1, 1, 1) - self.btnRemove = QtGui.QToolButton(Form) - self.btnRemove.setAutoRaise(True) - self.btnRemove.setObjectName(_fromUtf8("btnRemove")) - self.gridLayout.addWidget(self.btnRemove, 0, 2, 1, 1) - spacerItem = QtGui.QSpacerItem(313, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) - self.gridLayout.addItem(spacerItem, 0, 3, 1, 1) - self.tblParameters = QtGui.QTableWidget(Form) - self.tblParameters.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows) - self.tblParameters.setObjectName(_fromUtf8("tblParameters")) - self.tblParameters.setColumnCount(0) - self.tblParameters.setRowCount(0) - self.tblParameters.horizontalHeader().setStretchLastSection(True) - self.tblParameters.verticalHeader().setVisible(False) - self.gridLayout.addWidget(self.tblParameters, 1, 0, 1, 4) - - self.retranslateUi(Form) - QtCore.QMetaObject.connectSlotsByName(Form) - - def retranslateUi(self, Form): - Form.setWindowTitle(_translate("Form", "Form", None)) - self.btnAdvanced.setToolTip(_translate("Form", "Toggle advanced mode", None)) - self.btnAdvanced.setText(_translate("Form", "...", None)) - self.btnAdd.setToolTip(_translate("Form", "Add row", None)) - self.btnAdd.setText(_translate("Form", "...", None)) - self.btnRemove.setToolTip(_translate("Form", "Remove row(s)", None)) - self.btnRemove.setText(_translate("Form", "...", None)) - diff --git a/python/plugins/processing/ui/ui_widgetGeometryPredicateSelector.py b/python/plugins/processing/ui/ui_widgetGeometryPredicateSelector.py deleted file mode 100644 index 1c8f83a9683..00000000000 --- a/python/plugins/processing/ui/ui_widgetGeometryPredicateSelector.py +++ /dev/null @@ -1,71 +0,0 @@ -# -*- coding: utf-8 -*- - -# Form implementation generated from reading ui file 'widgetGeometryPredicateSelector.ui' -# -# Created: Mon Jan 19 11:52:29 2015 -# by: PyQt4 UI code generator 4.10.4 -# -# WARNING! All changes made in this file will be lost! - -from PyQt4 import QtCore, QtGui - -try: - _fromUtf8 = QtCore.QString.fromUtf8 -except AttributeError: - def _fromUtf8(s): - return s - -try: - _encoding = QtGui.QApplication.UnicodeUTF8 - def _translate(context, text, disambig): - return QtGui.QApplication.translate(context, text, disambig, _encoding) -except AttributeError: - def _translate(context, text, disambig): - return QtGui.QApplication.translate(context, text, disambig) - -class Ui_Form(object): - def setupUi(self, Form): - Form.setObjectName(_fromUtf8("Form")) - Form.resize(609, 213) - self.gridLayout = QtGui.QGridLayout(Form) - self.gridLayout.setMargin(0) - self.gridLayout.setObjectName(_fromUtf8("gridLayout")) - self.equalsBox = QtGui.QCheckBox(Form) - self.equalsBox.setObjectName(_fromUtf8("equalsBox")) - self.gridLayout.addWidget(self.equalsBox, 0, 0, 1, 1) - self.containsBox = QtGui.QCheckBox(Form) - self.containsBox.setObjectName(_fromUtf8("containsBox")) - self.gridLayout.addWidget(self.containsBox, 1, 0, 1, 1) - self.touchesBox = QtGui.QCheckBox(Form) - self.touchesBox.setObjectName(_fromUtf8("touchesBox")) - self.gridLayout.addWidget(self.touchesBox, 3, 0, 1, 1) - self.intersectsBox = QtGui.QCheckBox(Form) - self.intersectsBox.setObjectName(_fromUtf8("intersectsBox")) - self.gridLayout.addWidget(self.intersectsBox, 2, 0, 1, 1) - self.withinBox = QtGui.QCheckBox(Form) - self.withinBox.setObjectName(_fromUtf8("withinBox")) - self.gridLayout.addWidget(self.withinBox, 0, 1, 1, 1) - self.overlapsBox = QtGui.QCheckBox(Form) - self.overlapsBox.setObjectName(_fromUtf8("overlapsBox")) - self.gridLayout.addWidget(self.overlapsBox, 1, 1, 1, 1) - self.crossesBox = QtGui.QCheckBox(Form) - self.crossesBox.setObjectName(_fromUtf8("crossesBox")) - self.gridLayout.addWidget(self.crossesBox, 2, 1, 1, 1) - self.disjointBox = QtGui.QCheckBox(Form) - self.disjointBox.setObjectName(_fromUtf8("disjointBox")) - self.gridLayout.addWidget(self.disjointBox, 3, 1, 1, 1) - - self.retranslateUi(Form) - QtCore.QMetaObject.connectSlotsByName(Form) - - def retranslateUi(self, Form): - Form.setWindowTitle(_translate("Form", "Form", None)) - self.equalsBox.setText(_translate("Form", "equals", None)) - self.containsBox.setText(_translate("Form", "contains", None)) - self.touchesBox.setText(_translate("Form", "touches", None)) - self.intersectsBox.setText(_translate("Form", "intersects", None)) - self.withinBox.setText(_translate("Form", "within", None)) - self.overlapsBox.setText(_translate("Form", "overlaps", None)) - self.crossesBox.setText(_translate("Form", "crosses", None)) - self.disjointBox.setText(_translate("Form", "disjoint", None)) - diff --git a/python/plugins/processing/ui/ui_widgetLayerSelector.py b/python/plugins/processing/ui/ui_widgetLayerSelector.py deleted file mode 100644 index 218ea221220..00000000000 --- a/python/plugins/processing/ui/ui_widgetLayerSelector.py +++ /dev/null @@ -1,53 +0,0 @@ -# -*- coding: utf-8 -*- - -# Form implementation generated from reading ui file 'widgetLayerSelector.ui' -# -# Created: Fri Nov 21 13:25:49 2014 -# by: PyQt4 UI code generator 4.11.1 -# -# WARNING! All changes made in this file will be lost! - -from PyQt4 import QtCore, QtGui - -try: - _fromUtf8 = QtCore.QString.fromUtf8 -except AttributeError: - def _fromUtf8(s): - return s - -try: - _encoding = QtGui.QApplication.UnicodeUTF8 - def _translate(context, text, disambig): - return QtGui.QApplication.translate(context, text, disambig, _encoding) -except AttributeError: - def _translate(context, text, disambig): - return QtGui.QApplication.translate(context, text, disambig) - -class Ui_Form(object): - def setupUi(self, Form): - Form.setObjectName(_fromUtf8("Form")) - Form.resize(250, 23) - self.horizontalLayout = QtGui.QHBoxLayout(Form) - self.horizontalLayout.setSpacing(2) - self.horizontalLayout.setMargin(0) - self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) - self.cmbText = QtGui.QComboBox(Form) - self.cmbText.setObjectName(_fromUtf8("cmbText")) - self.horizontalLayout.addWidget(self.cmbText) - self.btnSelect = QtGui.QToolButton(Form) - self.btnSelect.setObjectName(_fromUtf8("btnSelect")) - self.horizontalLayout.addWidget(self.btnSelect) - self.btnIterate = QtGui.QToolButton(Form) - self.btnIterate.setCheckable(True) - self.btnIterate.setObjectName(_fromUtf8("btnIterate")) - self.horizontalLayout.addWidget(self.btnIterate) - - self.retranslateUi(Form) - QtCore.QMetaObject.connectSlotsByName(Form) - - def retranslateUi(self, Form): - Form.setWindowTitle(_translate("Form", "Form", None)) - self.btnSelect.setText(_translate("Form", "...", None)) - self.btnIterate.setToolTip(_translate("Form", "Iterate over this layer", None)) - self.btnIterate.setText(_translate("Form", "...", None)) - diff --git a/python/plugins/processing/ui/ui_widgetNumberSelector.py b/python/plugins/processing/ui/ui_widgetNumberSelector.py deleted file mode 100644 index f9f420ef46c..00000000000 --- a/python/plugins/processing/ui/ui_widgetNumberSelector.py +++ /dev/null @@ -1,51 +0,0 @@ -# -*- coding: utf-8 -*- - -# Form implementation generated from reading ui file 'widgetNumberSelector.ui' -# -# Created: Fri Nov 21 13:25:49 2014 -# by: PyQt4 UI code generator 4.11.1 -# -# WARNING! All changes made in this file will be lost! - -from PyQt4 import QtCore, QtGui - -try: - _fromUtf8 = QtCore.QString.fromUtf8 -except AttributeError: - def _fromUtf8(s): - return s - -try: - _encoding = QtGui.QApplication.UnicodeUTF8 - def _translate(context, text, disambig): - return QtGui.QApplication.translate(context, text, disambig, _encoding) -except AttributeError: - def _translate(context, text, disambig): - return QtGui.QApplication.translate(context, text, disambig) - -class Ui_Form(object): - def setupUi(self, Form): - Form.setObjectName(_fromUtf8("Form")) - Form.resize(251, 23) - self.horizontalLayout = QtGui.QHBoxLayout(Form) - self.horizontalLayout.setSpacing(2) - self.horizontalLayout.setMargin(0) - self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) - self.spnValue = QtGui.QDoubleSpinBox(Form) - self.spnValue.setDecimals(6) - self.spnValue.setMinimum(-100000000.0) - self.spnValue.setMaximum(100000000.0) - self.spnValue.setObjectName(_fromUtf8("spnValue")) - self.horizontalLayout.addWidget(self.spnValue) - self.btnCalc = QtGui.QToolButton(Form) - self.btnCalc.setObjectName(_fromUtf8("btnCalc")) - self.horizontalLayout.addWidget(self.btnCalc) - - self.retranslateUi(Form) - QtCore.QMetaObject.connectSlotsByName(Form) - - def retranslateUi(self, Form): - Form.setWindowTitle(_translate("Form", "Form", None)) - self.btnCalc.setToolTip(_translate("Form", "Open number input dialog", None)) - self.btnCalc.setText(_translate("Form", "...", None)) - diff --git a/python/plugins/processing/ui/ui_widgetParametersPanel.py b/python/plugins/processing/ui/ui_widgetParametersPanel.py deleted file mode 100644 index 07f56006109..00000000000 --- a/python/plugins/processing/ui/ui_widgetParametersPanel.py +++ /dev/null @@ -1,64 +0,0 @@ -# -*- coding: utf-8 -*- - -# Form implementation generated from reading ui file 'widgetParametersPanel.ui' -# -# Created: Fri Nov 21 13:25:50 2014 -# by: PyQt4 UI code generator 4.11.1 -# -# WARNING! All changes made in this file will be lost! - -from PyQt4 import QtCore, QtGui - -try: - _fromUtf8 = QtCore.QString.fromUtf8 -except AttributeError: - def _fromUtf8(s): - return s - -try: - _encoding = QtGui.QApplication.UnicodeUTF8 - def _translate(context, text, disambig): - return QtGui.QApplication.translate(context, text, disambig, _encoding) -except AttributeError: - def _translate(context, text, disambig): - return QtGui.QApplication.translate(context, text, disambig) - -class Ui_Form(object): - def setupUi(self, Form): - Form.setObjectName(_fromUtf8("Form")) - Form.resize(400, 90) - self.verticalLayout = QtGui.QVBoxLayout(Form) - self.verticalLayout.setSpacing(2) - self.verticalLayout.setMargin(0) - self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) - self.scrollArea = QtGui.QScrollArea(Form) - self.scrollArea.setFrameShape(QtGui.QFrame.NoFrame) - self.scrollArea.setWidgetResizable(True) - self.scrollArea.setObjectName(_fromUtf8("scrollArea")) - self.scrollAreaWidgetContents = QtGui.QWidget() - self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 400, 90)) - self.scrollAreaWidgetContents.setObjectName(_fromUtf8("scrollAreaWidgetContents")) - self.verticalLayout_2 = QtGui.QVBoxLayout(self.scrollAreaWidgetContents) - self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) - self.grpAdvanced = QgsCollapsibleGroupBox(self.scrollAreaWidgetContents) - self.grpAdvanced.setFlat(True) - self.grpAdvanced.setCollapsed(True) - self.grpAdvanced.setObjectName(_fromUtf8("grpAdvanced")) - self.verticalLayout_3 = QtGui.QVBoxLayout(self.grpAdvanced) - self.verticalLayout_3.setSpacing(2) - self.verticalLayout_3.setContentsMargins(0, 9, 0, 0) - self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3")) - self.verticalLayout_2.addWidget(self.grpAdvanced) - spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) - self.verticalLayout_2.addItem(spacerItem) - self.scrollArea.setWidget(self.scrollAreaWidgetContents) - self.verticalLayout.addWidget(self.scrollArea) - - self.retranslateUi(Form) - QtCore.QMetaObject.connectSlotsByName(Form) - - def retranslateUi(self, Form): - Form.setWindowTitle(_translate("Form", "Form", None)) - self.grpAdvanced.setTitle(_translate("Form", "Advanced parameters", None)) - -from qgis.gui import QgsCollapsibleGroupBox diff --git a/python/plugins/processing/ui/ui_widgetRangeSelector.py b/python/plugins/processing/ui/ui_widgetRangeSelector.py deleted file mode 100644 index ff12caa6c06..00000000000 --- a/python/plugins/processing/ui/ui_widgetRangeSelector.py +++ /dev/null @@ -1,72 +0,0 @@ -# -*- coding: utf-8 -*- - -# Form implementation generated from reading ui file 'widgetRangeSelector.ui' -# -# Created: Fri Nov 21 13:25:50 2014 -# by: PyQt4 UI code generator 4.11.1 -# -# WARNING! All changes made in this file will be lost! - -from PyQt4 import QtCore, QtGui - -try: - _fromUtf8 = QtCore.QString.fromUtf8 -except AttributeError: - def _fromUtf8(s): - return s - -try: - _encoding = QtGui.QApplication.UnicodeUTF8 - def _translate(context, text, disambig): - return QtGui.QApplication.translate(context, text, disambig, _encoding) -except AttributeError: - def _translate(context, text, disambig): - return QtGui.QApplication.translate(context, text, disambig) - -class Ui_Form(object): - def setupUi(self, Form): - Form.setObjectName(_fromUtf8("Form")) - Form.resize(345, 23) - self.horizontalLayout = QtGui.QHBoxLayout(Form) - self.horizontalLayout.setSpacing(2) - self.horizontalLayout.setMargin(0) - self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) - self.label = QtGui.QLabel(Form) - self.label.setObjectName(_fromUtf8("label")) - self.horizontalLayout.addWidget(self.label) - self.spnMin = QtGui.QDoubleSpinBox(Form) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.spnMin.sizePolicy().hasHeightForWidth()) - self.spnMin.setSizePolicy(sizePolicy) - self.spnMin.setDecimals(6) - self.spnMin.setMinimum(-100000000.0) - self.spnMin.setMaximum(100000000.0) - self.spnMin.setObjectName(_fromUtf8("spnMin")) - self.horizontalLayout.addWidget(self.spnMin) - spacerItem = QtGui.QSpacerItem(64, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) - self.horizontalLayout.addItem(spacerItem) - self.label_2 = QtGui.QLabel(Form) - self.label_2.setObjectName(_fromUtf8("label_2")) - self.horizontalLayout.addWidget(self.label_2) - self.spnMax = QtGui.QDoubleSpinBox(Form) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.spnMax.sizePolicy().hasHeightForWidth()) - self.spnMax.setSizePolicy(sizePolicy) - self.spnMax.setDecimals(6) - self.spnMax.setMinimum(-100000000.0) - self.spnMax.setMaximum(100000000.0) - self.spnMax.setObjectName(_fromUtf8("spnMax")) - self.horizontalLayout.addWidget(self.spnMax) - - self.retranslateUi(Form) - QtCore.QMetaObject.connectSlotsByName(Form) - - def retranslateUi(self, Form): - Form.setWindowTitle(_translate("Form", "Form", None)) - self.label.setText(_translate("Form", "Min", None)) - self.label_2.setText(_translate("Form", "Max", None)) -