Example #1
0
    def setupUi(self, getVectorLayer):
        getVectorLayer.setObjectName("getVectorLayer")
        getVectorLayer.resize(351, 358)
        self.buttonBox = QtWidgets.QDialogButtonBox(getVectorLayer)
        self.buttonBox.setGeometry(QtCore.QRect(180, 320, 156, 23))
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Ok
                                          | QtWidgets.QDialogButtonBox.Cancel)
        self.buttonBox.setObjectName("buttonBox")
        self.listWidget = QtWidgets.QListWidget(getVectorLayer)
        self.listWidget.setGeometry(QtCore.QRect(30, 50, 291, 261))
        self.listWidget.setObjectName("listWidget")
        #item = QtWidgets.QListWidgetItem()
        #font = QtGui.QFont()
        #font.setPointSize(12)
        #item.setFont(font)
        #item.setFlags(QtCore.Qt.ItemIsSelectable|QtCore.Qt.ItemIsDragEnabled|QtCore.Qt.ItemIsEnabled)
        #self.listWidget.addItem(item)
        self.label = QtWidgets.QLabel(getVectorLayer)
        self.label.setGeometry(QtCore.QRect(110, 10, 141, 21))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label.setFont(font)
        self.label.setObjectName("label")

        self.retranslateUi(getVectorLayer)
        QtCore.QMetaObject.connectSlotsByName(getVectorLayer)
Example #2
0
 def __init__(self, parent=None):
     super(MappingDialog, self).__init__(parent)
     self.setWindowTitle("Maak een mapping t.b.v. het importeren")
     self.qlayout = PQtW.QGridLayout(self)
     self.setWindowFlag(PQtC.Qt.WindowCloseButtonHint, False)
     self.buttons = PQtW.QDialogButtonBox(
         PQtW.QDialogButtonBox.Ok | PQtW.QDialogButtonBox.Cancel,
         PQtC.Qt.Horizontal, self)
     self.buttons.accepted.connect(self.accept)
     self.buttons.rejected.connect(self.reject)
     self.nextButton = PQtW.QPushButton()
     self.nextButton.setText("Volgende")
     self.prevButton = PQtW.QPushButton()
     self.prevButton.setText("Vorige")
     self.label_laag = PQtW.QLabel(self)
     self.label_laag.setText("Importeer in laag")
     self.label_types = PQtW.QLabel(self)
     self.label_types.setText("Import types in bestand")
     self.label_conversie = PQtW.QLabel(self)
     self.label_conversie.setText("Conversie naar type laag")
     self.label_target = PQtW.QLabel(self)
     self.label_target.setText("Converteer naar type")
     self.qlayout.addWidget(self.label_types, 0, 0)
     self.qlayout.addWidget(self.label_conversie, 0, 1)
     self.qlayout.addWidget(self.label_laag, 0, 2)
     self.qlayout.addWidget(self.label_target, 0, 3)
     self.load_types()
Example #3
0
    def setupUi(self, spinnnerDialog):
        """Pylint ignore"""
        spinnnerDialog.setObjectName("spinnnerDialog")
        spinnnerDialog.resize(400, 300)
        self.verticalLayout = QtWidgets.QVBoxLayout(spinnnerDialog)
        self.verticalLayout.setObjectName("verticalLayout")
        self.label = QtWidgets.QLabel(spinnnerDialog)
        self.label.setObjectName("label")
        self.verticalLayout.addWidget(self.label)
        self.spinBox = QtWidgets.QSpinBox(spinnnerDialog)
        self.spinBox.setObjectName("spinBox")
        self.verticalLayout.addWidget(self.spinBox)
        self.label_2 = QtWidgets.QLabel(spinnnerDialog)
        self.label_2.setObjectName("label_2")
        self.verticalLayout.addWidget(self.label_2)
        self.doubleSpinBox = QtWidgets.QDoubleSpinBox(spinnnerDialog)
        self.doubleSpinBox.setObjectName("doubleSpinBox")
        self.verticalLayout.addWidget(self.doubleSpinBox)
        self.label_3 = QtWidgets.QLabel(spinnnerDialog)
        self.label_3.setObjectName("label_3")
        self.verticalLayout.addWidget(self.label_3)
        self.mQgsSpinBox = gui.QgsSpinBox(spinnnerDialog)
        self.mQgsSpinBox.setObjectName("mQgsSpinBox")
        self.verticalLayout.addWidget(self.mQgsSpinBox)
        self.button_box = QtWidgets.QDialogButtonBox(spinnnerDialog)
        self.button_box.setOrientation(QtCore.Qt.Horizontal)
        self.button_box.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel
                                           | QtWidgets.QDialogButtonBox.Ok)
        self.button_box.setObjectName("button_box")
        self.verticalLayout.addWidget(self.button_box)

        self.retranslateUi(spinnnerDialog)
        self.button_box.accepted.connect(spinnnerDialog.accept)
        self.button_box.rejected.connect(spinnnerDialog.reject)
        QtCore.QMetaObject.connectSlotsByName(spinnnerDialog)
    def setupUi(self, BulkVectorExportDialog):
        BulkVectorExportDialog.setObjectName(
            _fromUtf8("BulkVectorExportDialog"))
        BulkVectorExportDialog.resize(392, 141)
        self.buttonBox = QtWidgets.QDialogButtonBox(BulkVectorExportDialog)
        self.buttonBox.setGeometry(QtCore.QRect(220, 100, 161, 32))
        self.buttonBox.setWhatsThis(_fromUtf8(""))
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel
                                          | QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setCenterButtons(True)
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
        self.dirEdit = QtWidgets.QLineEdit(BulkVectorExportDialog)
        self.dirEdit.setGeometry(QtCore.QRect(120, 40, 231, 20))
        self.dirEdit.setObjectName(_fromUtf8("dirEdit"))
        self.label = QtWidgets.QLabel(BulkVectorExportDialog)
        self.label.setGeometry(QtCore.QRect(10, 40, 71, 16))
        self.label.setObjectName(_fromUtf8("label"))
        self.dirButton = QtWidgets.QPushButton(BulkVectorExportDialog)
        self.dirButton.setGeometry(QtCore.QRect(360, 40, 31, 21))
        self.dirButton.setObjectName(_fromUtf8("dirButton"))

        self.retranslateUi(BulkVectorExportDialog)
        self.buttonBox.accepted.connect(BulkVectorExportDialog.accept)
        self.buttonBox.rejected.connect(BulkVectorExportDialog.reject)
        QtCore.QMetaObject.connectSlotsByName(BulkVectorExportDialog)
Example #5
0
    def setupUi(self, CartogramDialog):
        CartogramDialog.setObjectName("CartogramDialog")
        CartogramDialog.resize(640, 600)
        self.formLayout = QtWidgets.QFormLayout(CartogramDialog)
        self.formLayout.setObjectName("formLayout")
        self.layerComboBoxLabel = QtWidgets.QLabel(CartogramDialog)
        self.layerComboBoxLabel.setObjectName("layerComboBoxLabel")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.layerComboBoxLabel)
        self.layerComboBox = gui.QgsMapLayerComboBox(CartogramDialog)
        self.layerComboBox.setObjectName("layerComboBox")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.layerComboBox)
        self.fieldListViewLabel = QtWidgets.QLabel(CartogramDialog)
        self.fieldListViewLabel.setObjectName("fieldListViewLabel")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.fieldListViewLabel)
        self.fieldListView = QgsFieldListView(CartogramDialog)
        self.fieldListView.setSelectionMode(QtWidgets.QAbstractItemView.SingleSelection)
        self.fieldListView.setObjectName("fieldListView")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.fieldListView)
        self.stopConditionsFrameLabel = QtWidgets.QLabel(CartogramDialog)
        self.stopConditionsFrameLabel.setObjectName("stopConditionsFrameLabel")
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.stopConditionsFrameLabel)
        self.stopConditionsFrame = QtWidgets.QFrame(CartogramDialog)
        self.stopConditionsFrame.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.stopConditionsFrame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.stopConditionsFrame.setObjectName("stopConditionsFrame")
        self.formLayout_2 = QtWidgets.QFormLayout(self.stopConditionsFrame)
        self.formLayout_2.setObjectName("formLayout_2")
        self.iterationsSpinBoxLabel = QtWidgets.QLabel(self.stopConditionsFrame)
        self.iterationsSpinBoxLabel.setObjectName("iterationsSpinBoxLabel")
        self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.iterationsSpinBoxLabel)
        self.iterationsSpinBox = QtWidgets.QSpinBox(self.stopConditionsFrame)
        self.iterationsSpinBox.setMinimum(1)
        self.iterationsSpinBox.setMaximum(9999)
        self.iterationsSpinBox.setProperty("value", 10)
        self.iterationsSpinBox.setObjectName("iterationsSpinBox")
        self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.iterationsSpinBox)
        self.averageErrorDoubleSpinBoxLabel = QtWidgets.QLabel(self.stopConditionsFrame)
        self.averageErrorDoubleSpinBoxLabel.setObjectName("averageErrorDoubleSpinBoxLabel")
        self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.averageErrorDoubleSpinBoxLabel)
        self.averageErrorDoubleSpinBox = QtWidgets.QDoubleSpinBox(self.stopConditionsFrame)
        self.averageErrorDoubleSpinBox.setSingleStep(0.5)
        self.averageErrorDoubleSpinBox.setProperty("value", 10.0)
        self.averageErrorDoubleSpinBox.setObjectName("averageErrorDoubleSpinBox")
        self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.averageErrorDoubleSpinBox)
        self.conditionsExplanationLabel = QtWidgets.QLabel(self.stopConditionsFrame)
        self.conditionsExplanationLabel.setWordWrap(True)
        self.conditionsExplanationLabel.setObjectName("conditionsExplanationLabel")
        self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.SpanningRole, self.conditionsExplanationLabel)
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.stopConditionsFrame)
        self.buttonBox = QtWidgets.QDialogButtonBox(CartogramDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.formLayout.setWidget(3, QtWidgets.QFormLayout.SpanningRole, self.buttonBox)

        self.retranslateUi(CartogramDialog)
        self.buttonBox.accepted.connect(CartogramDialog.accept) # type: ignore
        self.buttonBox.rejected.connect(CartogramDialog.reject) # type: ignore
        self.layerComboBox.layerChanged['QgsMapLayer*'].connect(self.fieldListView.setLayer) # type: ignore
        QtCore.QMetaObject.connectSlotsByName(CartogramDialog)
Example #6
0
    def setupUi(self, changeDataSourceDialog):
        changeDataSourceDialog.setObjectName(
            _fromUtf8("changeDataSourceDialog"))
        changeDataSourceDialog.resize(297, 305)
        self.verticalLayout = QtWidgets.QVBoxLayout(changeDataSourceDialog)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.label_2 = QtWidgets.QLabel(changeDataSourceDialog)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.verticalLayout.addWidget(self.label_2)
        self.selectDatasourceCombo = QtWidgets.QComboBox(
            changeDataSourceDialog)
        self.selectDatasourceCombo.setObjectName(
            _fromUtf8("selectDatasourceCombo"))
        self.verticalLayout.addWidget(self.selectDatasourceCombo)
        self.label = QtWidgets.QLabel(changeDataSourceDialog)
        self.label.setObjectName(_fromUtf8("label"))
        self.verticalLayout.addWidget(self.label)
        self.lineEdit = QtWidgets.QPlainTextEdit(changeDataSourceDialog)
        self.lineEdit.setObjectName(_fromUtf8("lineEdit"))
        self.verticalLayout.addWidget(self.lineEdit)
        self.openBrowser = QtWidgets.QPushButton(changeDataSourceDialog)
        self.openBrowser.setObjectName(_fromUtf8("openBrowser"))
        self.verticalLayout.addWidget(self.openBrowser)
        self.buttonBox = QtWidgets.QDialogButtonBox(changeDataSourceDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel
                                          | QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
        self.verticalLayout.addWidget(self.buttonBox)

        self.retranslateUi(changeDataSourceDialog)
        QtCore.QMetaObject.connectSlotsByName(changeDataSourceDialog)
 def setupUi(self):
     layout = QtWidgets.QVBoxLayout()
     layout.setSpacing(2)
     layout.setMargin(0)
     self.tree = QtWidgets.QTreeWidget()
     self.tree.setAlternatingRowColors(True)
     self.tree.headerItem().setText(0, "Setting")
     self.tree.headerItem().setText(1, "Value")
     self.tree.setColumnWidth(0, 150)
     layout.addWidget(self.tree)
     for section in self.parameters:
         params = self.parameters[section]
         paramsItem = QtWidgets.QTreeWidgetItem()
         paramsItem.setText(0, section)
         for name, value in params:
             item = QtWidgets.QTreeWidgetItem()
             item.setText(0, name)
             item.setText(1, value)
             item.setFlags(item.flags() | QtCore.Qt.ItemIsEditable)
             paramsItem.addChild(item)
         self.tree.addTopLevelItem(paramsItem)
     button = QtWidgets.QPushButton()
     button.setText("Save")
     button.clicked.connect(self.saveSettings)
     buttonBox = QtWidgets.QDialogButtonBox()
     buttonBox.setOrientation(QtCore.Qt.Horizontal)
     buttonBox.addButton(button, QtWidgets.QDialogButtonBox.ActionRole)
     layout.addWidget(buttonBox)
     self.setLayout(layout)
Example #8
0
 def __init__(self, parent=None):
     super(MappingDialog, self).__init__(parent)
     self.setWindowTitle("Maak een mapping t.b.v. het importeren")
     mainLayout = PQtW.QVBoxLayout()
     qlayout = PQtW.QGridLayout()
     widget = PQtW.QWidget()
     scrollArea = PQtW.QScrollArea()
     widget.setLayout(qlayout)
     i = 0
     for importType in self.importTypes:
         self.labels[i] = PQtW.QLabel(self)
         self.labels[i].setText(str(importType))
         self.comboBoxes[i] = PQtW.QComboBox(self)
         self.comboBoxes[i].addItems(self.targetTypes)
         qlayout.addWidget(self.labels[i], i, 0)
         qlayout.addWidget(self.comboBoxes[i], i, 1)
         i += 1
     buttons = PQtW.QDialogButtonBox(
         PQtW.QDialogButtonBox.Ok | PQtW.QDialogButtonBox.Cancel,
         PQtC.Qt.Horizontal, self)
     buttons.accepted.connect(self.accept)
     buttons.rejected.connect(self.reject)
     qlayout.addWidget(buttons)
     scrollArea.setWidget(widget)
     mainLayout.addWidget(scrollArea)
     self.setLayout(mainLayout)
Example #9
0
    def setupUi(self, Clone):
        Clone.setObjectName(_fromUtf8("Clone"))
        Clone.resize(375, 210)
        self.gridlayout = QtWidgets.QGridLayout(Clone)
        self.gridlayout.setObjectName(_fromUtf8("gridlayout"))
        self.vboxlayout = QtWidgets.QVBoxLayout()
        self.vboxlayout.setObjectName(_fromUtf8("vboxlayout"))
        spacerItem = QtWidgets.QSpacerItem(
            20, 20, QtWidgets.QSizePolicy.Minimum,
            QtWidgets.QSizePolicy.MinimumExpanding)
        self.vboxlayout.addItem(spacerItem)
        self.label = QtWidgets.QLabel(Clone)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        self.label.setObjectName(_fromUtf8("label"))
        self.vboxlayout.addWidget(self.label)
        self.lineDsn = QtWidgets.QLineEdit(Clone)
        self.lineDsn.setMouseTracking(False)
        self.lineDsn.setInputMask(_fromUtf8(""))
        self.lineDsn.setMaxLength(10)
        self.lineDsn.setFrame(True)
        self.lineDsn.setObjectName(_fromUtf8("lineDsn"))
        self.vboxlayout.addWidget(self.lineDsn)
        self.label_3 = QtWidgets.QLabel(Clone)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.vboxlayout.addWidget(self.label_3)
        self.comboDsn = QtWidgets.QComboBox(Clone)
        self.comboDsn.setObjectName(_fromUtf8("comboDsn"))
        self.vboxlayout.addWidget(self.comboDsn)
        self.gridlayout.addLayout(self.vboxlayout, 0, 0, 1, 1)
        self.buttonBox = QtWidgets.QDialogButtonBox(Clone)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel
                                          | QtWidgets.QDialogButtonBox.NoButton
                                          | QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setCenterButtons(True)
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
        self.gridlayout.addWidget(self.buttonBox, 2, 0, 1, 1)
        spacerItem1 = QtWidgets.QSpacerItem(
            20, 20, QtWidgets.QSizePolicy.Minimum,
            QtWidgets.QSizePolicy.MinimumExpanding)
        self.gridlayout.addItem(spacerItem1, 1, 0, 1, 1)

        self.retranslateUi(Clone)
        self.buttonBox.accepted.connect(Clone.accept)
        self.buttonBox.rejected.connect(Clone.reject)
        QMetaObject.connectSlotsByName(Clone)
        Clone.setTabOrder(self.lineDsn, self.comboDsn)
        Clone.setTabOrder(self.comboDsn, self.buttonBox)
Example #10
0
 def __init__(self, parent=None):
     super(DxfDialogObject, self).__init__(parent)
     self.setWindowTitle("Type geometrie")
     qlayout = PQtW.QVBoxLayout(self)
     self.label1 = PQtW.QLabel(self)
     self.label1.setText("Welke type geometrie wilt u importeren?")
     qlayout.addWidget(self.label1)
     self.inputGeometry = PQtW.QComboBox(self)
     self.inputGeometry.addItems(['punt', 'lijn', 'vlak'])
     qlayout.addWidget(self.inputGeometry)
     buttons = PQtW.QDialogButtonBox(PQtW.QDialogButtonBox.Ok,
                                     PQtC.Qt.Horizontal, self)
     buttons.accepted.connect(self.accept)
     buttons.rejected.connect(self.reject)
     qlayout.addWidget(buttons)
Example #11
0
 def __init__(self, parent=None):
     super(GpkgDialog, self).__init__(parent)
     self.setWindowTitle("Kies de laag die u wilt importeren")
     qlayout = PQtW.QVBoxLayout(self)
     self.qComboA = PQtW.QComboBox(self)
     self.qComboA.addItems(self.layerNames)
     self.qComboA.setFixedWidth(300)
     self.qComboA.setMaxVisibleItems(30)
     self.label3 = PQtW.QLabel(self)
     qlayout.addWidget(self.qComboA)
     buttons = PQtW.QDialogButtonBox(
         PQtW.QDialogButtonBox.Ok | PQtW.QDialogButtonBox.Cancel,
         PQtC.Qt.Horizontal, self)
     buttons.accepted.connect(self.accept)
     buttons.rejected.connect(self.reject)
     qlayout.addWidget(buttons)
Example #12
0
    def setupUi(self, dataSourceBrowser):
        dataSourceBrowser.setObjectName(_fromUtf8("dataSourceBrowser"))
        dataSourceBrowser.resize(400, 444)
        self.buttonBox = QtWidgets.QDialogButtonBox(dataSourceBrowser)
        self.buttonBox.setGeometry(QtCore.QRect(50, 400, 341, 32))
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel
                                          | QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
        self.dataSourceTree = QtWidgets.QTreeView(dataSourceBrowser)
        self.dataSourceTree.setGeometry(QtCore.QRect(10, 11, 381, 381))
        self.dataSourceTree.setObjectName(_fromUtf8("dataSourceTree"))

        self.retranslateUi(dataSourceBrowser)
        self.buttonBox.accepted.connect(dataSourceBrowser.accept)
        self.buttonBox.rejected.connect(dataSourceBrowser.reject)
Example #13
0
 def __init__(self, parent=None):
     super(LabelDialog, self).__init__(parent)
     self.setWindowTitle(self.importType)
     qlayout = PQtW.QVBoxLayout(self)
     self.label1 = PQtW.QLabel(self)
     self.label1.setText("Welke attribute bevat de label waarde?")
     qlayout.addWidget(self.label1)
     self.labelAtrribute = PQtW.QComboBox(self)
     self.labelAtrribute.addItems(self.attributes)
     qlayout.addWidget(self.labelAtrribute)
     buttons = PQtW.QDialogButtonBox(
         PQtW.QDialogButtonBox.Ok | PQtW.QDialogButtonBox.Cancel,
         PQtC.Qt.Horizontal, self)
     buttons.accepted.connect(self.accept)
     buttons.rejected.connect(self.reject)
     qlayout.addWidget(buttons)
    def setupUi(self, Rename):
        Rename.setObjectName(_fromUtf8("Rename"))
        Rename.resize(397, 126)
        self.gridlayout = QtWidgets.QGridLayout(Rename)
        self.gridlayout.setObjectName(_fromUtf8("gridlayout"))
        self.vboxlayout = QtWidgets.QVBoxLayout()
        self.vboxlayout.setObjectName(_fromUtf8("vboxlayout"))
        self.label = QtWidgets.QLabel(Rename)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        self.label.setObjectName(_fromUtf8("label"))
        self.vboxlayout.addWidget(self.label)
        self.lineEdit = QtWidgets.QLineEdit(Rename)
        self.lineEdit.setMouseTracking(False)
        self.lineEdit.setInputMask(_fromUtf8(""))
        self.lineEdit.setMaxLength(10)
        self.lineEdit.setFrame(True)
        self.lineEdit.setObjectName(_fromUtf8("lineEdit"))
        self.vboxlayout.addWidget(self.lineEdit)
        self.gridlayout.addLayout(self.vboxlayout, 0, 0, 1, 1)
        self.buttonBox = QtWidgets.QDialogButtonBox(Rename)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel
                                          | QtWidgets.QDialogButtonBox.NoButton
                                          | QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setCenterButtons(True)
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
        self.gridlayout.addWidget(self.buttonBox, 2, 0, 1, 1)
        spacerItem = QtWidgets.QSpacerItem(20, 40,
                                           QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Expanding)
        self.gridlayout.addItem(spacerItem, 1, 0, 1, 1)

        self.retranslateUi(Rename)
        self.buttonBox.accepted.connect(Rename.accept)
        self.buttonBox.rejected.connect(Rename.reject)
        QMetaObject.connectSlotsByName(Rename)
Example #15
0
 def __init__(self, parent=None):
     super(BouwlaagDialog, self).__init__(parent)
     bouwlagen = PC.PAND["bouwlagen"]
     minBouwlaag = bouwlagen["min"]
     maxBouwlaag = bouwlagen["max"]
     self.setWindowTitle("Bouwlagen toevoegen")
     qlayout = PQtW.QVBoxLayout(self)
     self.qlineA = PQtW.QLabel(self)
     self.qlineB = PQtW.QLabel(self)
     self.qlineC = PQtW.QLabel(self)
     self.qComboA = PQtW.QComboBox(self)
     self.qComboB = PQtW.QComboBox(self)
     self.qlineA.setText(
         "U kunt meerdere bouwlagenlagen in 1x creeren, door van en t/m in te vullen!"
     )
     self.qlineB.setText("Van:")
     self.qlineC.setText("Tot en met:")
     for i in range(maxBouwlaag - minBouwlaag + 1):
         if maxBouwlaag - i != 0:
             self.qComboA.addItem(str(maxBouwlaag - i))
             self.qComboB.addItem(str(maxBouwlaag - i))
             if maxBouwlaag - i == 1:
                 init_index = i
     self.qComboA.setCurrentIndex(init_index)
     self.qComboB.setCurrentIndex(init_index)
     self.qComboA.setFixedWidth(100)
     self.qComboA.setMaxVisibleItems(30)
     self.qComboB.setFixedWidth(100)
     self.qComboB.setMaxVisibleItems(30)
     self.qComboA.currentIndexChanged.connect(self.set_comboboxB)
     qlayout.addWidget(self.qlineA)
     qlayout.addWidget(self.qlineB)
     qlayout.addWidget(self.qComboA)
     qlayout.addWidget(self.qlineC)
     qlayout.addWidget(self.qComboB)
     buttons = PQtW.QDialogButtonBox(
         PQtW.QDialogButtonBox.Ok | PQtW.QDialogButtonBox.Cancel,
         PQtC.Qt.Horizontal, self)
     buttons.accepted.connect(self.accept)
     buttons.rejected.connect(self.reject)
     qlayout.addWidget(buttons)
Example #16
0
 def __init__(self, parent=None):
     super(DxfDialog, self).__init__(parent)
     self.setWindowTitle("Type geometrie")
     max_bouwlaag = 30
     min_bouwlaag = -10
     qlayout = PQtW.QVBoxLayout(self)
     self.label1 = PQtW.QLabel(self)
     self.label1.setText("Welke type geometrie wilt u importeren?")
     qlayout.addWidget(self.label1)
     self.inputGeometry = PQtW.QComboBox(self)
     self.inputGeometry.addItems(['lijn', 'vlak'])
     qlayout.addWidget(self.inputGeometry)
     self.label2 = PQtW.QLabel(self)
     self.label2.setText("Wilt u de polygoon importeren als Bouwlaag?")
     qlayout.addWidget(self.label2)
     self.checkBouwlaag = PQtW.QCheckBox(self)
     qlayout.addWidget(self.checkBouwlaag)
     self.checkBouwlaag.stateChanged.connect(self.addBouwlaagQuestion)
     self.qComboA = PQtW.QComboBox(self)
     for i in range(max_bouwlaag - min_bouwlaag + 1):
         if max_bouwlaag - i != 0:
             self.qComboA.addItem(str(max_bouwlaag - i))
             if max_bouwlaag - i == 1:
                 init_index = i
     self.qComboA.setCurrentIndex(init_index)
     self.qComboA.setFixedWidth(100)
     self.qComboA.setMaxVisibleItems(30)
     self.label3 = PQtW.QLabel(self)
     self.label3.setText(
         "Geef de bouwlaag op waarvoor u de polygoon wilt inlezen.")
     self.qComboA.setVisible(False)
     self.label3.setVisible(False)
     qlayout.addWidget(self.label3)
     qlayout.addWidget(self.qComboA)
     buttons = PQtW.QDialogButtonBox(
         PQtW.QDialogButtonBox.Ok | PQtW.QDialogButtonBox.Cancel,
         PQtC.Qt.Horizontal, self)
     buttons.accepted.connect(self.accept)
     buttons.rejected.connect(self.reject)
     qlayout.addWidget(buttons)
Example #17
0
    def setupUi(self, lizmap_popup):
        lizmap_popup.setObjectName(_fromUtf8("lizmap_popup"))
        lizmap_popup.setWindowModality(QtCore.Qt.WindowModal)
        lizmap_popup.resize(743, 489)
        self.gridLayout_3 = QtWidgets.QGridLayout(lizmap_popup)
        self.gridLayout_3.setMargin(6)
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.splitter = QtWidgets.QSplitter(lizmap_popup)
        self.splitter.setOrientation(QtCore.Qt.Vertical)
        self.splitter.setObjectName(_fromUtf8("splitter"))
        self.groupBox = QtWidgets.QGroupBox(self.splitter)
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox)
        self.gridLayout_2.setMargin(0)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.txtPopup = gui.QgsCodeEditorHTML(self.groupBox)
        self.txtPopup.setObjectName(_fromUtf8("txtPopup"))
        self.gridLayout_2.addWidget(self.txtPopup, 0, 0, 1, 1)
        self.groupBox_2 = QtWidgets.QGroupBox(self.splitter)
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.gridLayout = QtWidgets.QGridLayout(self.groupBox_2)
        self.gridLayout.setMargin(0)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.htmlPopup = QtWidgets.QTextEdit(self.groupBox_2)
        self.htmlPopup.setEnabled(False)
        self.htmlPopup.setObjectName(_fromUtf8("htmlPopup"))
        self.gridLayout.addWidget(self.htmlPopup, 0, 0, 1, 1)
        self.gridLayout_3.addWidget(self.splitter, 0, 0, 1, 1)
        self.bbConfigurePopup = QtWidgets.QDialogButtonBox(lizmap_popup)
        self.bbConfigurePopup.setOrientation(QtCore.Qt.Horizontal)
        self.bbConfigurePopup.setStandardButtons(
            QtWidgets.QDialogButtonBox.Cancel | QtWidgets.QDialogButtonBox.Ok)
        self.bbConfigurePopup.setObjectName(_fromUtf8("bbConfigurePopup"))
        self.gridLayout_3.addWidget(self.bbConfigurePopup, 1, 0, 1, 1)

        self.retranslateUi(lizmap_popup)
        QtCore.QMetaObject.connectSlotsByName(lizmap_popup)
        lizmap_popup.setTabOrder(self.txtPopup, self.htmlPopup)
        lizmap_popup.setTabOrder(self.htmlPopup, self.bbConfigurePopup)
Example #18
0
    def __init__(self, parent=None):
        super(AskFeatureDialog, self).__init__(parent)
        self.setWindowTitle("Selecteer feature")
        qlayout = PQtW.QVBoxLayout(self)
        self.qlineA = PQtW.QLabel(self)
        self.qlineB = PQtW.QLabel(self)
        self.qComboA = PQtW.QComboBox(self)
        self.qlineA.setText("U heeft meerdere features geselecteerd.")
        self.qlineB.setText("Selecteer in de lijst de feature die u wilt bewerken.")

        self.qComboA.setFixedWidth(100)
        self.qComboA.setMaxVisibleItems(30)
        for item in self.askList:
            self.qComboA.addItem(str(item[1]), str(item[0]))
        qlayout.addWidget(self.qlineA)
        qlayout.addWidget(self.qlineB)
        qlayout.addWidget(self.qComboA)
        buttons = PQtW.QDialogButtonBox(
            PQtW.QDialogButtonBox.Ok | PQtW.QDialogButtonBox.Cancel,
            PQtC.Qt.Horizontal, self)
        buttons.accepted.connect(self.accept)
        buttons.rejected.connect(self.reject)
        qlayout.addWidget(buttons)
Example #19
0
    def setupUi(self, LoginDialog):
        LoginDialog.setObjectName("LoginDialog")
        LoginDialog.resize(268, 95)
        self.gridLayout = QtWidgets.QGridLayout(LoginDialog)
        self.gridLayout.setObjectName("gridLayout")
        self.label_5 = QtWidgets.QLabel(LoginDialog)
        self.label_5.setObjectName("label_5")
        self.gridLayout.addWidget(self.label_5, 0, 0, 1, 1)
        self.editUser = QtWidgets.QLineEdit(LoginDialog)
        self.editUser.setEnabled(True)
        self.editUser.setInputMask("")
        self.editUser.setText("")
        self.editUser.setObjectName("editUser")
        self.gridLayout.addWidget(self.editUser, 0, 1, 1, 1)
        self.label_6 = QtWidgets.QLabel(LoginDialog)
        self.label_6.setObjectName("label_6")
        self.gridLayout.addWidget(self.label_6, 1, 0, 1, 1)
        self.editPassword = QtWidgets.QLineEdit(LoginDialog)
        self.editPassword.setEnabled(True)
        self.editPassword.setInputMask("")
        self.editPassword.setText("")
        self.editPassword.setEchoMode(QtWidgets.QLineEdit.Password)
        self.editPassword.setObjectName("editPassword")
        self.gridLayout.addWidget(self.editPassword, 1, 1, 1, 1)
        self.buttonBox = QtWidgets.QDialogButtonBox(LoginDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel
                                          | QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.gridLayout.addWidget(self.buttonBox, 2, 0, 1, 2)
        self.label_5.setBuddy(self.editUser)
        self.label_6.setBuddy(self.editPassword)

        self.retranslateUi(LoginDialog)
        self.buttonBox.accepted.connect(LoginDialog.accept)
        self.buttonBox.rejected.connect(LoginDialog.reject)
        QtCore.QMetaObject.connectSlotsByName(LoginDialog)
Example #20
0
    def setupUi(self, Options):
        Options.setObjectName("Options")
        Options.resize(542, 474)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(Options.sizePolicy().hasHeightForWidth())
        Options.setSizePolicy(sizePolicy)
        self.gridLayout = QtWidgets.QGridLayout(Options)
        self.gridLayout.setObjectName("gridLayout")
        self.tabWidget = QtWidgets.QTabWidget(Options)
        self.tabWidget.setEnabled(True)
        self.tabWidget.setTabShape(QtWidgets.QTabWidget.Rounded)
        self.tabWidget.setElideMode(QtCore.Qt.ElideLeft)
        self.tabWidget.setTabsClosable(False)
        self.tabWidget.setObjectName("tabWidget")
        self.tabGeneral = QtWidgets.QWidget()
        self.tabGeneral.setEnabled(True)
        self.tabGeneral.setObjectName("tabGeneral")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.tabGeneral)
        self.gridLayout_2.setObjectName("gridLayout_2")
        spacerItem = QtWidgets.QSpacerItem(20, 40,
                                           QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Expanding)
        self.gridLayout_2.addItem(spacerItem, 1, 0, 1, 1)
        self.groupBox = QtWidgets.QGroupBox(self.tabGeneral)
        self.groupBox.setObjectName("groupBox")
        self.gridLayout_12 = QtWidgets.QGridLayout(self.groupBox)
        self.gridLayout_12.setObjectName("gridLayout_12")
        self.gridLayout_3 = QtWidgets.QGridLayout()
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.lineEditProjectsDatabase = QtWidgets.QLineEdit(self.groupBox)
        self.lineEditProjectsDatabase.setObjectName("lineEditProjectsDatabase")
        self.gridLayout_3.addWidget(self.lineEditProjectsDatabase, 0, 1, 1, 1)
        self.label = QtWidgets.QLabel(self.groupBox)
        self.label.setObjectName("label")
        self.gridLayout_3.addWidget(self.label, 0, 0, 1, 1)
        self.btnBrowseProjectsDatabase = QtWidgets.QPushButton(self.groupBox)
        self.btnBrowseProjectsDatabase.setObjectName(
                "btnBrowseProjectsDatabase")
        self.gridLayout_3.addWidget(self.btnBrowseProjectsDatabase, 0, 2, 1, 1)
        self.btnBrowseProjectsRootDir = QtWidgets.QPushButton(self.groupBox)
        self.btnBrowseProjectsRootDir.setObjectName("btnBrowseProjectsRootDir")
        self.gridLayout_3.addWidget(self.btnBrowseProjectsRootDir, 1, 2, 1, 1)
        self.lineEditProjectsRootDir = QtWidgets.QLineEdit(self.groupBox)
        self.lineEditProjectsRootDir.setObjectName("lineEditProjectsRootDir")
        self.gridLayout_3.addWidget(self.lineEditProjectsRootDir, 1, 1, 1, 1)
        self.label_11 = QtWidgets.QLabel(self.groupBox)
        self.label_11.setObjectName("label_11")
        self.gridLayout_3.addWidget(self.label_11, 1, 0, 1, 1)
        self.gridLayout_12.addLayout(self.gridLayout_3, 0, 0, 1, 1)
        self.btnTestProjectDB = QtWidgets.QPushButton(self.groupBox)
        self.btnTestProjectDB.setObjectName("btnTestProjectDB")
        self.gridLayout_12.addWidget(self.btnTestProjectDB, 1, 0, 1, 1)
        self.gridLayout_2.addWidget(self.groupBox, 0, 0, 1, 1)
        self.tabWidget.addTab(self.tabGeneral, "")
        self.tabImport = QtWidgets.QWidget()
        self.tabImport.setObjectName("tabImport")
        self.gridLayout_7 = QtWidgets.QGridLayout(self.tabImport)
        self.gridLayout_7.setObjectName("gridLayout_7")
        self.groupBox_3 = QtWidgets.QGroupBox(self.tabImport)
        self.groupBox_3.setObjectName("groupBox_3")
        self.gridLayout_4 = QtWidgets.QGridLayout(self.groupBox_3)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.label_8 = QtWidgets.QLabel(self.groupBox_3)
        self.label_8.setObjectName("label_8")
        self.horizontalLayout.addWidget(self.label_8)
        self.lineEditImportJar = QtWidgets.QLineEdit(self.groupBox_3)
        self.lineEditImportJar.setObjectName("lineEditImportJar")
        self.horizontalLayout.addWidget(self.lineEditImportJar)
        self.btnBrowseImportJar = QtWidgets.QPushButton(self.groupBox_3)
        self.btnBrowseImportJar.setObjectName("btnBrowseImportJar")
        self.horizontalLayout.addWidget(self.btnBrowseImportJar)
        self.gridLayout_4.addLayout(self.horizontalLayout, 2, 0, 1, 1)
        self.gridLayout_7.addWidget(self.groupBox_3, 1, 0, 1, 1)
        self.groupBox_2 = QtWidgets.QGroupBox(self.tabImport)
        self.groupBox_2.setObjectName("groupBox_2")
        self.gridLayout_8 = QtWidgets.QGridLayout(self.groupBox_2)
        self.gridLayout_8.setObjectName("gridLayout_8")
        self.plainTextEditImportVMArguments = QtWidgets.QPlainTextEdit(
                self.groupBox_2)
        self.plainTextEditImportVMArguments.setPlainText("")
        self.plainTextEditImportVMArguments.setObjectName(
                "plainTextEditImportVMArguments")
        self.gridLayout_8.addWidget(self.plainTextEditImportVMArguments, 0, 0,
                                    1, 1)
        self.gridLayout_7.addWidget(self.groupBox_2, 2, 0, 1, 1)
        self.tabWidget.addTab(self.tabImport, "")
        self.tabDatabase = QtWidgets.QWidget()
        self.tabDatabase.setObjectName("tabDatabase")
        self.gridLayout_6 = QtWidgets.QGridLayout(self.tabDatabase)
        self.gridLayout_6.setObjectName("gridLayout_6")
        self.groupBox_5 = QtWidgets.QGroupBox(self.tabDatabase)
        self.groupBox_5.setObjectName("groupBox_5")
        self.gridLayout_11 = QtWidgets.QGridLayout(self.groupBox_5)
        self.gridLayout_11.setObjectName("gridLayout_11")
        self.gridLayout_10 = QtWidgets.QGridLayout()
        self.gridLayout_10.setObjectName("gridLayout_10")
        self.lblDbAdminPwd = QtWidgets.QLabel(self.groupBox_5)
        self.lblDbAdminPwd.setObjectName("lblDbAdminPwd")
        self.gridLayout_10.addWidget(self.lblDbAdminPwd, 6, 0, 1, 1)
        self.lineEditDbUserPwd = QtWidgets.QLineEdit(self.groupBox_5)
        self.lineEditDbUserPwd.setEchoMode(
                QtWidgets.QLineEdit.PasswordEchoOnEdit)
        self.lineEditDbUserPwd.setObjectName("lineEditDbUserPwd")
        self.gridLayout_10.addWidget(self.lineEditDbUserPwd, 4, 1, 1, 1)
        self.lineEditDbPort = QtWidgets.QLineEdit(self.groupBox_5)
        self.lineEditDbPort.setObjectName("lineEditDbPort")
        self.gridLayout_10.addWidget(self.lineEditDbPort, 2, 1, 1, 1)
        self.lblDbAdmin = QtWidgets.QLabel(self.groupBox_5)
        self.lblDbAdmin.setObjectName("lblDbAdmin")
        self.gridLayout_10.addWidget(self.lblDbAdmin, 5, 0, 1, 1)
        self.lineEditDbAdminPwd = QtWidgets.QLineEdit(self.groupBox_5)
        self.lineEditDbAdminPwd.setEchoMode(
                QtWidgets.QLineEdit.PasswordEchoOnEdit)
        self.lineEditDbAdminPwd.setObjectName("lineEditDbAdminPwd")
        self.gridLayout_10.addWidget(self.lineEditDbAdminPwd, 6, 1, 1, 1)
        self.lblDbPort = QtWidgets.QLabel(self.groupBox_5)
        self.lblDbPort.setObjectName("lblDbPort")
        self.gridLayout_10.addWidget(self.lblDbPort, 2, 0, 1, 1)
        self.lineEditDbHost = QtWidgets.QLineEdit(self.groupBox_5)
        self.lineEditDbHost.setObjectName("lineEditDbHost")
        self.gridLayout_10.addWidget(self.lineEditDbHost, 0, 1, 1, 1)
        self.lineEditDbDatabase = QtWidgets.QLineEdit(self.groupBox_5)
        self.lineEditDbDatabase.setObjectName("lineEditDbDatabase")
        self.gridLayout_10.addWidget(self.lineEditDbDatabase, 1, 1, 1, 1)
        self.lineEditDbAdmin = QtWidgets.QLineEdit(self.groupBox_5)
        self.lineEditDbAdmin.setObjectName("lineEditDbAdmin")
        self.gridLayout_10.addWidget(self.lineEditDbAdmin, 5, 1, 1, 1)
        self.lblDbUserPwd = QtWidgets.QLabel(self.groupBox_5)
        self.lblDbUserPwd.setObjectName("lblDbUserPwd")
        self.gridLayout_10.addWidget(self.lblDbUserPwd, 4, 0, 1, 1)
        self.lblDbDatabase = QtWidgets.QLabel(self.groupBox_5)
        self.lblDbDatabase.setObjectName("lblDbDatabase")
        self.gridLayout_10.addWidget(self.lblDbDatabase, 1, 0, 1, 1)
        self.lblDbHost = QtWidgets.QLabel(self.groupBox_5)
        self.lblDbHost.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.lblDbHost.setObjectName("lblDbHost")
        self.gridLayout_10.addWidget(self.lblDbHost, 0, 0, 1, 1)
        self.lblDbUser = QtWidgets.QLabel(self.groupBox_5)
        self.lblDbUser.setObjectName("lblDbUser")
        self.gridLayout_10.addWidget(self.lblDbUser, 3, 0, 1, 1)
        self.lineEditDbUser = QtWidgets.QLineEdit(self.groupBox_5)
        self.lineEditDbUser.setObjectName("lineEditDbUser")
        self.gridLayout_10.addWidget(self.lineEditDbUser, 3, 1, 1, 1)
        self.gridLayout_11.addLayout(self.gridLayout_10, 0, 0, 1, 1)
        self.btnTestConnection = QtWidgets.QPushButton(self.groupBox_5)
        self.btnTestConnection.setObjectName("btnTestConnection")
        self.gridLayout_11.addWidget(self.btnTestConnection, 1, 0, 1, 1)
        self.gridLayout_6.addWidget(self.groupBox_5, 0, 0, 1, 1)
        self.tabWidget.addTab(self.tabDatabase, "")
        self.tabModelrepos = QtWidgets.QWidget()
        self.tabModelrepos.setObjectName("tabModelrepos")
        self.gridLayout_14 = QtWidgets.QGridLayout(self.tabModelrepos)
        self.gridLayout_14.setObjectName("gridLayout_14")
        self.groupBox_4 = QtWidgets.QGroupBox(self.tabModelrepos)
        self.groupBox_4.setObjectName("groupBox_4")
        self.gridLayout_13 = QtWidgets.QGridLayout(self.groupBox_4)
        self.gridLayout_13.setObjectName("gridLayout_13")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.listWidgetModelRepos = QtWidgets.QListWidget(self.groupBox_4)
        self.listWidgetModelRepos.setSelectionMode(
                QtWidgets.QAbstractItemView.SingleSelection)
        self.listWidgetModelRepos.setSelectionBehavior(
                QtWidgets.QAbstractItemView.SelectRows)
        self.listWidgetModelRepos.setObjectName("listWidgetModelRepos")
        self.horizontalLayout_2.addWidget(self.listWidgetModelRepos)
        self.verticalLayout_2 = QtWidgets.QVBoxLayout()
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.btnAddModelRepo = QtWidgets.QPushButton(self.groupBox_4)
        self.btnAddModelRepo.setEnabled(True)
        self.btnAddModelRepo.setObjectName("btnAddModelRepo")
        self.verticalLayout_2.addWidget(self.btnAddModelRepo)
        self.btnDeleteModelRepo = QtWidgets.QPushButton(self.groupBox_4)
        self.btnDeleteModelRepo.setEnabled(False)
        self.btnDeleteModelRepo.setObjectName("btnDeleteModelRepo")
        self.verticalLayout_2.addWidget(self.btnDeleteModelRepo)
        self.btnEditModelRepo = QtWidgets.QPushButton(self.groupBox_4)
        self.btnEditModelRepo.setEnabled(False)
        self.btnEditModelRepo.setObjectName("btnEditModelRepo")
        self.verticalLayout_2.addWidget(self.btnEditModelRepo)
        spacerItem1 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_2.addItem(spacerItem1)
        self.horizontalLayout_2.addLayout(self.verticalLayout_2)
        self.gridLayout_13.addLayout(self.horizontalLayout_2, 0, 0, 1, 1)
        self.gridLayout_14.addWidget(self.groupBox_4, 0, 0, 1, 1)
        self.tabWidget.addTab(self.tabModelrepos, "")
        self.gridLayout.addWidget(self.tabWidget, 0, 0, 1, 1)
        spacerItem2 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem2, 3, 0, 1, 1)
        self.buttonBox = QtWidgets.QDialogButtonBox(Options)
        self.buttonBox.setEnabled(True)
        self.buttonBox.setStandardButtons(
                QtWidgets.QDialogButtonBox.Cancel |
                QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.gridLayout.addWidget(self.buttonBox, 4, 0, 1, 1)

        self.retranslateUi(Options)
        self.tabWidget.setCurrentIndex(3)
        self.buttonBox.rejected.connect(Options.reject)
        self.buttonBox.accepted.connect(Options.accept)
        QtCore.QMetaObject.connectSlotsByName(Options)
Example #21
0
    def setupUi(self, enhanceWindow):
        enhanceWindow.setObjectName("enhanceWindow")
        enhanceWindow.resize(1070, 750)
        self.centralwidget = QtWidgets.QWidget(enhanceWindow)
        self.centralwidget.setObjectName("centralwidget")
        #self.graphicsView = QtWidgets.QGraphicsView(self.centralwidget)
        self.graphicsView = graphicsView(self.centralwidget)
        self.graphicsView.setGeometry(QtCore.QRect(150, 40, 881, 561))
        self.graphicsView.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.graphicsView.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.graphicsView.setObjectName("graphicsView")
        self.label = QtWidgets.QLabel(self.centralwidget)
        self.label.setGeometry(QtCore.QRect(50, 30, 61, 16))
        self.label.setObjectName("label")
        self.label_2 = QtWidgets.QLabel(self.centralwidget)
        self.label_2.setGeometry(QtCore.QRect(50, 80, 71, 16))
        self.label_2.setObjectName("label_2")
        self.label_3 = QtWidgets.QLabel(self.centralwidget)
        self.label_3.setGeometry(QtCore.QRect(50, 130, 61, 16))
        self.label_3.setObjectName("label_3")
        self.spinBoxRed = QtWidgets.QSpinBox(self.centralwidget)
        self.spinBoxRed.setGeometry(QtCore.QRect(50, 270, 61, 22))
        self.spinBoxRed.setMinimum(-100)
        self.spinBoxRed.setMaximum(100)
        self.spinBoxRed.setSingleStep(5)
        self.spinBoxRed.setObjectName("spinBoxRed")
        self.spinBoxGreen = QtWidgets.QSpinBox(self.centralwidget)
        self.spinBoxGreen.setGeometry(QtCore.QRect(50, 330, 61, 22))
        self.spinBoxGreen.setMinimum(-100)
        self.spinBoxGreen.setMaximum(100)
        self.spinBoxGreen.setSingleStep(5)
        self.spinBoxGreen.setObjectName("spinBoxGreen")
        self.spinBoxBlue = QtWidgets.QSpinBox(self.centralwidget)
        self.spinBoxBlue.setGeometry(QtCore.QRect(50, 390, 61, 22))
        self.spinBoxBlue.setMinimum(-100)
        self.spinBoxBlue.setMaximum(100)
        self.spinBoxBlue.setSingleStep(5)
        self.spinBoxBlue.setObjectName("spinBoxBlue")
        self.label_4 = QtWidgets.QLabel(self.centralwidget)
        self.label_4.setGeometry(QtCore.QRect(50, 180, 47, 13))
        self.label_4.setObjectName("label_4")
        self.label_5 = QtWidgets.QLabel(self.centralwidget)
        self.label_5.setGeometry(QtCore.QRect(50, 250, 47, 13))
        self.label_5.setObjectName("label_5")
        self.label_6 = QtWidgets.QLabel(self.centralwidget)
        self.label_6.setGeometry(QtCore.QRect(50, 310, 47, 13))
        self.label_6.setObjectName("label_6")
        self.label_7 = QtWidgets.QLabel(self.centralwidget)
        self.label_7.setGeometry(QtCore.QRect(50, 370, 47, 13))
        self.label_7.setObjectName("label_7")
        self.buttonBoxReset = QtWidgets.QDialogButtonBox(self.centralwidget)
        self.buttonBoxReset.setGeometry(QtCore.QRect(40, 550, 81, 23))
        self.buttonBoxReset.setStandardButtons(QtWidgets.QDialogButtonBox.Reset)
        self.buttonBoxReset.setObjectName("buttonBoxReset")
        self.applyButton = QtWidgets.QPushButton(self.centralwidget)
        self.applyButton.setGeometry(QtCore.QRect(860, 630, 71, 23))
        self.applyButton.setObjectName("applyButton")
        self.spinBoxContrast = QtWidgets.QSpinBox(self.centralwidget)
        self.spinBoxContrast.setGeometry(QtCore.QRect(50, 50, 62, 22))
        self.spinBoxContrast.setMinimum(-100)
        self.spinBoxContrast.setMaximum(100)
        self.spinBoxContrast.setSingleStep(5)
        self.spinBoxContrast.setObjectName("spinBoxContrast")
        self.spinBoxLuminosite = QtWidgets.QSpinBox(self.centralwidget)
        self.spinBoxLuminosite.setGeometry(QtCore.QRect(50, 100, 62, 22))
        self.spinBoxLuminosite.setMinimum(-100)
        self.spinBoxLuminosite.setMaximum(100)
        self.spinBoxLuminosite.setSingleStep(5)
        self.spinBoxLuminosite.setObjectName("spinBoxLuminosite")
        self.spinBoxSaturation = QtWidgets.QSpinBox(self.centralwidget)
        self.spinBoxSaturation.setGeometry(QtCore.QRect(50, 150, 62, 22))
        self.spinBoxSaturation.setMinimum(-100)
        self.spinBoxSaturation.setMaximum(100)
        self.spinBoxSaturation.setSingleStep(5)
        self.spinBoxSaturation.setObjectName("spinBoxSaturation")
        self.spinBoxNettete = QtWidgets.QSpinBox(self.centralwidget)
        self.spinBoxNettete.setGeometry(QtCore.QRect(50, 200, 62, 22))
        self.spinBoxNettete.setMinimum(-100)
        self.spinBoxNettete.setMaximum(100)
        self.spinBoxNettete.setSingleStep(5)
        self.spinBoxNettete.setObjectName("spinBoxNettete")
        self.zoomInButton = QtWidgets.QPushButton(self.centralwidget)
        self.zoomInButton.setEnabled(False)
        self.zoomInButton.setGeometry(QtCore.QRect(160, 620, 30, 30))
        self.zoomInButton.setStyleSheet("background-color:rgba(200, 200, 200);")
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/Anaglyph/Icons/zoomIn.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.zoomInButton.setIcon(icon)
        self.zoomInButton.setIconSize(QtCore.QSize(30, 30))
        self.zoomInButton.setObjectName("zoomInButton")
        self.zoomOutButton = QtWidgets.QPushButton(self.centralwidget)
        self.zoomOutButton.setEnabled(False)
        self.zoomOutButton.setGeometry(QtCore.QRect(200, 620, 30, 30))
        self.zoomOutButton.setStyleSheet("background-color:rgba(200, 200, 200);")
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(":/Anaglyph/Icons/zoomOut.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.zoomOutButton.setIcon(icon1)
        self.zoomOutButton.setIconSize(QtCore.QSize(30, 30))
        self.zoomOutButton.setObjectName("zoomOutButton")
        self.zoomPanButton = QtWidgets.QPushButton(self.centralwidget)
        self.zoomPanButton.setEnabled(False)
        self.zoomPanButton.setGeometry(QtCore.QRect(240, 620, 30, 30))
        self.zoomPanButton.setStyleSheet("background-color:rgba(200, 200, 200);")
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(":/Anaglyph/Icons/panOption.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.zoomPanButton.setIcon(icon2)
        self.zoomPanButton.setIconSize(QtCore.QSize(30, 30))
        self.zoomPanButton.setCheckable(True)
        self.zoomPanButton.setObjectName("zoomPanButton")
        self.groupBoxMinMax = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBoxMinMax.setEnabled(True)
        self.groupBoxMinMax.setGeometry(QtCore.QRect(20, 435, 120, 101))
        self.groupBoxMinMax.setCheckable(True)
        self.groupBoxMinMax.setChecked(False)
        self.groupBoxMinMax.setObjectName("groupBoxMinMax")
        self.radioButtonComplete = QtWidgets.QRadioButton(self.groupBoxMinMax)
        self.radioButtonComplete.setEnabled(False)
        self.radioButtonComplete.setGeometry(QtCore.QRect(20, 25, 91, 17))
        self.radioButtonComplete.setChecked(True)
        self.radioButtonComplete.setObjectName("radioButtonComplete")
        self.radioButtonCurrent = QtWidgets.QRadioButton(self.groupBoxMinMax)
        self.radioButtonCurrent.setEnabled(False)
        self.radioButtonCurrent.setGeometry(QtCore.QRect(20, 50, 91, 17))
        self.radioButtonCurrent.setObjectName("radioButtonCurrent")
        self.currentStatusButton = QtWidgets.QPushButton(self.groupBoxMinMax)
        self.currentStatusButton.setEnabled(False)
        self.currentStatusButton.setGeometry(QtCore.QRect(20, 70, 75, 23))
        self.currentStatusButton.setObjectName("currentStatusButton")
        self.cancelButton = QtWidgets.QPushButton(self.centralwidget)
        self.cancelButton.setGeometry(QtCore.QRect(940, 630, 75, 23))
        self.cancelButton.setObjectName("cancelButton")
        self.groupBoxPicture = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBoxPicture.setGeometry(QtCore.QRect(30, 590, 81, 61))
        self.groupBoxPicture.setTitle("")
        self.groupBoxPicture.setObjectName("groupBoxPicture")
        self.radioButtonPremiere = QtWidgets.QRadioButton(self.groupBoxPicture)
        self.radioButtonPremiere.setGeometry(QtCore.QRect(10, 20, 82, 17))
        self.radioButtonPremiere.setChecked(True)
        self.radioButtonPremiere.setObjectName("radioButtonPremiere")
        self.radioButtonDeuxieme = QtWidgets.QRadioButton(self.groupBoxPicture)
        self.radioButtonDeuxieme.setGeometry(QtCore.QRect(10, 40, 82, 17))
        self.radioButtonDeuxieme.setObjectName("radioButtonDeuxieme")
        enhanceWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(enhanceWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1070, 21))
        self.menubar.setObjectName("menubar")
        enhanceWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(enhanceWindow)
        self.statusbar.setObjectName("statusbar")
        enhanceWindow.setStatusBar(self.statusbar)

        self.retranslateUi(enhanceWindow)
        QtCore.QMetaObject.connectSlotsByName(enhanceWindow)
Example #22
0
    def setupUi(self, Insert):
        Insert.setObjectName(_fromUtf8("Insert"))
        Insert.resize(420, 425)
        self.gridlayout = QtWidgets.QGridLayout(Insert)
        self.gridlayout.setObjectName(_fromUtf8("gridlayout"))
        self.vboxlayout = QtWidgets.QVBoxLayout()
        self.vboxlayout.setObjectName(_fromUtf8("vboxlayout"))
        self.label = QtWidgets.QLabel(Insert)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        self.label.setObjectName(_fromUtf8("label"))
        self.vboxlayout.addWidget(self.label)
        self.lineName = QtWidgets.QLineEdit(Insert)
        self.lineName.setMouseTracking(False)
        self.lineName.setInputMask(_fromUtf8(""))
        self.lineName.setMaxLength(10)
        self.lineName.setFrame(True)
        self.lineName.setObjectName(_fromUtf8("lineName"))
        self.vboxlayout.addWidget(self.lineName)
        spacerItem = QtWidgets.QSpacerItem(20, 10, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        self.vboxlayout.addItem(spacerItem)
        self.label_2 = QtWidgets.QLabel(Insert)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth())
        self.label_2.setSizePolicy(sizePolicy)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.vboxlayout.addWidget(self.label_2)
        self.comboType = QtWidgets.QComboBox(Insert)
        self.comboType.setMaxVisibleItems(5)
        self.comboType.setObjectName(_fromUtf8("comboType"))
        self.vboxlayout.addWidget(self.comboType)
        spacerItem1 = QtWidgets.QSpacerItem(20, 10, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        self.vboxlayout.addItem(spacerItem1)
        self.label_3 = QtWidgets.QLabel(Insert)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_3.sizePolicy().hasHeightForWidth())
        self.label_3.setSizePolicy(sizePolicy)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.vboxlayout.addWidget(self.label_3)
        self.comboPos = QtWidgets.QComboBox(Insert)
        self.comboPos.setObjectName(_fromUtf8("comboPos"))
        self.vboxlayout.addWidget(self.comboPos)
        spacerItem2 = QtWidgets.QSpacerItem(20, 10, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        self.vboxlayout.addItem(spacerItem2)
        self.label_4 = QtWidgets.QLabel(Insert)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.vboxlayout.addWidget(self.label_4)
        self.lineLength = QtWidgets.QLineEdit(Insert)
        self.lineLength.setObjectName(_fromUtf8("lineLength"))
        self.vboxlayout.addWidget(self.lineLength)
        spacerItem3 = QtWidgets.QSpacerItem(20, 10, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        self.vboxlayout.addItem(spacerItem3)
        self.label_5 = QtWidgets.QLabel(Insert)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.vboxlayout.addWidget(self.label_5)
        self.linePrecision = QtWidgets.QLineEdit(Insert)
        self.linePrecision.setObjectName(_fromUtf8("linePrecision"))
        self.vboxlayout.addWidget(self.linePrecision)
        self.gridlayout.addLayout(self.vboxlayout, 0, 0, 1, 1)
        self.buttonBox = QtWidgets.QDialogButtonBox(Insert)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setCenterButtons(True)
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
        self.gridlayout.addWidget(self.buttonBox, 3, 0, 1, 1)
        spacerItem4 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.gridlayout.addItem(spacerItem4, 1, 0, 1, 1)

        self.retranslateUi(Insert)
        self.comboType.setCurrentIndex(-1)
        self.buttonBox.accepted.connect(Insert.accept)
        self.buttonBox.rejected.connect(Insert.reject)
        QMetaObject.connectSlotsByName(Insert)
        Insert.setTabOrder(self.lineName, self.comboType)
        Insert.setTabOrder(self.comboType, self.comboPos)
        Insert.setTabOrder(self.comboPos, self.buttonBox)
Example #23
0
    def setupUi(self, Refresh):
        Refresh.setObjectName(_fromUtf8("Refresh"))
        Refresh.resize(493, 249)
        self.gridLayout = QtWidgets.QGridLayout(Refresh)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.buttonBox = QtWidgets.QDialogButtonBox(Refresh)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Close)
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
        self.gridLayout.addWidget(self.buttonBox, 11, 0, 1, 1)
        spacerItem = QtWidgets.QSpacerItem(20, 40,
                                           QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem, 10, 0, 1, 1)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.unevaluatedCheckBox = QtWidgets.QCheckBox(Refresh)
        self.unevaluatedCheckBox.setObjectName(
            _fromUtf8("unevaluatedCheckBox"))
        self.horizontalLayout.addWidget(self.unevaluatedCheckBox)
        self.unevalutedDaysSpinBox = QtWidgets.QSpinBox(Refresh)
        self.unevalutedDaysSpinBox.setMinimum(1)
        self.unevalutedDaysSpinBox.setMaximum(9999)
        self.unevalutedDaysSpinBox.setProperty("value", 10)
        self.unevalutedDaysSpinBox.setObjectName(
            _fromUtf8("unevalutedDaysSpinBox"))
        self.horizontalLayout.addWidget(self.unevalutedDaysSpinBox)
        self.label_2 = QtWidgets.QLabel(Refresh)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.horizontalLayout.addWidget(self.label_2)
        self.gridLayout.addLayout(self.horizontalLayout, 4, 0, 1, 1)
        self.deletedLayersCheckBox = QtWidgets.QCheckBox(Refresh)
        self.deletedLayersCheckBox.setChecked(True)
        self.deletedLayersCheckBox.setObjectName(
            _fromUtf8("deletedLayersCheckBox"))
        self.gridLayout.addWidget(self.deletedLayersCheckBox, 5, 0, 1, 1)
        self.unrecordedCheckBox = QtWidgets.QCheckBox(Refresh)
        self.unrecordedCheckBox.setObjectName(_fromUtf8("unrecordedCheckBox"))
        self.gridLayout.addWidget(self.unrecordedCheckBox, 2, 0, 1, 1)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        spacerItem1 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem1)
        self.cancelButton = QtWidgets.QPushButton(Refresh)
        self.cancelButton.setObjectName(_fromUtf8("cancelButton"))
        self.horizontalLayout_3.addWidget(self.cancelButton)
        self.refreshButton = QtWidgets.QPushButton(Refresh)
        self.refreshButton.setObjectName(_fromUtf8("refreshButton"))
        self.horizontalLayout_3.addWidget(self.refreshButton)
        spacerItem2 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem2)
        self.gridLayout.addLayout(self.horizontalLayout_3, 7, 0, 1, 1)
        self.progressBar = QtWidgets.QProgressBar(Refresh)
        self.progressBar.setProperty("value", 24)
        self.progressBar.setObjectName(_fromUtf8("progressBar"))
        self.gridLayout.addWidget(self.progressBar, 9, 0, 1, 1)
        spacerItem3 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem3, 6, 0, 1, 1)
        self.selectionWidget = QtWidgets.QWidget(Refresh)
        self.selectionWidget.setObjectName(_fromUtf8("selectionWidget"))
        self.selectionLayout = QtWidgets.QHBoxLayout(self.selectionWidget)
        self.selectionLayout.setMargin(0)
        self.selectionLayout.setObjectName(_fromUtf8("selectionLayout"))
        self.label = QtWidgets.QLabel(self.selectionWidget)
        self.label.setObjectName(_fromUtf8("label"))
        self.selectionLayout.addWidget(self.label)
        self.selectionComboBox = QtWidgets.QComboBox(self.selectionWidget)
        self.selectionComboBox.setSizeAdjustPolicy(
            QtWidgets.QComboBox.AdjustToContents)
        self.selectionComboBox.setObjectName(_fromUtf8("selectionComboBox"))
        self.selectionComboBox.addItem(_fromUtf8(""))
        self.selectionComboBox.addItem(_fromUtf8(""))
        self.selectionLayout.addWidget(self.selectionComboBox)
        spacerItem4 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.selectionLayout.addItem(spacerItem4)
        self.gridLayout.addWidget(self.selectionWidget, 1, 0, 1, 1)

        self.retranslateUi(Refresh)
        #        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), Refresh.accept)
        #        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), Refresh.reject)
        self.buttonBox.accepted.connect(Refresh.accept)
        self.buttonBox.rejected.connect(Refresh.reject)
        QtCore.QMetaObject.connectSlotsByName(Refresh)
    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)
Example #25
0
    def setupUi(self, Dialog):
        Dialog.setObjectName(_fromUtf8("Dialog"))
        Dialog.setEnabled(True)
        Dialog.resize(627, 490)
        Dialog.setFocusPolicy(QtCore.Qt.NoFocus)
        Dialog.setContextMenuPolicy(QtCore.Qt.NoContextMenu)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/plugins/tableManager/icons/tableManagerIcon.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        Dialog.setWindowIcon(icon)
        Dialog.setSizeGripEnabled(True)
        self.verticalLayout = QtWidgets.QVBoxLayout(Dialog)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.tabWidget = QtWidgets.QTabWidget(Dialog)
        self.tabWidget.setMinimumSize(QtCore.QSize(0, 0))
        self.tabWidget.setAutoFillBackground(True)
        self.tabWidget.setTabShape(QtWidgets.QTabWidget.Rounded)
        self.tabWidget.setElideMode(QtCore.Qt.ElideNone)
        self.tabWidget.setUsesScrollButtons(False)
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.tab_1 = QtWidgets.QWidget()
        self.tab_1.setObjectName(_fromUtf8("tab_1"))
        self.gridlayout = QtWidgets.QGridLayout(self.tab_1)
        self.gridlayout.setObjectName(_fromUtf8("gridlayout"))
        self.fieldsTable = QtWidgets.QTableWidget(self.tab_1)
        self.fieldsTable.setEnabled(True)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.fieldsTable.sizePolicy().hasHeightForWidth())
        self.fieldsTable.setSizePolicy(sizePolicy)
        self.fieldsTable.setMinimumSize(QtCore.QSize(0, 280))
        self.fieldsTable.setFocusPolicy(QtCore.Qt.WheelFocus)
        self.fieldsTable.setEditTriggers(QtWidgets.QAbstractItemView.AnyKeyPressed|QtWidgets.QAbstractItemView.DoubleClicked|QtWidgets.QAbstractItemView.EditKeyPressed)
        self.fieldsTable.setDragDropMode(QtWidgets.QAbstractItemView.NoDragDrop)
        self.fieldsTable.setSelectionMode(QtWidgets.QAbstractItemView.ExtendedSelection)
        self.fieldsTable.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows)
        self.fieldsTable.setGridStyle(QtCore.Qt.DotLine)
        self.fieldsTable.setWordWrap(False)
        self.fieldsTable.setCornerButtonEnabled(False)
        self.fieldsTable.setRowCount(0)
        self.fieldsTable.setColumnCount(2)
        self.fieldsTable.setObjectName(_fromUtf8("fieldsTable"))
        item = QtWidgets.QTableWidgetItem()
        self.fieldsTable.setHorizontalHeaderItem(0, item)
        item = QtWidgets.QTableWidgetItem()
        self.fieldsTable.setHorizontalHeaderItem(1, item)
        self.gridlayout.addWidget(self.fieldsTable, 0, 0, 1, 1)
        self.vboxlayout = QtWidgets.QVBoxLayout()
        self.vboxlayout.setObjectName(_fromUtf8("vboxlayout"))
        self.butUp = QtWidgets.QToolButton(self.tab_1)
        self.butUp.setEnabled(False)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.butUp.sizePolicy().hasHeightForWidth())
        self.butUp.setSizePolicy(sizePolicy)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/plugins/tableManager/dialog/icons/crystalsvg_1uparrow.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.butUp.setIcon(icon1)
        self.butUp.setToolButtonStyle(QtCore.Qt.ToolButtonTextBesideIcon)
        self.butUp.setObjectName(_fromUtf8("butUp"))
        self.vboxlayout.addWidget(self.butUp)
        self.butDown = QtWidgets.QToolButton(self.tab_1)
        self.butDown.setEnabled(False)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.butDown.sizePolicy().hasHeightForWidth())
        self.butDown.setSizePolicy(sizePolicy)
        self.butDown.setMinimumSize(QtCore.QSize(120, 0))
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(_fromUtf8(":/plugins/tableManager/dialog/icons/crystalsvg_1downarrow.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.butDown.setIcon(icon2)
        self.butDown.setToolButtonStyle(QtCore.Qt.ToolButtonTextBesideIcon)
        self.butDown.setObjectName(_fromUtf8("butDown"))
        self.vboxlayout.addWidget(self.butDown)
        self.butRename = QtWidgets.QToolButton(self.tab_1)
        self.butRename.setEnabled(False)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.butRename.sizePolicy().hasHeightForWidth())
        self.butRename.setSizePolicy(sizePolicy)
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(_fromUtf8(":/plugins/tableManager/dialog/icons/tableManagerIcon3.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.butRename.setIcon(icon3)
        self.butRename.setToolButtonStyle(QtCore.Qt.ToolButtonTextBesideIcon)
        self.butRename.setObjectName(_fromUtf8("butRename"))
        self.vboxlayout.addWidget(self.butRename)
        self.butIns = QtWidgets.QToolButton(self.tab_1)
        self.butIns.setEnabled(True)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.butIns.sizePolicy().hasHeightForWidth())
        self.butIns.setSizePolicy(sizePolicy)
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(_fromUtf8(":/plugins/tableManager/dialog/icons/mActionNewAttribute.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.butIns.setIcon(icon4)
        self.butIns.setToolButtonStyle(QtCore.Qt.ToolButtonTextBesideIcon)
        self.butIns.setObjectName(_fromUtf8("butIns"))
        self.vboxlayout.addWidget(self.butIns)
        self.butClone = QtWidgets.QToolButton(self.tab_1)
        self.butClone.setEnabled(False)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.butClone.sizePolicy().hasHeightForWidth())
        self.butClone.setSizePolicy(sizePolicy)
        icon5 = QtGui.QIcon()
        icon5.addPixmap(QtGui.QPixmap(_fromUtf8(":/plugins/tableManager/dialog/icons/mActionCopySelected.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.butClone.setIcon(icon5)
        self.butClone.setToolButtonStyle(QtCore.Qt.ToolButtonTextBesideIcon)
        self.butClone.setObjectName(_fromUtf8("butClone"))
        self.vboxlayout.addWidget(self.butClone)
        spacerItem = QtWidgets.QSpacerItem(20, 24, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        self.vboxlayout.addItem(spacerItem)
        self.butDel = QtWidgets.QToolButton(self.tab_1)
        self.butDel.setEnabled(False)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.butDel.sizePolicy().hasHeightForWidth())
        self.butDel.setSizePolicy(sizePolicy)
        palette = QtGui.QPalette()
        brush = QtGui.QBrush(QtGui.QColor(255, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText, brush)
        brush = QtGui.QBrush(QtGui.QColor(150, 147, 145))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, brush)
        self.butDel.setPalette(palette)
        icon6 = QtGui.QIcon()
        icon6.addPixmap(QtGui.QPixmap(_fromUtf8(":/plugins/tableManager/dialog/icons/mActionDeleteAttribute.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.butDel.setIcon(icon6)
        self.butDel.setToolButtonStyle(QtCore.Qt.ToolButtonTextBesideIcon)
        self.butDel.setObjectName(_fromUtf8("butDel"))
        self.vboxlayout.addWidget(self.butDel)
        spacerItem1 = QtWidgets.QSpacerItem(120, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.vboxlayout.addItem(spacerItem1)
        self.gridlayout.addLayout(self.vboxlayout, 0, 1, 1, 1)
        self.tabWidget.addTab(self.tab_1, _fromUtf8(""))
        self.tab_2 = QtWidgets.QWidget()
        self.tab_2.setObjectName(_fromUtf8("tab_2"))
        self.gridlayout1 = QtWidgets.QGridLayout(self.tab_2)
        self.gridlayout1.setObjectName(_fromUtf8("gridlayout1"))
        self.dataTable = QtWidgets.QTableWidget(self.tab_2)
        self.dataTable.setEnabled(True)
        self.dataTable.setSelectionMode(QtWidgets.QAbstractItemView.SingleSelection)
        self.dataTable.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectColumns)
        self.dataTable.setGridStyle(QtCore.Qt.DotLine)
        self.dataTable.setWordWrap(False)
        self.dataTable.setCornerButtonEnabled(False)
        self.dataTable.setObjectName(_fromUtf8("dataTable"))
        self.dataTable.setColumnCount(0)
        self.dataTable.setRowCount(0)
        self.gridlayout1.addWidget(self.dataTable, 0, 0, 1, 1)
        self.tabWidget.addTab(self.tab_2, _fromUtf8(""))
        self.tab_3 = QtWidgets.QWidget()
        self.tab_3.setObjectName(_fromUtf8("tab_3"))
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.tab_3)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        spacerItem2 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        self.verticalLayout_2.addItem(spacerItem2)
        self.label = QtWidgets.QLabel(self.tab_3)
        self.label.setWordWrap(True)
        self.label.setObjectName(_fromUtf8("label"))
        self.verticalLayout_2.addWidget(self.label)
        spacerItem3 = QtWidgets.QSpacerItem(20, 10, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        self.verticalLayout_2.addItem(spacerItem3)
        self.label_2 = QtWidgets.QLabel(self.tab_3)
        self.label_2.setWordWrap(True)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.verticalLayout_2.addWidget(self.label_2)
        spacerItem4 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        self.verticalLayout_2.addItem(spacerItem4)
        self.cbWarning = QtWidgets.QCheckBox(self.tab_3)
        self.cbWarning.setChecked(True)
        self.cbWarning.setObjectName(_fromUtf8("cbWarning"))
        self.verticalLayout_2.addWidget(self.cbWarning)
        spacerItem5 = QtWidgets.QSpacerItem(20, 272, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_2.addItem(spacerItem5)
        self.tabWidget.addTab(self.tab_3, _fromUtf8(""))
        self.verticalLayout.addWidget(self.tabWidget)
        self.hboxlayout = QtWidgets.QHBoxLayout()
        self.hboxlayout.setObjectName(_fromUtf8("hboxlayout"))
        spacerItem6 = QtWidgets.QSpacerItem(10, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
        self.hboxlayout.addItem(spacerItem6)
        self.progressBar = QtWidgets.QProgressBar(Dialog)
        self.progressBar.setEnabled(True)
        self.progressBar.setAlignment(QtCore.Qt.AlignHCenter)
        self.progressBar.setTextVisible(True)
        self.progressBar.setOrientation(QtCore.Qt.Horizontal)
        self.progressBar.setInvertedAppearance(False)
        self.progressBar.setTextDirection(QtWidgets.QProgressBar.TopToBottom)
        self.progressBar.setFormat(_fromUtf8(""))
        self.progressBar.setObjectName(_fromUtf8("progressBar"))
        self.hboxlayout.addWidget(self.progressBar)
        spacerItem7 = QtWidgets.QSpacerItem(10, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
        self.hboxlayout.addItem(spacerItem7)
        self.butSave = QtWidgets.QPushButton(Dialog)
        self.butSave.setEnabled(False)
        self.butSave.setMinimumSize(QtCore.QSize(0, 32))
        palette = QtGui.QPalette()
        self.butSave.setPalette(palette)
        self.butSave.setStatusTip(_fromUtf8(""))
        self.butSave.setWhatsThis(_fromUtf8(""))
        self.butSave.setAccessibleDescription(_fromUtf8(""))
        icon7 = QtGui.QIcon()
        icon7.addPixmap(QtGui.QPixmap(_fromUtf8(":/plugins/tableManager/dialog/icons/mActionFileSave.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.butSave.setIcon(icon7)
        self.butSave.setObjectName(_fromUtf8("butSave"))
        self.hboxlayout.addWidget(self.butSave)
        self.butSaveAs = QtWidgets.QPushButton(Dialog)
        self.butSaveAs.setEnabled(False)
        self.butSaveAs.setMinimumSize(QtCore.QSize(0, 32))
        icon8 = QtGui.QIcon()
        icon8.addPixmap(QtGui.QPixmap(_fromUtf8(":/plugins/tableManager/dialog/icons/mActionFileSaveAs.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.butSaveAs.setIcon(icon8)
        self.butSaveAs.setObjectName(_fromUtf8("butSaveAs"))
        self.hboxlayout.addWidget(self.butSaveAs)
        spacerItem8 = QtWidgets.QSpacerItem(10, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
        self.hboxlayout.addItem(spacerItem8)
        self.buttonBox = QtWidgets.QDialogButtonBox(Dialog)
        self.buttonBox.setEnabled(True)
        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.setMinimumSize(QtCore.QSize(0, 32))
        self.buttonBox.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.buttonBox.setAutoFillBackground(False)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Close)
        self.buttonBox.setCenterButtons(False)
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
        self.hboxlayout.addWidget(self.buttonBox)
        spacerItem9 = QtWidgets.QSpacerItem(10, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
        self.hboxlayout.addItem(spacerItem9)
        self.verticalLayout.addLayout(self.hboxlayout)

        self.retranslateUi(Dialog)
        self.tabWidget.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
        Dialog.setTabOrder(self.buttonBox, self.tabWidget)
        Dialog.setTabOrder(self.tabWidget, self.fieldsTable)
        Dialog.setTabOrder(self.fieldsTable, self.butUp)
        Dialog.setTabOrder(self.butUp, self.butDown)
        Dialog.setTabOrder(self.butDown, self.butRename)
        Dialog.setTabOrder(self.butRename, self.butIns)
        Dialog.setTabOrder(self.butIns, self.butClone)
        Dialog.setTabOrder(self.butClone, self.butDel)
        Dialog.setTabOrder(self.butDel, self.dataTable)
        Dialog.setTabOrder(self.dataTable, self.butSaveAs)
        Dialog.setTabOrder(self.butSaveAs, self.butSave)