-
Notifications
You must be signed in to change notification settings - Fork 9
/
changeDataSource_dialog_base.py
118 lines (110 loc) · 6.92 KB
/
changeDataSource_dialog_base.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'C:\Users\DEMO\Dropbox\dev\changeDataSource\changeDataSource_dialog_base.ui'
#
# Created: Sun Nov 22 22:12:30 2015
# by: PyQt4 UI code generator 4.10.2
#
# WARNING! All changes made in this file will be lost!
from builtins import object
from qgis.PyQt import QtCore, QtGui, QtWidgets
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
def _fromUtf8(s):
return s
try:
_encoding = QtWidgets.QApplication.UnicodeUTF8
def _translate(context, text, disambig):
return QtWidgets.QApplication.translate(context, text, disambig, _encoding)
except AttributeError:
def _translate(context, text, disambig):
return QtWidgets.QApplication.translate(context, text, disambig)
class Ui_changeDataSourceDialogBase(object):
def setupUi(self, changeDataSourceDialogBase):
changeDataSourceDialogBase.setObjectName(_fromUtf8("changeDataSourceDialogBase"))
changeDataSourceDialogBase.resize(1027, 461)
self.verticalLayout = QtWidgets.QVBoxLayout(changeDataSourceDialogBase)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.layerTable = QtWidgets.QTableWidget(changeDataSourceDialogBase)
self.layerTable.setAlternatingRowColors(True)
self.layerTable.setSelectionMode(QtWidgets.QAbstractItemView.ExtendedSelection)
self.layerTable.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows)
self.layerTable.setGridStyle(QtCore.Qt.DotLine)
self.layerTable.setObjectName(_fromUtf8("layerTable"))
self.layerTable.setColumnCount(0)
self.layerTable.setRowCount(0)
self.layerTable.horizontalHeader().setHighlightSections(False)
self.layerTable.horizontalHeader().setSortIndicatorShown(True)
self.layerTable.verticalHeader().setVisible(True)
self.verticalLayout.addWidget(self.layerTable)
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.label = QtWidgets.QLabel(changeDataSourceDialogBase)
self.label.setObjectName(_fromUtf8("label"))
self.horizontalLayout.addWidget(self.label)
self.findEdit = QtWidgets.QLineEdit(changeDataSourceDialogBase)
self.findEdit.setMaximumSize(QtCore.QSize(100, 16777215))
self.findEdit.setObjectName(_fromUtf8("findEdit"))
self.horizontalLayout.addWidget(self.findEdit)
self.label_2 = QtWidgets.QLabel(changeDataSourceDialogBase)
self.label_2.setObjectName(_fromUtf8("label_2"))
self.horizontalLayout.addWidget(self.label_2)
self.replaceEdit = QtWidgets.QLineEdit(changeDataSourceDialogBase)
self.replaceEdit.setMaximumSize(QtCore.QSize(100, 16777215))
self.replaceEdit.setObjectName(_fromUtf8("replaceEdit"))
self.horizontalLayout.addWidget(self.replaceEdit)
self.label_4 = QtWidgets.QLabel(changeDataSourceDialogBase)
self.label_4.setObjectName(_fromUtf8("label_4"))
self.horizontalLayout.addWidget(self.label_4)
self.mFieldExpressionWidget = QgsFieldExpressionWidget(changeDataSourceDialogBase)
self.mFieldExpressionWidget.setObjectName(_fromUtf8("mFieldExpressionWidget"))
self.horizontalLayout.addWidget(self.mFieldExpressionWidget)
self.label_3 = QtWidgets.QLabel(changeDataSourceDialogBase)
self.label_3.setObjectName(_fromUtf8("label_3"))
self.horizontalLayout.addWidget(self.label_3)
self.datasourceCombo = QtWidgets.QComboBox(changeDataSourceDialogBase)
self.datasourceCombo.setObjectName(_fromUtf8("datasourceCombo"))
self.horizontalLayout.addWidget(self.datasourceCombo)
self.onlySelectedCheck = QtWidgets.QCheckBox(changeDataSourceDialogBase)
self.onlySelectedCheck.setObjectName(_fromUtf8("onlySelectedCheck"))
self.horizontalLayout.addWidget(self.onlySelectedCheck)
self.replaceButton = QtWidgets.QPushButton(changeDataSourceDialogBase)
self.replaceButton.setObjectName(_fromUtf8("replaceButton"))
self.horizontalLayout.addWidget(self.replaceButton)
self.verticalLayout.addLayout(self.horizontalLayout)
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_2.addItem(spacerItem)
self.handleBadLayersCheckbox = QtWidgets.QCheckBox(changeDataSourceDialogBase)
self.handleBadLayersCheckbox.setObjectName(_fromUtf8("handleBadLayersCheckbox"))
self.horizontalLayout_2.addWidget(self.handleBadLayersCheckbox)
self.reconcileButton = QtWidgets.QPushButton(changeDataSourceDialogBase)
self.reconcileButton.setObjectName(_fromUtf8("reconcileButton"))
self.horizontalLayout_2.addWidget(self.reconcileButton)
self.buttonBox = QtWidgets.QDialogButtonBox(changeDataSourceDialogBase)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.buttonBox.sizePolicy().hasHeightForWidth())
self.buttonBox.setSizePolicy(sizePolicy)
self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Apply|QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Reset)
self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
self.horizontalLayout_2.addWidget(self.buttonBox)
self.verticalLayout.addLayout(self.horizontalLayout_2)
self.retranslateUi(changeDataSourceDialogBase)
self.buttonBox.accepted.connect(changeDataSourceDialogBase.accept)
self.buttonBox.rejected.connect(changeDataSourceDialogBase.reject)
def retranslateUi(self, changeDataSourceDialogBase):
changeDataSourceDialogBase.setWindowTitle(_translate("changeDataSourceDialogBase", "Change datasource", None))
self.layerTable.setSortingEnabled(True)
self.label.setText(_translate("changeDataSourceDialogBase", "Find:", None))
self.label_2.setText(_translate("changeDataSourceDialogBase", "Replace:", None))
self.label_4.setText(_translate("changeDataSourceDialogBase", "expression", None))
self.label_3.setText(_translate("changeDataSourceDialogBase", "New datasource type:", None))
self.onlySelectedCheck.setText(_translate("changeDataSourceDialogBase", "Between selected rows", None))
self.replaceButton.setText(_translate("changeDataSourceDialogBase", "Replace", None))
self.handleBadLayersCheckbox.setText(_translate("changeDataSourceDialogBase", "Handle bad layers", None))
self.reconcileButton.setText(_translate("changeDataSourceDialogBase", "Reconcile unhandled", None))
from qgis.gui import QgsFieldExpressionWidget