[processing] load UI files dynamically

This commit is contained in:
Alexander Bruy 2015-05-18 21:04:20 +03:00
parent 30dbd8fd5b
commit d8e1cf30af
60 changed files with 254 additions and 2035 deletions

View File

@ -8,12 +8,9 @@ ADD_SUBDIRECTORY(modeler)
ADD_SUBDIRECTORY(script)
ADD_SUBDIRECTORY(tools)
ADD_SUBDIRECTORY(tests)
FILE(GLOB UI_FILES ui/*.ui)
PYQT4_WRAP_UI(PYUI_FILES ${UI_FILES})
ADD_SUBDIRECTORY(ui)
FILE(GLOB OTHER_FILES metadata.txt)
FILE(GLOB PY_FILES *.py)
PLUGIN_INSTALL(processing . ${PY_FILES} ${OTHER_FILES})
PLUGIN_INSTALL(processing ui ${PYUI_FILES} ui/__init__.py)

View File

@ -1,6 +1,4 @@
FILE(GLOB PY_FILES *.py)
FILE(GLOB UI_FILES *.ui)
PYQT4_WRAP_UI(PYUI_FILES ${UI_FILES})
PLUGIN_INSTALL(processing ./algs/qgis/ui ${PY_FILES} ${PYUI_FILES})
PLUGIN_INSTALL(processing ./algs/qgis/ui ${PY_FILES} ${UI_FILES})

View File

@ -28,6 +28,7 @@ __revision__ = '$Format:%H$'
import os
import re
from PyQt4 import uic
from PyQt4.QtCore import Qt, QSettings
from PyQt4.QtGui import QDialog, QFileDialog, QApplication, QCursor, QMessageBox
from qgis.gui import QgsEncodingFileDialog
@ -38,12 +39,14 @@ from processing.gui.AlgorithmExecutor import runalg
from processing.tools import dataobjects
from processing.gui.Postprocessing import handleAlgorithmResults
from ui_DlgFieldsCalculator import Ui_FieldsCalculator
pluginPath = os.path.dirname(__file__)
WIDGET, BASE = uic.loadUiType(
os.path.join(pluginPath, 'DlgFieldsCalculator.ui'))
class FieldsCalculatorDialog(QDialog, Ui_FieldsCalculator):
class FieldsCalculatorDialog(BASE, WIDGET):
def __init__(self, alg):
QDialog.__init__(self)
super(FieldsCalculatorDialog, self).__init__(None)
self.setupUi(self)
self.executed = False

View File

@ -25,9 +25,11 @@ __copyright__ = '(C) 2014, Arnaud Morvan'
__revision__ = '$Format:%H$'
import os
from collections import OrderedDict
from PyQt4 import uic
from PyQt4 import QtCore, QtGui
from qgis.core import QgsExpression
@ -35,7 +37,9 @@ from qgis.gui import QgsFieldExpressionWidget
from processing.tools import dataobjects
from .ui_widgetFieldsMapping import Ui_Form
pluginPath = os.path.dirname(__file__)
WIDGET, BASE = uic.loadUiType(
os.path.join(pluginPath, 'widgetFieldsMapping.ui'))
class FieldsMappingModel(QtCore.QAbstractTableModel):
@ -45,7 +49,7 @@ class FieldsMappingModel(QtCore.QAbstractTableModel):
(QtCore.QVariant.Double, "Double"),
(QtCore.QVariant.String, "String"),
(QtCore.QVariant.DateTime, "Date"),
(QtCore.QVariant.LongLong, "Double"),
(QtCore.QVariant.LongLong, "Double"),
(QtCore.QVariant.Date, "Date")])
columns = [
@ -297,10 +301,10 @@ class FieldDelegate(QtGui.QStyledItemDelegate):
self.commitData.emit(self.sender())
class FieldsMappingPanel(QtGui.QWidget, Ui_Form):
class FieldsMappingPanel(BASE, WIDGET):
def __init__(self, parent=None):
QtGui.QWidget.__init__(self, parent)
super(FieldsMappingPanel, self).__init__(parent)
self.setupUi(self)
self.addButton.setIcon(

View File

@ -1,148 +0,0 @@
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'python/plugins/processing/algs/ui/DlgFieldsCalculator.ui'
#
# Created: Thu Oct 24 16:06:48 2013
# by: PyQt4 UI code generator 4.9.1
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
_fromUtf8 = lambda s: s
class Ui_FieldsCalculator(object):
def setupUi(self, FieldsCalculator):
FieldsCalculator.setObjectName(_fromUtf8("FieldsCalculator"))
FieldsCalculator.resize(681, 681)
self.gridLayout = QtGui.QGridLayout(FieldsCalculator)
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
self.mNewFieldGroupBox = QtGui.QGroupBox(FieldsCalculator)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.mNewFieldGroupBox.sizePolicy().hasHeightForWidth())
self.mNewFieldGroupBox.setSizePolicy(sizePolicy)
self.mNewFieldGroupBox.setFlat(True)
self.mNewFieldGroupBox.setCheckable(True)
self.mNewFieldGroupBox.setChecked(True)
self.mNewFieldGroupBox.setObjectName(_fromUtf8("mNewFieldGroupBox"))
self.gridlayout = QtGui.QGridLayout(self.mNewFieldGroupBox)
self.gridlayout.setSizeConstraint(QtGui.QLayout.SetMinimumSize)
self.gridlayout.setContentsMargins(3, 3, 3, 0)
self.gridlayout.setVerticalSpacing(3)
self.gridlayout.setObjectName(_fromUtf8("gridlayout"))
self.mFieldNameLabel = QtGui.QLabel(self.mNewFieldGroupBox)
self.mFieldNameLabel.setObjectName(_fromUtf8("mFieldNameLabel"))
self.gridlayout.addWidget(self.mFieldNameLabel, 0, 0, 1, 1)
self.mOutputFieldNameLineEdit = QtGui.QLineEdit(self.mNewFieldGroupBox)
self.mOutputFieldNameLineEdit.setObjectName(_fromUtf8("mOutputFieldNameLineEdit"))
self.gridlayout.addWidget(self.mOutputFieldNameLineEdit, 0, 1, 1, 3)
self.mOutputFieldTypeLabel = QtGui.QLabel(self.mNewFieldGroupBox)
self.mOutputFieldTypeLabel.setObjectName(_fromUtf8("mOutputFieldTypeLabel"))
self.gridlayout.addWidget(self.mOutputFieldTypeLabel, 1, 0, 1, 1)
self.mOutputFieldTypeComboBox = QtGui.QComboBox(self.mNewFieldGroupBox)
self.mOutputFieldTypeComboBox.setObjectName(_fromUtf8("mOutputFieldTypeComboBox"))
self.gridlayout.addWidget(self.mOutputFieldTypeComboBox, 1, 1, 1, 3)
self.mOutputFieldWidthLabel = QtGui.QLabel(self.mNewFieldGroupBox)
self.mOutputFieldWidthLabel.setObjectName(_fromUtf8("mOutputFieldWidthLabel"))
self.gridlayout.addWidget(self.mOutputFieldWidthLabel, 2, 0, 1, 1)
self.mOutputFieldWidthSpinBox = QtGui.QSpinBox(self.mNewFieldGroupBox)
self.mOutputFieldWidthSpinBox.setMinimum(0)
self.mOutputFieldWidthSpinBox.setProperty("value", 15)
self.mOutputFieldWidthSpinBox.setObjectName(_fromUtf8("mOutputFieldWidthSpinBox"))
self.gridlayout.addWidget(self.mOutputFieldWidthSpinBox, 2, 1, 1, 1)
self.mOutputFieldPrecisionLabel = QtGui.QLabel(self.mNewFieldGroupBox)
self.mOutputFieldPrecisionLabel.setObjectName(_fromUtf8("mOutputFieldPrecisionLabel"))
self.gridlayout.addWidget(self.mOutputFieldPrecisionLabel, 2, 2, 1, 1)
self.mOutputFieldPrecisionSpinBox = QtGui.QSpinBox(self.mNewFieldGroupBox)
self.mOutputFieldPrecisionSpinBox.setProperty("value", 2)
self.mOutputFieldPrecisionSpinBox.setObjectName(_fromUtf8("mOutputFieldPrecisionSpinBox"))
self.gridlayout.addWidget(self.mOutputFieldPrecisionSpinBox, 2, 3, 1, 1)
self.gridLayout.addWidget(self.mNewFieldGroupBox, 2, 0, 1, 1)
self.mButtonBox = QtGui.QDialogButtonBox(FieldsCalculator)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(3)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.mButtonBox.sizePolicy().hasHeightForWidth())
self.mButtonBox.setSizePolicy(sizePolicy)
self.mButtonBox.setOrientation(QtCore.Qt.Horizontal)
self.mButtonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
self.mButtonBox.setObjectName(_fromUtf8("mButtonBox"))
self.gridLayout.addWidget(self.mButtonBox, 5, 0, 1, 2)
self.horizontalLayout = QtGui.QHBoxLayout()
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.label = QtGui.QLabel(FieldsCalculator)
self.label.setObjectName(_fromUtf8("label"))
self.horizontalLayout.addWidget(self.label)
self.cmbInputLayer = QtGui.QComboBox(FieldsCalculator)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.cmbInputLayer.sizePolicy().hasHeightForWidth())
self.cmbInputLayer.setSizePolicy(sizePolicy)
self.cmbInputLayer.setObjectName(_fromUtf8("cmbInputLayer"))
self.horizontalLayout.addWidget(self.cmbInputLayer)
self.gridLayout.addLayout(self.horizontalLayout, 0, 0, 1, 2)
self.mUpdateExistingGroupBox = QtGui.QGroupBox(FieldsCalculator)
self.mUpdateExistingGroupBox.setFlat(True)
self.mUpdateExistingGroupBox.setCheckable(True)
self.mUpdateExistingGroupBox.setChecked(False)
self.mUpdateExistingGroupBox.setObjectName(_fromUtf8("mUpdateExistingGroupBox"))
self.verticalLayout = QtGui.QVBoxLayout(self.mUpdateExistingGroupBox)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.mExistingFieldComboBox = QtGui.QComboBox(self.mUpdateExistingGroupBox)
self.mExistingFieldComboBox.setObjectName(_fromUtf8("mExistingFieldComboBox"))
self.verticalLayout.addWidget(self.mExistingFieldComboBox)
self.gridLayout.addWidget(self.mUpdateExistingGroupBox, 2, 1, 1, 1)
self.builder = QgsExpressionBuilderWidget(FieldsCalculator)
self.builder.setAutoFillBackground(False)
self.builder.setObjectName(_fromUtf8("builder"))
self.gridLayout.addWidget(self.builder, 3, 0, 1, 2)
self.horizontalLayout_2 = QtGui.QHBoxLayout()
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
self.label_2 = QtGui.QLabel(FieldsCalculator)
self.label_2.setObjectName(_fromUtf8("label_2"))
self.horizontalLayout_2.addWidget(self.label_2)
self.leOutputFile = QtGui.QLineEdit(FieldsCalculator)
self.leOutputFile.setObjectName(_fromUtf8("leOutputFile"))
self.horizontalLayout_2.addWidget(self.leOutputFile)
self.btnBrowse = QtGui.QToolButton(FieldsCalculator)
self.btnBrowse.setObjectName(_fromUtf8("btnBrowse"))
self.horizontalLayout_2.addWidget(self.btnBrowse)
self.gridLayout.addLayout(self.horizontalLayout_2, 1, 0, 1, 2)
self.progressBar = QtGui.QProgressBar(FieldsCalculator)
self.progressBar.setProperty("value", 0)
self.progressBar.setObjectName(_fromUtf8("progressBar"))
self.gridLayout.addWidget(self.progressBar, 4, 0, 1, 2)
self.mFieldNameLabel.setBuddy(self.mOutputFieldNameLineEdit)
self.mOutputFieldTypeLabel.setBuddy(self.mOutputFieldTypeComboBox)
self.mOutputFieldWidthLabel.setBuddy(self.mOutputFieldWidthSpinBox)
self.mOutputFieldPrecisionLabel.setBuddy(self.mOutputFieldPrecisionSpinBox)
self.retranslateUi(FieldsCalculator)
QtCore.QObject.connect(self.mButtonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), FieldsCalculator.accept)
QtCore.QObject.connect(self.mButtonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), FieldsCalculator.reject)
QtCore.QMetaObject.connectSlotsByName(FieldsCalculator)
FieldsCalculator.setTabOrder(self.mOutputFieldNameLineEdit, self.mOutputFieldTypeComboBox)
FieldsCalculator.setTabOrder(self.mOutputFieldTypeComboBox, self.mOutputFieldWidthSpinBox)
FieldsCalculator.setTabOrder(self.mOutputFieldWidthSpinBox, self.mOutputFieldPrecisionSpinBox)
FieldsCalculator.setTabOrder(self.mOutputFieldPrecisionSpinBox, self.mButtonBox)
def retranslateUi(self, FieldsCalculator):
FieldsCalculator.setWindowTitle(QtGui.QApplication.translate("FieldsCalculator", "Field calculator", None, QtGui.QApplication.UnicodeUTF8))
self.mNewFieldGroupBox.setTitle(QtGui.QApplication.translate("FieldsCalculator", "Create a new field", None, QtGui.QApplication.UnicodeUTF8))
self.mFieldNameLabel.setText(QtGui.QApplication.translate("FieldsCalculator", "Output field name", None, QtGui.QApplication.UnicodeUTF8))
self.mOutputFieldTypeLabel.setText(QtGui.QApplication.translate("FieldsCalculator", "Output field type", None, QtGui.QApplication.UnicodeUTF8))
self.mOutputFieldWidthLabel.setText(QtGui.QApplication.translate("FieldsCalculator", "Output field width", None, QtGui.QApplication.UnicodeUTF8))
self.mOutputFieldWidthSpinBox.setToolTip(QtGui.QApplication.translate("FieldsCalculator", "Width of complete output. For example 123,456 means 6 as field width.", None, QtGui.QApplication.UnicodeUTF8))
self.mOutputFieldPrecisionLabel.setText(QtGui.QApplication.translate("FieldsCalculator", "Precision", None, QtGui.QApplication.UnicodeUTF8))
self.label.setText(QtGui.QApplication.translate("FieldsCalculator", "Input layer", None, QtGui.QApplication.UnicodeUTF8))
self.mUpdateExistingGroupBox.setTitle(QtGui.QApplication.translate("FieldsCalculator", "Update existing field", None, QtGui.QApplication.UnicodeUTF8))
self.label_2.setText(QtGui.QApplication.translate("FieldsCalculator", "Output file", None, QtGui.QApplication.UnicodeUTF8))
self.btnBrowse.setText(QtGui.QApplication.translate("FieldsCalculator", "...", None, QtGui.QApplication.UnicodeUTF8))
from qgis.gui import QgsExpressionBuilderWidget

View File

@ -1,107 +0,0 @@
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'widgetFieldsMapping.ui'
#
# Created: Tue Jan 20 10:14:41 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(590, 552)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(Form.sizePolicy().hasHeightForWidth())
Form.setSizePolicy(sizePolicy)
self.verticalLayout_2 = QtGui.QVBoxLayout(Form)
self.verticalLayout_2.setMargin(0)
self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
self.horizontalLayout = QtGui.QHBoxLayout()
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.fieldsView = QtGui.QTableView(Form)
self.fieldsView.setSelectionMode(QtGui.QAbstractItemView.SingleSelection)
self.fieldsView.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
self.fieldsView.setObjectName(_fromUtf8("fieldsView"))
self.horizontalLayout.addWidget(self.fieldsView)
self.buttonLayout = QtGui.QVBoxLayout()
self.buttonLayout.setObjectName(_fromUtf8("buttonLayout"))
self.addButton = QtGui.QToolButton(Form)
self.addButton.setObjectName(_fromUtf8("addButton"))
self.buttonLayout.addWidget(self.addButton)
self.deleteButton = QtGui.QToolButton(Form)
self.deleteButton.setObjectName(_fromUtf8("deleteButton"))
self.buttonLayout.addWidget(self.deleteButton)
self.upButton = QtGui.QToolButton(Form)
self.upButton.setObjectName(_fromUtf8("upButton"))
self.buttonLayout.addWidget(self.upButton)
self.downButton = QtGui.QToolButton(Form)
self.downButton.setObjectName(_fromUtf8("downButton"))
self.buttonLayout.addWidget(self.downButton)
self.resetButton = QtGui.QToolButton(Form)
self.resetButton.setObjectName(_fromUtf8("resetButton"))
self.buttonLayout.addWidget(self.resetButton)
spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
self.buttonLayout.addItem(spacerItem)
self.horizontalLayout.addLayout(self.buttonLayout)
self.verticalLayout_2.addLayout(self.horizontalLayout)
self.loadFromLayerLayout = QtGui.QHBoxLayout()
self.loadFromLayerLayout.setObjectName(_fromUtf8("loadFromLayerLayout"))
self.loadFromLayerLabel = QtGui.QLabel(Form)
self.loadFromLayerLabel.setObjectName(_fromUtf8("loadFromLayerLabel"))
self.loadFromLayerLayout.addWidget(self.loadFromLayerLabel)
self.layerCombo = QtGui.QComboBox(Form)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.layerCombo.sizePolicy().hasHeightForWidth())
self.layerCombo.setSizePolicy(sizePolicy)
self.layerCombo.setObjectName(_fromUtf8("layerCombo"))
self.loadFromLayerLayout.addWidget(self.layerCombo)
self.loadLayerFieldsButton = QtGui.QPushButton(Form)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.loadLayerFieldsButton.sizePolicy().hasHeightForWidth())
self.loadLayerFieldsButton.setSizePolicy(sizePolicy)
self.loadLayerFieldsButton.setObjectName(_fromUtf8("loadLayerFieldsButton"))
self.loadFromLayerLayout.addWidget(self.loadLayerFieldsButton)
self.verticalLayout_2.addLayout(self.loadFromLayerLayout)
self.retranslateUi(Form)
QtCore.QMetaObject.connectSlotsByName(Form)
def retranslateUi(self, Form):
Form.setWindowTitle(_translate("Form", "Fields", None))
self.addButton.setToolTip(_translate("Form", "Add new field", None))
self.addButton.setText(_translate("Form", "add", None))
self.deleteButton.setToolTip(_translate("Form", "Delete selected field", None))
self.deleteButton.setText(_translate("Form", "delete", None))
self.upButton.setToolTip(_translate("Form", "Move selected field up", None))
self.upButton.setText(_translate("Form", "up", None))
self.downButton.setToolTip(_translate("Form", "Move selected field down", None))
self.downButton.setText(_translate("Form", "down", None))
self.resetButton.setToolTip(_translate("Form", "Reset all fields", None))
self.resetButton.setText(_translate("Form", "reset", None))
self.loadFromLayerLabel.setText(_translate("Form", "Load fields from layer", None))
self.loadLayerFieldsButton.setToolTip(_translate("Form", "Load fields from selected layer", None))
self.loadLayerFieldsButton.setText(_translate("Form", "Load fields", None))

View File

@ -25,16 +25,22 @@ __copyright__ = '(C) 2012, Victor Olaya'
__revision__ = '$Format:%H$'
import os
from PyQt4 import uic
from PyQt4.QtCore import QCoreApplication, QUrl
from PyQt4.QtGui import QDialog, QApplication, QDialogButtonBox
from PyQt4.QtGui import QApplication, QDialogButtonBox
from qgis.utils import iface
from processing.core.ProcessingConfig import ProcessingConfig
from processing.ui.ui_DlgAlgorithmBase import Ui_Dialog
pluginPath = os.path.split(os.path.dirname(__file__))[0]
WIDGET, BASE = uic.loadUiType(
os.path.join(pluginPath, 'ui', 'DlgAlgorithmBase.ui'))
class AlgorithmDialogBase(QDialog, Ui_Dialog):
class AlgorithmDialogBase(BASE, WIDGET):
class InvalidParameterValue(Exception):
@ -43,7 +49,7 @@ class AlgorithmDialogBase(QDialog, Ui_Dialog):
def __init__(self, alg):
QDialog.__init__(self, iface.mainWindow())
super(AlgorithmDialogBase, self).__init__(iface.mainWindow())
self.setupUi(self)
self.executed = False

View File

@ -25,19 +25,24 @@ __copyright__ = '(C) 2012, Victor Olaya'
__revision__ = '$Format:%H$'
import os
from PyQt4 import uic
from PyQt4.QtGui import QDialog
from processing.ui.ui_DlgAutofill import Ui_DlgAutofill
pluginPath = os.path.split(os.path.dirname(__file__))[0]
WIDGET, BASE = uic.loadUiType(
os.path.join(pluginPath, 'ui', 'DlgAutofill.ui'))
class AutofillDialog(QDialog, Ui_DlgAutofill):
class AutofillDialog(BASE, WIDGET):
DO_NOT_AUTOFILL = 0
FILL_WITH_NUMBERS = 1
FILL_WITH_PARAMETER = 2
def __init__(self, alg):
QDialog.__init__(self)
super(AutofillDialog, self).__init__(None)
self.setupUi(self)
self.cmbFillType.currentIndexChanged.connect(self.toggleParameters)

View File

@ -27,6 +27,7 @@ __revision__ = '$Format:%H$'
import os
from PyQt4 import uic
from PyQt4.QtGui import QWidget, QIcon, QTableWidgetItem, QComboBox, QLineEdit
from qgis.core import QgsApplication
@ -51,15 +52,14 @@ from processing.core.parameters import ParameterFixedTable
from processing.core.parameters import ParameterMultipleInput
from processing.core.parameters import ParameterGeometryPredicate
from processing.ui.ui_widgetBatchPanel import Ui_Form
pluginPath = os.path.split(os.path.dirname(__file__))[0]
WIDGET, BASE = uic.loadUiType(
os.path.join(pluginPath, 'ui', 'widgetBatchPanel.ui'))
class BatchPanel(QWidget, Ui_Form):
class BatchPanel(BASE, WIDGET):
def __init__(self, parent, alg):
QWidget.__init__(self)
super(BatchPanel, self).__init__(None)
self.setupUi(self)
self.btnAdvanced.hide()

View File

@ -27,6 +27,7 @@ __revision__ = '$Format:%H$'
import os
from PyQt4 import uic
from PyQt4.QtCore import Qt, QEvent
from PyQt4.QtGui import (QFileDialog, QDialog, QIcon, QStyle,
QStandardItemModel, QStandardItem, QMessageBox, QStyledItemDelegate,
@ -34,16 +35,18 @@ from PyQt4.QtGui import (QFileDialog, QDialog, QIcon, QStyle,
from processing.core.ProcessingConfig import ProcessingConfig
from processing.core.Processing import Processing
from processing.ui.ui_DlgConfig import Ui_DlgConfig
pluginPath = os.path.split(os.path.dirname(__file__))[0]
WIDGET, BASE = uic.loadUiType(
os.path.join(pluginPath, 'ui', 'DlgConfig.ui'))
class ConfigDialog(QDialog, Ui_DlgConfig):
class ConfigDialog(BASE, WIDGET):
def __init__(self, toolbox):
QDialog.__init__(self)
super(ConfigDialog, self).__init__(None)
self.setupUi(self)
self.toolbox = toolbox
self.groupIcon = QIcon()
self.groupIcon.addPixmap(self.style().standardPixmap(

View File

@ -25,16 +25,22 @@ __copyright__ = '(C) 2012, Victor Olaya'
__revision__ = '$Format:%H$'
from PyQt4.QtGui import QWidget
import os
from PyQt4 import uic
from qgis.core import QgsCoordinateReferenceSystem
from qgis.gui import QgsGenericProjectionSelector
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 CrsSelectionPanel(QWidget, Ui_Form):
class CrsSelectionPanel(BASE, WIDGET):
def __init__(self, default):
QWidget.__init__(self)
super(CrsSelectionPanel, self).__init__(None)
self.setupUi(self)
self.leText.setEnabled(False)

View File

@ -25,6 +25,9 @@ __copyright__ = '(C) 2012, Victor Olaya'
__revision__ = '$Format:%H$'
import os
from PyQt4 import uic
from PyQt4.QtCore import Qt
from PyQt4.QtGui import QDialog, QHeaderView, QTableWidgetItem
@ -33,13 +36,15 @@ from processing.gui.RenderingStyleFilePanel import RenderingStyleFilePanel
from processing.core.outputs import OutputRaster
from processing.core.outputs import OutputVector
from processing.ui.ui_DlgRenderingStyles import Ui_DlgRenderingStyles
pluginPath = os.path.split(os.path.dirname(__file__))[0]
WIDGET, BASE = uic.loadUiType(
os.path.join(pluginPath, 'ui', 'DlgRenderingStyles.ui'))
class EditRenderingStylesDialog(QDialog, Ui_DlgRenderingStyles):
class EditRenderingStylesDialog(BASE, WIDGET):
def __init__(self, alg):
QDialog.__init__(self)
super(EditRenderingStylesDialog, self).__init__(None)
self.setupUi(self)
self.alg = alg.getCopy()

View File

@ -25,7 +25,10 @@ __copyright__ = '(C) 2012, Victor Olaya'
__revision__ = '$Format:%H$'
from PyQt4.QtGui import QWidget, QMenu, QAction, QCursor, QInputDialog
import os
from PyQt4 import uic
from PyQt4.QtGui import QMenu, QAction, QCursor, QInputDialog
from qgis.core import QgsRasterLayer, QgsVectorLayer
from qgis.utils import iface
@ -36,12 +39,15 @@ from processing.core.parameters import ParameterVector
from processing.core.parameters import ParameterMultipleInput
from processing.tools import dataobjects
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 ExtentSelectionPanel(QWidget, Ui_Form):
class ExtentSelectionPanel(BASE, WIDGET):
def __init__(self, dialog, alg, default):
QWidget.__init__(self)
super(ExtentSelectionPanel, self).__init__(None)
self.setupUi(self)
self.dialog = dialog

View File

@ -27,18 +27,21 @@ __revision__ = '$Format:%H$'
import os
from PyQt4.QtGui import QWidget, QFileDialog
from PyQt4 import uic
from PyQt4.QtGui import QFileDialog
from PyQt4.QtCore import QSettings
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 FileSelectionPanel(QWidget, Ui_Form):
class FileSelectionPanel(BASE, WIDGET):
def __init__(self, isFolder, ext=None):
QWidget.__init__(self)
super(FileSelectionPanel, self).__init__(None)
self.setupUi(self)
self.ext = ext or '*'

View File

@ -25,15 +25,20 @@ __copyright__ = '(C) 2012, Victor Olaya'
__revision__ = '$Format:%H$'
import os
from PyQt4 import uic
from PyQt4.QtGui import QDialog, QPushButton, QAbstractItemView, QDialogButtonBox, QStandardItemModel, QStandardItem
from processing.ui.ui_DlgFixedTable import Ui_DlgFixedTable
pluginPath = os.path.split(os.path.dirname(__file__))[0]
WIDGET, BASE = uic.loadUiType(
os.path.join(pluginPath, 'ui', 'DlgFixedTable.ui'))
class FixedTableDialog(QDialog, Ui_DlgFixedTable):
class FixedTableDialog(BASE, WIDGET):
def __init__(self, param, table):
QDialog.__init__(self)
super(FixedTableDialog, self).__init__(None)
self.setupUi(self)
self.tblView.setSelectionBehavior(QAbstractItemView.SelectRows)

View File

@ -25,17 +25,21 @@ __copyright__ = '(C) 2012, Victor Olaya'
__revision__ = '$Format:%H$'
from PyQt4.QtGui import QWidget
import os
from PyQt4 import uic
from processing.gui.FixedTableDialog import FixedTableDialog
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 FixedTablePanel(QWidget, Ui_Form):
class FixedTablePanel(BASE, WIDGET):
def __init__(self, param, parent=None):
QWidget.__init__(self)
super(FixedTablePanel, self).__init__(parent)
self.setupUi(self)
self.leText.setEnabled(False)

View File

@ -25,15 +25,20 @@ __copyright__ = '(C) 2015, Arnaud Morvan'
# This will get replaced with a git SHA1 when you do a git archive
__revision__ = '$Format:%H$'
import os
from PyQt4.QtGui import QWidget, QCheckBox
from PyQt4 import uic
from PyQt4.QtGui import QCheckBox
from qgis.core import QGis, QgsVectorLayer
from processing.core.parameters import ParameterGeometryPredicate
from processing.ui.ui_widgetGeometryPredicateSelector import Ui_Form
pluginPath = os.path.split(os.path.dirname(__file__))[0]
WIDGET, BASE = uic.loadUiType(
os.path.join(pluginPath, 'ui', 'widgetGeometryPredicateSelector.ui'))
class GeometryPredicateSelectionPanel(QWidget, Ui_Form):
class GeometryPredicateSelectionPanel(BASE, WIDGET):
unusablePredicates = {
QGis.Point : {
@ -56,7 +61,7 @@ class GeometryPredicateSelectionPanel(QWidget, Ui_Form):
def __init__(self,
enabledPredicated=ParameterGeometryPredicate.predicates,
rows=4):
QWidget.__init__(self)
super(GeometryPredicateSelectionPanel, self).__init__(None)
self.setupUi(self)
self.enabledPredicated = enabledPredicated

View File

@ -31,8 +31,9 @@ import json
import urllib2
from urllib2 import HTTPError
from PyQt4 import uic
from PyQt4.QtCore import Qt, QCoreApplication
from PyQt4.QtGui import QIcon, QMessageBox, QCursor, QApplication, QDialog, QTreeWidgetItem
from PyQt4.QtGui import QIcon, QMessageBox, QCursor, QApplication, QTreeWidgetItem
from qgis.utils import iface
@ -42,9 +43,9 @@ from processing.modeler.ModelerUtils import ModelerUtils
from processing.gui import Help2Html
from processing.gui.Help2Html import getDescription, ALG_DESC, ALG_VERSION, ALG_CREATOR
from processing.ui.ui_DlgGetScriptsAndModels import Ui_DlgGetScriptsAndModels
pluginPath = os.path.split(os.path.dirname(__file__))[0]
WIDGET, BASE = uic.loadUiType(
os.path.join(pluginPath, 'ui', 'DlgGetScriptsAndModels.ui'))
class GetScriptsAction(ToolboxAction):
@ -97,7 +98,7 @@ def readUrl(url):
QApplication.restoreOverrideCursor()
class GetScriptsAndModelsDialog(QDialog, Ui_DlgGetScriptsAndModels):
class GetScriptsAndModelsDialog(BASE, WIDGET):
HELP_TEXT = QCoreApplication.translate('GetScriptsAndModelsDialog',
'<h3> Processing resources manager </h3>'
@ -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)

View File

@ -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):

View File

@ -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()

View File

@ -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(

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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'):

View File

@ -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

View File

@ -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

View File

@ -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()

View File

@ -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()

View File

@ -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

View File

@ -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'), '',

View File

@ -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()

View File

@ -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 |

View File

@ -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

View File

@ -0,0 +1,3 @@
FILE(GLOB UI_FILES *.ui)
PLUGIN_INSTALL(processing ./ui ${UI_FILES})

View File

@ -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$'

View File

@ -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)

View File

@ -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

View File

@ -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))

View File

@ -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

View File

@ -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))

View File

@ -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

View File

@ -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

View File

@ -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))

View File

@ -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))

View File

@ -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

View File

@ -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))

View File

@ -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", "<html><head/><body><p>Enter expression in the text field. Double click on elements in the tree to add their values to the expression.</p></body></html>", None))
self.lblWarning.setText(_translate("DlgNumberInput", "<html><head/><body><p><span style=\" font-weight:600;\">Warning</span>: if expression result is float value, but integer required, result will be rounded to integer.</p></body></html>", None))

View File

@ -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))

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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))

View File

@ -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))

View File

@ -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))

View File

@ -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))

View File

@ -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))

View File

@ -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

View File

@ -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))