Пример #1
1
    def setupUi(self, StimConfig):
        StimConfig.setObjectName(_fromUtf8("StimConfig"))
        StimConfig.resize(980, 325)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            StimConfig.sizePolicy().hasHeightForWidth())
        StimConfig.setSizePolicy(sizePolicy)
        # StimConfig.setMinimumSize(QtCore.QSize(941, 325))
        # StimConfig.setMaximumSize(QtCore.QSize(524287, 325))
        self.dockWidgetContents_main = QtGui.QWidget()
        self.dockWidgetContents_main.setObjectName(
            _fromUtf8("dockWidgetContents_main"))
        self.dockWidgetContents_main.setStyleSheet('font-size: 12pt;')

        self.verticalLayout = QtGui.QVBoxLayout(self.dockWidgetContents_main)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.scrollArea = QtGui.QScrollArea(self.dockWidgetContents_main)
        self.scrollArea.setHorizontalScrollBarPolicy(
            QtCore.Qt.ScrollBarAsNeeded)
        self.scrollArea.setWidgetResizable(True)
        self.scrollArea.setObjectName(_fromUtf8("scrollArea"))
        self.dockWidgetContents = QtGui.QWidget()
        self.dockWidgetContents.setGeometry(QtCore.QRect(0, 0, 950, 305))
        self.dockWidgetContents.setObjectName(
            _fromUtf8("scrollAreaWidgetContents"))

        self.gridLayout = QtGui.QGridLayout(self.dockWidgetContents)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.pchgModCheck = QtGui.QCheckBox(self.dockWidgetContents)
        self.pchgModCheck.setObjectName(_fromUtf8("pchgModCheck"))
        self.gridLayout.addWidget(self.pchgModCheck, 8, 3, 1, 1)
        self.clBox = QtGui.QComboBox(self.dockWidgetContents)
        self.clBox.setObjectName(_fromUtf8("clBox"))
        self.gridLayout.addWidget(self.clBox, 4, 12, 1, 1)
        self.stimBiasLabel = QtGui.QLabel(self.dockWidgetContents)
        self.stimBiasLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.stimBiasLabel.setObjectName(_fromUtf8("stimBiasLabel"))
        self.gridLayout.addWidget(self.stimBiasLabel, 8, 11, 1, 1)
        self.blkAllCheck = QtGui.QCheckBox(self.dockWidgetContents)
        self.blkAllCheck.setObjectName(_fromUtf8("blkAllCheck"))
        self.gridLayout.addWidget(self.blkAllCheck, 8, 2, 1, 1)
        self.stimFrequencyLabel = QtGui.QLabel(self.dockWidgetContents)
        self.stimFrequencyLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.stimFrequencyLabel.setObjectName(_fromUtf8("stimFrequencyLabel"))
        self.gridLayout.addWidget(self.stimFrequencyLabel, 6, 11, 1, 1)
        self.testEnCheck = QtGui.QCheckBox(self.dockWidgetContents)
        self.testEnCheck.setObjectName(_fromUtf8("testEnCheck"))
        self.gridLayout.addWidget(self.testEnCheck, 11, 5, 1, 1)
        self.testSelCheck = QtGui.QCheckBox(self.dockWidgetContents)
        self.testSelCheck.setObjectName(_fromUtf8("testSelCheck"))
        self.gridLayout.addWidget(self.testSelCheck, 11, 6, 1, 1)
        self.nccpLabel = QtGui.QLabel(self.dockWidgetContents)
        self.nccpLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.nccpLabel.setObjectName(_fromUtf8("nccpLabel"))
        self.gridLayout.addWidget(self.nccpLabel, 5, 11, 1, 1)
        self.nccpBox = QtGui.QDoubleSpinBox(self.dockWidgetContents)
        self.nccpBox.setSuffix(_fromUtf8(""))
        self.nccpBox.setDecimals(0)
        self.nccpBox.setMinimum(0.0)
        self.nccpBox.setMaximum(63.0)
        self.nccpBox.setSingleStep(1.0)
        self.nccpBox.setProperty("value", 0.0)
        self.nccpBox.setObjectName(_fromUtf8("nccpBox"))
        self.gridLayout.addWidget(self.nccpBox, 5, 12, 1, 1)
        self.stimMultLabel = QtGui.QLabel(self.dockWidgetContents)
        self.stimMultLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.stimMultLabel.setObjectName(_fromUtf8("stimMultLabel"))
        self.gridLayout.addWidget(self.stimMultLabel, 2, 11, 1, 1)
        self.clLabel = QtGui.QLabel(self.dockWidgetContents)
        self.clLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.clLabel.setObjectName(_fromUtf8("clLabel"))
        self.gridLayout.addWidget(self.clLabel, 4, 11, 1, 1)
        self.stimBiasBox = RoundedSpinBox(self.dockWidgetContents)
        self.stimBiasBox.setCorrectionMode(
            QtGui.QAbstractSpinBox.CorrectToNearestValue)
        self.stimBiasBox.setDecimals(0)
        self.stimBiasBox.setMinimum(45.0)
        self.stimBiasBox.setMaximum(150.0)
        self.stimBiasBox.setSingleStep(15.0)
        self.stimBiasBox.setObjectName(_fromUtf8("stimBiasBox"))
        self.gridLayout.addWidget(self.stimBiasBox, 8, 12, 1, 1)
        self.hrcLabel = QtGui.QLabel(self.dockWidgetContents)
        self.hrcLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.hrcLabel.setObjectName(_fromUtf8("hrcLabel"))
        self.gridLayout.addWidget(self.hrcLabel, 3, 11, 1, 1)
        self.stimMultBox = QtGui.QComboBox(self.dockWidgetContents)
        self.stimMultBox.setObjectName(_fromUtf8("stimMultBox"))
        self.gridLayout.addWidget(self.stimMultBox, 2, 12, 1, 1)
        self.hrcBox = QtGui.QComboBox(self.dockWidgetContents)
        self.hrcBox.setObjectName(_fromUtf8("hrcBox"))
        self.gridLayout.addWidget(self.hrcBox, 3, 12, 1, 1)
        self.prCheck = QtGui.QCheckBox(self.dockWidgetContents)
        self.prCheck.setObjectName(_fromUtf8("prCheck"))
        self.gridLayout.addWidget(self.prCheck, 9, 6, 1, 1)
        self.gndResCheck = QtGui.QCheckBox(self.dockWidgetContents)
        self.gndResCheck.setObjectName(_fromUtf8("gndResCheck"))
        self.gridLayout.addWidget(self.gndResCheck, 9, 1, 1, 1)
        self.refPdCheck = QtGui.QCheckBox(self.dockWidgetContents)
        self.refPdCheck.setObjectName(_fromUtf8("refPdCheck"))
        self.gridLayout.addWidget(self.refPdCheck, 8, 1, 1, 1)
        self.pkgRetCheck = QtGui.QCheckBox(self.dockWidgetContents)
        self.pkgRetCheck.setObjectName(_fromUtf8("pkgRetCheck"))
        self.gridLayout.addWidget(self.pkgRetCheck, 8, 5, 1, 1)
        self.pkgPdCheck = QtGui.QCheckBox(self.dockWidgetContents)
        self.pkgPdCheck.setObjectName(_fromUtf8("pkgPdCheck"))
        self.gridLayout.addWidget(self.pkgPdCheck, 9, 2, 1, 1)
        self.cgndCheck = QtGui.QCheckBox(self.dockWidgetContents)
        self.cgndCheck.setObjectName(_fromUtf8("cgndCheck"))
        self.gridLayout.addWidget(self.cgndCheck, 8, 6, 1, 1)
        self.polCheck = QtGui.QCheckBox(self.dockWidgetContents)
        self.polCheck.setObjectName(_fromUtf8("polCheck"))
        self.gridLayout.addWidget(self.polCheck, 9, 5, 1, 1)
        self.regBiasCheck = QtGui.QCheckBox(self.dockWidgetContents)
        self.regBiasCheck.setObjectName(_fromUtf8("regBiasCheck"))
        self.gridLayout.addWidget(self.regBiasCheck, 11, 1, 1, 1)
        self.gmBiasCheck = QtGui.QCheckBox(self.dockWidgetContents)
        self.gmBiasCheck.setToolTip(_fromUtf8(""))
        self.gmBiasCheck.setObjectName(_fromUtf8("gmBiasCheck"))
        self.gridLayout.addWidget(self.gmBiasCheck, 11, 2, 1, 1)
        self.gmPulseCheck = QtGui.QCheckBox(self.dockWidgetContents)
        self.gmPulseCheck.setEnabled(True)
        self.gmPulseCheck.setObjectName(_fromUtf8("gmPulseCheck"))
        self.gridLayout.addWidget(self.gmPulseCheck, 11, 3, 1, 1)
        self.noCheckCheck = QtGui.QCheckBox(self.dockWidgetContents)
        self.noCheckCheck.setObjectName(_fromUtf8("noCheckCheck"))
        self.gridLayout.addWidget(self.noCheckCheck, 11, 4, 1, 1)
        self.stopModeCheck = QtGui.QCheckBox(self.dockWidgetContents)
        self.stopModeCheck.setObjectName(_fromUtf8("stopModeCheck"))
        self.gridLayout.addWidget(self.stopModeCheck, 8, 4, 1, 1)
        self.doffCheck = QtGui.QCheckBox(self.dockWidgetContents)
        self.doffCheck.setObjectName(_fromUtf8("doffCheck"))
        self.gridLayout.addWidget(self.doffCheck, 9, 3, 1, 1)
        self.stimFrequencyBox = QtGui.QDoubleSpinBox(self.dockWidgetContents)
        self.stimFrequencyBox.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.stimFrequencyBox.setDecimals(4)
        self.stimFrequencyBox.setMinimum(3.91)
        self.stimFrequencyBox.setMaximum(67.8438)
        self.stimFrequencyBox.setSingleStep(0.0625)
        self.stimFrequencyBox.setProperty("value", 3.91)
        self.stimFrequencyBox.setObjectName(_fromUtf8("stimFrequencyBox"))
        self.gridLayout.addWidget(self.stimFrequencyBox, 6, 12, 1, 1)
        self.writeRegs = QtGui.QPushButton(self.dockWidgetContents)
        self.writeRegs.setObjectName(_fromUtf8("writeRegs"))
        self.gridLayout.addWidget(self.writeRegs, 9, 12, 1, 1)
        self.waveformConfigButton = QtGui.QPushButton(self.dockWidgetContents)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.waveformConfigButton.sizePolicy().hasHeightForWidth())
        self.waveformConfigButton.setSizePolicy(sizePolicy)
        self.waveformConfigButton.setObjectName(
            _fromUtf8("waveformConfigButton"))
        self.gridLayout.addWidget(self.waveformConfigButton, 0, 1, 1, 6)

        self.scrollArea.setWidget(self.dockWidgetContents)
        self.verticalLayout.addWidget(self.scrollArea)

        StimConfig.setWidget(self.dockWidgetContents_main)

        self.retranslateUi(StimConfig)
        QtCore.QMetaObject.connectSlotsByName(StimConfig)
Пример #2
1
    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(500, 370)
        Form.setStyleSheet(
            _fromUtf8(
                "QToolButton[objectName=\"closetoolButton\"] {\n"
                "border:0px;\n"
                "}\n"
                "QToolButton[objectName=\"closetoolButton\"]:hover {\n"
                "image:url(:/images/close_hover.png);\n"
                "}\n"
                "QToolButton[objectName=\"closetoolButton\"]:pressed {\n"
                "image:url(:/images/close_pressed.png);\n"
                "}\n"
                "\n"
                "QWidget[objectName=\"widget\"]{\n"
                "background-image: url(:/images/funcell_bg.png);\n"
                "}\n"
                "QPushButton[objectName=\"pushButton\"],QPushButton[objectName=\"pushButton_3\"],QComboBox[objectName=\"comboBox\"],QComboBox[objectName=\"comboBox_2\"],QPushButton[objectName=\"pushButton_7\"]{\n"
                "background-color: rgb(0, 170, 255);\n"
                "color: rgb(255, 255, 255);\n"
                "}\n"
                "QPushButton[objectName=\"pushButton_2\"],QPushButton[objectName=\"pushButton_4\"],QPushButton[objectName=\"pushButton_5\"],QPushButton[objectName=\"pushButton_6\"]{\n"
                "background-color: rgb(0, 165, 0);\n"
                "color: rgb(255, 255, 255);\n"
                "}\n"
                "QCheckBox[objectName=\"checkBox\"],QCheckBox[objectName=\"checkBox_3\"],QCheckBox[objectName=\"checkBox_4\"],QCheckBox[objectName=\"checkBox_5\"]{\n"
                "color: rgb(255, 0, 0);\n"
                "}\n"
                "QWidget[objectName=\"Form\"],QWidget[objectName=\"parameter\"],QWidget[objectName=\"apk\"],QWidget[objectName=\"multidex\"],QWidget[objectName=\"other\"],QWidget[objectName=\"splash_icon\"]{\n"
                "background-color: rgb(255, 255, 255);\n"
                "}\n"
                "QListWidget[objectName=\"listWidget\"]{\n"
                "background-color:transparent;\n"
                "border:0px;\n"
                "}\n"
                "QTextBrowser[objectName=\"textBrowser\"]{\n"
                "border:0px;\n"
                "}\n"
                "\n"
                "\n"
                "\n"
                ""))
        self.widget = QtGui.QWidget(Form)
        self.widget.setGeometry(QtCore.QRect(0, 0, 501, 111))
        self.widget.setObjectName(_fromUtf8("widget"))
        self.label = QtGui.QLabel(self.widget)
        self.label.setGeometry(QtCore.QRect(40, 20, 400, 31))
        self.label.setLineWidth(1)
        self.label.setObjectName(_fromUtf8("label"))
        self.closetoolButton = QtGui.QToolButton(self.widget)
        self.closetoolButton.setGeometry(QtCore.QRect(470, 0, 27, 22))
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/images/close_normal.png")),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.closetoolButton.setIcon(icon)
        self.closetoolButton.setIconSize(QtCore.QSize(27, 22))
        self.closetoolButton.setObjectName(_fromUtf8("closetoolButton"))
        self.tabWidget = QtGui.QTabWidget(Form)
        self.tabWidget.setGeometry(QtCore.QRect(0, 70, 501, 301))
        font = QtGui.QFont()
        font.setPointSize(15)
        self.tabWidget.setFont(font)
        self.tabWidget.setStyleSheet(_fromUtf8(""))
        self.tabWidget.setTabPosition(QtGui.QTabWidget.North)
        self.tabWidget.setTabShape(QtGui.QTabWidget.Triangular)
        self.tabWidget.setElideMode(QtCore.Qt.ElideNone)
        self.tabWidget.setTabsClosable(False)
        self.tabWidget.setMovable(False)
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.apk = QtGui.QWidget()
        self.apk.setObjectName(_fromUtf8("apk"))
        self.label_4 = QtGui.QLabel(self.apk)
        self.label_4.setGeometry(QtCore.QRect(60, 20, 51, 16))
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.lineEdit_3 = QtGui.QLineEdit(self.apk)
        self.lineEdit_3.setGeometry(QtCore.QRect(160, 20, 140, 20))
        self.lineEdit_3.setText(_fromUtf8(""))
        self.lineEdit_3.setObjectName(_fromUtf8("lineEdit_3"))
        self.label_9 = QtGui.QLabel(self.apk)
        self.label_9.setGeometry(QtCore.QRect(320, 20, 120, 16))
        self.label_9.setObjectName(_fromUtf8("label_9"))
        self.label_12 = QtGui.QLabel(self.apk)
        self.label_12.setGeometry(QtCore.QRect(60, 50, 70, 16))
        self.label_12.setObjectName(_fromUtf8("label_12"))
        self.label_13 = QtGui.QLabel(self.apk)
        self.label_13.setGeometry(QtCore.QRect(320, 50, 170, 16))
        self.label_13.setObjectName(_fromUtf8("label_13"))
        self.lineEdit_6 = QtGui.QLineEdit(self.apk)
        self.lineEdit_6.setGeometry(QtCore.QRect(160, 50, 140, 20))
        self.lineEdit_6.setText(_fromUtf8(""))
        self.lineEdit_6.setObjectName(_fromUtf8("lineEdit_6"))
        self.label_14 = QtGui.QLabel(self.apk)
        self.label_14.setGeometry(QtCore.QRect(320, 80, 170, 16))
        self.label_14.setObjectName(_fromUtf8("label_14"))
        self.lineEdit_7 = QtGui.QLineEdit(self.apk)
        self.lineEdit_7.setGeometry(QtCore.QRect(160, 80, 140, 20))
        self.lineEdit_7.setText(_fromUtf8(""))
        self.lineEdit_7.setObjectName(_fromUtf8("lineEdit_7"))
        self.label_15 = QtGui.QLabel(self.apk)
        self.label_15.setGeometry(QtCore.QRect(60, 80, 70, 16))
        self.label_15.setObjectName(_fromUtf8("label_15"))
        self.pushButton_4 = QtGui.QPushButton(self.apk)
        self.pushButton_4.setGeometry(QtCore.QRect(190, 230, 91, 33))
        self.pushButton_4.setObjectName(_fromUtf8("pushButton_4"))
        self.checkBox_3 = QtGui.QCheckBox(self.apk)
        self.checkBox_3.setGeometry(QtCore.QRect(60, 200, 121, 21))
        self.checkBox_3.setChecked(False)
        self.checkBox_3.setObjectName(_fromUtf8("checkBox_3"))
        self.lineEdit_8 = QtGui.QLineEdit(self.apk)
        self.lineEdit_8.setGeometry(QtCore.QRect(160, 110, 140, 20))
        self.lineEdit_8.setText(_fromUtf8(""))
        self.lineEdit_8.setObjectName(_fromUtf8("lineEdit_8"))
        self.label_16 = QtGui.QLabel(self.apk)
        self.label_16.setGeometry(QtCore.QRect(60, 110, 80, 16))
        self.label_16.setObjectName(_fromUtf8("label_16"))
        self.label_17 = QtGui.QLabel(self.apk)
        self.label_17.setGeometry(QtCore.QRect(320, 110, 170, 16))
        self.label_17.setObjectName(_fromUtf8("label_17"))
        self.lineEdit_9 = QtGui.QLineEdit(self.apk)
        self.lineEdit_9.setGeometry(QtCore.QRect(160, 140, 140, 20))
        self.lineEdit_9.setText(_fromUtf8(""))
        self.lineEdit_9.setObjectName(_fromUtf8("lineEdit_9"))
        self.label_18 = QtGui.QLabel(self.apk)
        self.label_18.setGeometry(QtCore.QRect(60, 140, 95, 16))
        self.label_18.setObjectName(_fromUtf8("label_18"))
        self.label_19 = QtGui.QLabel(self.apk)
        self.label_19.setGeometry(QtCore.QRect(320, 140, 170, 16))
        self.label_19.setObjectName(_fromUtf8("label_19"))
        self.label_26 = QtGui.QLabel(self.apk)
        self.label_26.setGeometry(QtCore.QRect(60, 170, 95, 16))
        self.label_26.setObjectName(_fromUtf8("label_26"))
        self.label_27 = QtGui.QLabel(self.apk)
        self.label_27.setGeometry(QtCore.QRect(320, 170, 170, 16))
        self.label_27.setObjectName(_fromUtf8("label_27"))
        self.lineEdit_13 = QtGui.QLineEdit(self.apk)
        self.lineEdit_13.setGeometry(QtCore.QRect(160, 170, 140, 20))
        self.lineEdit_13.setText(_fromUtf8(""))
        self.lineEdit_13.setObjectName(_fromUtf8("lineEdit_13"))
        self.tabWidget.addTab(self.apk, _fromUtf8(""))
        self.multidex = QtGui.QWidget()
        self.multidex.setObjectName(_fromUtf8("multidex"))
        self.textBrowser = QtGui.QTextBrowser(self.multidex)
        self.textBrowser.setGeometry(QtCore.QRect(0, 0, 501, 90))
        self.textBrowser.setObjectName(_fromUtf8("textBrowser"))
        self.checkBox = QtGui.QCheckBox(self.multidex)
        self.checkBox.setGeometry(QtCore.QRect(50, 200, 121, 21))
        self.checkBox.setChecked(False)
        self.checkBox.setObjectName(_fromUtf8("checkBox"))
        self.label_3 = QtGui.QLabel(self.multidex)
        self.label_3.setGeometry(QtCore.QRect(50, 100, 81, 16))
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.lineEdit_2 = QtGui.QLineEdit(self.multidex)
        self.lineEdit_2.setGeometry(QtCore.QRect(170, 100, 230, 20))
        self.lineEdit_2.setObjectName(_fromUtf8("lineEdit_2"))
        self.label_8 = QtGui.QLabel(self.multidex)
        self.label_8.setGeometry(QtCore.QRect(410, 100, 60, 16))
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.pushButton_2 = QtGui.QPushButton(self.multidex)
        self.pushButton_2.setGeometry(QtCore.QRect(190, 230, 91, 33))
        self.pushButton_2.setObjectName(_fromUtf8("pushButton_2"))
        self.label_30 = QtGui.QLabel(self.multidex)
        self.label_30.setGeometry(QtCore.QRect(50, 170, 81, 16))
        self.label_30.setObjectName(_fromUtf8("label_30"))
        self.comboBox_2 = QtGui.QComboBox(self.multidex)
        self.comboBox_2.setGeometry(QtCore.QRect(170, 170, 111, 22))
        self.comboBox_2.setObjectName(_fromUtf8("comboBox_2"))
        self.comboBox_2.addItem(_fromUtf8(""))
        self.comboBox_2.addItem(_fromUtf8(""))
        self.label_31 = QtGui.QLabel(self.multidex)
        self.label_31.setGeometry(QtCore.QRect(300, 170, 160, 16))
        self.label_31.setObjectName(_fromUtf8("label_31"))
        self.lineEdit_14 = QtGui.QLineEdit(self.multidex)
        self.lineEdit_14.setGeometry(QtCore.QRect(170, 132, 230, 20))
        self.lineEdit_14.setText(_fromUtf8(""))
        self.lineEdit_14.setObjectName(_fromUtf8("lineEdit_14"))
        self.label_32 = QtGui.QLabel(self.multidex)
        self.label_32.setGeometry(QtCore.QRect(50, 132, 111, 16))
        self.label_32.setObjectName(_fromUtf8("label_32"))
        self.pushButton_7 = QtGui.QPushButton(self.multidex)
        self.pushButton_7.setGeometry(QtCore.QRect(410, 130, 75, 23))
        self.pushButton_7.setStyleSheet(
            _fromUtf8("color: rgb(255, 255, 255);"))
        self.pushButton_7.setObjectName(_fromUtf8("pushButton_7"))
        self.tabWidget.addTab(self.multidex, _fromUtf8(""))
        self.splash_icon = QtGui.QWidget()
        self.splash_icon.setObjectName(_fromUtf8("splash_icon"))
        self.groupBox_2 = QtGui.QGroupBox(self.splash_icon)
        self.groupBox_2.setGeometry(QtCore.QRect(10, 10, 481, 191))
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.lineEdit_11 = QtGui.QLineEdit(self.groupBox_2)
        self.lineEdit_11.setGeometry(QtCore.QRect(140, 140, 181, 20))
        self.lineEdit_11.setText(_fromUtf8(""))
        self.lineEdit_11.setObjectName(_fromUtf8("lineEdit_11"))
        self.lineEdit_5 = QtGui.QLineEdit(self.groupBox_2)
        self.lineEdit_5.setGeometry(QtCore.QRect(140, 22, 181, 20))
        self.lineEdit_5.setText(_fromUtf8(""))
        self.lineEdit_5.setObjectName(_fromUtf8("lineEdit_5"))
        self.label_24 = QtGui.QLabel(self.groupBox_2)
        self.label_24.setGeometry(QtCore.QRect(10, 140, 101, 16))
        self.label_24.setObjectName(_fromUtf8("label_24"))
        self.label_6 = QtGui.QLabel(self.groupBox_2)
        self.label_6.setGeometry(QtCore.QRect(10, 22, 101, 16))
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.pushButton = QtGui.QPushButton(self.groupBox_2)
        self.pushButton.setGeometry(QtCore.QRect(340, 20, 75, 23))
        self.pushButton.setStyleSheet(_fromUtf8("color: rgb(255, 255, 255);"))
        self.pushButton.setObjectName(_fromUtf8("pushButton"))
        self.pushButton_3 = QtGui.QPushButton(self.groupBox_2)
        self.pushButton_3.setGeometry(QtCore.QRect(340, 138, 75, 23))
        self.pushButton_3.setStyleSheet(
            _fromUtf8("color: rgb(255, 255, 255);"))
        self.pushButton_3.setObjectName(_fromUtf8("pushButton_3"))
        self.label_25 = QtGui.QLabel(self.groupBox_2)
        self.label_25.setGeometry(QtCore.QRect(10, 170, 411, 16))
        self.label_25.setObjectName(_fromUtf8("label_25"))
        self.label_28 = QtGui.QLabel(self.groupBox_2)
        self.label_28.setGeometry(QtCore.QRect(10, 110, 101, 16))
        self.label_28.setObjectName(_fromUtf8("label_28"))
        self.comboBox = QtGui.QComboBox(self.groupBox_2)
        self.comboBox.setGeometry(QtCore.QRect(140, 110, 111, 22))
        self.comboBox.setObjectName(_fromUtf8("comboBox"))
        self.comboBox.addItem(_fromUtf8(""))
        self.comboBox.addItem(_fromUtf8(""))
        self.label_29 = QtGui.QLabel(self.groupBox_2)
        self.label_29.setGeometry(QtCore.QRect(270, 110, 201, 16))
        self.label_29.setObjectName(_fromUtf8("label_29"))
        self.label_7 = QtGui.QLabel(self.groupBox_2)
        self.label_7.setGeometry(QtCore.QRect(10, 50, 101, 16))
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.lineEdit_12 = QtGui.QLineEdit(self.groupBox_2)
        self.lineEdit_12.setGeometry(QtCore.QRect(140, 50, 181, 20))
        self.lineEdit_12.setText(_fromUtf8(""))
        self.lineEdit_12.setObjectName(_fromUtf8("lineEdit_12"))
        self.label_23 = QtGui.QLabel(self.groupBox_2)
        self.label_23.setGeometry(QtCore.QRect(340, 50, 121, 16))
        self.label_23.setObjectName(_fromUtf8("label_23"))
        self.label_35 = QtGui.QLabel(self.groupBox_2)
        self.label_35.setGeometry(QtCore.QRect(10, 80, 121, 16))
        self.label_35.setObjectName(_fromUtf8("label_35"))
        self.lineEdit_16 = QtGui.QLineEdit(self.groupBox_2)
        self.lineEdit_16.setGeometry(QtCore.QRect(140, 80, 181, 20))
        self.lineEdit_16.setText(_fromUtf8(""))
        self.lineEdit_16.setObjectName(_fromUtf8("lineEdit_16"))
        self.label_36 = QtGui.QLabel(self.groupBox_2)
        self.label_36.setGeometry(QtCore.QRect(340, 80, 131, 16))
        self.label_36.setObjectName(_fromUtf8("label_36"))
        self.checkBox_5 = QtGui.QCheckBox(self.splash_icon)
        self.checkBox_5.setGeometry(QtCore.QRect(20, 210, 121, 21))
        self.checkBox_5.setChecked(False)
        self.checkBox_5.setObjectName(_fromUtf8("checkBox_5"))
        self.pushButton_6 = QtGui.QPushButton(self.splash_icon)
        self.pushButton_6.setGeometry(QtCore.QRect(190, 230, 91, 33))
        self.pushButton_6.setObjectName(_fromUtf8("pushButton_6"))
        self.tabWidget.addTab(self.splash_icon, _fromUtf8(""))
        self.other = QtGui.QWidget()
        self.other.setObjectName(_fromUtf8("other"))
        self.groupBox = QtGui.QGroupBox(self.other)
        self.groupBox.setGeometry(QtCore.QRect(10, 19, 481, 171))
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.lineEdit_10 = QtGui.QLineEdit(self.groupBox)
        self.lineEdit_10.setGeometry(QtCore.QRect(150, 60, 140, 20))
        self.lineEdit_10.setText(_fromUtf8(""))
        self.lineEdit_10.setObjectName(_fromUtf8("lineEdit_10"))
        self.label_10 = QtGui.QLabel(self.groupBox)
        self.label_10.setGeometry(QtCore.QRect(310, 30, 120, 16))
        self.label_10.setObjectName(_fromUtf8("label_10"))
        self.lineEdit_4 = QtGui.QLineEdit(self.groupBox)
        self.lineEdit_4.setGeometry(QtCore.QRect(150, 30, 140, 20))
        self.lineEdit_4.setText(_fromUtf8(""))
        self.lineEdit_4.setObjectName(_fromUtf8("lineEdit_4"))
        self.label_20 = QtGui.QLabel(self.groupBox)
        self.label_20.setGeometry(QtCore.QRect(50, 60, 70, 16))
        self.label_20.setObjectName(_fromUtf8("label_20"))
        self.label_21 = QtGui.QLabel(self.groupBox)
        self.label_21.setGeometry(QtCore.QRect(310, 60, 170, 16))
        self.label_21.setObjectName(_fromUtf8("label_21"))
        self.label_5 = QtGui.QLabel(self.groupBox)
        self.label_5.setGeometry(QtCore.QRect(50, 30, 51, 16))
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.label_11 = QtGui.QLabel(self.groupBox)
        self.label_11.setGeometry(QtCore.QRect(50, 90, 411, 16))
        self.label_11.setObjectName(_fromUtf8("label_11"))
        self.label_22 = QtGui.QLabel(self.groupBox)
        self.label_22.setGeometry(QtCore.QRect(50, 110, 421, 51))
        self.label_22.setObjectName(_fromUtf8("label_22"))
        self.checkBox_4 = QtGui.QCheckBox(self.other)
        self.checkBox_4.setGeometry(QtCore.QRect(60, 200, 121, 21))
        self.checkBox_4.setChecked(False)
        self.checkBox_4.setObjectName(_fromUtf8("checkBox_4"))
        self.pushButton_5 = QtGui.QPushButton(self.other)
        self.pushButton_5.setGeometry(QtCore.QRect(190, 230, 91, 33))
        self.pushButton_5.setObjectName(_fromUtf8("pushButton_5"))
        self.tabWidget.addTab(self.other, _fromUtf8(""))
        self.parameter = QtGui.QWidget()
        self.parameter.setObjectName(_fromUtf8("parameter"))
        self.label_2 = QtGui.QLabel(self.parameter)
        self.label_2.setGeometry(QtCore.QRect(90, 5, 301, 20))
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.tabWidget.addTab(self.parameter, _fromUtf8(""))

        #         self.tabWidget.setStyleSheet("QTabBar::tab{min-width:30ex; min-height:10ex;}")
        self.tabWidget.setStyleSheet("QTabBar::tab{min-height:10ex;}")
        self.closetoolButton.clicked.connect(self.close)

        self.retranslateUi(Form)
        self.tabWidget.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(Form)
Пример #3
1
    def addField(self,
                 label='',
                 initial='',
                 color='',
                 choices=None,
                 tip='',
                 enabled=True):
        """Adds a (labelled) input field to the dialogue box,
        optional text color and tooltip.

        If 'initial' is a bool, a checkbox will be created.
        If 'choices' is a list or tuple, a dropdown selector is created.
        Otherwise, a text line entry box is created.

        Returns a handle to the field (but not to the label).
        """
        self.inputFieldNames.append(label)
        if choices:
            self.inputFieldTypes.append(str)
        else:
            self.inputFieldTypes.append(type(initial))
        if type(initial) == np.ndarray:
            initial = initial.tolist()

        # create label
        inputLabel = self.addText(label, color, isFieldLabel=True)

        # create input control
        if type(initial) == bool and not choices:
            self.data.append(initial)
            inputBox = QtWidgets.QCheckBox(parent=self)
            inputBox.setChecked(initial)

            def handleCheckboxChange(new_state):
                ix = self.inputFields.index(inputBox)
                self.data[ix] = inputBox.isChecked()
                msg = "handleCheckboxChange: inputFieldName={0}, checked={1}"
                logging.debug(msg.format(label, self.data[ix]))

            inputBox.stateChanged.connect(handleCheckboxChange)
        elif not choices:
            self.data.append(initial)
            inputBox = QtWidgets.QLineEdit(str(initial), parent=self)

            def handleLineEditChange(new_text):
                ix = self.inputFields.index(inputBox)
                thisType = self.inputFieldTypes[ix]

                try:
                    if thisType in (str, unicode, bytes):
                        self.data[ix] = str(new_text)
                    elif thisType == tuple:
                        jtext = "[" + str(new_text) + "]"
                        self.data[ix] = json.loads(jtext)[0]
                    elif thisType == list:
                        jtext = "[" + str(new_text) + "]"
                        self.data[ix] = json.loads(jtext)[0]
                    elif thisType == float:
                        self.data[ix] = float(new_text)
                    elif thisType == int:
                        self.data[ix] = int(new_text)
                    elif thisType == dict:
                        jtext = "[" + str(new_text) + "]"
                        self.data[ix] = json.loads(jtext)[0]
                    elif thisType == np.ndarray:
                        self.data[ix] = np.array(
                            json.loads("[" + str(new_text) + "]")[0])
                    else:
                        self.data[ix] = new_text
                        msg = ("Unknown type in handleLineEditChange: "
                               "inputFieldName={0}, type={1}, value={2}")
                        logging.warning(
                            msg.format(label, thisType, self.data[ix]))
                    msg = ("handleLineEditChange: inputFieldName={0}, "
                           "type={1}, value={2}")
                    logging.debug(msg.format(label, thisType, self.data[ix]))
                except Exception as e:
                    self.data[ix] = str(new_text)
                    msg = ('Error in handleLineEditChange: inputFieldName='
                           '{0}, type={1}, value={2}, error={3}')
                    logging.error(msg.format(label, thisType, self.data[ix],
                                             e))

            inputBox.textEdited.connect(handleLineEditChange)
        else:
            inputBox = QtWidgets.QComboBox(parent=self)
            choices = list(choices)
            for i, option in enumerate(choices):
                inputBox.addItem(str(option))
                # inputBox.addItems([unicode(option) for option in choices])
                inputBox.setItemData(i, (option, ))

            if (isinstance(initial, (int, int))
                    and len(choices) > initial >= 0):
                pass
            elif initial in choices:
                initial = choices.index(initial)
            else:
                initial = 0
            inputBox.setCurrentIndex(initial)

            self.data.append(choices[initial])

            def handleCurrentIndexChanged(new_index):
                ix = self.inputFields.index(inputBox)
                try:
                    self.data[ix] = inputBox.itemData(
                        new_index).toPyObject()[0]
                except AttributeError:
                    self.data[ix] = inputBox.itemData(new_index)[0]
                msg = ("handleCurrentIndexChanged: inputFieldName={0}, "
                       "selected={1}, type: {2}")
                logging.debug(
                    msg.format(label, self.data[ix], type(self.data[ix])))

            inputBox.currentIndexChanged.connect(handleCurrentIndexChanged)

        if len(color):
            inputBox.setPalette(inputLabel.palette())
        if len(tip):
            inputBox.setToolTip(tip)
        inputBox.setEnabled(enabled)
        self.layout.addWidget(inputBox, self.irow, 1)

        self.inputFields.append(inputBox)  # store this to get data back on OK
        self.irow += 1

        return inputBox
Пример #4
1
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(1148, 831)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.gridLayout_2 = QtGui.QGridLayout(self.centralwidget)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.tabWidget = QtGui.QTabWidget(self.centralwidget)
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.mosaicTab = QtGui.QWidget()
        self.mosaicTab.setObjectName(_fromUtf8("mosaicTab"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.mosaicTab)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.mosaicFrame = QtGui.QFrame(self.mosaicTab)
        self.mosaicFrame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.mosaicFrame.setFrameShadow(QtGui.QFrame.Raised)
        self.mosaicFrame.setObjectName(_fromUtf8("mosaicFrame"))
        self.horizontalLayout_2.addWidget(self.mosaicFrame)
        self.widget = QtGui.QWidget(self.mosaicTab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.widget.sizePolicy().hasHeightForWidth())
        self.widget.setSizePolicy(sizePolicy)
        self.widget.setMinimumSize(QtCore.QSize(0, 0))
        self.widget.setMaximumSize(QtCore.QSize(16777215, 100000))
        self.widget.setObjectName(_fromUtf8("widget"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.widget)
        self.verticalLayout_2.setMargin(0)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.positionsGroupBox = QtGui.QGroupBox(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.positionsGroupBox.sizePolicy().hasHeightForWidth())
        self.positionsGroupBox.setSizePolicy(sizePolicy)
        self.positionsGroupBox.setMinimumSize(QtCore.QSize(0, 0))
        self.positionsGroupBox.setMaximumSize(QtCore.QSize(10000, 10000))
        self.positionsGroupBox.setObjectName(_fromUtf8("positionsGroupBox"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.positionsGroupBox)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.positionsFrame = QtGui.QFrame(self.positionsGroupBox)
        self.positionsFrame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.positionsFrame.setFrameShadow(QtGui.QFrame.Raised)
        self.positionsFrame.setObjectName(_fromUtf8("positionsFrame"))
        self.verticalLayout_4.addWidget(self.positionsFrame)
        self.verticalLayout_2.addWidget(self.positionsGroupBox)
        self.tilesGroupBox = QtGui.QGroupBox(self.widget)
        self.tilesGroupBox.setMinimumSize(QtCore.QSize(300, 150))
        self.tilesGroupBox.setMaximumSize(QtCore.QSize(300, 300))
        self.tilesGroupBox.setObjectName(_fromUtf8("tilesGroupBox"))
        self.verticalLayout_8 = QtGui.QVBoxLayout(self.tilesGroupBox)
        self.verticalLayout_8.setObjectName(_fromUtf8("verticalLayout_8"))
        self.horizontalLayout_8 = QtGui.QHBoxLayout()
        self.horizontalLayout_8.setObjectName(_fromUtf8("horizontalLayout_8"))
        self.verticalLayout_3 = QtGui.QVBoxLayout()
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.startingPositionLabel = QtGui.QLabel(self.tilesGroupBox)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.startingPositionLabel.setFont(font)
        self.startingPositionLabel.setAlignment(QtCore.Qt.AlignLeading
                                                | QtCore.Qt.AlignLeft
                                                | QtCore.Qt.AlignVCenter)
        self.startingPositionLabel.setObjectName(
            _fromUtf8("startingPositionLabel"))
        self.verticalLayout_3.addWidget(self.startingPositionLabel)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.xPosLabel = QtGui.QLabel(self.tilesGroupBox)
        self.xPosLabel.setAlignment(QtCore.Qt.AlignRight
                                    | QtCore.Qt.AlignTrailing
                                    | QtCore.Qt.AlignVCenter)
        self.xPosLabel.setObjectName(_fromUtf8("xPosLabel"))
        self.horizontalLayout_4.addWidget(self.xPosLabel)
        self.xStartPosSpinBox = QtGui.QDoubleSpinBox(self.tilesGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.xStartPosSpinBox.sizePolicy().hasHeightForWidth())
        self.xStartPosSpinBox.setSizePolicy(sizePolicy)
        self.xStartPosSpinBox.setMinimum(-50000.0)
        self.xStartPosSpinBox.setMaximum(50000.0)
        self.xStartPosSpinBox.setObjectName(_fromUtf8("xStartPosSpinBox"))
        self.horizontalLayout_4.addWidget(self.xStartPosSpinBox)
        self.verticalLayout_3.addLayout(self.horizontalLayout_4)
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
        self.yPosLabel = QtGui.QLabel(self.tilesGroupBox)
        self.yPosLabel.setAlignment(QtCore.Qt.AlignRight
                                    | QtCore.Qt.AlignTrailing
                                    | QtCore.Qt.AlignVCenter)
        self.yPosLabel.setObjectName(_fromUtf8("yPosLabel"))
        self.horizontalLayout_6.addWidget(self.yPosLabel)
        self.yStartPosSpinBox = QtGui.QDoubleSpinBox(self.tilesGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.yStartPosSpinBox.sizePolicy().hasHeightForWidth())
        self.yStartPosSpinBox.setSizePolicy(sizePolicy)
        self.yStartPosSpinBox.setMinimum(-50000.0)
        self.yStartPosSpinBox.setMaximum(500000.0)
        self.yStartPosSpinBox.setObjectName(_fromUtf8("yStartPosSpinBox"))
        self.horizontalLayout_6.addWidget(self.yStartPosSpinBox)
        self.verticalLayout_3.addLayout(self.horizontalLayout_6)
        self.horizontalLayout_8.addLayout(self.verticalLayout_3)
        self.verticalLayout_7 = QtGui.QVBoxLayout()
        self.verticalLayout_7.setObjectName(_fromUtf8("verticalLayout_7"))
        self.gridDimLabel = QtGui.QLabel(self.tilesGroupBox)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.gridDimLabel.setFont(font)
        self.gridDimLabel.setAlignment(QtCore.Qt.AlignLeading
                                       | QtCore.Qt.AlignLeft
                                       | QtCore.Qt.AlignVCenter)
        self.gridDimLabel.setObjectName(_fromUtf8("gridDimLabel"))
        self.verticalLayout_7.addWidget(self.gridDimLabel)
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.numXLabel = QtGui.QLabel(self.tilesGroupBox)
        self.numXLabel.setAlignment(QtCore.Qt.AlignRight
                                    | QtCore.Qt.AlignTrailing
                                    | QtCore.Qt.AlignVCenter)
        self.numXLabel.setObjectName(_fromUtf8("numXLabel"))
        self.horizontalLayout_5.addWidget(self.numXLabel)
        self.xSpinBox = QtGui.QSpinBox(self.tilesGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.xSpinBox.sizePolicy().hasHeightForWidth())
        self.xSpinBox.setSizePolicy(sizePolicy)
        self.xSpinBox.setMinimum(1)
        self.xSpinBox.setProperty("value", 5)
        self.xSpinBox.setObjectName(_fromUtf8("xSpinBox"))
        self.horizontalLayout_5.addWidget(self.xSpinBox)
        self.verticalLayout_7.addLayout(self.horizontalLayout_5)
        self.horizontalLayout_7 = QtGui.QHBoxLayout()
        self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7"))
        self.numYLabel = QtGui.QLabel(self.tilesGroupBox)
        self.numYLabel.setAlignment(QtCore.Qt.AlignRight
                                    | QtCore.Qt.AlignTrailing
                                    | QtCore.Qt.AlignVCenter)
        self.numYLabel.setObjectName(_fromUtf8("numYLabel"))
        self.horizontalLayout_7.addWidget(self.numYLabel)
        self.ySpinBox = QtGui.QSpinBox(self.tilesGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.ySpinBox.sizePolicy().hasHeightForWidth())
        self.ySpinBox.setSizePolicy(sizePolicy)
        self.ySpinBox.setMinimum(1)
        self.ySpinBox.setProperty("value", 3)
        self.ySpinBox.setObjectName(_fromUtf8("ySpinBox"))
        self.horizontalLayout_7.addWidget(self.ySpinBox)
        self.verticalLayout_7.addLayout(self.horizontalLayout_7)
        self.horizontalLayout_8.addLayout(self.verticalLayout_7)
        self.verticalLayout_8.addLayout(self.horizontalLayout_8)
        self.horizontalLayout_10 = QtGui.QHBoxLayout()
        self.horizontalLayout_10.setObjectName(
            _fromUtf8("horizontalLayout_10"))
        self.getStagePosButton = QtGui.QPushButton(self.tilesGroupBox)
        self.getStagePosButton.setMaximumSize(QtCore.QSize(150, 16777215))
        self.getStagePosButton.setObjectName(_fromUtf8("getStagePosButton"))
        self.horizontalLayout_10.addWidget(self.getStagePosButton)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_10.addItem(spacerItem)
        self.imageGridButton = QtGui.QPushButton(self.tilesGroupBox)
        self.imageGridButton.setMaximumSize(QtCore.QSize(150, 16777215))
        self.imageGridButton.setObjectName(_fromUtf8("imageGridButton"))
        self.horizontalLayout_10.addWidget(self.imageGridButton)
        self.verticalLayout_8.addLayout(self.horizontalLayout_10)
        self.verticalLayout_2.addWidget(self.tilesGroupBox)
        self.objectivesGroupBox = ObjectivesGroupBox(self.widget)
        self.objectivesGroupBox.setMinimumSize(QtCore.QSize(250, 50))
        self.objectivesGroupBox.setMaximumSize(QtCore.QSize(300, 300))
        self.objectivesGroupBox.setObjectName(_fromUtf8("objectivesGroupBox"))
        self.verticalLayout_2.addWidget(self.objectivesGroupBox)
        self.miscGroupBox = QtGui.QGroupBox(self.widget)
        self.miscGroupBox.setMinimumSize(QtCore.QSize(0, 20))
        self.miscGroupBox.setObjectName(_fromUtf8("miscGroupBox"))
        self.verticalLayout = QtGui.QVBoxLayout(self.miscGroupBox)
        self.verticalLayout.setContentsMargins(0, -1, 0, -1)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.trackStageCheckBox = QtGui.QCheckBox(self.miscGroupBox)
        self.trackStageCheckBox.setObjectName(_fromUtf8("trackStageCheckBox"))
        self.horizontalLayout.addWidget(self.trackStageCheckBox)
        self.scaleLabel = QtGui.QLabel(self.miscGroupBox)
        self.scaleLabel.setAlignment(QtCore.Qt.AlignRight
                                     | QtCore.Qt.AlignTrailing
                                     | QtCore.Qt.AlignVCenter)
        self.scaleLabel.setObjectName(_fromUtf8("scaleLabel"))
        self.horizontalLayout.addWidget(self.scaleLabel)
        self.scaleLineEdit = QtGui.QLineEdit(self.miscGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.scaleLineEdit.sizePolicy().hasHeightForWidth())
        self.scaleLineEdit.setSizePolicy(sizePolicy)
        self.scaleLineEdit.setMaximumSize(QtCore.QSize(100, 16777215))
        self.scaleLineEdit.setAlignment(QtCore.Qt.AlignRight
                                        | QtCore.Qt.AlignTrailing
                                        | QtCore.Qt.AlignVCenter)
        self.scaleLineEdit.setObjectName(_fromUtf8("scaleLineEdit"))
        self.horizontalLayout.addWidget(self.scaleLineEdit)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.horizontalLayout_9 = QtGui.QHBoxLayout()
        self.horizontalLayout_9.setObjectName(_fromUtf8("horizontalLayout_9"))
        self.cursorPosition = QtGui.QLabel(self.miscGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.cursorPosition.sizePolicy().hasHeightForWidth())
        self.cursorPosition.setSizePolicy(sizePolicy)
        self.cursorPosition.setAlignment(QtCore.Qt.AlignLeading
                                         | QtCore.Qt.AlignLeft
                                         | QtCore.Qt.AlignVCenter)
        self.cursorPosition.setObjectName(_fromUtf8("cursorPosition"))
        self.horizontalLayout_9.addWidget(self.cursorPosition)
        self.mosaicLabel = QtGui.QLabel(self.miscGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mosaicLabel.sizePolicy().hasHeightForWidth())
        self.mosaicLabel.setSizePolicy(sizePolicy)
        self.mosaicLabel.setAlignment(QtCore.Qt.AlignLeading
                                      | QtCore.Qt.AlignLeft
                                      | QtCore.Qt.AlignVCenter)
        self.mosaicLabel.setObjectName(_fromUtf8("mosaicLabel"))
        self.horizontalLayout_9.addWidget(self.mosaicLabel)
        self.verticalLayout.addLayout(self.horizontalLayout_9)
        self.verticalLayout_2.addWidget(self.miscGroupBox)
        self.horizontalLayout_2.addWidget(self.widget)
        self.tabWidget.addTab(self.mosaicTab, _fromUtf8(""))
        self.sectionsTab = QtGui.QWidget()
        self.sectionsTab.setObjectName(_fromUtf8("sectionsTab"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout(self.sectionsTab)
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.sectionsDisplayFrame = QtGui.QFrame(self.sectionsTab)
        self.sectionsDisplayFrame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.sectionsDisplayFrame.setFrameShadow(QtGui.QFrame.Raised)
        self.sectionsDisplayFrame.setObjectName(
            _fromUtf8("sectionsDisplayFrame"))
        self.horizontalLayout_3.addWidget(self.sectionsDisplayFrame)
        self.sectionsWidget = QtGui.QWidget(self.sectionsTab)
        self.sectionsWidget.setMinimumSize(QtCore.QSize(0, 0))
        self.sectionsWidget.setMaximumSize(QtCore.QSize(300, 16777215))
        self.sectionsWidget.setObjectName(_fromUtf8("sectionsWidget"))
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.sectionsWidget)
        self.verticalLayout_5.setMargin(0)
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.sectionsGroupBox = QtGui.QGroupBox(self.sectionsWidget)
        self.sectionsGroupBox.setMaximumSize(QtCore.QSize(100000, 16777215))
        self.sectionsGroupBox.setObjectName(_fromUtf8("sectionsGroupBox"))
        self.verticalLayout_6 = QtGui.QVBoxLayout(self.sectionsGroupBox)
        self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6"))
        self.sectionsScrollArea = QtGui.QScrollArea(self.sectionsGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.sectionsScrollArea.sizePolicy().hasHeightForWidth())
        self.sectionsScrollArea.setSizePolicy(sizePolicy)
        self.sectionsScrollArea.setWidgetResizable(True)
        self.sectionsScrollArea.setObjectName(_fromUtf8("sectionsScrollArea"))
        self.scrollAreaWidgetContents_2 = QtGui.QWidget()
        self.scrollAreaWidgetContents_2.setGeometry(QtCore.QRect(0, 0, 98, 28))
        self.scrollAreaWidgetContents_2.setObjectName(
            _fromUtf8("scrollAreaWidgetContents_2"))
        self.sectionsScrollArea.setWidget(self.scrollAreaWidgetContents_2)
        self.verticalLayout_6.addWidget(self.sectionsScrollArea)
        self.verticalLayout_5.addWidget(self.sectionsGroupBox)
        self.sectionViewSettingsGroupBox = QtGui.QGroupBox(self.sectionsWidget)
        self.sectionViewSettingsGroupBox.setMaximumSize(
            QtCore.QSize(16777215, 120))
        self.sectionViewSettingsGroupBox.setObjectName(
            _fromUtf8("sectionViewSettingsGroupBox"))
        self.gridLayout = QtGui.QGridLayout(self.sectionViewSettingsGroupBox)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.thresholdLabel = QtGui.QLabel(self.sectionViewSettingsGroupBox)
        self.thresholdLabel.setObjectName(_fromUtf8("thresholdLabel"))
        self.gridLayout.addWidget(self.thresholdLabel, 1, 0, 1, 1)
        self.foregroundOpacitySlider = QtGui.QSlider(
            self.sectionViewSettingsGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.foregroundOpacitySlider.sizePolicy().hasHeightForWidth())
        self.foregroundOpacitySlider.setSizePolicy(sizePolicy)
        self.foregroundOpacitySlider.setMaximum(100)
        self.foregroundOpacitySlider.setProperty("value", 50)
        self.foregroundOpacitySlider.setOrientation(QtCore.Qt.Horizontal)
        self.foregroundOpacitySlider.setObjectName(
            _fromUtf8("foregroundOpacitySlider"))
        self.gridLayout.addWidget(self.foregroundOpacitySlider, 4, 1, 1, 1)
        self.moveAllSectionsCheckBox = QtGui.QCheckBox(
            self.sectionViewSettingsGroupBox)
        self.moveAllSectionsCheckBox.setObjectName(
            _fromUtf8("moveAllSectionsCheckBox"))
        self.gridLayout.addWidget(self.moveAllSectionsCheckBox, 0, 0, 1, 1)
        self.foregroundOpacityLabel = QtGui.QLabel(
            self.sectionViewSettingsGroupBox)
        self.foregroundOpacityLabel.setObjectName(
            _fromUtf8("foregroundOpacityLabel"))
        self.gridLayout.addWidget(self.foregroundOpacityLabel, 4, 0, 1, 1)
        self.showFeaturesCheckBox = QtGui.QCheckBox(
            self.sectionViewSettingsGroupBox)
        self.showFeaturesCheckBox.setObjectName(
            _fromUtf8("showFeaturesCheckBox"))
        self.gridLayout.addWidget(self.showFeaturesCheckBox, 0, 1, 1, 1)
        self.backgroundLabel = QtGui.QLabel(self.sectionViewSettingsGroupBox)
        self.backgroundLabel.setObjectName(_fromUtf8("backgroundLabel"))
        self.gridLayout.addWidget(self.backgroundLabel, 2, 0, 1, 1)
        self.backgroundComboBox = QtGui.QComboBox(
            self.sectionViewSettingsGroupBox)
        self.backgroundComboBox.setObjectName(_fromUtf8("backgroundComboBox"))
        self.backgroundComboBox.addItem(_fromUtf8(""))
        self.gridLayout.addWidget(self.backgroundComboBox, 2, 1, 1, 1)
        self.thresholdSlider = QtGui.QSlider(self.sectionViewSettingsGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.thresholdSlider.sizePolicy().hasHeightForWidth())
        self.thresholdSlider.setSizePolicy(sizePolicy)
        self.thresholdSlider.setMaximum(100)
        self.thresholdSlider.setProperty("value", 50)
        self.thresholdSlider.setOrientation(QtCore.Qt.Horizontal)
        self.thresholdSlider.setObjectName(_fromUtf8("thresholdSlider"))
        self.gridLayout.addWidget(self.thresholdSlider, 1, 1, 1, 1)
        self.verticalLayout_5.addWidget(self.sectionViewSettingsGroupBox)
        self.horizontalLayout_3.addWidget(self.sectionsWidget)
        self.tabWidget.addTab(self.sectionsTab, _fromUtf8(""))
        self.gridLayout_2.addWidget(self.tabWidget, 0, 0, 1, 1)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1148, 21))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        self.menuFile = QtGui.QMenu(self.menubar)
        self.menuFile.setObjectName(_fromUtf8("menuFile"))
        self.menuView = QtGui.QMenu(self.menubar)
        self.menuView.setObjectName(_fromUtf8("menuView"))
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)
        self.actionQuit = QtGui.QAction(MainWindow)
        self.actionQuit.setObjectName(_fromUtf8("actionQuit"))
        self.actionConnect = QtGui.QAction(MainWindow)
        self.actionConnect.setObjectName(_fromUtf8("actionConnect"))
        self.actionDisconnect = QtGui.QAction(MainWindow)
        self.actionDisconnect.setObjectName(_fromUtf8("actionDisconnect"))
        self.actionSave_Positions = QtGui.QAction(MainWindow)
        self.actionSave_Positions.setObjectName(
            _fromUtf8("actionSave_Positions"))
        self.actionSave_Mosaic = QtGui.QAction(MainWindow)
        self.actionSave_Mosaic.setObjectName(_fromUtf8("actionSave_Mosaic"))
        self.actionSet_Working_Directory = QtGui.QAction(MainWindow)
        self.actionSet_Working_Directory.setObjectName(
            _fromUtf8("actionSet_Working_Directory"))
        self.actionLoad_Mosaic = QtGui.QAction(MainWindow)
        self.actionLoad_Mosaic.setObjectName(_fromUtf8("actionLoad_Mosaic"))
        self.actionDelete_Images = QtGui.QAction(MainWindow)
        self.actionDelete_Images.setObjectName(
            _fromUtf8("actionDelete_Images"))
        self.actionLoad_Positions = QtGui.QAction(MainWindow)
        self.actionLoad_Positions.setObjectName(
            _fromUtf8("actionLoad_Positions"))
        self.actionSave_Snapshot = QtGui.QAction(MainWindow)
        self.actionSave_Snapshot.setObjectName(
            _fromUtf8("actionSave_Snapshot"))
        self.actionLoad_Movie = QtGui.QAction(MainWindow)
        self.actionLoad_Movie.setObjectName(_fromUtf8("actionLoad_Movie"))
        self.actionLoad_Dax_By_Pattern = QtGui.QAction(MainWindow)
        self.actionLoad_Dax_By_Pattern.setObjectName(
            _fromUtf8("actionLoad_Dax_By_Pattern"))
        self.actionAdjust_Contrast = QtGui.QAction(MainWindow)
        self.actionAdjust_Contrast.setObjectName(
            _fromUtf8("actionAdjust_Contrast"))
        self.menuFile.addAction(self.actionSet_Working_Directory)
        self.menuFile.addSeparator()
        self.menuFile.addAction(self.actionDelete_Images)
        self.menuFile.addAction(self.actionLoad_Movie)
        self.menuFile.addAction(self.actionLoad_Mosaic)
        self.menuFile.addAction(self.actionLoad_Positions)
        self.menuFile.addAction(self.actionSave_Mosaic)
        self.menuFile.addAction(self.actionSave_Positions)
        self.menuFile.addAction(self.actionSave_Snapshot)
        self.menuFile.addSeparator()
        self.menuFile.addAction(self.actionQuit)
        self.menuView.addAction(self.actionAdjust_Contrast)
        self.menubar.addAction(self.menuFile.menuAction())
        self.menubar.addAction(self.menuView.menuAction())

        self.retranslateUi(MainWindow)
        self.tabWidget.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
        MainWindow.setTabOrder(self.xStartPosSpinBox, self.yStartPosSpinBox)
        MainWindow.setTabOrder(self.yStartPosSpinBox, self.xSpinBox)
        MainWindow.setTabOrder(self.xSpinBox, self.ySpinBox)
        MainWindow.setTabOrder(self.ySpinBox, self.tabWidget)
        MainWindow.setTabOrder(self.tabWidget, self.foregroundOpacitySlider)
        MainWindow.setTabOrder(self.foregroundOpacitySlider,
                               self.backgroundComboBox)
        MainWindow.setTabOrder(self.backgroundComboBox, self.thresholdSlider)
        MainWindow.setTabOrder(self.thresholdSlider, self.showFeaturesCheckBox)
        MainWindow.setTabOrder(self.showFeaturesCheckBox,
                               self.moveAllSectionsCheckBox)
        MainWindow.setTabOrder(self.moveAllSectionsCheckBox,
                               self.sectionsScrollArea)
Пример #5
0
    def __init__(self, parent=None):
        QtGui.QWidget.__init__(self, parent)
        self.setGeometry(200, 400, 500, 200)
        self.setWindowTitle('Configuration Parameters')
        self.setFrame()

        #self.tit_dir_work = QtGui.QLabel('Parameters:')

        self.edi_dir_work = QtGui.QLineEdit(cp.dir_work.value())
        self.but_dir_work = QtGui.QPushButton('Dir work:')
        self.edi_dir_work.setReadOnly(True)

        self.edi_dir_results = QtGui.QLineEdit(cp.dir_results.value())
        self.but_dir_results = QtGui.QPushButton('Dir results:')
        self.edi_dir_results.setReadOnly(True)

        self.lab_fname_prefix = QtGui.QLabel('File prefix:')
        self.edi_fname_prefix = QtGui.QLineEdit(cp.fname_prefix.value())

        self.lab_bat_queue = QtGui.QLabel('Queue:')
        self.box_bat_queue = QtGui.QComboBox(self)
        self.box_bat_queue.addItems(cp.list_of_queues)
        self.box_bat_queue.setCurrentIndex(
            cp.list_of_queues.index(cp.bat_queue.value()))

        self.lab_dark_start = QtGui.QLabel('Event start:')
        self.lab_dark_end = QtGui.QLabel('end:')
        self.lab_rms_thr = QtGui.QLabel('Threshold RMS, ADU:')
        self.lab_min_thr = QtGui.QLabel('Threshold MIN, ADU:')
        self.lab_max_thr = QtGui.QLabel('MAX:')

        self.but_show_vers = QtGui.QPushButton('Soft Vers')
        self.but_lsf_status = QtGui.QPushButton('LSF status')

        self.edi_dark_start = QtGui.QLineEdit(str(cp.bat_dark_start.value()))
        self.edi_dark_end = QtGui.QLineEdit(str(cp.bat_dark_end.value()))
        self.edi_rms_thr = QtGui.QLineEdit(str(cp.mask_rms_thr.value()))
        self.edi_min_thr = QtGui.QLineEdit(str(cp.mask_min_thr.value()))
        self.edi_max_thr = QtGui.QLineEdit(str(cp.mask_max_thr.value()))

        self.edi_dark_start.setValidator(QtGui.QIntValidator(0, 9999999, self))
        self.edi_dark_end.setValidator(QtGui.QIntValidator(0, 9999999, self))
        self.edi_rms_thr.setValidator(QtGui.QDoubleValidator(
            0, 65000, 3, self))
        self.edi_min_thr.setValidator(QtGui.QDoubleValidator(
            0, 65000, 3, self))
        self.edi_max_thr.setValidator(QtGui.QDoubleValidator(
            0, 65000, 3, self))
        #self.edi_events.setValidator(QtGui.QRegExpValidator(QtCore.QRegExp("[0-9]\\d{0,3}|end$"),self))

        self.cbx_deploy_hotpix = QtGui.QCheckBox('Deploy hotpix mask')
        self.cbx_deploy_hotpix.setChecked(cp.dark_deploy_hotpix.value())

        self.grid = QtGui.QGridLayout()
        self.grid_row = 0
        #self.grid.addWidget(self.tit_dir_work,      self.grid_row,   0, 1, 9)
        self.grid.addWidget(self.but_dir_work, self.grid_row + 1, 0)
        self.grid.addWidget(self.edi_dir_work, self.grid_row + 1, 1, 1, 8)
        self.grid.addWidget(self.but_dir_results, self.grid_row + 2, 0)
        self.grid.addWidget(self.edi_dir_results, self.grid_row + 2, 1, 1, 8)
        self.grid.addWidget(self.lab_fname_prefix, self.grid_row + 3, 0)
        self.grid.addWidget(self.edi_fname_prefix, self.grid_row + 3, 1, 1, 4)
        self.grid.addWidget(self.lab_bat_queue, self.grid_row + 4, 0)
        self.grid.addWidget(self.box_bat_queue, self.grid_row + 4, 1)
        self.grid.addWidget(self.but_lsf_status, self.grid_row + 4,
                            4)  #, 1, 2)
        self.grid.addWidget(self.but_show_vers, self.grid_row + 4, 5)  #, 1, 2)
        self.grid.addWidget(self.lab_dark_start, self.grid_row + 5, 0)
        self.grid.addWidget(self.edi_dark_start, self.grid_row + 5, 1)
        self.grid.addWidget(self.lab_dark_end, self.grid_row + 5, 3)
        self.grid.addWidget(self.edi_dark_end, self.grid_row + 5, 4)
        self.grid.addWidget(self.lab_rms_thr, self.grid_row + 6, 0)
        self.grid.addWidget(self.edi_rms_thr, self.grid_row + 6, 1, 1, 4)
        self.grid.addWidget(self.cbx_deploy_hotpix, self.grid_row + 6, 3, 1, 4)
        self.grid.addWidget(self.lab_min_thr, self.grid_row + 7, 0)
        self.grid.addWidget(self.edi_min_thr, self.grid_row + 7, 1, 1, 2)
        self.grid.addWidget(self.lab_max_thr, self.grid_row + 7, 3)
        self.grid.addWidget(self.edi_max_thr, self.grid_row + 7, 4, 1, 2)

        #self.setLayout(self.grid)

        self.vbox = QtGui.QVBoxLayout()
        self.vbox.addLayout(self.grid)
        self.vbox.addStretch(1)
        self.setLayout(self.vbox)

        self.connect(self.but_dir_work, QtCore.SIGNAL('clicked()'),
                     self.onButDirWork)
        self.connect(self.but_dir_results, QtCore.SIGNAL('clicked()'),
                     self.onButDirResults)
        self.connect(self.box_bat_queue,
                     QtCore.SIGNAL('currentIndexChanged(int)'),
                     self.onBoxBatQueue)
        self.connect(self.edi_fname_prefix,
                     QtCore.SIGNAL('editingFinished ()'), self.onEditPrefix)
        self.connect(self.edi_dark_start, QtCore.SIGNAL('editingFinished()'),
                     self.onEdiDarkStart)
        self.connect(self.edi_dark_end, QtCore.SIGNAL('editingFinished()'),
                     self.onEdiDarkEnd)
        self.connect(self.edi_rms_thr, QtCore.SIGNAL('editingFinished()'),
                     self.onEdiRmsThr)
        self.connect(self.edi_min_thr, QtCore.SIGNAL('editingFinished()'),
                     self.onEdiMinThr)
        self.connect(self.edi_max_thr, QtCore.SIGNAL('editingFinished()'),
                     self.onEdiMaxThr)
        self.connect(self.cbx_deploy_hotpix,
                     QtCore.SIGNAL('stateChanged(int)'), self.on_cbx)
        self.connect(self.but_show_vers, QtCore.SIGNAL('clicked()'),
                     self.onButShowVers)
        self.connect(self.but_lsf_status, QtCore.SIGNAL('clicked()'),
                     self.onButLsfStatus)

        self.showToolTips()
        self.setStyle()
Пример #6
0
    def setupUi(self, ResultsTable):
        ResultsTable.setObjectName(_fromUtf8("ResultsTable"))
        ResultsTable.resize(510, 499)
        ResultsTable.setWindowTitle(_fromUtf8(""))
        self.horizontalLayout = QtGui.QHBoxLayout(ResultsTable)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.splitter = QtGui.QSplitter(ResultsTable)
        self.splitter.setOrientation(QtCore.Qt.Horizontal)
        self.splitter.setObjectName(_fromUtf8("splitter"))
        self.tabWidget = RenamableTabWidget(self.splitter)
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.widget = QtGui.QWidget(self.splitter)
        self.widget.setObjectName(_fromUtf8("widget"))
        self.formLayout = QtGui.QFormLayout(self.widget)
        self.formLayout.setMargin(0)
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.label_3 = QtGui.QLabel(self.widget)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_3)
        self.widget_3 = QtGui.QWidget(self.widget)
        self.widget_3.setObjectName(_fromUtf8("widget_3"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.widget_3)
        self.verticalLayout_2.setMargin(0)
        self.verticalLayout_2.setMargin(0)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.global_lines = QtGui.QCheckBox(self.widget_3)
        self.global_lines.setObjectName(_fromUtf8("global_lines"))
        self.verticalLayout_2.addWidget(self.global_lines)
        self.global_gates = QtGui.QCheckBox(self.widget_3)
        self.global_gates.setObjectName(_fromUtf8("global_gates"))
        self.verticalLayout_2.addWidget(self.global_gates)
        self.global_qc = QtGui.QCheckBox(self.widget_3)
        self.global_qc.setObjectName(_fromUtf8("global_qc"))
        self.verticalLayout_2.addWidget(self.global_qc)
        self.global_tc = QtGui.QCheckBox(self.widget_3)
        self.global_tc.setObjectName(_fromUtf8("global_tc"))
        self.verticalLayout_2.addWidget(self.global_tc)
        self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole,
                                  self.widget_3)
        self.label_4 = QtGui.QLabel(self.widget)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_4)
        self.widget_4 = QtGui.QWidget(self.widget)
        self.widget_4.setObjectName(_fromUtf8("widget_4"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.widget_4)
        self.verticalLayout_3.setMargin(0)
        self.verticalLayout_3.setMargin(0)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.configure_extra_columns = QtGui.QToolButton(self.widget_4)
        self.configure_extra_columns.setToolButtonStyle(
            QtCore.Qt.ToolButtonTextBesideIcon)
        self.configure_extra_columns.setObjectName(
            _fromUtf8("configure_extra_columns"))
        self.verticalLayout_3.addWidget(self.configure_extra_columns)
        self.extra_columns = QtGui.QLabel(self.widget_4)
        self.extra_columns.setObjectName(_fromUtf8("extra_columns"))
        self.verticalLayout_3.addWidget(self.extra_columns)
        self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole,
                                  self.widget_4)
        self.label = QtGui.QLabel(self.widget)
        self.label.setObjectName(_fromUtf8("label"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.label)
        self.widget_2 = QtGui.QWidget(self.widget)
        self.widget_2.setObjectName(_fromUtf8("widget_2"))
        self.verticalLayout = QtGui.QVBoxLayout(self.widget_2)
        self.verticalLayout.setMargin(0)
        self.verticalLayout.setMargin(0)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.export_pdf = QtGui.QToolButton(self.widget_2)
        self.export_pdf.setToolButtonStyle(QtCore.Qt.ToolButtonTextBesideIcon)
        self.export_pdf.setObjectName(_fromUtf8("export_pdf"))
        self.verticalLayout.addWidget(self.export_pdf)
        self.export_latex = QtGui.QToolButton(self.widget_2)
        self.export_latex.setToolButtonStyle(
            QtCore.Qt.ToolButtonTextBesideIcon)
        self.export_latex.setObjectName(_fromUtf8("export_latex"))
        self.verticalLayout.addWidget(self.export_latex)
        self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole,
                                  self.widget_2)
        self.horizontalLayout.addWidget(self.splitter)

        self.retranslateUi(ResultsTable)
        self.tabWidget.setCurrentIndex(-1)
        QtCore.QMetaObject.connectSlotsByName(ResultsTable)
        ResultsTable.setTabOrder(self.tabWidget, self.global_lines)
        ResultsTable.setTabOrder(self.global_lines, self.global_gates)
        ResultsTable.setTabOrder(self.global_gates, self.global_qc)
        ResultsTable.setTabOrder(self.global_qc, self.global_tc)
        ResultsTable.setTabOrder(self.global_tc, self.configure_extra_columns)
        ResultsTable.setTabOrder(self.configure_extra_columns, self.export_pdf)
        ResultsTable.setTabOrder(self.export_pdf, self.export_latex)
Пример #7
0
    def setupUi(self, NWAViewerWindow):
        NWAViewerWindow.setObjectName("NWAViewerWindow")
        NWAViewerWindow.resize(946, 819)
        self.centralwidget = QtGui.QWidget(NWAViewerWindow)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.centralwidget.sizePolicy().hasHeightForWidth())
        self.centralwidget.setSizePolicy(sizePolicy)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.fileLabel = QtGui.QLabel(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.fileLabel.sizePolicy().hasHeightForWidth())
        self.fileLabel.setSizePolicy(sizePolicy)
        self.fileLabel.setObjectName("fileLabel")
        self.horizontalLayout.addWidget(self.fileLabel)
        self.linearCheckBox = QtGui.QCheckBox(self.centralwidget)
        self.linearCheckBox.setObjectName("linearCheckBox")
        self.horizontalLayout.addWidget(self.linearCheckBox)
        self.fileButton = QtGui.QPushButton(self.centralwidget)
        self.fileButton.setObjectName("fileButton")
        self.horizontalLayout.addWidget(self.fileButton)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.curvewidget = CurveWidget(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.curvewidget.sizePolicy().hasHeightForWidth())
        self.curvewidget.setSizePolicy(sizePolicy)
        self.curvewidget.setOrientation(QtCore.Qt.Horizontal)
        self.curvewidget.setObjectName("curvewidget")
        self.verticalLayout.addWidget(self.curvewidget)
        self.curvewidget2 = CurveWidget(self.centralwidget)
        self.curvewidget2.setOrientation(QtCore.Qt.Horizontal)
        self.curvewidget2.setObjectName("curvewidget2")
        self.verticalLayout.addWidget(self.curvewidget2)
        NWAViewerWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(NWAViewerWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 946, 22))
        self.menubar.setObjectName("menubar")
        NWAViewerWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(NWAViewerWindow)
        self.statusbar.setObjectName("statusbar")
        NWAViewerWindow.setStatusBar(self.statusbar)
        self.toolBar = QtGui.QToolBar(NWAViewerWindow)
        self.toolBar.setObjectName("toolBar")
        NWAViewerWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)

        self.retranslateUi(NWAViewerWindow)
        QtCore.QMetaObject.connectSlotsByName(NWAViewerWindow)
Пример #8
0
    def setupUi(self, CreateUdpClientForm):
        CreateUdpClientForm.setObjectName(_fromUtf8("CreateUdpClientForm"))
        CreateUdpClientForm.resize(344, 193)
        self.gridLayout = QtGui.QGridLayout(CreateUdpClientForm)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        spacerItem = QtGui.QSpacerItem(20, 29, QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem, 0, 0, 1, 1)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.label_2 = QtGui.QLabel(CreateUdpClientForm)
        self.label_2.setMaximumSize(QtCore.QSize(54, 16777215))
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.horizontalLayout_3.addWidget(self.label_2)
        self.ipCmbBox = QtGui.QComboBox(CreateUdpClientForm)
        self.ipCmbBox.setEditable(True)
        self.ipCmbBox.setObjectName(_fromUtf8("ipCmbBox"))
        self.horizontalLayout_3.addWidget(self.ipCmbBox)
        self.broadcastBtn = QtGui.QPushButton(CreateUdpClientForm)
        self.broadcastBtn.setMaximumSize(QtCore.QSize(75, 16777215))
        self.broadcastBtn.setObjectName(_fromUtf8("broadcastBtn"))
        self.horizontalLayout_3.addWidget(self.broadcastBtn)
        self.gridLayout.addLayout(self.horizontalLayout_3, 1, 0, 1, 2)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.label = QtGui.QLabel(CreateUdpClientForm)
        self.label.setMaximumSize(QtCore.QSize(54, 16777215))
        self.label.setObjectName(_fromUtf8("label"))
        self.horizontalLayout.addWidget(self.label)
        self.remotePortCmbBox = QtGui.QComboBox(CreateUdpClientForm)
        self.remotePortCmbBox.setEditable(True)
        self.remotePortCmbBox.setObjectName(_fromUtf8("remotePortCmbBox"))
        self.horizontalLayout.addWidget(self.remotePortCmbBox)
        self.gridLayout.addLayout(self.horizontalLayout, 2, 0, 1, 1)
        self.label_4 = QtGui.QLabel(CreateUdpClientForm)
        self.label_4.setMaximumSize(QtCore.QSize(75, 16777215))
        self.label_4.setText(_fromUtf8(""))
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.gridLayout.addWidget(self.label_4, 2, 1, 1, 1)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.label_3 = QtGui.QLabel(CreateUdpClientForm)
        self.label_3.setMaximumSize(QtCore.QSize(54, 16777215))
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.horizontalLayout_4.addWidget(self.label_3)
        self.localPortCmbBox = QtGui.QComboBox(CreateUdpClientForm)
        self.localPortCmbBox.setEditable(True)
        self.localPortCmbBox.setObjectName(_fromUtf8("localPortCmbBox"))
        self.horizontalLayout_4.addWidget(self.localPortCmbBox)
        self.sysPortCbx = QtGui.QCheckBox(CreateUdpClientForm)
        self.sysPortCbx.setMaximumSize(QtCore.QSize(75, 16777215))
        self.sysPortCbx.setObjectName(_fromUtf8("sysPortCbx"))
        self.horizontalLayout_4.addWidget(self.sysPortCbx)
        self.gridLayout.addLayout(self.horizontalLayout_4, 3, 0, 1, 2)
        spacerItem1 = QtGui.QSpacerItem(20, 29, QtGui.QSizePolicy.Minimum,
                                        QtGui.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem1, 4, 0, 1, 1)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        spacerItem2 = QtGui.QSpacerItem(68, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem2)
        self.okBtn = QtGui.QPushButton(CreateUdpClientForm)
        self.okBtn.setDefault(True)
        self.okBtn.setObjectName(_fromUtf8("okBtn"))
        self.horizontalLayout_2.addWidget(self.okBtn)
        self.cancelBtn = QtGui.QPushButton(CreateUdpClientForm)
        self.cancelBtn.setObjectName(_fromUtf8("cancelBtn"))
        self.horizontalLayout_2.addWidget(self.cancelBtn)
        self.gridLayout.addLayout(self.horizontalLayout_2, 5, 0, 1, 2)

        self.retranslateUi(CreateUdpClientForm)
        QtCore.QMetaObject.connectSlotsByName(CreateUdpClientForm)
Пример #9
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(629, 765)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.scrollArea = QtGui.QScrollArea(self.centralwidget)
        self.scrollArea.setMinimumSize(QtCore.QSize(0, 0))
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Verdana"))
        font.setPointSize(12)
        self.scrollArea.setFont(font)
        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, 611, 703))
        self.scrollAreaWidgetContents.setMinimumSize(QtCore.QSize(600, 700))
        self.scrollAreaWidgetContents.setObjectName(_fromUtf8("scrollAreaWidgetContents"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.scrollAreaWidgetContents)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.tabWidget = QtGui.QTabWidget(self.scrollAreaWidgetContents)
        self.tabWidget.setEnabled(True)
        self.tabWidget.setMinimumSize(QtCore.QSize(0, 0))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.tabWidget.setFont(font)
        self.tabWidget.setContextMenuPolicy(QtCore.Qt.NoContextMenu)
        self.tabWidget.setTabPosition(QtGui.QTabWidget.North)
        self.tabWidget.setTabShape(QtGui.QTabWidget.Rounded)
        self.tabWidget.setIconSize(QtCore.QSize(52, 64))
        self.tabWidget.setElideMode(QtCore.Qt.ElideNone)
        self.tabWidget.setTabsClosable(True)
        self.tabWidget.setMovable(False)
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.tab = QtGui.QWidget()
        self.tab.setObjectName(_fromUtf8("tab"))
        self.layoutWidget = QtGui.QWidget(self.tab)
        self.layoutWidget.setGeometry(QtCore.QRect(10, 10, 571, 631))
        self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.layoutWidget)
        self.verticalLayout_3.setMargin(10)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.groupBox_1 = QtGui.QGroupBox(self.layoutWidget)
        self.groupBox_1.setMinimumSize(QtCore.QSize(0, 0))
        self.groupBox_1.setAutoFillBackground(False)
        self.groupBox_1.setFlat(False)
        self.groupBox_1.setObjectName(_fromUtf8("groupBox_1"))
        self.plainTextEdit_seq = QtGui.QPlainTextEdit(self.groupBox_1)
        self.plainTextEdit_seq.setGeometry(QtCore.QRect(10, 30, 531, 150))
        self.plainTextEdit_seq.setInputMethodHints(QtCore.Qt.ImhNone)
        self.plainTextEdit_seq.setObjectName(_fromUtf8("plainTextEdit_seq"))
        self.layoutWidget_2 = QtGui.QWidget(self.groupBox_1)
        self.layoutWidget_2.setGeometry(QtCore.QRect(10, 180, 531, 59))
        self.layoutWidget_2.setObjectName(_fromUtf8("layoutWidget_2"))
        self.gridLayout_4 = QtGui.QGridLayout(self.layoutWidget_2)
        self.gridLayout_4.setContentsMargins(10, 5, 5, 5)
        self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
        self.label_1 = QtGui.QLabel(self.layoutWidget_2)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.label_1.setFont(font)
        self.label_1.setObjectName(_fromUtf8("label_1"))
        self.gridLayout_4.addWidget(self.label_1, 0, 0, 1, 1)
        self.line = QtGui.QFrame(self.layoutWidget_2)
        self.line.setFrameShape(QtGui.QFrame.HLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName(_fromUtf8("line"))
        self.gridLayout_4.addWidget(self.line, 1, 0, 1, 1)
        self.line_2 = QtGui.QFrame(self.layoutWidget_2)
        self.line_2.setFrameShape(QtGui.QFrame.HLine)
        self.line_2.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_2.setObjectName(_fromUtf8("line_2"))
        self.gridLayout_4.addWidget(self.line_2, 1, 1, 1, 1)
        self.pushButton_openDB = QtGui.QPushButton(self.layoutWidget_2)
        self.pushButton_openDB.setMaximumSize(QtCore.QSize(150, 40))
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/Icons/Filesystem-folder-grey-open-icon.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.pushButton_openDB.setIcon(icon)
        self.pushButton_openDB.setIconSize(QtCore.QSize(32, 32))
        self.pushButton_openDB.setObjectName(_fromUtf8("pushButton_openDB"))
        self.gridLayout_4.addWidget(self.pushButton_openDB, 0, 1, 1, 1)
        self.layoutWidget_4 = QtGui.QWidget(self.groupBox_1)
        self.layoutWidget_4.setGeometry(QtCore.QRect(10, 240, 531, 41))
        self.layoutWidget_4.setObjectName(_fromUtf8("layoutWidget_4"))
        self.gridLayout_5 = QtGui.QGridLayout(self.layoutWidget_4)
        self.gridLayout_5.setContentsMargins(10, 5, 5, 5)
        self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5"))
        self.label_2 = QtGui.QLabel(self.layoutWidget_4)
        self.label_2.setAlignment(QtCore.Qt.AlignBottom|QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout_5.addWidget(self.label_2, 1, 0, 1, 1)
        self.comboBox_db = QtGui.QComboBox(self.layoutWidget_4)
        self.comboBox_db.setMinimumSize(QtCore.QSize(230, 0))
        self.comboBox_db.setMaximumSize(QtCore.QSize(200, 16777215))
        self.comboBox_db.setObjectName(_fromUtf8("comboBox_db"))
        self.gridLayout_5.addWidget(self.comboBox_db, 1, 1, 1, 1)
        self.groupBox_2 = QtGui.QGroupBox(self.groupBox_1)
        self.groupBox_2.setGeometry(QtCore.QRect(10, 290, 271, 101))
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.gridLayoutWidget = QtGui.QWidget(self.groupBox_2)
        self.gridLayoutWidget.setGeometry(QtCore.QRect(12, 30, 241, 61))
        self.gridLayoutWidget.setObjectName(_fromUtf8("gridLayoutWidget"))
        self.gridLayout = QtGui.QGridLayout(self.gridLayoutWidget)
        self.gridLayout.setContentsMargins(10, 5, 5, 5)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.label_3 = QtGui.QLabel(self.gridLayoutWidget)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout.addWidget(self.label_3, 0, 0, 1, 1)
        self.comboBox_miss = QtGui.QComboBox(self.gridLayoutWidget)
        self.comboBox_miss.setMinimumSize(QtCore.QSize(70, 0))
        self.comboBox_miss.setMaximumSize(QtCore.QSize(70, 16777215))
        self.comboBox_miss.setObjectName(_fromUtf8("comboBox_miss"))
        self.comboBox_miss.addItem(_fromUtf8(""))
        self.comboBox_miss.addItem(_fromUtf8(""))
        self.comboBox_miss.addItem(_fromUtf8(""))
        self.comboBox_miss.addItem(_fromUtf8(""))
        self.gridLayout.addWidget(self.comboBox_miss, 1, 1, 1, 1)
        self.label_4 = QtGui.QLabel(self.gridLayoutWidget)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.gridLayout.addWidget(self.label_4, 1, 0, 1, 1)
        self.spinBox_size = QtGui.QSpinBox(self.gridLayoutWidget)
        self.spinBox_size.setMinimumSize(QtCore.QSize(70, 0))
        self.spinBox_size.setMaximumSize(QtCore.QSize(70, 16777215))
        self.spinBox_size.setMinimum(1)
        self.spinBox_size.setProperty("value", 21)
        self.spinBox_size.setObjectName(_fromUtf8("spinBox_size"))
        self.gridLayout.addWidget(self.spinBox_size, 0, 1, 1, 1)
        self.groupBox_3 = QtGui.QGroupBox(self.groupBox_1)
        self.groupBox_3.setGeometry(QtCore.QRect(10, 400, 361, 201))
        self.groupBox_3.setObjectName(_fromUtf8("groupBox_3"))
        self.gridLayoutWidget_2 = QtGui.QWidget(self.groupBox_3)
        self.gridLayoutWidget_2.setGeometry(QtCore.QRect(12, 30, 331, 161))
        self.gridLayoutWidget_2.setObjectName(_fromUtf8("gridLayoutWidget_2"))
        self.gridLayout_2 = QtGui.QGridLayout(self.gridLayoutWidget_2)
        self.gridLayout_2.setContentsMargins(10, 5, 5, 5)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.spinBox_xmer = QtGui.QSpinBox(self.gridLayoutWidget_2)
        self.spinBox_xmer.setMinimumSize(QtCore.QSize(70, 0))
        self.spinBox_xmer.setMaximumSize(QtCore.QSize(70, 16777215))
        self.spinBox_xmer.setMinimum(1)
        self.spinBox_xmer.setMaximum(1000)
        self.spinBox_xmer.setProperty("value", 8)
        self.spinBox_xmer.setObjectName(_fromUtf8("spinBox_xmer"))
        self.gridLayout_2.addWidget(self.spinBox_xmer, 6, 1, 1, 1)
        self.label_5 = QtGui.QLabel(self.gridLayoutWidget_2)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.gridLayout_2.addWidget(self.label_5, 6, 0, 1, 1)
        self.doubleSpinBox_access = QtGui.QDoubleSpinBox(self.gridLayoutWidget_2)
        self.doubleSpinBox_access.setMinimumSize(QtCore.QSize(70, 0))
        self.doubleSpinBox_access.setMaximumSize(QtCore.QSize(70, 16777215))
        self.doubleSpinBox_access.setMaximum(1.0)
        self.doubleSpinBox_access.setSingleStep(0.01)
        self.doubleSpinBox_access.setProperty("value", 0.1)
        self.doubleSpinBox_access.setObjectName(_fromUtf8("doubleSpinBox_access"))
        self.gridLayout_2.addWidget(self.doubleSpinBox_access, 4, 1, 1, 1)
        self.checkBox_end = QtGui.QCheckBox(self.gridLayoutWidget_2)
        self.checkBox_end.setChecked(True)
        self.checkBox_end.setObjectName(_fromUtf8("checkBox_end"))
        self.gridLayout_2.addWidget(self.checkBox_end, 2, 0, 1, 1)
        self.checkBox_access = QtGui.QCheckBox(self.gridLayoutWidget_2)
        self.checkBox_access.setChecked(True)
        self.checkBox_access.setObjectName(_fromUtf8("checkBox_access"))
        self.gridLayout_2.addWidget(self.checkBox_access, 4, 0, 1, 1)
        self.doubleSpinBox_end = QtGui.QDoubleSpinBox(self.gridLayoutWidget_2)
        self.doubleSpinBox_end.setMinimumSize(QtCore.QSize(70, 0))
        self.doubleSpinBox_end.setMaximumSize(QtCore.QSize(70, 16777215))
        self.doubleSpinBox_end.setMaximum(100.0)
        self.doubleSpinBox_end.setSingleStep(0.01)
        self.doubleSpinBox_end.setProperty("value", 1.0)
        self.doubleSpinBox_end.setObjectName(_fromUtf8("doubleSpinBox_end"))
        self.gridLayout_2.addWidget(self.doubleSpinBox_end, 2, 1, 1, 1)
        self.checkBox_strand = QtGui.QCheckBox(self.gridLayoutWidget_2)
        self.checkBox_strand.setChecked(True)
        self.checkBox_strand.setObjectName(_fromUtf8("checkBox_strand"))
        self.gridLayout_2.addWidget(self.checkBox_strand, 1, 0, 1, 1)
        self.checkBox_terminal = QtGui.QCheckBox(self.gridLayoutWidget_2)
        self.checkBox_terminal.setChecked(True)
        self.checkBox_terminal.setObjectName(_fromUtf8("checkBox_terminal"))
        self.gridLayout_2.addWidget(self.checkBox_terminal, 0, 0, 1, 1)
        self.pushButton_run = QtGui.QPushButton(self.groupBox_1)
        self.pushButton_run.setGeometry(QtCore.QRect(350, 320, 120, 60))
        self.pushButton_run.setMinimumSize(QtCore.QSize(120, 60))
        self.pushButton_run.setMaximumSize(QtCore.QSize(120, 60))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_run.setFont(font)
        self.pushButton_run.setObjectName(_fromUtf8("pushButton_run"))
        self.pushButton_default = QtGui.QPushButton(self.groupBox_1)
        self.pushButton_default.setGeometry(QtCore.QRect(430, 570, 101, 31))
        font = QtGui.QFont()
        font.setPointSize(8)
        self.pushButton_default.setFont(font)
        self.pushButton_default.setObjectName(_fromUtf8("pushButton_default"))
        self.verticalLayout_3.addWidget(self.groupBox_1)
        self.tabWidget.addTab(self.tab, _fromUtf8(""))
        self.tab_4 = QtGui.QWidget()
        self.tab_4.setObjectName(_fromUtf8("tab_4"))
        self.groupBox_7 = QtGui.QGroupBox(self.tab_4)
        self.groupBox_7.setGeometry(QtCore.QRect(10, 10, 511, 381))
        self.groupBox_7.setObjectName(_fromUtf8("groupBox_7"))
        self.gridLayoutWidget_3 = QtGui.QWidget(self.groupBox_7)
        self.gridLayoutWidget_3.setGeometry(QtCore.QRect(9, 19, 491, 351))
        self.gridLayoutWidget_3.setObjectName(_fromUtf8("gridLayoutWidget_3"))
        self.gridLayout_3 = QtGui.QGridLayout(self.gridLayoutWidget_3)
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridLayout_3.addItem(spacerItem, 0, 0, 1, 1)
        self.commandLinkButton_remove = QtGui.QCommandLinkButton(self.gridLayoutWidget_3)
        self.commandLinkButton_remove.setMinimumSize(QtCore.QSize(0, 50))
        self.commandLinkButton_remove.setMaximumSize(QtCore.QSize(200, 50))
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/Images/Images/remove.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.commandLinkButton_remove.setIcon(icon1)
        self.commandLinkButton_remove.setIconSize(QtCore.QSize(32, 32))
        self.commandLinkButton_remove.setObjectName(_fromUtf8("commandLinkButton_remove"))
        self.gridLayout_3.addWidget(self.commandLinkButton_remove, 4, 0, 1, 1)
        self.commandLinkButton_add = QtGui.QCommandLinkButton(self.gridLayoutWidget_3)
        self.commandLinkButton_add.setMinimumSize(QtCore.QSize(0, 50))
        self.commandLinkButton_add.setMaximumSize(QtCore.QSize(200, 50))
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(_fromUtf8(":/Images/Images/add.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.commandLinkButton_add.setIcon(icon2)
        self.commandLinkButton_add.setIconSize(QtCore.QSize(32, 32))
        self.commandLinkButton_add.setObjectName(_fromUtf8("commandLinkButton_add"))
        self.gridLayout_3.addWidget(self.commandLinkButton_add, 3, 0, 1, 1)
        self.tableWidget = QtGui.QTableWidget(self.gridLayoutWidget_3)
        self.tableWidget.setColumnCount(3)
        self.tableWidget.setObjectName(_fromUtf8("tableWidget"))
        self.tableWidget.setRowCount(0)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(2, item)
        self.tableWidget.horizontalHeader().setDefaultSectionSize(150)
        self.gridLayout_3.addWidget(self.tableWidget, 1, 0, 1, 1)
        self.tabWidget.addTab(self.tab_4, _fromUtf8(""))
        self.verticalLayout_2.addWidget(self.tabWidget)
        self.scrollArea.setWidget(self.scrollAreaWidgetContents)
        self.verticalLayout.addWidget(self.scrollArea)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 629, 24))
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Verdana"))
        font.setPointSize(11)
        self.menubar.setFont(font)
        self.menubar.setObjectName(_fromUtf8("menubar"))
        self.menuHelp = QtGui.QMenu(self.menubar)
        self.menuHelp.setObjectName(_fromUtf8("menuHelp"))
        self.menuAbout = QtGui.QMenu(self.menubar)
        self.menuAbout.setObjectName(_fromUtf8("menuAbout"))
        self.menuSequences = QtGui.QMenu(self.menubar)
        self.menuSequences.setObjectName(_fromUtf8("menuSequences"))
        self.menuSwitch_mode = QtGui.QMenu(self.menuSequences)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Verdana"))
        font.setPointSize(11)
        self.menuSwitch_mode.setFont(font)
        self.menuSwitch_mode.setObjectName(_fromUtf8("menuSwitch_mode"))
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)
        self.actionAbout = QtGui.QAction(MainWindow)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Verdana"))
        font.setPointSize(11)
        self.actionAbout.setFont(font)
        self.actionAbout.setObjectName(_fromUtf8("actionAbout"))
        self.actionDocumentation = QtGui.QAction(MainWindow)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Verdana"))
        font.setPointSize(11)
        self.actionDocumentation.setFont(font)
        self.actionDocumentation.setObjectName(_fromUtf8("actionDocumentation"))
        self.actionConvert_Fasta_Excel = QtGui.QAction(MainWindow)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Verdana"))
        font.setPointSize(11)
        self.actionConvert_Fasta_Excel.setFont(font)
        self.actionConvert_Fasta_Excel.setObjectName(_fromUtf8("actionConvert_Fasta_Excel"))
        self.actionOff_target_prediction = QtGui.QAction(MainWindow)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Verdana"))
        font.setPointSize(11)
        self.actionOff_target_prediction.setFont(font)
        self.actionOff_target_prediction.setObjectName(_fromUtf8("actionOff_target_prediction"))
        self.actionRNAi_design_Primer3 = QtGui.QAction(MainWindow)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Verdana"))
        font.setPointSize(11)
        self.actionRNAi_design_Primer3.setFont(font)
        self.actionRNAi_design_Primer3.setObjectName(_fromUtf8("actionRNAi_design_Primer3"))
        self.actionRNAi_design = QtGui.QAction(MainWindow)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Verdana"))
        font.setPointSize(11)
        self.actionRNAi_design.setFont(font)
        self.actionRNAi_design.setObjectName(_fromUtf8("actionRNAi_design"))
        self.actionOff_target_prediction_2 = QtGui.QAction(MainWindow)
        self.actionOff_target_prediction_2.setObjectName(_fromUtf8("actionOff_target_prediction_2"))
        self.menuHelp.addAction(self.actionDocumentation)
        self.menuAbout.addAction(self.actionAbout)
        self.menuSwitch_mode.addAction(self.actionRNAi_design)
        self.menuSwitch_mode.addAction(self.actionOff_target_prediction_2)
        self.menuSequences.addAction(self.menuSwitch_mode.menuAction())
        self.menuSequences.addSeparator()
        self.menubar.addAction(self.menuSequences.menuAction())
        self.menubar.addAction(self.menuHelp.menuAction())
        self.menubar.addAction(self.menuAbout.menuAction())

        self.retranslateUi(MainWindow)
        self.tabWidget.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
Пример #10
0
    def setupUi(self, Dialog):
        Dialog.setObjectName(_fromUtf8("Dialog"))
        Dialog.resize(445, 301)
        self.verticalLayout = QtGui.QVBoxLayout(Dialog)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.groupBox = QtGui.QGroupBox(Dialog)
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.gridLayout = QtGui.QGridLayout(self.groupBox)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.label_5 = QtGui.QLabel(self.groupBox)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.gridLayout.addWidget(self.label_5, 1, 0, 1, 1)
        self.label_2 = QtGui.QLabel(self.groupBox)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout.addWidget(self.label_2, 0, 0, 1, 1)
        self.limit = QtGui.QSpinBox(self.groupBox)
        self.limit.setMaximumSize(QtCore.QSize(60, 16777215))
        self.limit.setMinimum(1)
        self.limit.setMaximum(99999)
        self.limit.setObjectName(_fromUtf8("limit"))
        self.gridLayout.addWidget(self.limit, 1, 1, 1, 1)
        self.label = QtGui.QLabel(self.groupBox)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout.addWidget(self.label, 1, 2, 1, 1)
        self.search = QtGui.QLineEdit(self.groupBox)
        self.search.setObjectName(_fromUtf8("search"))
        self.gridLayout.addWidget(self.search, 0, 1, 1, 4)
        self.order = QtGui.QComboBox(self.groupBox)
        self.order.setObjectName(_fromUtf8("order"))
        self.gridLayout.addWidget(self.order, 1, 3, 1, 2)
        self.verticalLayout.addWidget(self.groupBox)
        self.groupBox_2 = QtGui.QGroupBox(Dialog)
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.gridLayout_2 = QtGui.QGridLayout(self.groupBox_2)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.resched = QtGui.QCheckBox(self.groupBox_2)
        self.resched.setChecked(True)
        self.resched.setObjectName(_fromUtf8("resched"))
        self.gridLayout_2.addWidget(self.resched, 0, 0, 1, 2)
        self.stepsOn = QtGui.QCheckBox(self.groupBox_2)
        self.stepsOn.setObjectName(_fromUtf8("stepsOn"))
        self.gridLayout_2.addWidget(self.stepsOn, 1, 0, 1, 1)
        self.steps = QtGui.QLineEdit(self.groupBox_2)
        self.steps.setEnabled(False)
        self.steps.setObjectName(_fromUtf8("steps"))
        self.gridLayout_2.addWidget(self.steps, 1, 1, 1, 1)
        self.verticalLayout.addWidget(self.groupBox_2)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem)
        self.buttonBox = QtGui.QDialogButtonBox(Dialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel
                                          | QtGui.QDialogButtonBox.Help)
        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.QObject.connect(self.stepsOn,
                               QtCore.SIGNAL(_fromUtf8("toggled(bool)")),
                               self.steps.setEnabled)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
        Dialog.setTabOrder(self.search, self.limit)
        Dialog.setTabOrder(self.limit, self.order)
        Dialog.setTabOrder(self.order, self.resched)
        Dialog.setTabOrder(self.resched, self.stepsOn)
        Dialog.setTabOrder(self.stepsOn, self.steps)
        Dialog.setTabOrder(self.steps, self.buttonBox)
Пример #11
0
    def initTabOneWidget(self):
        #loginWidget
        self.loginWidget = QtGui.QWidget(self.widgetScrollArea)
        self.loginWidget.show()
        self.label = QtGui.QLabel(self.loginWidget)
        self.label.setText(u"登录:")
        self.label.setGeometry(30, 10, 50, 30)
        self.label.show()
        self.first = QtGui.QCheckBox(self.loginWidget)
        self.first.setFocusPolicy(Qt.NoFocus)
        self.first.setText(u"开机时自动启动QQ")
        self.first.setGeometry(100, 10, 300, 30)
        self.first.show()
        self.second = QtGui.QCheckBox(self.loginWidget)
        self.second.setFocusPolicy(Qt.NoFocus)
        self.second.setText("login when starting QQ")
        self.second.setGeometry(100, 40, 300, 30)
        self.second.show()
        self.third = QtGui.QCheckBox(self.loginWidget)
        self.third.setFocusPolicy(Qt.NoFocus)
        self.third.setChecked(True)
        self.third.setText("open the tips always")
        self.third.setGeometry(100, 70, 300, 30)
        self.third.show()
        self.forth = QtGui.QCheckBox(self.loginWidget)
        self.forth.setFocusPolicy(Qt.NoFocus)
        self.forth.setText("open the previous session when logining")
        self.forth.setGeometry(100, 100, 300, 30)
        self.forth.show()
        self.five = QtGui.QCheckBox(self.loginWidget)
        self.five.setFocusPolicy(Qt.NoFocus)
        self.five.setText("open the tips always")
        self.five.setGeometry(100, 130, 300, 30)
        self.five.show()
        self.sixth = QtGui.QCheckBox(self.loginWidget)
        self.sixth.setFocusPolicy(Qt.NoFocus)
        self.sixth.setChecked(True)
        self.sixth.setText("start phone qq when leaving")
        self.sixth.setGeometry(100, 160, 300, 30)
        self.sixth.show()
        self.seventh = QtGui.QCheckBox(self.loginWidget)
        self.seventh.setFocusPolicy(Qt.NoFocus)
        self.seventh.setChecked(True)
        self.seventh.setText("diskplay the waiting tips when logining")
        self.seventh.setGeometry(100, 190, 300, 30)
        self.seventh.show()
        self.loginWidget.setGeometry(0, 0, 555, 220)
        #panelWidget
        self.panelWidget = QtGui.QWidget(self.widgetScrollArea)
        self.panelWidget.show()
        self.plabel = QtGui.QLabel(self.panelWidget)
        self.plabel.setText("mainpanel:")
        self.plabel.setGeometry(30, 10, 50, 30)
        self.plabel.show()
        self.pfirst = QtGui.QCheckBox(self.panelWidget)
        self.pfirst.setChecked(True)
        self.pfirst.setFocusPolicy(Qt.NoFocus)
        self.pfirst.setText("stays on top always")
        self.pfirst.setGeometry(100, 10, 300, 30)
        self.pfirst.show()
        self.psecond = QtGui.QCheckBox(self.panelWidget)
        self.psecond.setChecked(True)
        self.psecond.setFocusPolicy(Qt.NoFocus)
        self.psecond.setText("hide when  skiming the edge of desktop")
        self.psecond.setGeometry(100, 40, 300, 30)
        self.psecond.show()
        self.pthird = QtGui.QCheckBox(self.panelWidget)
        self.pthird.setFocusPolicy(Qt.NoFocus)
        self.pthird.setChecked(True)
        self.pthird.setText("display the icon of qq at the taskbar")
        self.pthird.setGeometry(100, 70, 300, 30)
        self.pthird.show()
        self.pforth = QtGui.QLabel(self.panelWidget)
        self.pforth.setText("when closing the mainpanel:")
        self.pforth.setGeometry(100, 100, 300, 30)
        self.pforth.show()
        self.hideRadio = QtGui.QRadioButton(self.panelWidget)
        self.hideRadio.setFocusPolicy(Qt.NoFocus)
        self.hideRadio.setText("hide at the taskbar and do not exit")
        self.hideRadio.setGeometry(120, 130, 300, 30)
        self.hideRadio.show()
        self.exitRadio = QtGui.QRadioButton(self.panelWidget)
        self.exitRadio.setFocusPolicy(Qt.NoFocus)
        self.exitRadio.setChecked(True)
        self.exitRadio.setText("exit the program")
        self.exitRadio.setGeometry(120, 160, 300, 30)
        self.exitRadio.show()
        self.panelWidget.setGeometry(0, 220, 555, 190)
        #statusWidget
        self.statusWidget = QtGui.QWidget(self.widgetScrollArea)
        self.statusWidget.show()
        self.slabel = QtGui.QLabel(self.statusWidget)
        self.slabel.setText(("status:"))
        self.slabel.setGeometry(30, 10, 50, 30)
        self.slabel.show()
        self.slabelsecond = QtGui.QLabel(self.statusWidget)
        self.slabelsecond.setText(("the status of logining:"))
        self.slabelsecond.setGeometry(100, 10, 150, 30)
        self.slabelsecond.show()
        self.combox = QtGui.QComboBox(self.statusWidget)
        self.combox.setFocusPolicy(Qt.NoFocus)
        self.combox.addItems(QStringList() << ("hide") << ("oneline") <<
                             ("busy") << ("leave"))
        self.combox.setGeometry(200, 12, 80, 24)
        self.combox.show()
        self.ssecond = QtGui.QCheckBox(self.statusWidget)
        self.ssecond.setChecked(True)
        self.ssecond.setFocusPolicy(Qt.NoFocus)
        self.ssecond.setText(
            ("switch to busy when running the program of fullscreen"))
        self.ssecond.setGeometry(100, 40, 300, 30)
        self.ssecond.show()
        self.sthird = QtGui.QCheckBox(self.statusWidget)
        self.sthird.setFocusPolicy(Qt.NoFocus)
        self.sthird.setChecked(True)
        self.sthird.setText(("auto replay when leaving or busy"))
        self.sthird.setGeometry(100, 70, 300, 30)
        self.sthird.show()
        self.sforth = QtGui.QCheckBox(self.statusWidget)
        self.sforth.setFocusPolicy(Qt.NoFocus)
        self.sforth.setText(("lock the qq when do not moving"))
        self.sforth.setGeometry(100, 100, 300, 30)
        self.sforth.show()
        self.statusWidget.setGeometry(0, 410, 555, 130)
        #sessionWidget
        self.sessionWidget = QtGui.QWidget(self.widgetScrollArea)
        self.sessionWidget.show()
        self.elabel = QtGui.QLabel(self.sessionWidget)
        self.elabel.setText(("session:"))
        self.elabel.setGeometry(30, 10, 50, 30)
        self.elabel.show()
        self.efirst = QtGui.QCheckBox(self.sessionWidget)
        self.efirst.setChecked(True)
        self.efirst.setFocusPolicy(Qt.NoFocus)
        self.efirst.setText(("use colourful bubble to chat"))
        self.efirst.setGeometry(100, 10, 300, 30)
        self.efirst.show()
        self.esecond = QtGui.QCheckBox(self.sessionWidget)
        self.esecond.setChecked(True)
        self.esecond.setFocusPolicy(Qt.NoFocus)
        self.esecond.setText(("do not dispaly ad"))
        self.esecond.setGeometry(100, 40, 300, 30)
        self.esecond.show()
        self.ethird = QtGui.QCheckBox(self.sessionWidget)
        self.ethird.setFocusPolicy(Qt.NoFocus)
        self.ethird.setText(("auto pop the panel when having massage"))
        self.ethird.setGeometry(100, 70, 300, 30)
        self.ethird.show()
        self.eforth = QtGui.QCheckBox(self.sessionWidget)
        self.eforth.setChecked(True)
        self.eforth.setFocusPolicy(Qt.NoFocus)
        self.eforth.setText(("use autorun magic and supper expression"))
        self.eforth.setGeometry(100, 100, 300, 30)
        self.eforth.show()
        self.efive = QtGui.QCheckBox(self.sessionWidget)
        self.efive.setChecked(True)
        self.efive.setFocusPolicy(Qt.NoFocus)
        self.efive.setText(("use moving feeling to char"))
        self.efive.setGeometry(100, 130, 300, 30)
        self.efive.show()
        self.esixth = QtGui.QCheckBox(self.sessionWidget)
        self.esixth.setFocusPolicy(Qt.NoFocus)
        self.esixth.setChecked(True)
        self.esixth.setText(("display the window of char at the sidebar"))
        self.esixth.setGeometry(100, 160, 300, 30)
        self.esixth.show()
        self.eseventh = QtGui.QCheckBox(self.sessionWidget)
        self.eseventh.setFocusPolicy(Qt.NoFocus)
        self.eseventh.setChecked(True)
        self.eseventh.setText(("allow the moving window"))
        self.eseventh.setGeometry(100, 190, 300, 30)
        self.eseventh.show()
        self.eeighth = QtGui.QCheckBox(self.sessionWidget)
        self.eeighth.setFocusPolicy(Qt.NoFocus)
        self.eeighth.setChecked(True)
        self.eeighth.setText(("dispaly search tips"))
        self.eeighth.setGeometry(100, 210, 300, 30)
        self.eeighth.show()
        self.enineth = QtGui.QCheckBox(self.sessionWidget)
        self.enineth.setFocusPolicy(Qt.NoFocus)
        self.enineth.setChecked(True)
        self.enineth.setText(("dispaly the history information"))
        self.enineth.setGeometry(100, 240, 300, 30)
        self.enineth.show()
        self.etenth = QtGui.QCheckBox(self.sessionWidget)
        self.etenth.setFocusPolicy(Qt.NoFocus)
        self.etenth.setChecked(True)
        self.etenth.setText(("combine the session window"))
        self.etenth.setGeometry(100, 270, 300, 30)
        self.etenth.show()
        self.sessionWidget.setGeometry(0, 540, 555, 300 + 127)

        self.widgetScrollArea.resize(555, 840 + 127)
Пример #12
0
    def setupUi(self, loop_widget):
        loop_widget.setObjectName(_fromUtf8("loop_widget"))
        loop_widget.resize(811, 318)
        self.gridLayout = QtGui.QGridLayout(loop_widget)
        self.gridLayout.setMargin(0)
        self.gridLayout.setVerticalSpacing(8)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.widget_buttons = QtGui.QWidget(loop_widget)
        self.widget_buttons.setObjectName(_fromUtf8("widget_buttons"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.widget_buttons)
        self.horizontalLayout.setMargin(0)
        self.horizontalLayout.setMargin(0)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.button_add_cyclevar = QtGui.QPushButton(self.widget_buttons)
        self.button_add_cyclevar.setIconSize(QtCore.QSize(16, 16))
        self.button_add_cyclevar.setObjectName(_fromUtf8("button_add_cyclevar"))
        self.horizontalLayout.addWidget(self.button_add_cyclevar)
        self.button_rename_cyclevar = QtGui.QPushButton(self.widget_buttons)
        self.button_rename_cyclevar.setIconSize(QtCore.QSize(16, 16))
        self.button_rename_cyclevar.setObjectName(_fromUtf8("button_rename_cyclevar"))
        self.horizontalLayout.addWidget(self.button_rename_cyclevar)
        self.button_remove_cyclevar = QtGui.QPushButton(self.widget_buttons)
        self.button_remove_cyclevar.setIconSize(QtCore.QSize(16, 16))
        self.button_remove_cyclevar.setObjectName(_fromUtf8("button_remove_cyclevar"))
        self.horizontalLayout.addWidget(self.button_remove_cyclevar)
        self.button_apply_weights = QtGui.QPushButton(self.widget_buttons)
        self.button_apply_weights.setObjectName(_fromUtf8("button_apply_weights"))
        self.horizontalLayout.addWidget(self.button_apply_weights)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.button_wizard = QtGui.QPushButton(self.widget_buttons)
        self.button_wizard.setIconSize(QtCore.QSize(16, 16))
        self.button_wizard.setObjectName(_fromUtf8("button_wizard"))
        self.horizontalLayout.addWidget(self.button_wizard)
        self.gridLayout.addWidget(self.widget_buttons, 6, 0, 1, 1)
        self.frame = QtGui.QFrame(loop_widget)
        self.frame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame.setFrameShadow(QtGui.QFrame.Raised)
        self.frame.setObjectName(_fromUtf8("frame"))
        self.verticalLayout = QtGui.QVBoxLayout(self.frame)
        self.verticalLayout.setMargin(4)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.checkbox_advanced = QtGui.QCheckBox(self.frame)
        self.checkbox_advanced.setObjectName(_fromUtf8("checkbox_advanced"))
        self.verticalLayout.addWidget(self.checkbox_advanced)
        self.widget_advanced = QtGui.QWidget(self.frame)
        self.widget_advanced.setObjectName(_fromUtf8("widget_advanced"))
        self.gridLayout_3 = QtGui.QGridLayout(self.widget_advanced)
        self.gridLayout_3.setMargin(0)
        self.gridLayout_3.setMargin(0)
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.spin_skip = QtGui.QSpinBox(self.widget_advanced)
        self.spin_skip.setMaximum(10000)
        self.spin_skip.setObjectName(_fromUtf8("spin_skip"))
        self.gridLayout_3.addWidget(self.spin_skip, 1, 1, 1, 1)
        self.label_skip = QtGui.QLabel(self.widget_advanced)
        self.label_skip.setObjectName(_fromUtf8("label_skip"))
        self.gridLayout_3.addWidget(self.label_skip, 1, 0, 1, 1)
        self.label = QtGui.QLabel(self.widget_advanced)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout_3.addWidget(self.label, 0, 0, 1, 1)
        self.edit_break_if = QtGui.QLineEdit(self.widget_advanced)
        self.edit_break_if.setObjectName(_fromUtf8("edit_break_if"))
        self.gridLayout_3.addWidget(self.edit_break_if, 0, 1, 1, 1)
        self.checkbox_offset = QtGui.QCheckBox(self.widget_advanced)
        self.checkbox_offset.setObjectName(_fromUtf8("checkbox_offset"))
        self.gridLayout_3.addWidget(self.checkbox_offset, 2, 0, 1, 2)
        self.verticalLayout.addWidget(self.widget_advanced)
        self.gridLayout.addWidget(self.frame, 2, 0, 1, 1)
        self.widget_options = QtGui.QWidget(loop_widget)
        self.widget_options.setObjectName(_fromUtf8("widget_options"))
        self.gridLayout_2 = QtGui.QGridLayout(self.widget_options)
        self.gridLayout_2.setMargin(0)
        self.gridLayout_2.setMargin(0)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.label_item = QtGui.QLabel(self.widget_options)
        self.label_item.setObjectName(_fromUtf8("label_item"))
        self.gridLayout_2.addWidget(self.label_item, 0, 0, 1, 1)
        self.combobox_item = QtGui.QComboBox(self.widget_options)
        self.combobox_item.setObjectName(_fromUtf8("combobox_item"))
        self.gridLayout_2.addWidget(self.combobox_item, 0, 1, 1, 1)
        self.label_cycles = QtGui.QLabel(self.widget_options)
        self.label_cycles.setObjectName(_fromUtf8("label_cycles"))
        self.gridLayout_2.addWidget(self.label_cycles, 3, 0, 1, 1)
        self.combobox_order = QtGui.QComboBox(self.widget_options)
        self.combobox_order.setObjectName(_fromUtf8("combobox_order"))
        self.combobox_order.addItem(_fromUtf8(""))
        self.combobox_order.setItemText(0, _fromUtf8("random"))
        self.combobox_order.addItem(_fromUtf8(""))
        self.combobox_order.setItemText(1, _fromUtf8("sequential"))
        self.gridLayout_2.addWidget(self.combobox_order, 0, 3, 1, 1)
        self.label_order = QtGui.QLabel(self.widget_options)
        self.label_order.setObjectName(_fromUtf8("label_order"))
        self.gridLayout_2.addWidget(self.label_order, 0, 2, 1, 1)
        self.spin_cycles = QtGui.QSpinBox(self.widget_options)
        self.spin_cycles.setMaximum(10000000)
        self.spin_cycles.setObjectName(_fromUtf8("spin_cycles"))
        self.gridLayout_2.addWidget(self.spin_cycles, 3, 1, 1, 1)
        self.label_repeat = QtGui.QLabel(self.widget_options)
        self.label_repeat.setObjectName(_fromUtf8("label_repeat"))
        self.gridLayout_2.addWidget(self.label_repeat, 3, 2, 1, 1)
        self.spin_repeat = QtGui.QDoubleSpinBox(self.widget_options)
        self.spin_repeat.setMaximum(100000.0)
        self.spin_repeat.setObjectName(_fromUtf8("spin_repeat"))
        self.gridLayout_2.addWidget(self.spin_repeat, 3, 3, 1, 1)
        self.gridLayout.addWidget(self.widget_options, 0, 0, 1, 1)
        self.frame_summary = QtGui.QFrame(loop_widget)
        self.frame_summary.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_summary.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_summary.setObjectName(_fromUtf8("frame_summary"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.frame_summary)
        self.horizontalLayout_2.setMargin(4)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.label_info = QtGui.QLabel(self.frame_summary)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_info.sizePolicy().hasHeightForWidth())
        self.label_info.setSizePolicy(sizePolicy)
        self.label_info.setObjectName(_fromUtf8("label_info"))
        self.horizontalLayout_2.addWidget(self.label_info)
        self.label_summary = QtGui.QLabel(self.frame_summary)
        self.label_summary.setObjectName(_fromUtf8("label_summary"))
        self.horizontalLayout_2.addWidget(self.label_summary)
        self.gridLayout.addWidget(self.frame_summary, 1, 0, 1, 1)

        self.retranslateUi(loop_widget)
        QtCore.QObject.connect(self.checkbox_advanced, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.widget_advanced.setVisible)
        QtCore.QMetaObject.connectSlotsByName(loop_widget)
Пример #13
0
    def setupUi(self):

        self.setWindowFlags(QtCore.Qt.Window)
        self.resize(500, 400)
        self.verticalLayout = QtGui.QVBoxLayout(self)

        gb = QtGui.QGroupBox("Files options", self)
        hl = QtGui.QHBoxLayout()
        hl.addWidget(QtGui.QLabel("Working on:", self))
        self.lineEdit = QtGui.QLineEdit(self)
        self.lineEdit.setReadOnly(True)
        hl.addWidget(self.lineEdit)
        gb.setLayout(hl)
        self.verticalLayout.addWidget(gb)

        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem)

        gb_2 = QtGui.QGroupBox("Algorithms parameters", self)
        h = QtGui.QHBoxLayout()
        f = QtGui.QFormLayout()
        self.lineEdit_2 = QtGui.QDoubleSpinBox(self)
        self.lineEdit_3 = QtGui.QSpinBox(self)
        self.lineEdit_4 = QtGui.QLineEdit(self)
        self.lineEdit_5 = QtGui.QCheckBox('keep Bad Peak', self)
        self.lineEdit_6 = QtGui.QCheckBox('resolve conflicts', self)
        self.spinBox = QtGui.QSpinBox(self)
        self.decrOrder = QtGui.QCheckBox('Monotonic IC', self)
        self.decrOrder.setToolTip("""the algorithm if checked will find only 
                                    peaks belonging the the isotopic cluster
                                    with a height inferior to the original peak"""
                                  )
        self.posmode = QtGui.QRadioButton('positive mode', self)
        self.posmode.setChecked(True)
        self.negmode = QtGui.QRadioButton('negative mode', self)

        #self.check = QtGui.QCheckBox("use correlation...", self)
        f.addRow("rt drift", self.lineEdit_2)
        f.addRow("isocluster length", self.lineEdit_3)
        f.addRow("gap", self.spinBox)
        #f.addRow(self.check, QtGui.QLabel(""))
        f.addRow(self.posmode, self.negmode)

        h.addLayout(f)
        f_2 = QtGui.QFormLayout()
        f_2.addRow(self.decrOrder, QtGui.QLabel(""))
        f_2.addRow("idms length", self.lineEdit_4)
        f_2.addRow(self.lineEdit_6, self.lineEdit_5)
        #f_2.addRow('resolve conflicts', self.lineEdit_6)

        h.addLayout(f_2)
        gb_2.setLayout(h)

        self.verticalLayout.addWidget(gb_2)

        h = QtGui.QHBoxLayout()
        self.adductsTable = QtGui.QTableView(self)
        self.adductsTable.horizontalHeader().setStretchLastSection(True)

        h.addWidget(self.adductsTable)
        self.fragTable = QtGui.QTableView(self)
        self.fragTable.horizontalHeader().setStretchLastSection(True)
        h.addWidget(self.fragTable)
        self.verticalLayout.addLayout(h)

        h2 = QtGui.QHBoxLayout()
        self.checkAllAdds = QtGui.QPushButton("Check all adducts")
        self.checkAllFrags = QtGui.QPushButton("Check all fragments")
        h2.addWidget(self.checkAllAdds)
        h2.addWidget(self.checkAllFrags)
        self.verticalLayout.addLayout(h2)

        self.buttonBox = QtGui.QDialogButtonBox(self)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel
                                          | QtGui.QDialogButtonBox.Ok)
        self.verticalLayout.addWidget(self.buttonBox)
Пример #14
0
    def setupUi(self, inputsDialog):
        inputsDialog.setObjectName(_fromUtf8("inputsDialog"))
        inputsDialog.resize(620, 390)
        inputsDialog.setMinimumSize(QtCore.QSize(620, 390))
        self.sponsorLabel = QtGui.QLabel(inputsDialog)
        self.sponsorLabel.setGeometry(QtCore.QRect(20, 10, 151, 351))
        self.sponsorLabel.setText(_fromUtf8(""))
        self.sponsorLabel.setPixmap(
            QtGui.QPixmap(
                _fromUtf8(":/plugins/Cluz/icons/icons/marxan_logo.png")))
        self.sponsorLabel.setObjectName(_fromUtf8("sponsorLabel"))
        self.horizontalLayoutWidget = QtGui.QWidget(inputsDialog)
        self.horizontalLayoutWidget.setGeometry(QtCore.QRect(
            280, 300, 201, 51))
        self.horizontalLayoutWidget.setObjectName(
            _fromUtf8("horizontalLayoutWidget"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.horizontalLayoutWidget)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.okButton = QtGui.QPushButton(self.horizontalLayoutWidget)
        self.okButton.setObjectName(_fromUtf8("okButton"))
        self.horizontalLayout.addWidget(self.okButton)
        self.cancelButton = QtGui.QPushButton(self.horizontalLayoutWidget)
        self.cancelButton.setObjectName(_fromUtf8("cancelButton"))
        self.horizontalLayout.addWidget(self.cancelButton)
        self.inputsLabel = QtGui.QLabel(inputsDialog)
        self.inputsLabel.setGeometry(QtCore.QRect(190, 30, 421, 16))
        self.inputsLabel.setObjectName(_fromUtf8("inputsLabel"))
        self.verticalLayoutWidget = QtGui.QWidget(inputsDialog)
        self.verticalLayoutWidget.setGeometry(QtCore.QRect(190, 60, 371, 151))
        self.verticalLayoutWidget.setObjectName(
            _fromUtf8("verticalLayoutWidget"))
        self.verticalLayout = QtGui.QVBoxLayout(self.verticalLayoutWidget)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.targetBox = QtGui.QCheckBox(self.verticalLayoutWidget)
        self.targetBox.setObjectName(_fromUtf8("targetBox"))
        self.verticalLayout.addWidget(self.targetBox)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.verticalLayout.addItem(spacerItem)
        self.puBox = QtGui.QCheckBox(self.verticalLayoutWidget)
        self.puBox.setObjectName(_fromUtf8("puBox"))
        self.verticalLayout.addWidget(self.puBox)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.verticalLayout.addItem(spacerItem1)
        self.boundBox = QtGui.QCheckBox(self.verticalLayoutWidget)
        self.boundBox.setObjectName(_fromUtf8("boundBox"))
        self.verticalLayout.addWidget(self.boundBox)
        self.boundextBox = QtGui.QCheckBox(inputsDialog)
        self.boundextBox.setGeometry(QtCore.QRect(230, 220, 351, 24))
        self.boundextBox.setMinimumSize(QtCore.QSize(0, 24))
        self.boundextBox.setObjectName(_fromUtf8("boundextBox"))

        self.retranslateUi(inputsDialog)
        QtCore.QObject.connect(self.cancelButton,
                               QtCore.SIGNAL(_fromUtf8("clicked()")),
                               inputsDialog.close)
        QtCore.QObject.connect(self.boundBox,
                               QtCore.SIGNAL(_fromUtf8("clicked(bool)")),
                               self.boundextBox.setEnabled)
        QtCore.QMetaObject.connectSlotsByName(inputsDialog)
    def setupUi(self, ReportDDStudentsResultsSetupDialog):
        ReportDDStudentsResultsSetupDialog.setObjectName(_fromUtf8("ReportDDStudentsResultsSetupDialog"))
        ReportDDStudentsResultsSetupDialog.resize(463, 302)
        self.edtBegDate = CDateEdit(ReportDDStudentsResultsSetupDialog)
        self.edtBegDate.setGeometry(QtCore.QRect(249, 10, 205, 27))
        self.edtBegDate.setObjectName(_fromUtf8("edtBegDate"))
        self.edtEndDate = CDateEdit(ReportDDStudentsResultsSetupDialog)
        self.edtEndDate.setGeometry(QtCore.QRect(249, 43, 205, 27))
        self.edtEndDate.setObjectName(_fromUtf8("edtEndDate"))
        self.lblEndDate = QtGui.QLabel(ReportDDStudentsResultsSetupDialog)
        self.lblEndDate.setGeometry(QtCore.QRect(10, 43, 233, 27))
        self.lblEndDate.setObjectName(_fromUtf8("lblEndDate"))
        self.lblBegDate = QtGui.QLabel(ReportDDStudentsResultsSetupDialog)
        self.lblBegDate.setGeometry(QtCore.QRect(10, 10, 233, 27))
        self.lblBegDate.setObjectName(_fromUtf8("lblBegDate"))
        self.lblPodtver = QtGui.QLabel(ReportDDStudentsResultsSetupDialog)
        self.lblPodtver.setEnabled(False)
        self.lblPodtver.setGeometry(QtCore.QRect(10, 104, 143, 27))
        self.lblPodtver.setObjectName(_fromUtf8("lblPodtver"))
        self.lblBegDatePodtver = QtGui.QLabel(ReportDDStudentsResultsSetupDialog)
        self.lblBegDatePodtver.setEnabled(False)
        self.lblBegDatePodtver.setGeometry(QtCore.QRect(10, 137, 233, 27))
        self.lblBegDatePodtver.setObjectName(_fromUtf8("lblBegDatePodtver"))
        self.cmbPodtver = QtGui.QComboBox(ReportDDStudentsResultsSetupDialog)
        self.cmbPodtver.setEnabled(False)
        self.cmbPodtver.setGeometry(QtCore.QRect(310, 104, 144, 27))
        self.cmbPodtver.setObjectName(_fromUtf8("cmbPodtver"))
        self.edtEndDatePodtver = CDateEdit(ReportDDStudentsResultsSetupDialog)
        self.edtEndDatePodtver.setEnabled(False)
        self.edtEndDatePodtver.setGeometry(QtCore.QRect(310, 170, 144, 27))
        self.edtEndDatePodtver.setObjectName(_fromUtf8("edtEndDatePodtver"))
        self.cmbRefuseType = CRBComboBox(ReportDDStudentsResultsSetupDialog)
        self.cmbRefuseType.setEnabled(False)
        self.cmbRefuseType.setGeometry(QtCore.QRect(310, 203, 144, 27))
        self.cmbRefuseType.setObjectName(_fromUtf8("cmbRefuseType"))
        self.lblRefuseType = QtGui.QLabel(ReportDDStudentsResultsSetupDialog)
        self.lblRefuseType.setEnabled(False)
        self.lblRefuseType.setGeometry(QtCore.QRect(10, 203, 143, 27))
        self.lblRefuseType.setObjectName(_fromUtf8("lblRefuseType"))
        self.chkPodtver = QtGui.QCheckBox(ReportDDStudentsResultsSetupDialog)
        self.chkPodtver.setGeometry(QtCore.QRect(10, 76, 233, 22))
        self.chkPodtver.setObjectName(_fromUtf8("chkPodtver"))
        self.edtBegDatePodtver = CDateEdit(ReportDDStudentsResultsSetupDialog)
        self.edtBegDatePodtver.setEnabled(False)
        self.edtBegDatePodtver.setGeometry(QtCore.QRect(310, 137, 144, 27))
        self.edtBegDatePodtver.setObjectName(_fromUtf8("edtBegDatePodtver"))
        self.lblEndDatePodtver = QtGui.QLabel(ReportDDStudentsResultsSetupDialog)
        self.lblEndDatePodtver.setEnabled(False)
        self.lblEndDatePodtver.setGeometry(QtCore.QRect(10, 170, 294, 27))
        self.lblEndDatePodtver.setObjectName(_fromUtf8("lblEndDatePodtver"))
        self.buttonBox = QtGui.QDialogButtonBox(ReportDDStudentsResultsSetupDialog)
        self.buttonBox.setGeometry(QtCore.QRect(280, 260, 176, 27))
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
        self.lblEndDate.setBuddy(self.edtEndDate)
        self.lblBegDate.setBuddy(self.edtBegDate)
        self.lblPodtver.setBuddy(self.cmbPodtver)
        self.lblBegDatePodtver.setBuddy(self.edtBegDatePodtver)
        self.lblRefuseType.setBuddy(self.cmbRefuseType)
        self.lblEndDatePodtver.setBuddy(self.edtEndDatePodtver)

        self.retranslateUi(ReportDDStudentsResultsSetupDialog)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), ReportDDStudentsResultsSetupDialog.accept)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), ReportDDStudentsResultsSetupDialog.reject)
        QtCore.QMetaObject.connectSlotsByName(ReportDDStudentsResultsSetupDialog)
Пример #16
0
    def setupUi(self, Options):
        Options.setObjectName(_fromUtf8("Options"))
        Options.resize(668, 480)
        self.gridLayout = QtGui.QGridLayout(Options)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.widget = QtGui.QWidget(Options)
        self.widget.setObjectName(_fromUtf8("widget"))
        self.gridLayout_2 = QtGui.QGridLayout(self.widget)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.widget_2 = QtGui.QWidget(self.widget)
        self.widget_2.setObjectName(_fromUtf8("widget_2"))
        self.gridLayout_3 = QtGui.QGridLayout(self.widget_2)
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.widget_4 = QtGui.QWidget(self.widget_2)
        self.widget_4.setObjectName(_fromUtf8("widget_4"))
        self.gridLayout_4 = QtGui.QGridLayout(self.widget_4)
        self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
        self.label_4 = QtGui.QLabel(self.widget_4)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.gridLayout_4.addWidget(self.label_4, 1, 2, 1, 1, QtCore.Qt.AlignRight)
        self.topcheck = QtGui.QCheckBox(self.widget_4)
        self.topcheck.setText(_fromUtf8(""))
        self.topcheck.setObjectName(_fromUtf8("topcheck"))
        self.gridLayout_4.addWidget(self.topcheck, 1, 3, 1, 1, QtCore.Qt.AlignLeft)
        self.label_2 = QtGui.QLabel(self.widget_4)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout_4.addWidget(self.label_2, 1, 0, 1, 1, QtCore.Qt.AlignLeft)
        self.xtickcombo = QtGui.QComboBox(self.widget_4)
        self.xtickcombo.setObjectName(_fromUtf8("xtickcombo"))
        self.xtickcombo.addItem(_fromUtf8(""))
        self.xtickcombo.addItem(_fromUtf8(""))
        self.gridLayout_4.addWidget(self.xtickcombo, 1, 1, 1, 1, QtCore.Qt.AlignLeft)
        self.leftcheck = QtGui.QCheckBox(self.widget_4)
        self.leftcheck.setText(_fromUtf8(""))
        self.leftcheck.setObjectName(_fromUtf8("leftcheck"))
        self.gridLayout_4.addWidget(self.leftcheck, 2, 3, 1, 1, QtCore.Qt.AlignLeft)
        self.label_3 = QtGui.QLabel(self.widget_4)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout_4.addWidget(self.label_3, 2, 0, 1, 1, QtCore.Qt.AlignLeft)
        self.ytickcombo = QtGui.QComboBox(self.widget_4)
        self.ytickcombo.setObjectName(_fromUtf8("ytickcombo"))
        self.ytickcombo.addItem(_fromUtf8(""))
        self.ytickcombo.addItem(_fromUtf8(""))
        self.gridLayout_4.addWidget(self.ytickcombo, 2, 1, 1, 1, QtCore.Qt.AlignLeft)
        self.label_5 = QtGui.QLabel(self.widget_4)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.gridLayout_4.addWidget(self.label_5, 2, 2, 1, 1, QtCore.Qt.AlignRight)
        self.gridLayout_3.addWidget(self.widget_4, 3, 0, 1, 3)
        self.line = QtGui.QFrame(self.widget_2)
        self.line.setFrameShape(QtGui.QFrame.HLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName(_fromUtf8("line"))
        self.gridLayout_3.addWidget(self.line, 1, 0, 1, 3)
        self.label = QtGui.QLabel(self.widget_2)
        font = QtGui.QFont()
        font.setPointSize(20)
        font.setBold(True)
        font.setWeight(75)
        self.label.setFont(font)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout_3.addWidget(self.label, 0, 0, 1, 1)
        self.gridLayout_2.addWidget(self.widget_2, 1, 0, 1, 1)
        self.buttonBox = QtGui.QDialogButtonBox(self.widget)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
        self.gridLayout_2.addWidget(self.buttonBox, 3, 0, 1, 1)
        self.widget_3 = QtGui.QWidget(self.widget)
        self.widget_3.setObjectName(_fromUtf8("widget_3"))
        self.gridLayout_5 = QtGui.QGridLayout(self.widget_3)
        self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5"))
        self.label_9 = QtGui.QLabel(self.widget_3)
        self.label_9.setObjectName(_fromUtf8("label_9"))
        self.gridLayout_5.addWidget(self.label_9, 4, 0, 1, 1)
        self.legendsize = QtGui.QComboBox(self.widget_3)
        self.legendsize.setObjectName(_fromUtf8("legendsize"))
        self.legendsize.addItem(_fromUtf8(""))
        self.legendsize.addItem(_fromUtf8(""))
        self.legendsize.addItem(_fromUtf8(""))
        self.gridLayout_5.addWidget(self.legendsize, 4, 3, 1, 1)
        self.label_7 = QtGui.QLabel(self.widget_3)
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.gridLayout_5.addWidget(self.label_7, 3, 0, 1, 1)
        self.linewidth = QtGui.QDoubleSpinBox(self.widget_3)
        self.linewidth.setObjectName(_fromUtf8("linewidth"))
        self.gridLayout_5.addWidget(self.linewidth, 3, 1, 1, 1)
        self.fontsize = QtGui.QDoubleSpinBox(self.widget_3)
        self.fontsize.setObjectName(_fromUtf8("fontsize"))
        self.gridLayout_5.addWidget(self.fontsize, 4, 1, 1, 1)
        self.label_8 = QtGui.QLabel(self.widget_3)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.gridLayout_5.addWidget(self.label_8, 3, 2, 1, 1)
        self.line_2 = QtGui.QFrame(self.widget_3)
        self.line_2.setFrameShape(QtGui.QFrame.HLine)
        self.line_2.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_2.setObjectName(_fromUtf8("line_2"))
        self.gridLayout_5.addWidget(self.line_2, 1, 0, 1, 4)
        self.label_10 = QtGui.QLabel(self.widget_3)
        self.label_10.setObjectName(_fromUtf8("label_10"))
        self.gridLayout_5.addWidget(self.label_10, 4, 2, 1, 1)
        self.markersize = QtGui.QDoubleSpinBox(self.widget_3)
        self.markersize.setObjectName(_fromUtf8("markersize"))
        self.gridLayout_5.addWidget(self.markersize, 3, 3, 1, 1)
        self.label_6 = QtGui.QLabel(self.widget_3)
        font = QtGui.QFont()
        font.setPointSize(20)
        font.setBold(True)
        font.setWeight(75)
        self.label_6.setFont(font)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.gridLayout_5.addWidget(self.label_6, 0, 0, 1, 1)
        self.widget_6 = QtGui.QWidget(self.widget_3)
        self.widget_6.setObjectName(_fromUtf8("widget_6"))
        self.gridLayout_7 = QtGui.QGridLayout(self.widget_6)
        self.gridLayout_7.setObjectName(_fromUtf8("gridLayout_7"))
        self.newlegend = QtGui.QCheckBox(self.widget_6)
        self.newlegend.setObjectName(_fromUtf8("newlegend"))
        self.gridLayout_7.addWidget(self.newlegend, 0, 1, 1, 1)
        self.scaledash = QtGui.QCheckBox(self.widget_6)
        self.scaledash.setObjectName(_fromUtf8("scaledash"))
        self.gridLayout_7.addWidget(self.scaledash, 0, 0, 1, 1)
        self.newcycle = QtGui.QCheckBox(self.widget_6)
        self.newcycle.setObjectName(_fromUtf8("newcycle"))
        self.gridLayout_7.addWidget(self.newcycle, 0, 2, 1, 1)
        self.gridLayout_5.addWidget(self.widget_6, 2, 0, 1, 5)
        self.gridLayout_2.addWidget(self.widget_3, 2, 0, 1, 1)
        self.widget_5 = QtGui.QWidget(self.widget)
        self.widget_5.setObjectName(_fromUtf8("widget_5"))
        self.gridLayout_6 = QtGui.QGridLayout(self.widget_5)
        self.gridLayout_6.setObjectName(_fromUtf8("gridLayout_6"))
        self.label_11 = QtGui.QLabel(self.widget_5)
        font = QtGui.QFont()
        font.setPointSize(20)
        font.setBold(True)
        font.setWeight(75)
        self.label_11.setFont(font)
        self.label_11.setObjectName(_fromUtf8("label_11"))
        self.gridLayout_6.addWidget(self.label_11, 0, 0, 1, 1)
        self.tickmat2 = QtGui.QRadioButton(self.widget_5)
        self.tickmat2.setObjectName(_fromUtf8("tickmat2"))
        self.gridLayout_6.addWidget(self.tickmat2, 2, 1, 1, 1)
        self.tickmat1 = QtGui.QRadioButton(self.widget_5)
        self.tickmat1.setObjectName(_fromUtf8("tickmat1"))
        self.gridLayout_6.addWidget(self.tickmat1, 2, 0, 1, 1)
        self.tickcust = QtGui.QRadioButton(self.widget_5)
        self.tickcust.setObjectName(_fromUtf8("tickcust"))
        self.gridLayout_6.addWidget(self.tickcust, 2, 2, 1, 1)
        self.line_3 = QtGui.QFrame(self.widget_5)
        self.line_3.setFrameShape(QtGui.QFrame.HLine)
        self.line_3.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_3.setObjectName(_fromUtf8("line_3"))
        self.gridLayout_6.addWidget(self.line_3, 1, 0, 1, 3)
        self.gridLayout_2.addWidget(self.widget_5, 0, 0, 1, 1)
        self.gridLayout.addWidget(self.widget, 0, 0, 1, 1)

        self.retranslateUi(Options)
        QtCore.QMetaObject.connectSlotsByName(Options)
Пример #17
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(500, 529)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8("Rtools.ico")),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        MainWindow.setWindowIcon(icon)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.tabWidget = QtGui.QTabWidget(self.centralwidget)
        self.tabWidget.setGeometry(QtCore.QRect(0, 10, 501, 451))
        self.tabWidget.setTabPosition(QtGui.QTabWidget.North)
        self.tabWidget.setTabShape(QtGui.QTabWidget.Triangular)
        self.tabWidget.setIconSize(QtCore.QSize(0, 0))
        self.tabWidget.setUsesScrollButtons(True)
        self.tabWidget.setDocumentMode(False)
        self.tabWidget.setTabsClosable(False)
        self.tabWidget.setMovable(False)
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.addtab = QtGui.QWidget()
        self.addtab.setObjectName(_fromUtf8("addtab"))
        self.checkBox = QtGui.QCheckBox(self.addtab)
        self.checkBox.setGeometry(QtCore.QRect(100, 50, 111, 21))
        self.checkBox.setObjectName(_fromUtf8("checkBox"))
        self.listWidget = QtGui.QListWidget(self.addtab)
        self.listWidget.setGeometry(QtCore.QRect(20, 100, 451, 221))
        self.listWidget.setObjectName(_fromUtf8("listWidget"))
        self.label_5 = QtGui.QLabel(self.addtab)
        self.label_5.setGeometry(QtCore.QRect(260, 10, 121, 31))
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.label = QtGui.QLabel(self.addtab)
        self.label.setGeometry(QtCore.QRect(20, 85, 400, 12))
        self.label.setTextFormat(QtCore.Qt.AutoText)
        self.label.setObjectName(_fromUtf8("label"))
        self.label_2 = QtGui.QLabel(self.addtab)
        self.label_2.setGeometry(QtCore.QRect(30, 350, 191, 20))
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.dateTimeEdit = QtGui.QDateTimeEdit(self.addtab)
        self.dateTimeEdit.setEnabled(False)
        self.dateTimeEdit.setGeometry(QtCore.QRect(260, 50, 194, 22))
        self.dateTimeEdit.setDateTime(
            QtCore.QDateTime(QtCore.QDate(2015, 1, 1), QtCore.QTime(0, 0, 0)))
        self.dateTimeEdit.setObjectName(_fromUtf8("dateTimeEdit"))
        self.horizontalLayoutWidget = QtGui.QWidget(self.addtab)
        self.horizontalLayoutWidget.setGeometry(QtCore.QRect(20, 10, 181, 22))
        self.horizontalLayoutWidget.setObjectName(
            _fromUtf8("horizontalLayoutWidget"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout(
            self.horizontalLayoutWidget)
        self.horizontalLayout_3.setMargin(0)
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.label_3 = QtGui.QLabel(self.horizontalLayoutWidget)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.horizontalLayout_3.addWidget(self.label_3)
        self.lineEdit_3 = QtGui.QLineEdit(self.horizontalLayoutWidget)
        self.lineEdit_3.setObjectName(_fromUtf8("lineEdit_3"))
        self.horizontalLayout_3.addWidget(self.lineEdit_3)
        self.toolButton = QtGui.QToolButton(self.addtab)
        self.toolButton.setGeometry(QtCore.QRect(330, 330, 61, 21))
        self.toolButton.setObjectName(_fromUtf8("toolButton"))
        self.pushButton = QtGui.QPushButton(self.addtab)
        self.pushButton.setGeometry(QtCore.QRect(210, 390, 75, 23))
        self.pushButton.setObjectName(_fromUtf8("pushButton"))
        self.toolButton_2 = QtGui.QToolButton(self.addtab)
        self.toolButton_2.setGeometry(QtCore.QRect(410, 330, 61, 21))
        self.toolButton_2.setObjectName(_fromUtf8("toolButton_2"))
        self.toolButton_3 = QtGui.QToolButton(self.addtab)
        self.toolButton_3.setGeometry(QtCore.QRect(250, 330, 61, 21))
        self.toolButton_3.setObjectName(_fromUtf8("toolButton_3"))
        self.lineEdit = QtGui.QLineEdit(self.addtab)
        self.lineEdit.setGeometry(QtCore.QRect(20, 330, 211, 20))
        self.lineEdit.setObjectName(_fromUtf8("lineEdit"))
        self.tabWidget.addTab(self.addtab, _fromUtf8(""))
        self.fixtab = QtGui.QWidget()
        self.fixtab.setObjectName(_fromUtf8("fixtab"))
        self.tabWidget.addTab(self.fixtab, _fromUtf8(""))
        self.tab = QtGui.QWidget()
        self.tab.setObjectName(_fromUtf8("tab"))
        self.tabWidget.addTab(self.tab, _fromUtf8(""))
        self.tab_2 = QtGui.QWidget()
        self.tab_2.setObjectName(_fromUtf8("tab_2"))
        self.tab_3 = QtGui.QWidget()
        self.tab_3.setObjectName(_fromUtf8("tab_3"))
        self.groupBox = QtGui.QGroupBox(self.tab_3)
        self.groupBox.setGeometry(QtCore.QRect(20, 40, 461, 351))
        self.groupBox.setTitle(_fromUtf8(""))
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.label_4 = QtGui.QLabel(self.groupBox)
        self.label_4.setGeometry(QtCore.QRect(30, 20, 401, 301))
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.tabWidget.addTab(self.tab_2, _fromUtf8(""))
        self.tabWidget.addTab(self.tab_3, _fromUtf8(""))
        self.progressBar = QtGui.QProgressBar(self.centralwidget)
        self.progressBar.setEnabled(True)
        self.progressBar.setGeometry(QtCore.QRect(0, 460, 531, 23))
        self.progressBar.setContextMenuPolicy(QtCore.Qt.DefaultContextMenu)
        self.progressBar.setAutoFillBackground(True)
        self.progressBar.setProperty("value", 0)
        self.progressBar.setTextVisible(True)
        self.progressBar.setOrientation(QtCore.Qt.Horizontal)
        self.progressBar.setInvertedAppearance(False)
        self.progressBar.setObjectName(_fromUtf8("progressBar"))
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 500, 23))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        self.menu = QtGui.QMenu(self.menubar)
        self.menu.setObjectName(_fromUtf8("menu"))
        self.menu_2 = QtGui.QMenu(self.menubar)
        self.menu_2.setObjectName(_fromUtf8("menu_2"))
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)
        self.actionExit = QtGui.QAction(MainWindow)
        self.actionExit.setObjectName(_fromUtf8("actionExit"))
        self.actionAbout = QtGui.QAction(MainWindow)
        self.actionAbout.setObjectName(_fromUtf8("actionAbout"))
        self.menu.addAction(self.actionExit)
        self.menu_2.addAction(self.actionAbout)
        self.menubar.addAction(self.menu.menuAction())
        self.menubar.addAction(self.menu_2.menuAction())

        self.retranslateUi(MainWindow)
        self.tabWidget.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
Пример #18
0
    def setupUi(self, Lekhonee):
        Lekhonee.setObjectName("Lekhonee")
        Lekhonee.resize(1001, 586)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/pixmaps/lekhonee.png"),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        Lekhonee.setWindowIcon(icon)
        self.centralwidget = QtGui.QWidget(Lekhonee)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout_5 = QtGui.QGridLayout(self.centralwidget)
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.hboxlayout = QtGui.QHBoxLayout()
        self.hboxlayout.setObjectName("hboxlayout")
        self.label = QtGui.QLabel(self.centralwidget)
        self.label.setObjectName("label")
        self.hboxlayout.addWidget(self.label)
        self.titleTxt = QtGui.QLineEdit(self.centralwidget)
        self.titleTxt.setObjectName("titleTxt")
        self.hboxlayout.addWidget(self.titleTxt)
        self.commentCheckBox = QtGui.QCheckBox(self.centralwidget)
        self.commentCheckBox.setChecked(True)
        self.commentCheckBox.setObjectName("commentCheckBox")
        self.hboxlayout.addWidget(self.commentCheckBox)
        self.verticalLayout.addLayout(self.hboxlayout)
        self.hboxlayout1 = QtGui.QHBoxLayout()
        self.hboxlayout1.setObjectName("hboxlayout1")
        self.boldBttn = QtGui.QPushButton(self.centralwidget)
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.boldBttn.setFont(font)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(":/icons/bold.png"), QtGui.QIcon.Normal,
                        QtGui.QIcon.Off)
        self.boldBttn.setIcon(icon1)
        self.boldBttn.setIconSize(QtCore.QSize(20, 20))
        self.boldBttn.setObjectName("boldBttn")
        self.hboxlayout1.addWidget(self.boldBttn)
        self.italicBttn = QtGui.QPushButton(self.centralwidget)
        font = QtGui.QFont()
        font.setWeight(50)
        font.setItalic(True)
        font.setBold(False)
        self.italicBttn.setFont(font)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(":/icons/italic.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.italicBttn.setIcon(icon2)
        self.italicBttn.setIconSize(QtCore.QSize(20, 20))
        self.italicBttn.setObjectName("italicBttn")
        self.hboxlayout1.addWidget(self.italicBttn)
        self.linkBttn = QtGui.QPushButton(self.centralwidget)
        self.linkBttn.setObjectName("linkBttn")
        self.hboxlayout1.addWidget(self.linkBttn)
        self.imageBttn = QtGui.QPushButton(self.centralwidget)
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(":/icons/insert-image.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.imageBttn.setIcon(icon3)
        self.imageBttn.setIconSize(QtCore.QSize(20, 20))
        self.imageBttn.setObjectName("imageBttn")
        self.hboxlayout1.addWidget(self.imageBttn)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.hboxlayout1.addItem(spacerItem)
        self.oldPostBttn = QtGui.QPushButton(self.centralwidget)
        self.oldPostBttn.setCheckable(True)
        self.oldPostBttn.setObjectName("oldPostBttn")
        self.hboxlayout1.addWidget(self.oldPostBttn)
        self.stateBttn = QtGui.QPushButton(self.centralwidget)
        self.stateBttn.setObjectName("stateBttn")
        self.hboxlayout1.addWidget(self.stateBttn)
        self.verticalLayout.addLayout(self.hboxlayout1)
        self.stack = QtGui.QStackedWidget(self.centralwidget)
        self.stack.setObjectName("stack")
        self.page = QtGui.QWidget()
        self.page.setObjectName("page")
        self.gridLayout = QtGui.QGridLayout(self.page)
        self.gridLayout.setObjectName("gridLayout")
        self.blogTxt = KTextEdit(self.page)
        self.blogTxt.setObjectName("blogTxt")
        self.gridLayout.addWidget(self.blogTxt, 0, 0, 1, 1)
        self.stack.addWidget(self.page)
        self.page_2 = QtGui.QWidget()
        self.page_2.setObjectName("page_2")
        self.gridLayout_2 = QtGui.QGridLayout(self.page_2)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.webView = QtWebKit.QWebView(self.page_2)
        self.webView.setUrl(QtCore.QUrl("about:blank"))
        self.webView.setObjectName("webView")
        self.gridLayout_2.addWidget(self.webView, 0, 0, 1, 1)
        self.stack.addWidget(self.page_2)
        self.page_3 = QtGui.QWidget()
        self.page_3.setObjectName("page_3")
        self.gridLayout_4 = QtGui.QGridLayout(self.page_3)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.entryList = QtGui.QListWidget(self.page_3)
        self.entryList.setObjectName("entryList")
        self.gridLayout_4.addWidget(self.entryList, 0, 0, 1, 1)
        self.stack.addWidget(self.page_3)
        self.verticalLayout.addWidget(self.stack)
        self.uploadframe = QtGui.QFrame(self.centralwidget)
        self.uploadframe.setFrameShape(QtGui.QFrame.StyledPanel)
        self.uploadframe.setFrameShadow(QtGui.QFrame.Plain)
        self.uploadframe.setObjectName("uploadframe")
        self.gridLayout_3 = QtGui.QGridLayout(self.uploadframe)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.fileTxt = QtGui.QLineEdit(self.uploadframe)
        self.fileTxt.setObjectName("fileTxt")
        self.horizontalLayout_3.addWidget(self.fileTxt)
        self.selectUploadBttn = QtGui.QPushButton(self.uploadframe)
        self.selectUploadBttn.setObjectName("selectUploadBttn")
        self.horizontalLayout_3.addWidget(self.selectUploadBttn)
        self.gridLayout_3.addLayout(self.horizontalLayout_3, 0, 0, 1, 1)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.uploadCancelBttn = QtGui.QPushButton(self.uploadframe)
        self.uploadCancelBttn.setObjectName("uploadCancelBttn")
        self.horizontalLayout_2.addWidget(self.uploadCancelBttn)
        spacerItem1 = QtGui.QSpacerItem(328, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem1)
        self.uploadBttn = QtGui.QPushButton(self.uploadframe)
        self.uploadBttn.setObjectName("uploadBttn")
        self.horizontalLayout_2.addWidget(self.uploadBttn)
        self.gridLayout_3.addLayout(self.horizontalLayout_2, 1, 0, 1, 1)
        self.verticalLayout.addWidget(self.uploadframe)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.spellCheckBox = QtGui.QCheckBox(self.centralwidget)
        self.spellCheckBox.setObjectName("spellCheckBox")
        self.horizontalLayout.addWidget(self.spellCheckBox)
        self.tagsTxt = QtGui.QLineEdit(self.centralwidget)
        self.tagsTxt.setObjectName("tagsTxt")
        self.horizontalLayout.addWidget(self.tagsTxt)
        spacerItem2 = QtGui.QSpacerItem(38, 28, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem2)
        self.draftBttn = QtGui.QPushButton(self.centralwidget)
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(":/icons/draft.png"), QtGui.QIcon.Normal,
                        QtGui.QIcon.Off)
        self.draftBttn.setIcon(icon4)
        self.draftBttn.setIconSize(QtCore.QSize(20, 20))
        self.draftBttn.setObjectName("draftBttn")
        self.horizontalLayout.addWidget(self.draftBttn)
        self.publishBttn = QtGui.QPushButton(self.centralwidget)
        icon5 = QtGui.QIcon()
        icon5.addPixmap(QtGui.QPixmap(":/icons/internet.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.publishBttn.setIcon(icon5)
        self.publishBttn.setIconSize(QtCore.QSize(20, 20))
        self.publishBttn.setObjectName("publishBttn")
        self.horizontalLayout.addWidget(self.publishBttn)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.gridLayout_5.addLayout(self.verticalLayout, 0, 0, 1, 1)
        self.vboxlayout = QtGui.QVBoxLayout()
        self.vboxlayout.setObjectName("vboxlayout")
        spacerItem3 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                        QtGui.QSizePolicy.Fixed)
        self.vboxlayout.addItem(spacerItem3)
        self.label_2 = QtGui.QLabel(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_2.sizePolicy().hasHeightForWidth())
        self.label_2.setSizePolicy(sizePolicy)
        self.label_2.setObjectName("label_2")
        self.vboxlayout.addWidget(self.label_2)
        self.categoryList = QtGui.QListWidget(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.categoryList.sizePolicy().hasHeightForWidth())
        self.categoryList.setSizePolicy(sizePolicy)
        self.categoryList.setSelectionMode(
            QtGui.QAbstractItemView.MultiSelection)
        self.categoryList.setObjectName("categoryList")
        self.vboxlayout.addWidget(self.categoryList)
        self.getCategoriesBttn = QtGui.QPushButton(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.getCategoriesBttn.sizePolicy().hasHeightForWidth())
        self.getCategoriesBttn.setSizePolicy(sizePolicy)
        icon6 = QtGui.QIcon()
        icon6.addPixmap(QtGui.QPixmap(":/icons/get-arrow.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.getCategoriesBttn.setIcon(icon6)
        self.getCategoriesBttn.setIconSize(QtCore.QSize(20, 20))
        self.getCategoriesBttn.setObjectName("getCategoriesBttn")
        self.vboxlayout.addWidget(self.getCategoriesBttn)
        self.addCategoryTxt = QtGui.QLineEdit(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.addCategoryTxt.sizePolicy().hasHeightForWidth())
        self.addCategoryTxt.setSizePolicy(sizePolicy)
        self.addCategoryTxt.setObjectName("addCategoryTxt")
        self.vboxlayout.addWidget(self.addCategoryTxt)
        self.addCategoryBttn = QtGui.QPushButton(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.addCategoryBttn.sizePolicy().hasHeightForWidth())
        self.addCategoryBttn.setSizePolicy(sizePolicy)
        self.addCategoryBttn.setObjectName("addCategoryBttn")
        self.vboxlayout.addWidget(self.addCategoryBttn)
        self.gridLayout_5.addLayout(self.vboxlayout, 0, 1, 1, 1)
        self.serverTabs = QtGui.QTabWidget(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.serverTabs.sizePolicy().hasHeightForWidth())
        self.serverTabs.setSizePolicy(sizePolicy)
        self.serverTabs.setObjectName("serverTabs")
        self.tab = QtGui.QWidget()
        self.tab.setObjectName("tab")
        self.gridLayout_6 = QtGui.QGridLayout(self.tab)
        self.gridLayout_6.setObjectName("gridLayout_6")
        self.addPageBttn = QtGui.QPushButton(self.tab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.addPageBttn.sizePolicy().hasHeightForWidth())
        self.addPageBttn.setSizePolicy(sizePolicy)
        icon7 = QtGui.QIcon()
        icon7.addPixmap(QtGui.QPixmap(":/icons/addpage.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.addPageBttn.setIcon(icon7)
        self.addPageBttn.setIconSize(QtCore.QSize(20, 20))
        self.addPageBttn.setObjectName("addPageBttn")
        self.gridLayout_6.addWidget(self.addPageBttn, 0, 0, 1, 1)
        self.serverTabs.addTab(self.tab, "")
        self.tab_2 = QtGui.QWidget()
        self.tab_2.setObjectName("tab_2")
        self.serverTabs.addTab(self.tab_2, "")
        self.gridLayout_5.addWidget(self.serverTabs, 1, 0, 1, 1)
        Lekhonee.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(Lekhonee)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1001, 28))
        self.menubar.setObjectName("menubar")
        self.menu_File = QtGui.QMenu(self.menubar)
        self.menu_File.setObjectName("menu_File")
        self.menu_Edit = QtGui.QMenu(self.menubar)
        self.menu_Edit.setObjectName("menu_Edit")
        self.menuHTML_Tags = QtGui.QMenu(self.menubar)
        self.menuHTML_Tags.setObjectName("menuHTML_Tags")
        Lekhonee.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(Lekhonee)
        self.statusbar.setObjectName("statusbar")
        Lekhonee.setStatusBar(self.statusbar)
        self.action_Open = QtGui.QAction(Lekhonee)
        icon8 = QtGui.QIcon()
        icon8.addPixmap(QtGui.QPixmap(":/icons/document-open.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.action_Open.setIcon(icon8)
        self.action_Open.setObjectName("action_Open")
        self.action_Save = QtGui.QAction(Lekhonee)
        icon9 = QtGui.QIcon()
        icon9.addPixmap(QtGui.QPixmap(":/icons/document-save.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.action_Save.setIcon(icon9)
        self.action_Save.setObjectName("action_Save")
        self.actionBold = QtGui.QAction(Lekhonee)
        self.actionBold.setIcon(icon1)
        self.actionBold.setObjectName("actionBold")
        self.actionItalic = QtGui.QAction(Lekhonee)
        self.actionItalic.setIcon(icon2)
        self.actionItalic.setObjectName("actionItalic")
        self.actionUnderline = QtGui.QAction(Lekhonee)
        icon10 = QtGui.QIcon()
        icon10.addPixmap(QtGui.QPixmap(":/icons/underline.png"),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionUnderline.setIcon(icon10)
        self.actionUnderline.setObjectName("actionUnderline")
        self.actionSuperscript = QtGui.QAction(Lekhonee)
        icon11 = QtGui.QIcon()
        icon11.addPixmap(QtGui.QPixmap(":/icons/superscript.png"),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionSuperscript.setIcon(icon11)
        self.actionSuperscript.setObjectName("actionSuperscript")
        self.actionSubscript = QtGui.QAction(Lekhonee)
        icon12 = QtGui.QIcon()
        icon12.addPixmap(QtGui.QPixmap(":/icons/subscript.png"),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionSubscript.setIcon(icon12)
        self.actionSubscript.setObjectName("actionSubscript")
        self.actionInsert_Image = QtGui.QAction(Lekhonee)
        self.actionInsert_Image.setIcon(icon3)
        self.actionInsert_Image.setObjectName("actionInsert_Image")
        self.actionInsert_link = QtGui.QAction(Lekhonee)
        self.actionInsert_link.setObjectName("actionInsert_link")
        self.actionIn_FireFox = QtGui.QAction(Lekhonee)
        self.actionIn_FireFox.setObjectName("actionIn_FireFox")
        self.actionIn_Konqueror = QtGui.QAction(Lekhonee)
        icon13 = QtGui.QIcon()
        icon13.addPixmap(QtGui.QPixmap(":/icons/konqueror.png"),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionIn_Konqueror.setIcon(icon13)
        self.actionIn_Konqueror.setObjectName("actionIn_Konqueror")
        self.actionPrevious_Entries = QtGui.QAction(Lekhonee)
        self.actionPrevious_Entries.setEnabled(False)
        self.actionPrevious_Entries.setObjectName("actionPrevious_Entries")
        self.actionPreferences = QtGui.QAction(Lekhonee)
        icon14 = QtGui.QIcon()
        icon14.addPixmap(QtGui.QPixmap(":/icons/configure.png"),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionPreferences.setIcon(icon14)
        self.actionPreferences.setObjectName("actionPreferences")
        self.action_Quit = QtGui.QAction(Lekhonee)
        icon15 = QtGui.QIcon()
        icon15.addPixmap(QtGui.QPixmap(":/icons/application-exit.png"),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.action_Quit.setIcon(icon15)
        self.action_Quit.setObjectName("action_Quit")
        self.action_New = QtGui.QAction(Lekhonee)
        icon16 = QtGui.QIcon()
        icon16.addPixmap(QtGui.QPixmap(":/icons/document-new.png"),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.action_New.setIcon(icon16)
        self.action_New.setObjectName("action_New")
        self.action_Help = QtGui.QAction(Lekhonee)
        self.action_Help.setEnabled(False)
        self.action_Help.setObjectName("action_Help")
        self.actionAbout_Chotha = QtGui.QAction(Lekhonee)
        icon17 = QtGui.QIcon()
        icon17.addPixmap(
            QtGui.QPixmap("../../../../../../usr/share/pixmaps/chotha.png"),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionAbout_Chotha.setIcon(icon17)
        self.actionAbout_Chotha.setObjectName("actionAbout_Chotha")
        self.actionLast_Entry = QtGui.QAction(Lekhonee)
        self.actionLast_Entry.setObjectName("actionLast_Entry")
        self.actionLekhonee_msg = QtGui.QAction(Lekhonee)
        self.actionLekhonee_msg.setCheckable(True)
        self.actionLekhonee_msg.setChecked(True)
        self.actionLekhonee_msg.setObjectName("actionLekhonee_msg")
        self.actionOld_Posts = QtGui.QAction(Lekhonee)
        self.actionOld_Posts.setObjectName("actionOld_Posts")
        self.actionUpload_File = QtGui.QAction(Lekhonee)
        self.actionUpload_File.setObjectName("actionUpload_File")
        self.menu_File.addAction(self.action_New)
        self.menu_File.addAction(self.action_Open)
        self.menu_File.addAction(self.action_Save)
        self.menu_File.addAction(self.action_Quit)
        self.menu_Edit.addAction(self.actionLast_Entry)
        self.menu_Edit.addAction(self.actionLekhonee_msg)
        self.menu_Edit.addAction(self.actionUpload_File)
        self.menu_Edit.addAction(self.actionPreferences)
        self.menuHTML_Tags.addAction(self.actionBold)
        self.menuHTML_Tags.addAction(self.actionItalic)
        self.menuHTML_Tags.addAction(self.actionUnderline)
        self.menuHTML_Tags.addSeparator()
        self.menuHTML_Tags.addAction(self.actionSuperscript)
        self.menuHTML_Tags.addAction(self.actionSubscript)
        self.menuHTML_Tags.addSeparator()
        self.menuHTML_Tags.addAction(self.actionInsert_Image)
        self.menuHTML_Tags.addAction(self.actionInsert_link)
        self.menubar.addAction(self.menu_File.menuAction())
        self.menubar.addAction(self.menu_Edit.menuAction())
        self.menubar.addAction(self.menuHTML_Tags.menuAction())

        self.retranslateUi(Lekhonee)
        self.stack.setCurrentIndex(0)
        self.serverTabs.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(Lekhonee)
        Lekhonee.setTabOrder(self.titleTxt, self.commentCheckBox)
        Lekhonee.setTabOrder(self.commentCheckBox, self.publishBttn)
        Lekhonee.setTabOrder(self.publishBttn, self.draftBttn)
        Lekhonee.setTabOrder(self.draftBttn, self.boldBttn)
        Lekhonee.setTabOrder(self.boldBttn, self.italicBttn)
        Lekhonee.setTabOrder(self.italicBttn, self.linkBttn)
        Lekhonee.setTabOrder(self.linkBttn, self.stateBttn)
        Lekhonee.setTabOrder(self.stateBttn, self.categoryList)
Пример #19
0
    def setupUi(self, settingsDialog):
        settingsDialog.setObjectName(_fromUtf8("settingsDialog"))
        settingsDialog.resize(567, 343)
        self.gridLayout = QtGui.QGridLayout(settingsDialog)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.buttonBox = QtGui.QDialogButtonBox(settingsDialog)
        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, 1, 0, 1, 1)
        self.tabWidgetSettings = QtGui.QTabWidget(settingsDialog)
        self.tabWidgetSettings.setObjectName(_fromUtf8("tabWidgetSettings"))
        self.tabUserInterface = QtGui.QWidget()
        self.tabUserInterface.setEnabled(True)
        self.tabUserInterface.setObjectName(_fromUtf8("tabUserInterface"))
        self.gridLayout_5 = QtGui.QGridLayout(self.tabUserInterface)
        self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5"))
        self.checkBoxMinimizeToTray = QtGui.QCheckBox(self.tabUserInterface)
        self.checkBoxMinimizeToTray.setChecked(True)
        self.checkBoxMinimizeToTray.setObjectName(
            _fromUtf8("checkBoxMinimizeToTray"))
        self.gridLayout_5.addWidget(self.checkBoxMinimizeToTray, 2, 0, 1, 1)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Expanding)
        self.gridLayout_5.addItem(spacerItem, 10, 0, 1, 1)
        self.checkBoxStartOnLogon = QtGui.QCheckBox(self.tabUserInterface)
        self.checkBoxStartOnLogon.setObjectName(
            _fromUtf8("checkBoxStartOnLogon"))
        self.gridLayout_5.addWidget(self.checkBoxStartOnLogon, 0, 0, 1, 1)
        self.checkBoxShowTrayNotifications = QtGui.QCheckBox(
            self.tabUserInterface)
        self.checkBoxShowTrayNotifications.setObjectName(
            _fromUtf8("checkBoxShowTrayNotifications"))
        self.gridLayout_5.addWidget(self.checkBoxShowTrayNotifications, 3, 0,
                                    1, 1)
        self.checkBoxPortableMode = QtGui.QCheckBox(self.tabUserInterface)
        self.checkBoxPortableMode.setObjectName(
            _fromUtf8("checkBoxPortableMode"))
        self.gridLayout_5.addWidget(self.checkBoxPortableMode, 4, 0, 1, 1)
        self.checkBoxStartInTray = QtGui.QCheckBox(self.tabUserInterface)
        self.checkBoxStartInTray.setObjectName(
            _fromUtf8("checkBoxStartInTray"))
        self.gridLayout_5.addWidget(self.checkBoxStartInTray, 1, 0, 1, 1)
        self.PortableModeDescription = QtGui.QLabel(self.tabUserInterface)
        self.PortableModeDescription.setWordWrap(True)
        self.PortableModeDescription.setObjectName(
            _fromUtf8("PortableModeDescription"))
        self.gridLayout_5.addWidget(self.PortableModeDescription, 5, 0, 1, 2)
        self.checkBoxWillinglySendToMobile = QtGui.QCheckBox(
            self.tabUserInterface)
        self.checkBoxWillinglySendToMobile.setObjectName(
            _fromUtf8("checkBoxWillinglySendToMobile"))
        self.gridLayout_5.addWidget(self.checkBoxWillinglySendToMobile, 6, 0,
                                    1, 2)
        self.groupBox = QtGui.QGroupBox(self.tabUserInterface)
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.groupBox)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.languageComboBox = QtGui.QComboBox(self.groupBox)
        self.languageComboBox.setMinimumSize(QtCore.QSize(100, 0))
        self.languageComboBox.setObjectName(_fromUtf8("languageComboBox"))
        self.languageComboBox.addItem(_fromUtf8(""))
        self.languageComboBox.addItem(_fromUtf8(""))
        self.languageComboBox.addItem(_fromUtf8(""))
        self.languageComboBox.addItem(_fromUtf8(""))
        self.languageComboBox.addItem(_fromUtf8(""))
        self.languageComboBox.addItem(_fromUtf8(""))
        self.languageComboBox.addItem(_fromUtf8(""))
        self.languageComboBox.addItem(_fromUtf8(""))
        self.languageComboBox.addItem(_fromUtf8(""))
        self.horizontalLayout_2.addWidget(self.languageComboBox)
        self.gridLayout_5.addWidget(self.groupBox, 10, 1, 1, 1)
        self.tabWidgetSettings.addTab(self.tabUserInterface, _fromUtf8(""))
        self.tabNetworkSettings = QtGui.QWidget()
        self.tabNetworkSettings.setObjectName(_fromUtf8("tabNetworkSettings"))
        self.gridLayout_4 = QtGui.QGridLayout(self.tabNetworkSettings)
        self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
        self.groupBox1 = QtGui.QGroupBox(self.tabNetworkSettings)
        self.groupBox1.setObjectName(_fromUtf8("groupBox1"))
        self.gridLayout_3 = QtGui.QGridLayout(self.groupBox1)
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        spacerItem1 = QtGui.QSpacerItem(125, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.gridLayout_3.addItem(spacerItem1, 0, 0, 1, 1)
        self.label = QtGui.QLabel(self.groupBox1)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout_3.addWidget(self.label, 0, 1, 1, 1)
        self.lineEditTCPPort = QtGui.QLineEdit(self.groupBox1)
        self.lineEditTCPPort.setMaximumSize(QtCore.QSize(70, 16777215))
        self.lineEditTCPPort.setObjectName(_fromUtf8("lineEditTCPPort"))
        self.gridLayout_3.addWidget(self.lineEditTCPPort, 0, 2, 1, 1)
        self.gridLayout_4.addWidget(self.groupBox1, 0, 0, 1, 1)
        self.groupBox_2 = QtGui.QGroupBox(self.tabNetworkSettings)
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.gridLayout_2 = QtGui.QGridLayout(self.groupBox_2)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.label_2 = QtGui.QLabel(self.groupBox_2)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout_2.addWidget(self.label_2, 0, 0, 1, 1)
        self.comboBoxProxyType = QtGui.QComboBox(self.groupBox_2)
        self.comboBoxProxyType.setObjectName(_fromUtf8("comboBoxProxyType"))
        self.comboBoxProxyType.addItem(_fromUtf8(""))
        self.comboBoxProxyType.addItem(_fromUtf8(""))
        self.comboBoxProxyType.addItem(_fromUtf8(""))
        self.gridLayout_2.addWidget(self.comboBoxProxyType, 0, 1, 1, 1)
        self.label_3 = QtGui.QLabel(self.groupBox_2)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout_2.addWidget(self.label_3, 1, 1, 1, 1)
        self.lineEditSocksHostname = QtGui.QLineEdit(self.groupBox_2)
        self.lineEditSocksHostname.setObjectName(
            _fromUtf8("lineEditSocksHostname"))
        self.gridLayout_2.addWidget(self.lineEditSocksHostname, 1, 2, 1, 2)
        self.label_4 = QtGui.QLabel(self.groupBox_2)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.gridLayout_2.addWidget(self.label_4, 1, 4, 1, 1)
        self.lineEditSocksPort = QtGui.QLineEdit(self.groupBox_2)
        self.lineEditSocksPort.setObjectName(_fromUtf8("lineEditSocksPort"))
        self.gridLayout_2.addWidget(self.lineEditSocksPort, 1, 5, 1, 1)
        self.checkBoxAuthentication = QtGui.QCheckBox(self.groupBox_2)
        self.checkBoxAuthentication.setObjectName(
            _fromUtf8("checkBoxAuthentication"))
        self.gridLayout_2.addWidget(self.checkBoxAuthentication, 2, 1, 1, 1)
        self.label_5 = QtGui.QLabel(self.groupBox_2)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.gridLayout_2.addWidget(self.label_5, 2, 2, 1, 1)
        self.lineEditSocksUsername = QtGui.QLineEdit(self.groupBox_2)
        self.lineEditSocksUsername.setEnabled(False)
        self.lineEditSocksUsername.setObjectName(
            _fromUtf8("lineEditSocksUsername"))
        self.gridLayout_2.addWidget(self.lineEditSocksUsername, 2, 3, 1, 1)
        self.label_6 = QtGui.QLabel(self.groupBox_2)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.gridLayout_2.addWidget(self.label_6, 2, 4, 1, 1)
        self.lineEditSocksPassword = QtGui.QLineEdit(self.groupBox_2)
        self.lineEditSocksPassword.setEnabled(False)
        self.lineEditSocksPassword.setInputMethodHints(
            QtCore.Qt.ImhHiddenText | QtCore.Qt.ImhNoAutoUppercase
            | QtCore.Qt.ImhNoPredictiveText)
        self.lineEditSocksPassword.setEchoMode(QtGui.QLineEdit.Password)
        self.lineEditSocksPassword.setObjectName(
            _fromUtf8("lineEditSocksPassword"))
        self.gridLayout_2.addWidget(self.lineEditSocksPassword, 2, 5, 1, 1)
        self.checkBoxSocksListen = QtGui.QCheckBox(self.groupBox_2)
        self.checkBoxSocksListen.setObjectName(
            _fromUtf8("checkBoxSocksListen"))
        self.gridLayout_2.addWidget(self.checkBoxSocksListen, 3, 1, 1, 4)
        self.gridLayout_4.addWidget(self.groupBox_2, 1, 0, 1, 1)
        spacerItem2 = QtGui.QSpacerItem(20, 70, QtGui.QSizePolicy.Minimum,
                                        QtGui.QSizePolicy.Expanding)
        self.gridLayout_4.addItem(spacerItem2, 2, 0, 1, 1)
        self.tabWidgetSettings.addTab(self.tabNetworkSettings, _fromUtf8(""))
        self.tab = QtGui.QWidget()
        self.tab.setObjectName(_fromUtf8("tab"))
        self.gridLayout_6 = QtGui.QGridLayout(self.tab)
        self.gridLayout_6.setObjectName(_fromUtf8("gridLayout_6"))
        self.label_8 = QtGui.QLabel(self.tab)
        self.label_8.setWordWrap(True)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.gridLayout_6.addWidget(self.label_8, 0, 0, 1, 3)
        spacerItem3 = QtGui.QSpacerItem(203, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.gridLayout_6.addItem(spacerItem3, 1, 0, 1, 1)
        self.label_9 = QtGui.QLabel(self.tab)
        self.label_9.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.label_9.setObjectName(_fromUtf8("label_9"))
        self.gridLayout_6.addWidget(self.label_9, 1, 1, 1, 1)
        self.lineEditTotalDifficulty = QtGui.QLineEdit(self.tab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.lineEditTotalDifficulty.sizePolicy().hasHeightForWidth())
        self.lineEditTotalDifficulty.setSizePolicy(sizePolicy)
        self.lineEditTotalDifficulty.setMaximumSize(QtCore.QSize(70, 16777215))
        self.lineEditTotalDifficulty.setObjectName(
            _fromUtf8("lineEditTotalDifficulty"))
        self.gridLayout_6.addWidget(self.lineEditTotalDifficulty, 1, 2, 1, 1)
        spacerItem4 = QtGui.QSpacerItem(203, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.gridLayout_6.addItem(spacerItem4, 3, 0, 1, 1)
        self.label_11 = QtGui.QLabel(self.tab)
        self.label_11.setAlignment(QtCore.Qt.AlignRight
                                   | QtCore.Qt.AlignTrailing
                                   | QtCore.Qt.AlignVCenter)
        self.label_11.setObjectName(_fromUtf8("label_11"))
        self.gridLayout_6.addWidget(self.label_11, 3, 1, 1, 1)
        self.lineEditSmallMessageDifficulty = QtGui.QLineEdit(self.tab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.lineEditSmallMessageDifficulty.
                                     sizePolicy().hasHeightForWidth())
        self.lineEditSmallMessageDifficulty.setSizePolicy(sizePolicy)
        self.lineEditSmallMessageDifficulty.setMaximumSize(
            QtCore.QSize(70, 16777215))
        self.lineEditSmallMessageDifficulty.setObjectName(
            _fromUtf8("lineEditSmallMessageDifficulty"))
        self.gridLayout_6.addWidget(self.lineEditSmallMessageDifficulty, 3, 2,
                                    1, 1)
        self.label_12 = QtGui.QLabel(self.tab)
        self.label_12.setWordWrap(True)
        self.label_12.setObjectName(_fromUtf8("label_12"))
        self.gridLayout_6.addWidget(self.label_12, 4, 0, 1, 3)
        self.label_10 = QtGui.QLabel(self.tab)
        self.label_10.setWordWrap(True)
        self.label_10.setObjectName(_fromUtf8("label_10"))
        self.gridLayout_6.addWidget(self.label_10, 2, 0, 1, 3)
        self.tabWidgetSettings.addTab(self.tab, _fromUtf8(""))
        self.tab_2 = QtGui.QWidget()
        self.tab_2.setObjectName(_fromUtf8("tab_2"))
        self.gridLayout_7 = QtGui.QGridLayout(self.tab_2)
        self.gridLayout_7.setObjectName(_fromUtf8("gridLayout_7"))
        self.label_15 = QtGui.QLabel(self.tab_2)
        self.label_15.setWordWrap(True)
        self.label_15.setObjectName(_fromUtf8("label_15"))
        self.gridLayout_7.addWidget(self.label_15, 0, 0, 1, 3)
        spacerItem5 = QtGui.QSpacerItem(102, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.gridLayout_7.addItem(spacerItem5, 1, 0, 1, 1)
        self.label_13 = QtGui.QLabel(self.tab_2)
        self.label_13.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.label_13.setAlignment(QtCore.Qt.AlignRight
                                   | QtCore.Qt.AlignTrailing
                                   | QtCore.Qt.AlignVCenter)
        self.label_13.setObjectName(_fromUtf8("label_13"))
        self.gridLayout_7.addWidget(self.label_13, 1, 1, 1, 1)
        self.lineEditMaxAcceptableTotalDifficulty = QtGui.QLineEdit(self.tab_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.lineEditMaxAcceptableTotalDifficulty.
                                     sizePolicy().hasHeightForWidth())
        self.lineEditMaxAcceptableTotalDifficulty.setSizePolicy(sizePolicy)
        self.lineEditMaxAcceptableTotalDifficulty.setMaximumSize(
            QtCore.QSize(70, 16777215))
        self.lineEditMaxAcceptableTotalDifficulty.setObjectName(
            _fromUtf8("lineEditMaxAcceptableTotalDifficulty"))
        self.gridLayout_7.addWidget(self.lineEditMaxAcceptableTotalDifficulty,
                                    1, 2, 1, 1)
        spacerItem6 = QtGui.QSpacerItem(102, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.gridLayout_7.addItem(spacerItem6, 2, 0, 1, 1)
        self.label_14 = QtGui.QLabel(self.tab_2)
        self.label_14.setAlignment(QtCore.Qt.AlignRight
                                   | QtCore.Qt.AlignTrailing
                                   | QtCore.Qt.AlignVCenter)
        self.label_14.setObjectName(_fromUtf8("label_14"))
        self.gridLayout_7.addWidget(self.label_14, 2, 1, 1, 1)
        self.lineEditMaxAcceptableSmallMessageDifficulty = QtGui.QLineEdit(
            self.tab_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.lineEditMaxAcceptableSmallMessageDifficulty.sizePolicy(
            ).hasHeightForWidth())
        self.lineEditMaxAcceptableSmallMessageDifficulty.setSizePolicy(
            sizePolicy)
        self.lineEditMaxAcceptableSmallMessageDifficulty.setMaximumSize(
            QtCore.QSize(70, 16777215))
        self.lineEditMaxAcceptableSmallMessageDifficulty.setObjectName(
            _fromUtf8("lineEditMaxAcceptableSmallMessageDifficulty"))
        self.gridLayout_7.addWidget(
            self.lineEditMaxAcceptableSmallMessageDifficulty, 2, 2, 1, 1)
        spacerItem7 = QtGui.QSpacerItem(20, 147, QtGui.QSizePolicy.Minimum,
                                        QtGui.QSizePolicy.Expanding)
        self.gridLayout_7.addItem(spacerItem7, 3, 1, 1, 1)
        self.tabWidgetSettings.addTab(self.tab_2, _fromUtf8(""))
        self.tabNamecoin = QtGui.QWidget()
        self.tabNamecoin.setObjectName(_fromUtf8("tabNamecoin"))
        self.gridLayout_8 = QtGui.QGridLayout(self.tabNamecoin)
        self.gridLayout_8.setObjectName(_fromUtf8("gridLayout_8"))
        spacerItem8 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.gridLayout_8.addItem(spacerItem8, 2, 0, 1, 1)
        self.label_16 = QtGui.QLabel(self.tabNamecoin)
        self.label_16.setWordWrap(True)
        self.label_16.setObjectName(_fromUtf8("label_16"))
        self.gridLayout_8.addWidget(self.label_16, 0, 0, 1, 3)
        self.label_17 = QtGui.QLabel(self.tabNamecoin)
        self.label_17.setAlignment(QtCore.Qt.AlignRight
                                   | QtCore.Qt.AlignTrailing
                                   | QtCore.Qt.AlignVCenter)
        self.label_17.setObjectName(_fromUtf8("label_17"))
        self.gridLayout_8.addWidget(self.label_17, 2, 1, 1, 1)
        self.lineEditNamecoinHost = QtGui.QLineEdit(self.tabNamecoin)
        self.lineEditNamecoinHost.setObjectName(
            _fromUtf8("lineEditNamecoinHost"))
        self.gridLayout_8.addWidget(self.lineEditNamecoinHost, 2, 2, 1, 1)
        spacerItem9 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.gridLayout_8.addItem(spacerItem9, 3, 0, 1, 1)
        spacerItem10 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                         QtGui.QSizePolicy.Minimum)
        self.gridLayout_8.addItem(spacerItem10, 4, 0, 1, 1)
        self.label_18 = QtGui.QLabel(self.tabNamecoin)
        self.label_18.setEnabled(True)
        self.label_18.setAlignment(QtCore.Qt.AlignRight
                                   | QtCore.Qt.AlignTrailing
                                   | QtCore.Qt.AlignVCenter)
        self.label_18.setObjectName(_fromUtf8("label_18"))
        self.gridLayout_8.addWidget(self.label_18, 3, 1, 1, 1)
        self.lineEditNamecoinPort = QtGui.QLineEdit(self.tabNamecoin)
        self.lineEditNamecoinPort.setObjectName(
            _fromUtf8("lineEditNamecoinPort"))
        self.gridLayout_8.addWidget(self.lineEditNamecoinPort, 3, 2, 1, 1)
        spacerItem11 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                         QtGui.QSizePolicy.Expanding)
        self.gridLayout_8.addItem(spacerItem11, 8, 1, 1, 1)
        self.labelNamecoinUser = QtGui.QLabel(self.tabNamecoin)
        self.labelNamecoinUser.setAlignment(QtCore.Qt.AlignRight
                                            | QtCore.Qt.AlignTrailing
                                            | QtCore.Qt.AlignVCenter)
        self.labelNamecoinUser.setObjectName(_fromUtf8("labelNamecoinUser"))
        self.gridLayout_8.addWidget(self.labelNamecoinUser, 4, 1, 1, 1)
        self.lineEditNamecoinUser = QtGui.QLineEdit(self.tabNamecoin)
        self.lineEditNamecoinUser.setObjectName(
            _fromUtf8("lineEditNamecoinUser"))
        self.gridLayout_8.addWidget(self.lineEditNamecoinUser, 4, 2, 1, 1)
        spacerItem12 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                         QtGui.QSizePolicy.Minimum)
        self.gridLayout_8.addItem(spacerItem12, 5, 0, 1, 1)
        self.labelNamecoinPassword = QtGui.QLabel(self.tabNamecoin)
        self.labelNamecoinPassword.setAlignment(QtCore.Qt.AlignRight
                                                | QtCore.Qt.AlignTrailing
                                                | QtCore.Qt.AlignVCenter)
        self.labelNamecoinPassword.setObjectName(
            _fromUtf8("labelNamecoinPassword"))
        self.gridLayout_8.addWidget(self.labelNamecoinPassword, 5, 1, 1, 1)
        self.lineEditNamecoinPassword = QtGui.QLineEdit(self.tabNamecoin)
        self.lineEditNamecoinPassword.setInputMethodHints(
            QtCore.Qt.ImhHiddenText | QtCore.Qt.ImhNoAutoUppercase
            | QtCore.Qt.ImhNoPredictiveText)
        self.lineEditNamecoinPassword.setEchoMode(QtGui.QLineEdit.Password)
        self.lineEditNamecoinPassword.setObjectName(
            _fromUtf8("lineEditNamecoinPassword"))
        self.gridLayout_8.addWidget(self.lineEditNamecoinPassword, 5, 2, 1, 1)
        self.labelNamecoinTestResult = QtGui.QLabel(self.tabNamecoin)
        self.labelNamecoinTestResult.setText(_fromUtf8(""))
        self.labelNamecoinTestResult.setObjectName(
            _fromUtf8("labelNamecoinTestResult"))
        self.gridLayout_8.addWidget(self.labelNamecoinTestResult, 7, 0, 1, 2)
        self.pushButtonNamecoinTest = QtGui.QPushButton(self.tabNamecoin)
        self.pushButtonNamecoinTest.setObjectName(
            _fromUtf8("pushButtonNamecoinTest"))
        self.gridLayout_8.addWidget(self.pushButtonNamecoinTest, 7, 2, 1, 1)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.label_21 = QtGui.QLabel(self.tabNamecoin)
        self.label_21.setObjectName(_fromUtf8("label_21"))
        self.horizontalLayout.addWidget(self.label_21)
        self.radioButtonNamecoinNamecoind = QtGui.QRadioButton(
            self.tabNamecoin)
        self.radioButtonNamecoinNamecoind.setObjectName(
            _fromUtf8("radioButtonNamecoinNamecoind"))
        self.horizontalLayout.addWidget(self.radioButtonNamecoinNamecoind)
        self.radioButtonNamecoinNmcontrol = QtGui.QRadioButton(
            self.tabNamecoin)
        self.radioButtonNamecoinNmcontrol.setObjectName(
            _fromUtf8("radioButtonNamecoinNmcontrol"))
        self.horizontalLayout.addWidget(self.radioButtonNamecoinNmcontrol)
        self.gridLayout_8.addLayout(self.horizontalLayout, 1, 0, 1, 3)
        self.tabWidgetSettings.addTab(self.tabNamecoin, _fromUtf8(""))
        self.gridLayout.addWidget(self.tabWidgetSettings, 0, 0, 1, 1)

        self.retranslateUi(settingsDialog)
        self.tabWidgetSettings.setCurrentIndex(0)
        QtCore.QObject.connect(self.buttonBox,
                               QtCore.SIGNAL(_fromUtf8("accepted()")),
                               settingsDialog.accept)
        QtCore.QObject.connect(self.buttonBox,
                               QtCore.SIGNAL(_fromUtf8("rejected()")),
                               settingsDialog.reject)
        QtCore.QObject.connect(self.checkBoxAuthentication,
                               QtCore.SIGNAL(_fromUtf8("toggled(bool)")),
                               self.lineEditSocksUsername.setEnabled)
        QtCore.QObject.connect(self.checkBoxAuthentication,
                               QtCore.SIGNAL(_fromUtf8("toggled(bool)")),
                               self.lineEditSocksPassword.setEnabled)
        QtCore.QMetaObject.connectSlotsByName(settingsDialog)
        settingsDialog.setTabOrder(self.tabWidgetSettings,
                                   self.checkBoxStartOnLogon)
        settingsDialog.setTabOrder(self.checkBoxStartOnLogon,
                                   self.checkBoxStartInTray)
        settingsDialog.setTabOrder(self.checkBoxStartInTray,
                                   self.checkBoxMinimizeToTray)
        settingsDialog.setTabOrder(self.checkBoxMinimizeToTray,
                                   self.checkBoxShowTrayNotifications)
        settingsDialog.setTabOrder(self.checkBoxShowTrayNotifications,
                                   self.lineEditTCPPort)
        settingsDialog.setTabOrder(self.lineEditTCPPort,
                                   self.comboBoxProxyType)
        settingsDialog.setTabOrder(self.comboBoxProxyType,
                                   self.lineEditSocksHostname)
        settingsDialog.setTabOrder(self.lineEditSocksHostname,
                                   self.lineEditSocksPort)
        settingsDialog.setTabOrder(self.lineEditSocksPort,
                                   self.checkBoxAuthentication)
        settingsDialog.setTabOrder(self.checkBoxAuthentication,
                                   self.lineEditSocksUsername)
        settingsDialog.setTabOrder(self.lineEditSocksUsername,
                                   self.lineEditSocksPassword)
        settingsDialog.setTabOrder(self.lineEditSocksPassword,
                                   self.checkBoxSocksListen)
        settingsDialog.setTabOrder(self.checkBoxSocksListen, self.buttonBox)
Пример #20
0
    def setupUi(self, Dialog):
        Dialog.setObjectName(_fromUtf8("Dialog"))
        Dialog.resize(390, 140)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(Dialog.sizePolicy().hasHeightForWidth())
        Dialog.setSizePolicy(sizePolicy)
        Dialog.setMinimumSize(QtCore.QSize(390, 140))
        Dialog.setMaximumSize(QtCore.QSize(520, 140))
        self.verticalLayout_2 = QtGui.QVBoxLayout(Dialog)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.emGroupBox = QtGui.QGroupBox(Dialog)
        self.emGroupBox.setObjectName(_fromUtf8("emGroupBox"))
        self.verticalLayout = QtGui.QVBoxLayout(self.emGroupBox)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.emFilter1Button = QtGui.QPushButton(self.emGroupBox)
        self.emFilter1Button.setCheckable(True)
        self.emFilter1Button.setAutoExclusive(True)
        self.emFilter1Button.setObjectName(_fromUtf8("emFilter1Button"))
        self.horizontalLayout_2.addWidget(self.emFilter1Button)
        self.emFilter2Button = QtGui.QPushButton(self.emGroupBox)
        self.emFilter2Button.setCheckable(True)
        self.emFilter2Button.setAutoExclusive(True)
        self.emFilter2Button.setObjectName(_fromUtf8("emFilter2Button"))
        self.horizontalLayout_2.addWidget(self.emFilter2Button)
        self.emFilter3Button = QtGui.QPushButton(self.emGroupBox)
        self.emFilter3Button.setCheckable(True)
        self.emFilter3Button.setAutoExclusive(True)
        self.emFilter3Button.setObjectName(_fromUtf8("emFilter3Button"))
        self.horizontalLayout_2.addWidget(self.emFilter3Button)
        self.emFilter4Button = QtGui.QPushButton(self.emGroupBox)
        self.emFilter4Button.setCheckable(True)
        self.emFilter4Button.setAutoExclusive(True)
        self.emFilter4Button.setObjectName(_fromUtf8("emFilter4Button"))
        self.horizontalLayout_2.addWidget(self.emFilter4Button)
        self.emFilter5Button = QtGui.QPushButton(self.emGroupBox)
        self.emFilter5Button.setCheckable(True)
        self.emFilter5Button.setAutoExclusive(True)
        self.emFilter5Button.setObjectName(_fromUtf8("emFilter5Button"))
        self.horizontalLayout_2.addWidget(self.emFilter5Button)
        self.emFilter6Button = QtGui.QPushButton(self.emGroupBox)
        self.emFilter6Button.setCheckable(True)
        self.emFilter6Button.setAutoExclusive(True)
        self.emFilter6Button.setObjectName(_fromUtf8("emFilter6Button"))
        self.horizontalLayout_2.addWidget(self.emFilter6Button)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.emCheckBox = QtGui.QCheckBox(self.emGroupBox)
        self.emCheckBox.setObjectName(_fromUtf8("emCheckBox"))
        self.horizontalLayout.addWidget(self.emCheckBox)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.emLabel = QtGui.QLabel(self.emGroupBox)
        self.emLabel.setObjectName(_fromUtf8("emLabel"))
        self.horizontalLayout.addWidget(self.emLabel)
        self.emSpinBox = QtGui.QSpinBox(self.emGroupBox)
        self.emSpinBox.setMinimum(1)
        self.emSpinBox.setMaximum(1000)
        self.emSpinBox.setObjectName(_fromUtf8("emSpinBox"))
        self.horizontalLayout.addWidget(self.emSpinBox)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.verticalLayout_2.addWidget(self.emGroupBox)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem1)
        self.okButton = QtGui.QPushButton(Dialog)
        self.okButton.setCheckable(False)
        self.okButton.setObjectName(_fromUtf8("okButton"))
        self.horizontalLayout_3.addWidget(self.okButton)
        self.verticalLayout_2.addLayout(self.horizontalLayout_3)

        self.retranslateUi(Dialog)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
Пример #21
0
    def setupUi(self, IntakeDialog):
        IntakeDialog.setObjectName(_fromUtf8("IntakeDialog"))
        IntakeDialog.resize(588, 410)
        IntakeDialog.setMinimumSize(QtCore.QSize(588, 410))
        IntakeDialog.setMaximumSize(QtCore.QSize(588, 480))
        self.buttonBox = QtGui.QDialogButtonBox(IntakeDialog)
        self.buttonBox.setGeometry(QtCore.QRect(405, 360, 166, 32))
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel
                                          | QtGui.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
        self.tabWidget = QtGui.QTabWidget(IntakeDialog)
        self.tabWidget.setGeometry(QtCore.QRect(15, 10, 556, 331))
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.tab = QtGui.QWidget()
        self.tab.setObjectName(_fromUtf8("tab"))
        self.intake_no_edit = QtGui.QLineEdit(self.tab)
        self.intake_no_edit.setGeometry(QtCore.QRect(20, 40, 196, 20))
        self.intake_no_edit.setObjectName(_fromUtf8("intake_no_edit"))
        self.label_3 = QtGui.QLabel(self.tab)
        self.label_3.setGeometry(QtCore.QRect(280, 25, 126, 16))
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.label = QtGui.QLabel(self.tab)
        self.label.setGeometry(QtCore.QRect(20, 25, 126, 16))
        self.label.setObjectName(_fromUtf8("label"))
        self.status_change_date_edit = QtGui.QDateEdit(self.tab)
        self.status_change_date_edit.setEnabled(False)
        self.status_change_date_edit.setGeometry(
            QtCore.QRect(305, 130, 171, 22))
        self.status_change_date_edit.setCalendarPopup(True)
        self.status_change_date_edit.setObjectName(
            _fromUtf8("status_change_date_edit"))
        self.status_change_date_chbox = QtGui.QCheckBox(self.tab)
        self.status_change_date_chbox.setGeometry(
            QtCore.QRect(280, 135, 26, 17))
        self.status_change_date_chbox.setText(_fromUtf8(""))
        self.status_change_date_chbox.setObjectName(
            _fromUtf8("status_change_date_chbox"))
        self.label_8 = QtGui.QLabel(self.tab)
        self.label_8.setGeometry(QtCore.QRect(280, 115, 126, 16))
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.height_sbox = QtGui.QDoubleSpinBox(self.tab)
        self.height_sbox.setGeometry(QtCore.QRect(280, 175, 196, 22))
        self.height_sbox.setMinimum(-100.0)
        self.height_sbox.setMaximum(2000.0)
        self.height_sbox.setObjectName(_fromUtf8("height_sbox"))
        self.label_14 = QtGui.QLabel(self.tab)
        self.label_14.setGeometry(QtCore.QRect(280, 160, 126, 16))
        self.label_14.setObjectName(_fromUtf8("label_14"))
        self.label_15 = QtGui.QLabel(self.tab)
        self.label_15.setGeometry(QtCore.QRect(280, 205, 126, 16))
        self.label_15.setObjectName(_fromUtf8("label_15"))
        self.network_cbox = QtGui.QComboBox(self.tab)
        self.network_cbox.setGeometry(QtCore.QRect(280, 220, 196, 22))
        self.network_cbox.setObjectName(_fromUtf8("network_cbox"))
        self.installation_year_sbox = QtGui.QDoubleSpinBox(self.tab)
        self.installation_year_sbox.setGeometry(QtCore.QRect(280, 40, 196, 22))
        self.installation_year_sbox.setDecimals(0)
        self.installation_year_sbox.setMaximum(3000.0)
        self.installation_year_sbox.setProperty("value", 0.0)
        self.installation_year_sbox.setObjectName(
            _fromUtf8("installation_year_sbox"))
        self.label_2 = QtGui.QLabel(self.tab)
        self.label_2.setGeometry(QtCore.QRect(20, 70, 126, 16))
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.intake_source_cbox = QtGui.QComboBox(self.tab)
        self.intake_source_cbox.setGeometry(QtCore.QRect(20, 85, 196, 22))
        self.intake_source_cbox.setObjectName(_fromUtf8("intake_source_cbox"))
        self.label_5 = QtGui.QLabel(self.tab)
        self.label_5.setGeometry(QtCore.QRect(20, 115, 126, 16))
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.intake_type_cbox = QtGui.QComboBox(self.tab)
        self.intake_type_cbox.setGeometry(QtCore.QRect(20, 130, 196, 22))
        self.intake_type_cbox.setObjectName(_fromUtf8("intake_type_cbox"))
        self.label_16 = QtGui.QLabel(self.tab)
        self.label_16.setGeometry(QtCore.QRect(20, 205, 126, 16))
        self.label_16.setObjectName(_fromUtf8("label_16"))
        self.capacity_sbox = QtGui.QDoubleSpinBox(self.tab)
        self.capacity_sbox.setGeometry(QtCore.QRect(20, 220, 196, 22))
        self.capacity_sbox.setMinimum(0.0)
        self.capacity_sbox.setMaximum(200000.0)
        self.capacity_sbox.setObjectName(_fromUtf8("capacity_sbox"))
        self.operating_state_cbox = QtGui.QComboBox(self.tab)
        self.operating_state_cbox.setGeometry(QtCore.QRect(280, 85, 196, 22))
        self.operating_state_cbox.setObjectName(
            _fromUtf8("operating_state_cbox"))
        self.label_9 = QtGui.QLabel(self.tab)
        self.label_9.setGeometry(QtCore.QRect(280, 70, 126, 16))
        self.label_9.setObjectName(_fromUtf8("label_9"))
        self.label_10 = QtGui.QLabel(self.tab)
        self.label_10.setGeometry(QtCore.QRect(20, 160, 126, 16))
        self.label_10.setObjectName(_fromUtf8("label_10"))
        self.capacity_unit_cbox = QtGui.QComboBox(self.tab)
        self.capacity_unit_cbox.setGeometry(QtCore.QRect(20, 175, 196, 22))
        self.capacity_unit_cbox.setObjectName(_fromUtf8("capacity_unit_cbox"))
        self.tabWidget.addTab(self.tab, _fromUtf8(""))

        self.retranslateUi(IntakeDialog)
        self.tabWidget.setCurrentIndex(0)
        QtCore.QObject.connect(self.buttonBox,
                               QtCore.SIGNAL(_fromUtf8("accepted()")),
                               IntakeDialog.accept)
        QtCore.QObject.connect(self.buttonBox,
                               QtCore.SIGNAL(_fromUtf8("rejected()")),
                               IntakeDialog.reject)
        QtCore.QMetaObject.connectSlotsByName(IntakeDialog)
        IntakeDialog.setTabOrder(self.tabWidget, self.intake_no_edit)
        IntakeDialog.setTabOrder(self.intake_no_edit, self.intake_source_cbox)
        IntakeDialog.setTabOrder(self.intake_source_cbox,
                                 self.intake_type_cbox)
        IntakeDialog.setTabOrder(self.intake_type_cbox,
                                 self.capacity_unit_cbox)
        IntakeDialog.setTabOrder(self.capacity_unit_cbox, self.capacity_sbox)
        IntakeDialog.setTabOrder(self.capacity_sbox,
                                 self.installation_year_sbox)
        IntakeDialog.setTabOrder(self.installation_year_sbox,
                                 self.operating_state_cbox)
        IntakeDialog.setTabOrder(self.operating_state_cbox,
                                 self.status_change_date_chbox)
        IntakeDialog.setTabOrder(self.status_change_date_chbox,
                                 self.status_change_date_edit)
        IntakeDialog.setTabOrder(self.status_change_date_edit,
                                 self.height_sbox)
        IntakeDialog.setTabOrder(self.height_sbox, self.network_cbox)
Пример #22
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(800, 600)
        self.centralWidget = QtGui.QWidget(MainWindow)
        self.centralWidget.setObjectName(_fromUtf8("centralWidget"))
        self.stackedWidget = QtGui.QStackedWidget(self.centralWidget)
        self.stackedWidget.setGeometry(QtCore.QRect(180, 60, 571, 271))
        self.stackedWidget.setObjectName(_fromUtf8("stackedWidget"))
        self.page_1 = QtGui.QWidget()
        self.page_1.setObjectName(_fromUtf8("page_1"))
        self.verticalLayoutWidget_2 = QtGui.QWidget(self.page_1)
        self.verticalLayoutWidget_2.setGeometry(QtCore.QRect(10, 30, 121, 101))
        self.verticalLayoutWidget_2.setObjectName(
            _fromUtf8("verticalLayoutWidget_2"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.verticalLayoutWidget_2)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.bt_file1 = QtGui.QPushButton(self.verticalLayoutWidget_2)
        self.bt_file1.setObjectName(_fromUtf8("bt_file1"))
        self.verticalLayout_2.addWidget(self.bt_file1)
        self.bt_file2 = QtGui.QPushButton(self.verticalLayoutWidget_2)
        self.bt_file2.setObjectName(_fromUtf8("bt_file2"))
        self.verticalLayout_2.addWidget(self.bt_file2)
        self.verticalLayoutWidget_3 = QtGui.QWidget(self.page_1)
        self.verticalLayoutWidget_3.setGeometry(QtCore.QRect(
            200, 30, 341, 101))
        self.verticalLayoutWidget_3.setObjectName(
            _fromUtf8("verticalLayoutWidget_3"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.verticalLayoutWidget_3)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.label_1 = QtGui.QLabel(self.verticalLayoutWidget_3)
        self.label_1.setObjectName(_fromUtf8("label_1"))
        self.verticalLayout_3.addWidget(self.label_1)
        self.label_2 = QtGui.QLabel(self.verticalLayoutWidget_3)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.verticalLayout_3.addWidget(self.label_2)
        self.horizontalLayoutWidget = QtGui.QWidget(self.page_1)
        self.horizontalLayoutWidget.setGeometry(QtCore.QRect(10, 160, 121, 51))
        self.horizontalLayoutWidget.setObjectName(
            _fromUtf8("horizontalLayoutWidget"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.horizontalLayoutWidget)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.comboBox_main_key_F = QtGui.QComboBox(self.horizontalLayoutWidget)
        self.comboBox_main_key_F.setObjectName(
            _fromUtf8("comboBox_main_key_F"))
        self.horizontalLayout.addWidget(self.comboBox_main_key_F)
        self.label_key_F = QtGui.QLabel(self.page_1)
        self.label_key_F.setGeometry(QtCore.QRect(10, 240, 241, 20))
        self.label_key_F.setObjectName(_fromUtf8("label_key_F"))
        self.verticalLayoutWidget_7 = QtGui.QWidget(self.page_1)
        self.verticalLayoutWidget_7.setGeometry(QtCore.QRect(200, 150, 91, 80))
        self.verticalLayoutWidget_7.setObjectName(
            _fromUtf8("verticalLayoutWidget_7"))
        self.verticalLayout_7 = QtGui.QVBoxLayout(self.verticalLayoutWidget_7)
        self.verticalLayout_7.setObjectName(_fromUtf8("verticalLayout_7"))
        self.comboBox_sheet_main_F = QtGui.QComboBox(
            self.verticalLayoutWidget_7)
        self.comboBox_sheet_main_F.setObjectName(
            _fromUtf8("comboBox_sheet_main_F"))
        self.verticalLayout_7.addWidget(self.comboBox_sheet_main_F)
        self.comboBox_sheet_fu_F = QtGui.QComboBox(self.verticalLayoutWidget_7)
        self.comboBox_sheet_fu_F.setObjectName(
            _fromUtf8("comboBox_sheet_fu_F"))
        self.verticalLayout_7.addWidget(self.comboBox_sheet_fu_F)
        self.verticalLayoutWidget_8 = QtGui.QWidget(self.page_1)
        self.verticalLayoutWidget_8.setGeometry(QtCore.QRect(
            340, 150, 160, 80))
        self.verticalLayoutWidget_8.setObjectName(
            _fromUtf8("verticalLayoutWidget_8"))
        self.verticalLayout_8 = QtGui.QVBoxLayout(self.verticalLayoutWidget_8)
        self.verticalLayout_8.setObjectName(_fromUtf8("verticalLayout_8"))
        self.label_sheet_main_F = QtGui.QLabel(self.verticalLayoutWidget_8)
        self.label_sheet_main_F.setObjectName(_fromUtf8("label_sheet_main_F"))
        self.verticalLayout_8.addWidget(self.label_sheet_main_F)
        self.label_sheet_fu_F = QtGui.QLabel(self.verticalLayoutWidget_8)
        self.label_sheet_fu_F.setObjectName(_fromUtf8("label_sheet_fu_F"))
        self.verticalLayout_8.addWidget(self.label_sheet_fu_F)
        self.stackedWidget.addWidget(self.page_1)
        self.page_2 = QtGui.QWidget()
        self.page_2.setObjectName(_fromUtf8("page_2"))
        self.verticalLayoutWidget_5 = QtGui.QWidget(self.page_2)
        self.verticalLayoutWidget_5.setGeometry(QtCore.QRect(30, 50, 111, 161))
        self.verticalLayoutWidget_5.setObjectName(
            _fromUtf8("verticalLayoutWidget_5"))
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.verticalLayoutWidget_5)
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.bt_directory = QtGui.QPushButton(self.verticalLayoutWidget_5)
        self.bt_directory.setObjectName(_fromUtf8("bt_directory"))
        self.verticalLayout_5.addWidget(self.bt_directory)
        self.verticalLayoutWidget_6 = QtGui.QWidget(self.page_2)
        self.verticalLayoutWidget_6.setGeometry(QtCore.QRect(
            189, 70, 351, 121))
        self.verticalLayoutWidget_6.setObjectName(
            _fromUtf8("verticalLayoutWidget_6"))
        self.verticalLayout_6 = QtGui.QVBoxLayout(self.verticalLayoutWidget_6)
        self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6"))
        self.label_directory = QtGui.QLabel(self.verticalLayoutWidget_6)
        self.label_directory.setObjectName(_fromUtf8("label_directory"))
        self.verticalLayout_6.addWidget(self.label_directory)
        self.horizontalLayoutWidget_2 = QtGui.QWidget(self.page_2)
        self.horizontalLayoutWidget_2.setGeometry(
            QtCore.QRect(360, 210, 160, 61))
        self.horizontalLayoutWidget_2.setObjectName(
            _fromUtf8("horizontalLayoutWidget_2"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(
            self.horizontalLayoutWidget_2)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.checkBox_row = QtGui.QCheckBox(self.horizontalLayoutWidget_2)
        self.checkBox_row.setObjectName(_fromUtf8("checkBox_row"))
        self.horizontalLayout_2.addWidget(self.checkBox_row)
        self.checkBox_col = QtGui.QCheckBox(self.horizontalLayoutWidget_2)
        self.checkBox_col.setObjectName(_fromUtf8("checkBox_col"))
        self.horizontalLayout_2.addWidget(self.checkBox_col)
        self.stackedWidget.addWidget(self.page_2)
        self.verticalLayoutWidget = QtGui.QWidget(self.centralWidget)
        self.verticalLayoutWidget.setGeometry(QtCore.QRect(20, 90, 131, 311))
        self.verticalLayoutWidget.setObjectName(
            _fromUtf8("verticalLayoutWidget"))
        self.verticalLayout = QtGui.QVBoxLayout(self.verticalLayoutWidget)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.bt_func_R = QtGui.QPushButton(self.verticalLayoutWidget)
        self.bt_func_R.setObjectName(_fromUtf8("bt_func_R"))
        self.verticalLayout.addWidget(self.bt_func_R)
        self.bt_func_L = QtGui.QPushButton(self.verticalLayoutWidget)
        self.bt_func_L.setObjectName(_fromUtf8("bt_func_L"))
        self.verticalLayout.addWidget(self.bt_func_L)
        self.bt_func_D = QtGui.QPushButton(self.verticalLayoutWidget)
        self.bt_func_D.setObjectName(_fromUtf8("bt_func_D"))
        self.verticalLayout.addWidget(self.bt_func_D)
        self.textBrowser = QtGui.QTextBrowser(self.centralWidget)
        self.textBrowser.setGeometry(QtCore.QRect(190, 340, 351, 91))
        self.textBrowser.setObjectName(_fromUtf8("textBrowser"))
        self.label_mode = QtGui.QLabel(self.centralWidget)
        self.label_mode.setGeometry(QtCore.QRect(340, 40, 181, 16))
        self.label_mode.setObjectName(_fromUtf8("label_mode"))
        self.checkBox = QtGui.QCheckBox(self.centralWidget)
        self.checkBox.setGeometry(QtCore.QRect(610, 410, 119, 16))
        self.checkBox.setObjectName(_fromUtf8("checkBox"))
        self.bt_start = QtGui.QPushButton(self.centralWidget)
        self.bt_start.setGeometry(QtCore.QRect(610, 490, 119, 23))
        self.bt_start.setObjectName(_fromUtf8("bt_start"))
        MainWindow.setCentralWidget(self.centralWidget)
        self.menuBar = QtGui.QMenuBar(MainWindow)
        self.menuBar.setGeometry(QtCore.QRect(0, 0, 800, 23))
        self.menuBar.setObjectName(_fromUtf8("menuBar"))
        self.menu_func = QtGui.QMenu(self.menuBar)
        self.menu_func.setObjectName(_fromUtf8("menu_func"))
        self.menu_help = QtGui.QMenu(self.menuBar)
        self.menu_help.setObjectName(_fromUtf8("menu_help"))
        self.menu_set = QtGui.QMenu(self.menuBar)
        self.menu_set.setObjectName(_fromUtf8("menu_set"))
        MainWindow.setMenuBar(self.menuBar)
        self.action_R = QtGui.QAction(MainWindow)
        self.action_R.setObjectName(_fromUtf8("action_R"))
        self.action_L = QtGui.QAction(MainWindow)
        self.action_L.setObjectName(_fromUtf8("action_L"))
        self.action_F = QtGui.QAction(MainWindow)
        self.action_F.setObjectName(_fromUtf8("action_F"))
        self.action_about = QtGui.QAction(MainWindow)
        self.action_about.setObjectName(_fromUtf8("action_about"))
        self.action_helpdoc = QtGui.QAction(MainWindow)
        self.action_helpdoc.setObjectName(_fromUtf8("action_helpdoc"))
        self.action_set = QtGui.QAction(MainWindow)
        self.action_set.setObjectName(_fromUtf8("action_set"))
        self.menu_func.addAction(self.action_R)
        self.menu_func.addAction(self.action_L)
        self.menu_func.addAction(self.action_F)
        self.menu_help.addAction(self.action_helpdoc)
        self.menu_help.addAction(self.action_about)
        self.menu_set.addAction(self.action_set)
        self.menuBar.addAction(self.menu_func.menuAction())
        self.menuBar.addAction(self.menu_help.menuAction())
        self.menuBar.addAction(self.menu_set.menuAction())

        self.retranslateUi(MainWindow)
        self.stackedWidget.setCurrentIndex(1)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
Пример #23
0
    def setupUi(self, maxp_ui):
        maxp_ui.setObjectName(_fromUtf8("maxp_ui"))
        maxp_ui.resize(422, 578)
        maxp_ui.setMinimumSize(QtCore.QSize(422, 578))
        maxp_ui.setMaximumSize(QtCore.QSize(422, 578))
        self.buttonBox = QtGui.QDialogButtonBox(maxp_ui)
        self.buttonBox.setGeometry(QtCore.QRect(210, 530, 166, 33))
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel
                                          | QtGui.QDialogButtonBox.Ok)
        self.buttonBox.setCenterButtons(True)
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
        self.tabWidget = QtGui.QTabWidget(maxp_ui)
        self.tabWidget.setGeometry(QtCore.QRect(20, 20, 381, 501))
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.tab = QtGui.QWidget()
        self.tab.setObjectName(_fromUtf8("tab"))
        self.groupBox = QtGui.QGroupBox(self.tab)
        self.groupBox.setGeometry(QtCore.QRect(20, 20, 331, 171))
        self.groupBox.setMinimumSize(QtCore.QSize(331, 0))
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.formLayoutWidget_2 = QtGui.QWidget(self.groupBox)
        self.formLayoutWidget_2.setGeometry(QtCore.QRect(20, 20, 291, 138))
        self.formLayoutWidget_2.setObjectName(_fromUtf8("formLayoutWidget_2"))
        self.formLayout_2 = QtGui.QFormLayout(self.formLayoutWidget_2)
        self.formLayout_2.setMargin(0)
        self.formLayout_2.setSpacing(12)
        self.formLayout_2.setObjectName(_fromUtf8("formLayout_2"))
        self.label_5 = QtGui.QLabel(self.formLayoutWidget_2)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.formLayout_2.setWidget(0, QtGui.QFormLayout.LabelRole,
                                    self.label_5)
        self.label_6 = QtGui.QLabel(self.formLayoutWidget_2)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.formLayout_2.setWidget(1, QtGui.QFormLayout.LabelRole,
                                    self.label_6)
        self.label_7 = QtGui.QLabel(self.formLayoutWidget_2)
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.formLayout_2.setWidget(3, QtGui.QFormLayout.LabelRole,
                                    self.label_7)
        self.threshold_spin = QtGui.QDoubleSpinBox(self.formLayoutWidget_2)
        self.threshold_spin.setProperty("value", 99.99)
        self.threshold_spin.setObjectName(_fromUtf8("threshold_spin"))
        self.formLayout_2.setWidget(3, QtGui.QFormLayout.FieldRole,
                                    self.threshold_spin)
        self.attribute_combo = QtGui.QComboBox(self.formLayoutWidget_2)
        self.attribute_combo.setObjectName(_fromUtf8("attribute_combo"))
        self.formLayout_2.setWidget(1, QtGui.QFormLayout.FieldRole,
                                    self.attribute_combo)
        self.layer_combo = QtGui.QComboBox(self.formLayoutWidget_2)
        self.layer_combo.setObjectName(_fromUtf8("layer_combo"))
        self.formLayout_2.setWidget(0, QtGui.QFormLayout.FieldRole,
                                    self.layer_combo)
        self.label_8 = QtGui.QLabel(self.formLayoutWidget_2)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.formLayout_2.setWidget(2, QtGui.QFormLayout.LabelRole,
                                    self.label_8)
        self.threshold_attr_combo = QtGui.QComboBox(self.formLayoutWidget_2)
        self.threshold_attr_combo.setObjectName(
            _fromUtf8("threshold_attr_combo"))
        self.formLayout_2.setWidget(2, QtGui.QFormLayout.FieldRole,
                                    self.threshold_attr_combo)
        self.groupBox_2 = QtGui.QGroupBox(self.tab)
        self.groupBox_2.setGeometry(QtCore.QRect(20, 270, 331, 111))
        self.groupBox_2.setMinimumSize(QtCore.QSize(331, 0))
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.formLayoutWidget = QtGui.QWidget(self.groupBox_2)
        self.formLayoutWidget.setGeometry(QtCore.QRect(20, 20, 291, 81))
        self.formLayoutWidget.setObjectName(_fromUtf8("formLayoutWidget"))
        self.formLayout = QtGui.QFormLayout(self.formLayoutWidget)
        self.formLayout.setFieldGrowthPolicy(
            QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout.setMargin(0)
        self.formLayout.setSpacing(12)
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.tabumax_spin = QtGui.QSpinBox(self.formLayoutWidget)
        self.tabumax_spin.setMinimum(1)
        self.tabumax_spin.setProperty("value", 5)
        self.tabumax_spin.setObjectName(_fromUtf8("tabumax_spin"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole,
                                  self.tabumax_spin)
        self.label_4 = QtGui.QLabel(self.formLayoutWidget)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_4)
        self.tabulength_spin = QtGui.QSpinBox(self.formLayoutWidget)
        self.tabulength_spin.setMinimum(1)
        self.tabulength_spin.setProperty("value", 5)
        self.tabulength_spin.setObjectName(_fromUtf8("tabulength_spin"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole,
                                  self.tabulength_spin)
        self.label_3 = QtGui.QLabel(self.formLayoutWidget)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_3)
        self.browse_button = QtGui.QPushButton(self.tab)
        self.browse_button.setGeometry(QtCore.QRect(280, 410, 80, 26))
        self.browse_button.setObjectName(_fromUtf8("browse_button"))
        self.layer_path = QtGui.QLineEdit(self.tab)
        self.layer_path.setGeometry(QtCore.QRect(20, 410, 241, 25))
        self.layer_path.setObjectName(_fromUtf8("layer_path"))
        self.label = QtGui.QLabel(self.tab)
        self.label.setGeometry(QtCore.QRect(20, 390, 91, 16))
        self.label.setObjectName(_fromUtf8("label"))
        self.add_canvas = QtGui.QCheckBox(self.tab)
        self.add_canvas.setGeometry(QtCore.QRect(20, 440, 341, 21))
        self.add_canvas.setObjectName(_fromUtf8("add_canvas"))
        self.groupBox_3 = QtGui.QGroupBox(self.tab)
        self.groupBox_3.setGeometry(QtCore.QRect(20, 200, 331, 61))
        self.groupBox_3.setObjectName(_fromUtf8("groupBox_3"))
        self.formLayoutWidget_3 = QtGui.QWidget(self.groupBox_3)
        self.formLayoutWidget_3.setGeometry(QtCore.QRect(20, 20, 291, 31))
        self.formLayoutWidget_3.setObjectName(_fromUtf8("formLayoutWidget_3"))
        self.formLayout_3 = QtGui.QFormLayout(self.formLayoutWidget_3)
        self.formLayout_3.setMargin(0)
        self.formLayout_3.setSpacing(12)
        self.formLayout_3.setObjectName(_fromUtf8("formLayout_3"))
        self.label_2 = QtGui.QLabel(self.formLayoutWidget_3)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.formLayout_3.setWidget(0, QtGui.QFormLayout.LabelRole,
                                    self.label_2)
        self.maxit_spin = QtGui.QSpinBox(self.formLayoutWidget_3)
        self.maxit_spin.setMinimum(1)
        self.maxit_spin.setMaximum(99999)
        self.maxit_spin.setProperty("value", 2)
        self.maxit_spin.setObjectName(_fromUtf8("maxit_spin"))
        self.formLayout_3.setWidget(0, QtGui.QFormLayout.FieldRole,
                                    self.maxit_spin)
        self.tabWidget.addTab(self.tab, _fromUtf8(""))
        self.tab_2 = QtGui.QWidget()
        self.tab_2.setObjectName(_fromUtf8("tab_2"))
        self.help_browser = QtGui.QTextBrowser(self.tab_2)
        self.help_browser.setGeometry(QtCore.QRect(10, 10, 351, 451))
        self.help_browser.setHtml(
            _fromUtf8(
                "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
                "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
                "p, li { white-space: pre-wrap; }\n"
                "</style></head><body style=\" font-family:\'Sans Serif\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
                "<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p></body></html>"
            ))
        self.help_browser.setAcceptRichText(False)
        self.help_browser.setOpenExternalLinks(True)
        self.help_browser.setObjectName(_fromUtf8("help_browser"))
        self.tabWidget.addTab(self.tab_2, _fromUtf8(""))
        self.progressBar = QtGui.QProgressBar(maxp_ui)
        self.progressBar.setGeometry(QtCore.QRect(30, 530, 161, 31))
        self.progressBar.setProperty("value", 0)
        self.progressBar.setObjectName(_fromUtf8("progressBar"))

        self.retranslateUi(maxp_ui)
        self.tabWidget.setCurrentIndex(0)
        QtCore.QObject.connect(self.buttonBox,
                               QtCore.SIGNAL(_fromUtf8("accepted()")),
                               maxp_ui.accept)
        QtCore.QObject.connect(self.buttonBox,
                               QtCore.SIGNAL(_fromUtf8("rejected()")),
                               maxp_ui.reject)
        QtCore.QObject.connect(
            self.layer_combo,
            QtCore.SIGNAL(_fromUtf8("currentIndexChanged(int)")),
            self.threshold_attr_combo.update)
        QtCore.QObject.connect(
            self.threshold_attr_combo,
            QtCore.SIGNAL(_fromUtf8("currentIndexChanged(int)")),
            self.threshold_spin.update)
        QtCore.QMetaObject.connectSlotsByName(maxp_ui)
Пример #24
-1
    def setupUi(self, SiteEditor):
        SiteEditor.setObjectName(_fromUtf8("SiteEditor"))
        SiteEditor.resize(892, 419)
        self.gridLayout = QtGui.QGridLayout(SiteEditor)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem, 1, 0, 1, 1)
        self.gridLayout_2 = QtGui.QGridLayout()
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.browseButton = QtGui.QPushButton(SiteEditor)
        self.browseButton.setObjectName(_fromUtf8("browseButton"))
        self.gridLayout_2.addWidget(self.browseButton, 6, 3, 1, 1)
        spacerItem1 = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Minimum,
                                        QtGui.QSizePolicy.Fixed)
        self.gridLayout_2.addItem(spacerItem1, 4, 2, 1, 1)
        self.nameLineEdit = QtGui.QLineEdit(SiteEditor)
        self.nameLineEdit.setObjectName(_fromUtf8("nameLineEdit"))
        self.gridLayout_2.addWidget(self.nameLineEdit, 0, 2, 1, 2)
        self.iconStatusLabel = QtGui.QLabel(SiteEditor)
        self.iconStatusLabel.setText(_fromUtf8(""))
        self.iconStatusLabel.setObjectName(_fromUtf8("iconStatusLabel"))
        self.gridLayout_2.addWidget(self.iconStatusLabel, 8, 2, 1, 1)
        self.iconLocationLineEdit = QtGui.QLineEdit(SiteEditor)
        self.iconLocationLineEdit.setObjectName(
            _fromUtf8("iconLocationLineEdit"))
        self.gridLayout_2.addWidget(self.iconLocationLineEdit, 6, 2, 1, 1)
        self.urlLineEdit = QtGui.QLineEdit(SiteEditor)
        self.urlLineEdit.setObjectName(_fromUtf8("urlLineEdit"))
        self.gridLayout_2.addWidget(self.urlLineEdit, 1, 2, 1, 2)
        self.label_4 = QtGui.QLabel(SiteEditor)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.gridLayout_2.addWidget(self.label_4, 6, 0, 1, 1)
        self.label_2 = QtGui.QLabel(SiteEditor)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout_2.addWidget(self.label_2, 1, 0, 1, 1)
        self.label = QtGui.QLabel(SiteEditor)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1)
        self.label_3 = QtGui.QLabel(SiteEditor)
        self.label_3.setWordWrap(True)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout_2.addWidget(self.label_3, 2, 2, 1, 2)
        self.iconPreviewLabel = QtGui.QLabel(SiteEditor)
        self.iconPreviewLabel.setText(_fromUtf8(""))
        self.iconPreviewLabel.setObjectName(_fromUtf8("iconPreviewLabel"))
        self.gridLayout_2.addWidget(self.iconPreviewLabel, 9, 2, 1, 1)
        self.checkBoxBrowserPlugins = QtGui.QCheckBox(SiteEditor)
        self.checkBoxBrowserPlugins.setObjectName(
            _fromUtf8("checkBoxBrowserPlugins"))
        self.gridLayout_2.addWidget(self.checkBoxBrowserPlugins, 5, 2, 1, 1)
        self.gridLayout.addLayout(self.gridLayout_2, 0, 0, 1, 1)
        self.newButtonBox = QtGui.QDialogButtonBox(SiteEditor)
        self.newButtonBox.setStandardButtons(QtGui.QDialogButtonBox.Discard
                                             | QtGui.QDialogButtonBox.Save)
        self.newButtonBox.setObjectName(_fromUtf8("newButtonBox"))
        self.gridLayout.addWidget(self.newButtonBox, 2, 0, 1, 1)
        self.existingButtonBox = QtGui.QDialogButtonBox(SiteEditor)
        self.existingButtonBox.setStandardButtons(QtGui.QDialogButtonBox.Close)
        self.existingButtonBox.setObjectName(_fromUtf8("existingButtonBox"))
        self.gridLayout.addWidget(self.existingButtonBox, 3, 0, 1, 1)

        self.retranslateUi(SiteEditor)
        QtCore.QMetaObject.connectSlotsByName(SiteEditor)
        SiteEditor.setTabOrder(self.nameLineEdit, self.urlLineEdit)
        SiteEditor.setTabOrder(self.urlLineEdit, self.checkBoxBrowserPlugins)
        SiteEditor.setTabOrder(self.checkBoxBrowserPlugins,
                               self.iconLocationLineEdit)
        SiteEditor.setTabOrder(self.iconLocationLineEdit, self.browseButton)
        SiteEditor.setTabOrder(self.browseButton, self.newButtonBox)
        SiteEditor.setTabOrder(self.newButtonBox, self.existingButtonBox)
Пример #25
-1
    def setupUi(self, ImportDecisionDialog):
        ImportDecisionDialog.setObjectName(_fromUtf8("ImportDecisionDialog"))
        ImportDecisionDialog.resize(800, 497)
        ImportDecisionDialog.setMinimumSize(QtCore.QSize(800, 497))
        ImportDecisionDialog.setMaximumSize(QtCore.QSize(800, 497))
        self.line = QtGui.QFrame(ImportDecisionDialog)
        self.line.setGeometry(QtCore.QRect(0, 26, 800, 3))
        self.line.setFrameShape(QtGui.QFrame.HLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName(_fromUtf8("line"))
        self.label = QtGui.QLabel(ImportDecisionDialog)
        self.label.setGeometry(QtCore.QRect(10, 8, 300, 12))
        self.label.setObjectName(_fromUtf8("label"))
        self.line_2 = QtGui.QFrame(ImportDecisionDialog)
        self.line_2.setGeometry(QtCore.QRect(0, 480, 800, 16))
        self.line_2.setFrameShape(QtGui.QFrame.HLine)
        self.line_2.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_2.setObjectName(_fromUtf8("line_2"))
        self.decision_tab_widget = QtGui.QTabWidget(ImportDecisionDialog)
        self.decision_tab_widget.setGeometry(QtCore.QRect(0, 30, 796, 451))
        self.decision_tab_widget.setObjectName(
            _fromUtf8("decision_tab_widget"))
        self.import_dec_tab = QtGui.QWidget()
        self.import_dec_tab.setObjectName(_fromUtf8("import_dec_tab"))
        self.close_button = QtGui.QPushButton(self.import_dec_tab)
        self.close_button.setGeometry(QtCore.QRect(684, 395, 73, 23))
        self.close_button.setObjectName(_fromUtf8("close_button"))
        self.import_button = QtGui.QPushButton(self.import_dec_tab)
        self.import_button.setGeometry(QtCore.QRect(594, 395, 73, 23))
        self.import_button.setObjectName(_fromUtf8("import_button"))
        self.Landownershiptranspor = QtGui.QGroupBox(self.import_dec_tab)
        self.Landownershiptranspor.setGeometry(QtCore.QRect(604, 0, 178, 380))
        self.Landownershiptranspor.setObjectName(
            _fromUtf8("Landownershiptranspor"))
        self.contract_date = QtGui.QDateEdit(self.Landownershiptranspor)
        self.contract_date.setEnabled(False)
        self.contract_date.setGeometry(QtCore.QRect(10, 160, 126, 22))
        self.contract_date.setObjectName(_fromUtf8("contract_date"))
        self.label_7 = QtGui.QLabel(self.Landownershiptranspor)
        self.label_7.setGeometry(QtCore.QRect(10, 53, 155, 16))
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.label_8 = QtGui.QLabel(self.Landownershiptranspor)
        self.label_8.setGeometry(QtCore.QRect(10, 97, 155, 16))
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.label_10 = QtGui.QLabel(self.Landownershiptranspor)
        self.label_10.setGeometry(QtCore.QRect(10, 140, 155, 16))
        self.label_10.setObjectName(_fromUtf8("label_10"))
        self.contract_id_edit = QtGui.QLineEdit(self.Landownershiptranspor)
        self.contract_id_edit.setEnabled(False)
        self.contract_id_edit.setGeometry(QtCore.QRect(10, 246, 127, 20))
        self.contract_id_edit.setObjectName(_fromUtf8("contract_id_edit"))
        self.seller_buyer_checkbox = QtGui.QCheckBox(
            self.Landownershiptranspor)
        self.seller_buyer_checkbox.setGeometry(QtCore.QRect(13, 25, 161, 17))
        self.seller_buyer_checkbox.setObjectName(
            _fromUtf8("seller_buyer_checkbox"))
        self.label_9 = QtGui.QLabel(self.Landownershiptranspor)
        self.label_9.setGeometry(QtCore.QRect(10, 226, 155, 16))
        self.label_9.setObjectName(_fromUtf8("label_9"))
        self.application_cbox = QtGui.QComboBox(self.Landownershiptranspor)
        self.application_cbox.setEnabled(False)
        self.application_cbox.setGeometry(QtCore.QRect(10, 117, 155, 22))
        self.application_cbox.setObjectName(_fromUtf8("application_cbox"))
        self.decision_save_button = QtGui.QPushButton(
            self.Landownershiptranspor)
        self.decision_save_button.setEnabled(False)
        self.decision_save_button.setGeometry(QtCore.QRect(20, 320, 141, 23))
        self.decision_save_button.setObjectName(
            _fromUtf8("decision_save_button"))
        self.person_id_edit = QtGui.QLineEdit(self.Landownershiptranspor)
        self.person_id_edit.setEnabled(False)
        self.person_id_edit.setGeometry(QtCore.QRect(10, 73, 127, 20))
        self.person_id_edit.setObjectName(_fromUtf8("person_id_edit"))
        self.notary_decision_edit = QtGui.QLineEdit(self.Landownershiptranspor)
        self.notary_decision_edit.setGeometry(QtCore.QRect(10, 289, 155, 20))
        self.notary_decision_edit.setReadOnly(True)
        self.notary_decision_edit.setObjectName(
            _fromUtf8("notary_decision_edit"))
        self.label_11 = QtGui.QLabel(self.Landownershiptranspor)
        self.label_11.setGeometry(QtCore.QRect(10, 269, 155, 16))
        self.label_11.setObjectName(_fromUtf8("label_11"))
        self.notary_number_edit = QtGui.QLineEdit(self.Landownershiptranspor)
        self.notary_number_edit.setEnabled(False)
        self.notary_number_edit.setGeometry(QtCore.QRect(10, 204, 127, 20))
        self.notary_number_edit.setObjectName(_fromUtf8("notary_number_edit"))
        self.label_12 = QtGui.QLabel(self.Landownershiptranspor)
        self.label_12.setGeometry(QtCore.QRect(10, 184, 155, 16))
        self.label_12.setObjectName(_fromUtf8("label_12"))
        self.groupBox = QtGui.QGroupBox(self.import_dec_tab)
        self.groupBox.setGeometry(QtCore.QRect(4, 0, 589, 381))
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.label_2 = QtGui.QLabel(self.groupBox)
        self.label_2.setGeometry(QtCore.QRect(30, 23, 300, 13))
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.decision_file_edit = QtGui.QLineEdit(self.groupBox)
        self.decision_file_edit.setGeometry(QtCore.QRect(30, 43, 231, 20))
        self.decision_file_edit.setObjectName(_fromUtf8("decision_file_edit"))
        self.select_file_button = QtGui.QPushButton(self.groupBox)
        self.select_file_button.setGeometry(QtCore.QRect(280, 42, 100, 23))
        self.select_file_button.setObjectName(_fromUtf8("select_file_button"))
        self.decision_no_edit = QtGui.QLineEdit(self.groupBox)
        self.decision_no_edit.setEnabled(False)
        self.decision_no_edit.setGeometry(QtCore.QRect(30, 94, 111, 21))
        self.decision_no_edit.setObjectName(_fromUtf8("decision_no_edit"))
        self.decision_date_edit = QtGui.QLineEdit(self.groupBox)
        self.decision_date_edit.setEnabled(False)
        self.decision_date_edit.setGeometry(QtCore.QRect(160, 94, 101, 21))
        self.decision_date_edit.setObjectName(_fromUtf8("decision_date_edit"))
        self.label_3 = QtGui.QLabel(self.groupBox)
        self.label_3.setGeometry(QtCore.QRect(30, 74, 131, 16))
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.label_4 = QtGui.QLabel(self.groupBox)
        self.label_4.setGeometry(QtCore.QRect(160, 74, 93, 16))
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.level_cbox = QtGui.QComboBox(self.groupBox)
        self.level_cbox.setEnabled(False)
        self.level_cbox.setGeometry(QtCore.QRect(280, 91, 281, 26))
        self.level_cbox.setObjectName(_fromUtf8("level_cbox"))
        self.label_5 = QtGui.QLabel(self.groupBox)
        self.label_5.setGeometry(QtCore.QRect(280, 71, 256, 20))
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.documents_groupbox = QtGui.QGroupBox(self.groupBox)
        self.documents_groupbox.setGeometry(QtCore.QRect(270, 170, 301, 181))
        self.documents_groupbox.setObjectName(_fromUtf8("documents_groupbox"))
        self.document_twidget = QtGui.QListWidget(self.documents_groupbox)
        self.document_twidget.setGeometry(QtCore.QRect(10, 30, 196, 141))
        self.document_twidget.setEditTriggers(
            QtGui.QAbstractItemView.NoEditTriggers)
        self.document_twidget.setObjectName(_fromUtf8("document_twidget"))
        self.add_document_button = QtGui.QPushButton(self.documents_groupbox)
        self.add_document_button.setEnabled(False)
        self.add_document_button.setGeometry(QtCore.QRect(213, 65, 81, 32))
        self.add_document_button.setObjectName(
            _fromUtf8("add_document_button"))
        self.delete_document_button = QtGui.QPushButton(
            self.documents_groupbox)
        self.delete_document_button.setEnabled(False)
        self.delete_document_button.setGeometry(QtCore.QRect(213, 130, 81, 32))
        self.delete_document_button.setObjectName(
            _fromUtf8("delete_document_button"))
        self.view_document_button = QtGui.QPushButton(self.documents_groupbox)
        self.view_document_button.setEnabled(False)
        self.view_document_button.setGeometry(QtCore.QRect(213, 98, 81, 32))
        self.view_document_button.setObjectName(
            _fromUtf8("view_document_button"))
        self.load_document_button = QtGui.QPushButton(self.documents_groupbox)
        self.load_document_button.setEnabled(False)
        self.load_document_button.setGeometry(QtCore.QRect(213, 32, 81, 32))
        self.load_document_button.setObjectName(
            _fromUtf8("load_document_button"))
        self.result_tree_widget = QtGui.QTreeWidget(self.groupBox)
        self.result_tree_widget.setGeometry(QtCore.QRect(30, 131, 231, 221))
        self.result_tree_widget.setObjectName(_fromUtf8("result_tree_widget"))
        self.label_6 = QtGui.QLabel(self.groupBox)
        self.label_6.setGeometry(QtCore.QRect(280, 121, 91, 16))
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.import_by_edit = QtGui.QLineEdit(self.groupBox)
        self.import_by_edit.setEnabled(False)
        self.import_by_edit.setGeometry(QtCore.QRect(280, 141, 197, 21))
        self.import_by_edit.setObjectName(_fromUtf8("import_by_edit"))
        self.error_details_button = QtGui.QPushButton(self.groupBox)
        self.error_details_button.setEnabled(False)
        self.error_details_button.setGeometry(QtCore.QRect(27, 350, 151, 23))
        self.error_details_button.setObjectName(
            _fromUtf8("error_details_button"))
        self.help_button = QtGui.QPushButton(self.import_dec_tab)
        self.help_button.setGeometry(QtCore.QRect(360, 395, 89, 23))
        self.help_button.setObjectName(_fromUtf8("help_button"))
        self.status_label = QtGui.QLabel(self.import_dec_tab)
        self.status_label.setGeometry(QtCore.QRect(10, 390, 341, 21))
        self.status_label.setText(_fromUtf8(""))
        self.status_label.setObjectName(_fromUtf8("status_label"))
        self.sent_to_ubeg_button = QtGui.QPushButton(self.import_dec_tab)
        self.sent_to_ubeg_button.setGeometry(QtCore.QRect(462, 395, 121, 23))
        self.sent_to_ubeg_button.setObjectName(
            _fromUtf8("sent_to_ubeg_button"))
        self.decision_tab_widget.addTab(self.import_dec_tab, _fromUtf8(""))
        self.join_app_tab = QtGui.QWidget()
        self.join_app_tab.setObjectName(_fromUtf8("join_app_tab"))
        self.groupBox_2 = QtGui.QGroupBox(self.join_app_tab)
        self.groupBox_2.setGeometry(QtCore.QRect(4, 0, 281, 421))
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.label_17 = QtGui.QLabel(self.groupBox_2)
        self.label_17.setGeometry(QtCore.QRect(10, 56, 131, 16))
        self.label_17.setObjectName(_fromUtf8("label_17"))
        self.decision_no_search_edit = QtGui.QLineEdit(self.groupBox_2)
        self.decision_no_search_edit.setGeometry(QtCore.QRect(10, 33, 259, 20))
        self.decision_no_search_edit.setObjectName(
            _fromUtf8("decision_no_search_edit"))
        self.decision_date_result_edit = QtGui.QLineEdit(self.groupBox_2)
        self.decision_date_result_edit.setEnabled(False)
        self.decision_date_result_edit.setGeometry(
            QtCore.QRect(148, 76, 121, 21))
        self.decision_date_result_edit.setObjectName(
            _fromUtf8("decision_date_result_edit"))
        self.label_16 = QtGui.QLabel(self.groupBox_2)
        self.label_16.setGeometry(QtCore.QRect(10, 99, 256, 20))
        self.label_16.setObjectName(_fromUtf8("label_16"))
        self.decision_result_twidget = QtGui.QTableWidget(self.groupBox_2)
        self.decision_result_twidget.setGeometry(
            QtCore.QRect(10, 216, 261, 191))
        self.decision_result_twidget.setObjectName(
            _fromUtf8("decision_result_twidget"))
        self.decision_result_twidget.setColumnCount(1)
        self.decision_result_twidget.setRowCount(0)
        item = QtGui.QTableWidgetItem()
        self.decision_result_twidget.setHorizontalHeaderItem(0, item)
        self.decision_result_twidget.horizontalHeader().setDefaultSectionSize(
            250)
        self.decision_no_result_edit = QtGui.QLineEdit(self.groupBox_2)
        self.decision_no_result_edit.setEnabled(False)
        self.decision_no_result_edit.setGeometry(QtCore.QRect(10, 76, 121, 21))
        self.decision_no_result_edit.setObjectName(
            _fromUtf8("decision_no_result_edit"))
        self.label_15 = QtGui.QLabel(self.groupBox_2)
        self.label_15.setGeometry(QtCore.QRect(148, 56, 121, 16))
        self.label_15.setObjectName(_fromUtf8("label_15"))
        self.application_type_edit = QtGui.QLineEdit(self.groupBox_2)
        self.application_type_edit.setEnabled(False)
        self.application_type_edit.setGeometry(QtCore.QRect(10, 169, 261, 21))
        self.application_type_edit.setObjectName(
            _fromUtf8("application_type_edit"))
        self.label_18 = QtGui.QLabel(self.groupBox_2)
        self.label_18.setGeometry(QtCore.QRect(10, 149, 261, 16))
        self.label_18.setObjectName(_fromUtf8("label_18"))
        self.label_13 = QtGui.QLabel(self.groupBox_2)
        self.label_13.setGeometry(QtCore.QRect(10, 13, 201, 16))
        self.label_13.setObjectName(_fromUtf8("label_13"))
        self.label_14 = QtGui.QLabel(self.groupBox_2)
        self.label_14.setGeometry(QtCore.QRect(11, 196, 201, 16))
        self.label_14.setObjectName(_fromUtf8("label_14"))
        self.level_result_edit = QtGui.QLineEdit(self.groupBox_2)
        self.level_result_edit.setEnabled(False)
        self.level_result_edit.setGeometry(QtCore.QRect(10, 120, 261, 21))
        self.level_result_edit.setObjectName(_fromUtf8("level_result_edit"))
        self.groupBox_3 = QtGui.QGroupBox(self.join_app_tab)
        self.groupBox_3.setGeometry(QtCore.QRect(300, 0, 481, 421))
        self.groupBox_3.setObjectName(_fromUtf8("groupBox_3"))
        self.person_id_find_edit = QtGui.QLineEdit(self.groupBox_3)
        self.person_id_find_edit.setGeometry(QtCore.QRect(10, 33, 121, 20))
        self.person_id_find_edit.setObjectName(
            _fromUtf8("person_id_find_edit"))
        self.app_cancel_button = QtGui.QPushButton(self.groupBox_3)
        self.app_cancel_button.setGeometry(QtCore.QRect(148, 241, 60, 23))
        self.app_cancel_button.setObjectName(_fromUtf8("app_cancel_button"))
        self.app_join_button = QtGui.QPushButton(self.groupBox_3)
        self.app_join_button.setEnabled(True)
        self.app_join_button.setGeometry(QtCore.QRect(78, 241, 60, 23))
        self.app_join_button.setObjectName(_fromUtf8("app_join_button"))
        self.label_19 = QtGui.QLabel(self.groupBox_3)
        self.label_19.setGeometry(QtCore.QRect(11, 14, 121, 16))
        self.label_19.setObjectName(_fromUtf8("label_19"))
        self.result_app_twidget = QtGui.QTableWidget(self.groupBox_3)
        self.result_app_twidget.setGeometry(QtCore.QRect(10, 104, 261, 131))
        self.result_app_twidget.setObjectName(_fromUtf8("result_app_twidget"))
        self.result_app_twidget.setColumnCount(1)
        self.result_app_twidget.setRowCount(0)
        item = QtGui.QTableWidgetItem()
        self.result_app_twidget.setHorizontalHeaderItem(0, item)
        self.result_app_twidget.horizontalHeader().setDefaultSectionSize(250)
        self.join_app_twidget = QtGui.QTableWidget(self.groupBox_3)
        self.join_app_twidget.setGeometry(QtCore.QRect(10, 270, 261, 137))
        self.join_app_twidget.setObjectName(_fromUtf8("join_app_twidget"))
        self.join_app_twidget.setColumnCount(1)
        self.join_app_twidget.setRowCount(0)
        item = QtGui.QTableWidgetItem()
        self.join_app_twidget.setHorizontalHeaderItem(0, item)
        self.join_app_twidget.horizontalHeader().setDefaultSectionSize(250)
        self.app_no_find_edit = QtGui.QLineEdit(self.groupBox_3)
        self.app_no_find_edit.setGeometry(QtCore.QRect(139, 33, 132, 20))
        self.app_no_find_edit.setObjectName(_fromUtf8("app_no_find_edit"))
        self.label_20 = QtGui.QLabel(self.groupBox_3)
        self.label_20.setGeometry(QtCore.QRect(140, 13, 131, 16))
        self.label_20.setObjectName(_fromUtf8("label_20"))
        self.label_21 = QtGui.QLabel(self.groupBox_3)
        self.label_21.setGeometry(QtCore.QRect(280, 13, 191, 16))
        self.label_21.setObjectName(_fromUtf8("label_21"))
        self.officer_by_find_cbox = QtGui.QComboBox(self.groupBox_3)
        self.officer_by_find_cbox.setGeometry(QtCore.QRect(280, 33, 193, 22))
        self.officer_by_find_cbox.setObjectName(
            _fromUtf8("officer_by_find_cbox"))
        self.label_22 = QtGui.QLabel(self.groupBox_3)
        self.label_22.setGeometry(QtCore.QRect(10, 56, 261, 16))
        self.label_22.setObjectName(_fromUtf8("label_22"))
        self.app_find_button = QtGui.QPushButton(self.groupBox_3)
        self.app_find_button.setGeometry(QtCore.QRect(279, 73, 91, 23))
        self.app_find_button.setObjectName(_fromUtf8("app_find_button"))
        self.parcel_id_find_edit = QtGui.QLineEdit(self.groupBox_3)
        self.parcel_id_find_edit.setGeometry(QtCore.QRect(10, 75, 261, 20))
        self.parcel_id_find_edit.setObjectName(
            _fromUtf8("parcel_id_find_edit"))
        self.clear_button = QtGui.QPushButton(self.groupBox_3)
        self.clear_button.setGeometry(QtCore.QRect(382, 73, 91, 23))
        self.clear_button.setObjectName(_fromUtf8("clear_button"))
        self.save_button = QtGui.QPushButton(self.groupBox_3)
        self.save_button.setEnabled(True)
        self.save_button.setGeometry(QtCore.QRect(279, 385, 194, 23))
        self.save_button.setObjectName(_fromUtf8("save_button"))
        self.label_23 = QtGui.QLabel(self.groupBox_3)
        self.label_23.setGeometry(QtCore.QRect(280, 110, 191, 16))
        self.label_23.setObjectName(_fromUtf8("label_23"))
        self.surname_edit = QtGui.QLineEdit(self.groupBox_3)
        self.surname_edit.setGeometry(QtCore.QRect(280, 130, 191, 20))
        self.surname_edit.setObjectName(_fromUtf8("surname_edit"))
        self.firstname_edit = QtGui.QLineEdit(self.groupBox_3)
        self.firstname_edit.setGeometry(QtCore.QRect(280, 173, 191, 20))
        self.firstname_edit.setObjectName(_fromUtf8("firstname_edit"))
        self.label_24 = QtGui.QLabel(self.groupBox_3)
        self.label_24.setGeometry(QtCore.QRect(280, 153, 191, 16))
        self.label_24.setObjectName(_fromUtf8("label_24"))
        self.label_25 = QtGui.QLabel(self.groupBox_3)
        self.label_25.setGeometry(QtCore.QRect(280, 195, 191, 16))
        self.label_25.setObjectName(_fromUtf8("label_25"))
        self.streetname_edit = QtGui.QLineEdit(self.groupBox_3)
        self.streetname_edit.setGeometry(QtCore.QRect(280, 215, 191, 20))
        self.streetname_edit.setObjectName(_fromUtf8("streetname_edit"))
        self.label_26 = QtGui.QLabel(self.groupBox_3)
        self.label_26.setGeometry(QtCore.QRect(280, 240, 191, 16))
        self.label_26.setObjectName(_fromUtf8("label_26"))
        self.khashaa_edit = QtGui.QLineEdit(self.groupBox_3)
        self.khashaa_edit.setGeometry(QtCore.QRect(280, 260, 191, 20))
        self.khashaa_edit.setObjectName(_fromUtf8("khashaa_edit"))
        self.decision_tab_widget.addTab(self.join_app_tab, _fromUtf8(""))

        self.retranslateUi(ImportDecisionDialog)
        self.decision_tab_widget.setCurrentIndex(1)
        QtCore.QMetaObject.connectSlotsByName(ImportDecisionDialog)