def setupUi(self, MainWindow): MainWindow.setObjectName(_fromUtf8("MainWindow")) MainWindow.resize(763, 511) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth()) MainWindow.setSizePolicy(sizePolicy) MainWindow.setAnimated(False) MainWindow.setDockOptions(QtGui.QMainWindow.AllowTabbedDocks) MainWindow.setUnifiedTitleAndToolBarOnMac(False) self.centralwidget = QtGui.QWidget(MainWindow) self.centralwidget.setObjectName(_fromUtf8("centralwidget")) MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtGui.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 763, 21)) self.menubar.setObjectName(_fromUtf8("menubar")) MainWindow.setMenuBar(self.menubar) self.statusbar = QtGui.QStatusBar(MainWindow) self.statusbar.setObjectName(_fromUtf8("statusbar")) MainWindow.setStatusBar(self.statusbar) self.dockWidget = QtGui.QDockWidget(MainWindow) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.dockWidget.sizePolicy().hasHeightForWidth()) self.dockWidget.setSizePolicy(sizePolicy) self.dockWidget.setFeatures(QtGui.QDockWidget.NoDockWidgetFeatures) self.dockWidget.setObjectName(_fromUtf8("dockWidget")) self.dockWidgetContents = QtGui.QWidget() self.dockWidgetContents.setObjectName(_fromUtf8("dockWidgetContents")) self.verticalLayout = QtGui.QVBoxLayout(self.dockWidgetContents) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.textBrowser = QtGui.QTextBrowser(self.dockWidgetContents) self.textBrowser.setObjectName(_fromUtf8("textBrowser")) self.verticalLayout.addWidget(self.textBrowser) self.label = QtGui.QLabel(self.dockWidgetContents) self.label.setObjectName(_fromUtf8("label")) self.verticalLayout.addWidget(self.label) self.horizontalSlider = QtGui.QSlider(self.dockWidgetContents) self.horizontalSlider.setMinimum(-100) self.horizontalSlider.setMaximum(100) self.horizontalSlider.setTickInterval(20) self.horizontalSlider.setOrientation(QtCore.Qt.Horizontal) self.horizontalSlider.setTickPosition(QtGui.QSlider.TicksAbove) self.horizontalSlider.setObjectName(_fromUtf8("horizontalSlider")) self.verticalLayout.addWidget(self.horizontalSlider) self.label_2 = QtGui.QLabel(self.dockWidgetContents) self.label_2.setObjectName(_fromUtf8("label_2")) self.verticalLayout.addWidget(self.label_2) self.horizontalSlider_2 = QtGui.QSlider(self.dockWidgetContents) self.horizontalSlider_2.setMinimum(10) self.horizontalSlider_2.setMaximum(120) self.horizontalSlider_2.setValue(43) self.horizontalSlider_2.setOrientation(QtCore.Qt.Horizontal) self.horizontalSlider_2.setTickPosition(QtGui.QSlider.TicksAbove) self.horizontalSlider_2.setObjectName(_fromUtf8("horizontalSlider_2")) self.verticalLayout.addWidget(self.horizontalSlider_2) self.label_3 = QtGui.QLabel(self.dockWidgetContents) self.label_3.setObjectName(_fromUtf8("label_3")) self.verticalLayout.addWidget(self.label_3) self.horizontalSlider_3 = QtGui.QSlider(self.dockWidgetContents) self.horizontalSlider_3.setMaximum(100) self.horizontalSlider_3.setValue(50) self.horizontalSlider_3.setOrientation(QtCore.Qt.Horizontal) self.horizontalSlider_3.setInvertedControls(False) self.horizontalSlider_3.setTickPosition(QtGui.QSlider.NoTicks) self.horizontalSlider_3.setTickInterval(20) self.horizontalSlider_3.setObjectName(_fromUtf8("horizontalSlider_3")) self.verticalLayout.addWidget(self.horizontalSlider_3) self.frame = QtGui.QFrame(self.dockWidgetContents) self.frame.setFrameShape(QtGui.QFrame.NoFrame) self.frame.setFrameShadow(QtGui.QFrame.Plain) self.frame.setLineWidth(0) self.frame.setObjectName(_fromUtf8("frame")) self.horizontalLayout = QtGui.QHBoxLayout(self.frame) self.horizontalLayout.setSpacing(6) self.horizontalLayout.setMargin(0) self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.saveKMLButton = QtGui.QPushButton(self.frame) self.saveKMLButton.setObjectName(_fromUtf8("saveKMLButton")) self.horizontalLayout.addWidget(self.saveKMLButton) self.loadKMLButton = QtGui.QPushButton(self.frame) self.loadKMLButton.setObjectName(_fromUtf8("loadKMLButton")) self.horizontalLayout.addWidget(self.loadKMLButton) self.verticalLayout.addWidget(self.frame) self.goToMonoplotterButton = QtGui.QPushButton(self.dockWidgetContents) self.goToMonoplotterButton.setObjectName(_fromUtf8("goToMonoplotterButton")) self.verticalLayout.addWidget(self.goToMonoplotterButton) self.GoToGCP = QtGui.QPushButton(self.dockWidgetContents) self.GoToGCP.setObjectName(_fromUtf8("GoToGCP")) self.verticalLayout.addWidget(self.GoToGCP) self.dockWidget.setWidget(self.dockWidgetContents) MainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(2), self.dockWidget) self.retranslateUi(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow)
def setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(638, 455) self.lineEditChemin = QtGui.QLineEdit(Form) self.lineEditChemin.setGeometry(QtCore.QRect(195, 125, 436, 21)) self.lineEditChemin.setObjectName(_fromUtf8("lineEditChemin")) self.textEdit = QtGui.QTextEdit(Form) self.textEdit.setGeometry(QtCore.QRect(195, 185, 431, 261)) self.textEdit.setLineWrapMode(QtGui.QTextEdit.NoWrap) self.textEdit.setObjectName(_fromUtf8("textEdit")) self.pushButtonNouveau = QtGui.QPushButton(Form) self.pushButtonNouveau.setGeometry(QtCore.QRect(195, 155, 86, 21)) self.pushButtonNouveau.setObjectName(_fromUtf8("pushButtonNouveau")) self.pushButtonOuvrir = QtGui.QPushButton(Form) self.pushButtonOuvrir.setGeometry(QtCore.QRect(285, 155, 85, 21)) self.pushButtonOuvrir.setObjectName(_fromUtf8("pushButtonOuvrir")) self.pushButtonEnregistrer = QtGui.QPushButton(Form) self.pushButtonEnregistrer.setGeometry(QtCore.QRect(375, 155, 86, 21)) self.pushButtonEnregistrer.setObjectName( _fromUtf8("pushButtonEnregistrer")) self.pushButtonEnvoiGCode = QtGui.QPushButton(Form) self.pushButtonEnvoiGCode.setGeometry(QtCore.QRect(470, 155, 136, 21)) self.pushButtonEnvoiGCode.setObjectName( _fromUtf8("pushButtonEnvoiGCode")) self.line_5 = QtGui.QFrame(Form) self.line_5.setGeometry(QtCore.QRect(190, 110, 436, 16)) self.line_5.setFrameShape(QtGui.QFrame.HLine) self.line_5.setFrameShadow(QtGui.QFrame.Sunken) self.line_5.setObjectName(_fromUtf8("line_5")) self.labelTraceAnalyseChaine = QtGui.QLabel(Form) self.labelTraceAnalyseChaine.setGeometry(QtCore.QRect(200, 5, 276, 16)) self.labelTraceAnalyseChaine.setObjectName( _fromUtf8("labelTraceAnalyseChaine")) self.textEditTraceAnalyseChaine = QtGui.QTextEdit(Form) self.textEditTraceAnalyseChaine.setGeometry( QtCore.QRect(200, 20, 426, 91)) self.textEditTraceAnalyseChaine.setStyleSheet( _fromUtf8("color: rgb(0, 170, 0);\n" "background-color: rgb(188, 255, 193);\n" "")) self.textEditTraceAnalyseChaine.setLineWrapMode(QtGui.QTextEdit.NoWrap) self.textEditTraceAnalyseChaine.setObjectName( _fromUtf8("textEditTraceAnalyseChaine")) self.labelTraceEnvoiSerie = QtGui.QLabel(Form) self.labelTraceEnvoiSerie.setGeometry(QtCore.QRect(5, 200, 191, 16)) self.labelTraceEnvoiSerie.setObjectName( _fromUtf8("labelTraceEnvoiSerie")) self.labelFinLigne = QtGui.QLabel(Form) self.labelFinLigne.setGeometry(QtCore.QRect(5, 155, 71, 16)) self.labelFinLigne.setObjectName(_fromUtf8("labelFinLigne")) self.comboBoxDebit = QtGui.QComboBox(Form) self.comboBoxDebit.setGeometry(QtCore.QRect(5, 60, 121, 24)) self.comboBoxDebit.setObjectName(_fromUtf8("comboBoxDebit")) self.comboBoxDebit.addItem(_fromUtf8("")) self.comboBoxDebit.addItem(_fromUtf8("")) self.comboBoxDebit.addItem(_fromUtf8("")) self.comboBoxDebit.addItem(_fromUtf8("")) self.comboBoxDebit.addItem(_fromUtf8("")) self.comboBoxDebit.addItem(_fromUtf8("")) self.comboBoxDebit.addItem(_fromUtf8("")) self.comboBoxDebit.addItem(_fromUtf8("")) self.textEditReception = QtGui.QTextEdit(Form) self.textEditReception.setGeometry(QtCore.QRect(5, 340, 171, 111)) self.textEditReception.setStyleSheet( _fromUtf8("background-color: rgb(244, 255, 190);")) self.textEditReception.setObjectName(_fromUtf8("textEditReception")) self.line_2 = QtGui.QFrame(Form) self.line_2.setGeometry(QtCore.QRect(5, 190, 166, 16)) self.line_2.setFrameShape(QtGui.QFrame.HLine) self.line_2.setFrameShadow(QtGui.QFrame.Sunken) self.line_2.setObjectName(_fromUtf8("line_2")) self.comboBoxFinLigne = QtGui.QComboBox(Form) self.comboBoxFinLigne.setGeometry(QtCore.QRect(5, 170, 121, 24)) self.comboBoxFinLigne.setObjectName(_fromUtf8("comboBoxFinLigne")) self.comboBoxFinLigne.addItem(_fromUtf8("")) self.comboBoxFinLigne.addItem(_fromUtf8("")) self.comboBoxFinLigne.addItem(_fromUtf8("")) self.comboBoxFinLigne.addItem(_fromUtf8("")) self.pushButtonEnvoi = QtGui.QPushButton(Form) self.pushButtonEnvoi.setGeometry(QtCore.QRect(130, 155, 41, 41)) self.pushButtonEnvoi.setObjectName(_fromUtf8("pushButtonEnvoi")) self.spinBoxDelaiReception = QtGui.QSpinBox(Form) self.spinBoxDelaiReception.setGeometry(QtCore.QRect(110, 85, 71, 23)) self.spinBoxDelaiReception.setMaximum(10000) self.spinBoxDelaiReception.setProperty("value", 20) self.spinBoxDelaiReception.setObjectName( _fromUtf8("spinBoxDelaiReception")) self.comboBoxPort = QtGui.QComboBox(Form) self.comboBoxPort.setGeometry(QtCore.QRect(5, 20, 121, 24)) self.comboBoxPort.setEditable(True) self.comboBoxPort.setObjectName(_fromUtf8("comboBoxPort")) self.comboBoxPort.addItem(_fromUtf8("")) self.comboBoxPort.addItem(_fromUtf8("")) self.comboBoxPort.addItem(_fromUtf8("")) self.comboBoxPort.addItem(_fromUtf8("")) self.labelDebit = QtGui.QLabel(Form) self.labelDebit.setGeometry(QtCore.QRect(5, 45, 111, 16)) self.labelDebit.setObjectName(_fromUtf8("labelDebit")) self.line_3 = QtGui.QFrame(Form) self.line_3.setGeometry(QtCore.QRect(175, 10, 16, 441)) self.line_3.setFrameShape(QtGui.QFrame.VLine) self.line_3.setFrameShadow(QtGui.QFrame.Sunken) self.line_3.setObjectName(_fromUtf8("line_3")) self.textEditTraceEnvoiSerie = QtGui.QTextEdit(Form) self.textEditTraceEnvoiSerie.setGeometry(QtCore.QRect( 5, 215, 171, 106)) self.textEditTraceEnvoiSerie.setStyleSheet( _fromUtf8("color: rgb(0, 0, 255);\n" "background-color: rgb(170, 255, 255);")) self.textEditTraceEnvoiSerie.setLineWrapMode(QtGui.QTextEdit.NoWrap) self.textEditTraceEnvoiSerie.setObjectName( _fromUtf8("textEditTraceEnvoiSerie")) self.pushButtonInitSerial = QtGui.QPushButton(Form) self.pushButtonInitSerial.setGeometry(QtCore.QRect(130, 5, 41, 41)) self.pushButtonInitSerial.setObjectName( _fromUtf8("pushButtonInitSerial")) self.labelChaineEnvoi = QtGui.QLabel(Form) self.labelChaineEnvoi.setGeometry(QtCore.QRect(5, 115, 121, 16)) self.labelChaineEnvoi.setObjectName(_fromUtf8("labelChaineEnvoi")) self.labelReception = QtGui.QLabel(Form) self.labelReception.setGeometry(QtCore.QRect(5, 325, 171, 16)) self.labelReception.setObjectName(_fromUtf8("labelReception")) self.labelDelaiRecept = QtGui.QLabel(Form) self.labelDelaiRecept.setGeometry(QtCore.QRect(5, 90, 106, 16)) self.labelDelaiRecept.setObjectName(_fromUtf8("labelDelaiRecept")) self.lineEditChaineEnvoi = QtGui.QLineEdit(Form) self.lineEditChaineEnvoi.setGeometry(QtCore.QRect(5, 130, 166, 23)) self.lineEditChaineEnvoi.setText(_fromUtf8("")) self.lineEditChaineEnvoi.setObjectName( _fromUtf8("lineEditChaineEnvoi")) self.pushButtonStop = QtGui.QPushButton(Form) self.pushButtonStop.setGeometry(QtCore.QRect(130, 50, 41, 31)) self.pushButtonStop.setObjectName(_fromUtf8("pushButtonStop")) self.line = QtGui.QFrame(Form) self.line.setGeometry(QtCore.QRect(5, 105, 166, 16)) self.line.setFrameShape(QtGui.QFrame.HLine) self.line.setFrameShadow(QtGui.QFrame.Sunken) self.line.setObjectName(_fromUtf8("line")) self.labelPort = QtGui.QLabel(Form) self.labelPort.setGeometry(QtCore.QRect(5, 5, 101, 16)) self.labelPort.setObjectName(_fromUtf8("labelPort")) self.retranslateUi(Form) self.comboBoxFinLigne.setCurrentIndex(1) QtCore.QMetaObject.connectSlotsByName(Form)
def setupUi(self, Dialog): Dialog.setObjectName(_fromUtf8("Dialog")) Dialog.resize(326, 310) self.verticalLayout = QtGui.QVBoxLayout(Dialog) self.verticalLayout.setSpacing(6) self.verticalLayout.setMargin(3) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.groupBox = QtGui.QGroupBox(Dialog) self.groupBox.setTitle(_fromUtf8("")) self.groupBox.setObjectName(_fromUtf8("groupBox")) self.verticalLayout_2 = QtGui.QVBoxLayout(self.groupBox) self.verticalLayout_2.setSpacing(0) self.verticalLayout_2.setMargin(3) self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.groupBox_5 = QtGui.QGroupBox(self.groupBox) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Maximum) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.groupBox_5.sizePolicy().hasHeightForWidth()) self.groupBox_5.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) self.groupBox_5.setFont(font) self.groupBox_5.setObjectName(_fromUtf8("groupBox_5")) self.horizontalLayout_19 = QtGui.QHBoxLayout(self.groupBox_5) self.horizontalLayout_19.setSpacing(0) self.horizontalLayout_19.setMargin(0) self.horizontalLayout_19.setObjectName( _fromUtf8("horizontalLayout_19")) self.frame_18 = QtGui.QFrame(self.groupBox_5) self.frame_18.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_18.setFrameShadow(QtGui.QFrame.Raised) self.frame_18.setObjectName(_fromUtf8("frame_18")) self.verticalLayout_13 = QtGui.QVBoxLayout(self.frame_18) self.verticalLayout_13.setSpacing(0) self.verticalLayout_13.setContentsMargins(-1, -1, 0, -1) self.verticalLayout_13.setObjectName(_fromUtf8("verticalLayout_13")) self.frame_19 = QtGui.QFrame(self.frame_18) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.frame_19.sizePolicy().hasHeightForWidth()) self.frame_19.setSizePolicy(sizePolicy) self.frame_19.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_19.setFrameShadow(QtGui.QFrame.Raised) self.frame_19.setObjectName(_fromUtf8("frame_19")) self.horizontalLayout_20 = QtGui.QHBoxLayout(self.frame_19) self.horizontalLayout_20.setSpacing(0) self.horizontalLayout_20.setMargin(0) self.horizontalLayout_20.setObjectName( _fromUtf8("horizontalLayout_20")) self.label_9 = QtGui.QLabel(self.frame_19) self.label_9.setMaximumSize(QtCore.QSize(60, 16777215)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.label_9.setFont(font) self.label_9.setObjectName(_fromUtf8("label_9")) self.horizontalLayout_20.addWidget(self.label_9) self.txtTHR_X = QtGui.QLineEdit(self.frame_19) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtTHR_X.sizePolicy().hasHeightForWidth()) self.txtTHR_X.setSizePolicy(sizePolicy) self.txtTHR_X.setMaximumSize(QtCore.QSize(16777215, 16777215)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) self.txtTHR_X.setFont(font) self.txtTHR_X.setObjectName(_fromUtf8("txtTHR_X")) self.horizontalLayout_20.addWidget(self.txtTHR_X) self.verticalLayout_13.addWidget(self.frame_19) self.frame_20 = QtGui.QFrame(self.frame_18) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.frame_20.sizePolicy().hasHeightForWidth()) self.frame_20.setSizePolicy(sizePolicy) self.frame_20.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_20.setFrameShadow(QtGui.QFrame.Raised) self.frame_20.setObjectName(_fromUtf8("frame_20")) self.horizontalLayout_21 = QtGui.QHBoxLayout(self.frame_20) self.horizontalLayout_21.setSpacing(0) self.horizontalLayout_21.setMargin(0) self.horizontalLayout_21.setObjectName( _fromUtf8("horizontalLayout_21")) self.label_10 = QtGui.QLabel(self.frame_20) self.label_10.setMaximumSize(QtCore.QSize(60, 16777215)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.label_10.setFont(font) self.label_10.setObjectName(_fromUtf8("label_10")) self.horizontalLayout_21.addWidget(self.label_10) self.txtTHR_Y = QtGui.QLineEdit(self.frame_20) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtTHR_Y.sizePolicy().hasHeightForWidth()) self.txtTHR_Y.setSizePolicy(sizePolicy) self.txtTHR_Y.setMaximumSize(QtCore.QSize(16777215, 16777215)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) self.txtTHR_Y.setFont(font) self.txtTHR_Y.setObjectName(_fromUtf8("txtTHR_Y")) self.horizontalLayout_21.addWidget(self.txtTHR_Y) self.verticalLayout_13.addWidget(self.frame_20) self.horizontalLayout_19.addWidget(self.frame_18) self.frame_21 = QtGui.QFrame(self.groupBox_5) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.frame_21.sizePolicy().hasHeightForWidth()) self.frame_21.setSizePolicy(sizePolicy) self.frame_21.setMaximumSize(QtCore.QSize(30, 70)) self.frame_21.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_21.setFrameShadow(QtGui.QFrame.Raised) self.frame_21.setObjectName(_fromUtf8("frame_21")) self.verticalLayout_14 = QtGui.QVBoxLayout(self.frame_21) self.verticalLayout_14.setSpacing(0) self.verticalLayout_14.setMargin(0) self.verticalLayout_14.setObjectName(_fromUtf8("verticalLayout_14")) self.btnCaptureRunwayTHR = QtGui.QToolButton(self.frame_21) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.btnCaptureRunwayTHR.sizePolicy().hasHeightForWidth()) self.btnCaptureRunwayTHR.setSizePolicy(sizePolicy) self.btnCaptureRunwayTHR.setMaximumSize(QtCore.QSize(16777215, 30)) icon = QtGui.QIcon() icon.addPixmap( QtGui.QPixmap(_fromUtf8("Resource/coordinate_capture.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.btnCaptureRunwayTHR.setIcon(icon) self.btnCaptureRunwayTHR.setObjectName( _fromUtf8("btnCaptureRunwayTHR")) self.verticalLayout_14.addWidget(self.btnCaptureRunwayTHR) self.btnToolTHR = QtGui.QToolButton(self.frame_21) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.btnToolTHR.sizePolicy().hasHeightForWidth()) self.btnToolTHR.setSizePolicy(sizePolicy) self.btnToolTHR.setMaximumSize(QtCore.QSize(16777215, 20)) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/sort2.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.btnToolTHR.setIcon(icon1) self.btnToolTHR.setObjectName(_fromUtf8("btnToolTHR")) self.verticalLayout_14.addWidget(self.btnToolTHR) self.horizontalLayout_19.addWidget(self.frame_21) self.verticalLayout_2.addWidget(self.groupBox_5) self.groupBox_4 = QtGui.QGroupBox(self.groupBox) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Maximum) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.groupBox_4.sizePolicy().hasHeightForWidth()) self.groupBox_4.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) self.groupBox_4.setFont(font) self.groupBox_4.setObjectName(_fromUtf8("groupBox_4")) self.horizontalLayout_16 = QtGui.QHBoxLayout(self.groupBox_4) self.horizontalLayout_16.setSpacing(0) self.horizontalLayout_16.setMargin(0) self.horizontalLayout_16.setObjectName( _fromUtf8("horizontalLayout_16")) self.frame_14 = QtGui.QFrame(self.groupBox_4) self.frame_14.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_14.setFrameShadow(QtGui.QFrame.Raised) self.frame_14.setObjectName(_fromUtf8("frame_14")) self.verticalLayout_11 = QtGui.QVBoxLayout(self.frame_14) self.verticalLayout_11.setSpacing(0) self.verticalLayout_11.setContentsMargins(-1, -1, 0, -1) self.verticalLayout_11.setObjectName(_fromUtf8("verticalLayout_11")) self.frame_15 = QtGui.QFrame(self.frame_14) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.frame_15.sizePolicy().hasHeightForWidth()) self.frame_15.setSizePolicy(sizePolicy) self.frame_15.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_15.setFrameShadow(QtGui.QFrame.Raised) self.frame_15.setObjectName(_fromUtf8("frame_15")) self.horizontalLayout_17 = QtGui.QHBoxLayout(self.frame_15) self.horizontalLayout_17.setSpacing(0) self.horizontalLayout_17.setMargin(0) self.horizontalLayout_17.setObjectName( _fromUtf8("horizontalLayout_17")) self.label_7 = QtGui.QLabel(self.frame_15) self.label_7.setMaximumSize(QtCore.QSize(60, 16777215)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.label_7.setFont(font) self.label_7.setObjectName(_fromUtf8("label_7")) self.horizontalLayout_17.addWidget(self.label_7) self.txtEND_X = QtGui.QLineEdit(self.frame_15) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtEND_X.sizePolicy().hasHeightForWidth()) self.txtEND_X.setSizePolicy(sizePolicy) self.txtEND_X.setMaximumSize(QtCore.QSize(16777215, 16777215)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) self.txtEND_X.setFont(font) self.txtEND_X.setObjectName(_fromUtf8("txtEND_X")) self.horizontalLayout_17.addWidget(self.txtEND_X) self.verticalLayout_11.addWidget(self.frame_15) self.frame_16 = QtGui.QFrame(self.frame_14) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.frame_16.sizePolicy().hasHeightForWidth()) self.frame_16.setSizePolicy(sizePolicy) self.frame_16.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_16.setFrameShadow(QtGui.QFrame.Raised) self.frame_16.setObjectName(_fromUtf8("frame_16")) self.horizontalLayout_18 = QtGui.QHBoxLayout(self.frame_16) self.horizontalLayout_18.setSpacing(0) self.horizontalLayout_18.setMargin(0) self.horizontalLayout_18.setObjectName( _fromUtf8("horizontalLayout_18")) self.label_8 = QtGui.QLabel(self.frame_16) self.label_8.setMaximumSize(QtCore.QSize(60, 16777215)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.label_8.setFont(font) self.label_8.setObjectName(_fromUtf8("label_8")) self.horizontalLayout_18.addWidget(self.label_8) self.txtEND_Y = QtGui.QLineEdit(self.frame_16) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtEND_Y.sizePolicy().hasHeightForWidth()) self.txtEND_Y.setSizePolicy(sizePolicy) self.txtEND_Y.setMaximumSize(QtCore.QSize(16777215, 16777215)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) self.txtEND_Y.setFont(font) self.txtEND_Y.setObjectName(_fromUtf8("txtEND_Y")) self.horizontalLayout_18.addWidget(self.txtEND_Y) self.verticalLayout_11.addWidget(self.frame_16) self.horizontalLayout_16.addWidget(self.frame_14) self.frame_17 = QtGui.QFrame(self.groupBox_4) self.frame_17.setMaximumSize(QtCore.QSize(30, 16777215)) self.frame_17.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_17.setFrameShadow(QtGui.QFrame.Raised) self.frame_17.setObjectName(_fromUtf8("frame_17")) self.verticalLayout_12 = QtGui.QVBoxLayout(self.frame_17) self.verticalLayout_12.setSpacing(0) self.verticalLayout_12.setMargin(0) self.verticalLayout_12.setObjectName(_fromUtf8("verticalLayout_12")) self.btnCaptureRunwayEND = QtGui.QToolButton(self.frame_17) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.btnCaptureRunwayEND.sizePolicy().hasHeightForWidth()) self.btnCaptureRunwayEND.setSizePolicy(sizePolicy) self.btnCaptureRunwayEND.setMaximumSize(QtCore.QSize(16777215, 30)) self.btnCaptureRunwayEND.setIcon(icon) self.btnCaptureRunwayEND.setObjectName( _fromUtf8("btnCaptureRunwayEND")) self.verticalLayout_12.addWidget(self.btnCaptureRunwayEND) self.btnToolEND = QtGui.QToolButton(self.frame_17) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.btnToolEND.sizePolicy().hasHeightForWidth()) self.btnToolEND.setSizePolicy(sizePolicy) self.btnToolEND.setMaximumSize(QtCore.QSize(16777215, 20)) self.btnToolEND.setIcon(icon1) self.btnToolEND.setObjectName(_fromUtf8("btnToolEND")) self.verticalLayout_12.addWidget(self.btnToolEND) self.horizontalLayout_16.addWidget(self.frame_17) self.verticalLayout_2.addWidget(self.groupBox_4) self.lbl1 = QtGui.QLabel(self.groupBox) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) self.lbl1.setFont(font) self.lbl1.setText(_fromUtf8("")) self.lbl1.setAlignment(QtCore.Qt.AlignCenter) self.lbl1.setWordWrap(False) self.lbl1.setMargin(0) self.lbl1.setObjectName(_fromUtf8("lbl1")) self.verticalLayout_2.addWidget(self.lbl1) self.lbl2 = QtGui.QLabel(self.groupBox) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.lbl2.setFont(font) self.lbl2.setText(_fromUtf8("")) self.lbl2.setAlignment(QtCore.Qt.AlignCenter) self.lbl2.setObjectName(_fromUtf8("lbl2")) self.verticalLayout_2.addWidget(self.lbl2) self.frame_22 = QtGui.QFrame(self.groupBox) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.frame_22.sizePolicy().hasHeightForWidth()) self.frame_22.setSizePolicy(sizePolicy) self.frame_22.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_22.setFrameShadow(QtGui.QFrame.Raised) self.frame_22.setObjectName(_fromUtf8("frame_22")) self.horizontalLayout_22 = QtGui.QHBoxLayout(self.frame_22) self.horizontalLayout_22.setSpacing(0) self.horizontalLayout_22.setMargin(0) self.horizontalLayout_22.setObjectName( _fromUtf8("horizontalLayout_22")) self.label_11 = QtGui.QLabel(self.frame_22) self.label_11.setMinimumSize(QtCore.QSize(170, 0)) self.label_11.setMaximumSize(QtCore.QSize(180, 16777215)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.label_11.setFont(font) self.label_11.setObjectName(_fromUtf8("label_11")) self.horizontalLayout_22.addWidget(self.label_11) self.txtForm = QtGui.QLineEdit(self.frame_22) self.txtForm.setEnabled(False) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtForm.sizePolicy().hasHeightForWidth()) self.txtForm.setSizePolicy(sizePolicy) self.txtForm.setMaximumSize(QtCore.QSize(16777215, 16777215)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) self.txtForm.setFont(font) self.txtForm.setObjectName(_fromUtf8("txtForm")) self.horizontalLayout_22.addWidget(self.txtForm) self.verticalLayout_2.addWidget(self.frame_22) self.frame_23 = QtGui.QFrame(self.groupBox) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.frame_23.sizePolicy().hasHeightForWidth()) self.frame_23.setSizePolicy(sizePolicy) self.frame_23.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_23.setFrameShadow(QtGui.QFrame.Raised) self.frame_23.setObjectName(_fromUtf8("frame_23")) self.horizontalLayout_23 = QtGui.QHBoxLayout(self.frame_23) self.horizontalLayout_23.setSpacing(0) self.horizontalLayout_23.setMargin(0) self.horizontalLayout_23.setObjectName( _fromUtf8("horizontalLayout_23")) self.label_12 = QtGui.QLabel(self.frame_23) self.label_12.setMinimumSize(QtCore.QSize(170, 0)) self.label_12.setMaximumSize(QtCore.QSize(180, 16777215)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.label_12.setFont(font) self.label_12.setObjectName(_fromUtf8("label_12")) self.horizontalLayout_23.addWidget(self.label_12) self.txtBearing = QtGui.QLineEdit(self.frame_23) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtBearing.sizePolicy().hasHeightForWidth()) self.txtBearing.setSizePolicy(sizePolicy) self.txtBearing.setMaximumSize(QtCore.QSize(16777215, 16777215)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) self.txtBearing.setFont(font) self.txtBearing.setObjectName(_fromUtf8("txtBearing")) self.horizontalLayout_23.addWidget(self.txtBearing) self.btnCaptureBearing = QtGui.QToolButton(self.frame_23) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.btnCaptureBearing.sizePolicy().hasHeightForWidth()) self.btnCaptureBearing.setSizePolicy(sizePolicy) self.btnCaptureBearing.setMaximumSize(QtCore.QSize(16777215, 23)) self.btnCaptureBearing.setStyleSheet(_fromUtf8("")) self.btnCaptureBearing.setIcon(icon) self.btnCaptureBearing.setObjectName(_fromUtf8("btnCaptureBearing")) self.horizontalLayout_23.addWidget(self.btnCaptureBearing) self.verticalLayout_2.addWidget(self.frame_23) self.frame_24 = QtGui.QFrame(self.groupBox) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.frame_24.sizePolicy().hasHeightForWidth()) self.frame_24.setSizePolicy(sizePolicy) self.frame_24.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_24.setFrameShadow(QtGui.QFrame.Raised) self.frame_24.setObjectName(_fromUtf8("frame_24")) self.horizontalLayout_24 = QtGui.QHBoxLayout(self.frame_24) self.horizontalLayout_24.setSpacing(0) self.horizontalLayout_24.setMargin(0) self.horizontalLayout_24.setObjectName( _fromUtf8("horizontalLayout_24")) self.lblDistance = QtGui.QLabel(self.frame_24) self.lblDistance.setMinimumSize(QtCore.QSize(170, 0)) self.lblDistance.setMaximumSize(QtCore.QSize(180, 16777215)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.lblDistance.setFont(font) self.lblDistance.setObjectName(_fromUtf8("lblDistance")) self.horizontalLayout_24.addWidget(self.lblDistance) self.txtDistance = QtGui.QLineEdit(self.frame_24) self.txtDistance.setEnabled(False) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtDistance.sizePolicy().hasHeightForWidth()) self.txtDistance.setSizePolicy(sizePolicy) self.txtDistance.setMaximumSize(QtCore.QSize(16777215, 16777215)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) self.txtDistance.setFont(font) self.txtDistance.setObjectName(_fromUtf8("txtDistance")) self.horizontalLayout_24.addWidget(self.txtDistance) self.btnCaptureDistance = QtGui.QToolButton(self.frame_24) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.btnCaptureDistance.sizePolicy().hasHeightForWidth()) self.btnCaptureDistance.setSizePolicy(sizePolicy) self.btnCaptureDistance.setMaximumSize(QtCore.QSize(16777215, 23)) self.btnCaptureDistance.setStyleSheet(_fromUtf8("")) self.btnCaptureDistance.setIcon(icon) self.btnCaptureDistance.setObjectName(_fromUtf8("btnCaptureDistance")) self.horizontalLayout_24.addWidget(self.btnCaptureDistance) self.verticalLayout_2.addWidget(self.frame_24) self.verticalLayout.addWidget(self.groupBox) self.buttonBox = QtGui.QDialogButtonBox(Dialog) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.verticalLayout.addWidget(self.buttonBox) self.retranslateUi(Dialog) # QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), Dialog.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), Dialog.reject) QtCore.QMetaObject.connectSlotsByName(Dialog) self.CaptureTHRCoordTool = CaptureCoordinateTool( define._canvas, self.txtTHR_X, self.txtTHR_Y) self.CaptureTHRCoordTool.rubberBand.setColor(Qt.red) self.CaptureENDCoordTool = CaptureCoordinateTool( define._canvas, self.txtEND_X, self.txtEND_Y) self.CaptureTHRCoordTool.rubberBand.setColor(Qt.blue) self.btnCaptureRunwayTHR.clicked.connect(self.captureTHR) self.btnCaptureRunwayEND.clicked.connect(self.captureEND)
def setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(461, 235) Form.setStyleSheet(_fromUtf8("")) self.verticalLayout_4 = QtGui.QVBoxLayout(Form) self.verticalLayout_4.setMargin(0) self.verticalLayout_4.setSpacing(0) self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4")) self.frame = QtGui.QFrame(Form) self.frame.setStyleSheet( _fromUtf8("QLabel{\n" "border-radius: 4px;\n" "selection-background-color: darkgray;\n" "lineedit-password-character: 9679;\n" "selection-color: #0a214c;\n" "background-color:(0,0,0,0);\n" "color: #666666;\n" "}\n" "\n" "QLabel:hover {\n" "color:rgb(166,137,124);\n" "}\n" "QToolButton{\n" "border-radius: 4px;\n" "selection-background-color: darkgray;\n" "lineedit-password-character: 9679;\n" "selection-color: #0a214c;\n" "background-color:(0,0,0,0);\n" "color: #666666;\n" "}\n" "\n" "QToolButton:hover {\n" "color:rgb(166,137,124);\n" "}\n" "QCheckBox{\n" "border-radius: 4px;\n" "selection-background-color: darkgray;\n" "lineedit-password-character: 9679;\n" "selection-color: #0a214c;\n" "background-color:(0,0,0,0);\n" "color: #666666;\n" "}\n" "\n" "QCheckBox:hover {\n" "color:rgb(166,137,124);\n" "}")) self.frame.setFrameShape(QtGui.QFrame.NoFrame) self.frame.setFrameShadow(QtGui.QFrame.Sunken) self.frame.setLineWidth(0) self.frame.setObjectName(_fromUtf8("frame")) self.verticalLayout_3 = QtGui.QVBoxLayout(self.frame) self.verticalLayout_3.setMargin(0) self.verticalLayout_3.setSpacing(0) self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3")) self.verticalLayout_2 = QtGui.QVBoxLayout() self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.horizontalLayout_2 = QtGui.QHBoxLayout() self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem) self.QToolButton_Close = QtGui.QToolButton(self.frame) self.QToolButton_Close.setMinimumSize(QtCore.QSize(0, 30)) font = QtGui.QFont() font.setFamily(_fromUtf8("Verdana")) font.setBold(True) font.setWeight(75) self.QToolButton_Close.setFont(font) self.QToolButton_Close.setMouseTracking(False) self.QToolButton_Close.setFocusPolicy(QtCore.Qt.NoFocus) self.QToolButton_Close.setContextMenuPolicy(QtCore.Qt.NoContextMenu) self.QToolButton_Close.setAcceptDrops(False) self.QToolButton_Close.setLayoutDirection(QtCore.Qt.LeftToRight) self.QToolButton_Close.setAutoFillBackground(False) self.QToolButton_Close.setStyleSheet(_fromUtf8("")) self.QToolButton_Close.setLocale( QtCore.QLocale(QtCore.QLocale.Chinese, QtCore.QLocale.China)) self.QToolButton_Close.setInputMethodHints(QtCore.Qt.ImhNone) self.QToolButton_Close.setText(_fromUtf8("")) icon = QtGui.QIcon() icon.addPixmap( QtGui.QPixmap(_fromUtf8(":/Imag/Imag/closePressed.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.QToolButton_Close.setIcon(icon) self.QToolButton_Close.setAutoRepeat(False) self.QToolButton_Close.setAutoExclusive(False) self.QToolButton_Close.setPopupMode(QtGui.QToolButton.DelayedPopup) self.QToolButton_Close.setAutoRaise(True) self.QToolButton_Close.setObjectName(_fromUtf8("QToolButton_Close")) self.horizontalLayout_2.addWidget(self.QToolButton_Close) self.verticalLayout_2.addLayout(self.horizontalLayout_2) self.horizontalLayout_5 = QtGui.QHBoxLayout() self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5")) spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_5.addItem(spacerItem1) self.verticalLayout = QtGui.QVBoxLayout() self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.label = QtGui.QLabel(self.frame) self.label.setStyleSheet( _fromUtf8("font: 60 18pt \"Arial\";\n" "color: rgb(255, 255, 0);\n" "")) self.label.setObjectName(_fromUtf8("label")) self.verticalLayout.addWidget(self.label) spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.verticalLayout.addItem(spacerItem2) self.horizontalLayout_3 = QtGui.QHBoxLayout() self.horizontalLayout_3.setSpacing(3) self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3")) self.label_2 = QtGui.QLabel(self.frame) self.label_2.setStyleSheet(_fromUtf8("")) self.label_2.setObjectName(_fromUtf8("label_2")) self.horizontalLayout_3.addWidget(self.label_2) self.QLineEdit_user = QtGui.QLineEdit(self.frame) self.QLineEdit_user.setMinimumSize(QtCore.QSize(0, 30)) self.QLineEdit_user.setStyleSheet( _fromUtf8("QLineEdit { \n" "border-bottom: 1px solid #CCCCCC; \n" "border-radius: 4px; \n" "color: #666666; \n" "font: 16px; \n" "selection-background-color: darkgray; \n" "selection-color: #0a214c; \n" "background-image: url(:/icons/bgxx.jpg);\n" "} \n" "QLineEdit:hover{ \n" "} \n" " ")) self.QLineEdit_user.setText(_fromUtf8("")) self.QLineEdit_user.setObjectName(_fromUtf8("QLineEdit_user")) self.horizontalLayout_3.addWidget(self.QLineEdit_user) self.verticalLayout.addLayout(self.horizontalLayout_3) spacerItem3 = QtGui.QSpacerItem(20, 15, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.verticalLayout.addItem(spacerItem3) self.horizontalLayout_4 = QtGui.QHBoxLayout() self.horizontalLayout_4.setSpacing(3) self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4")) self.label_3 = QtGui.QLabel(self.frame) self.label_3.setObjectName(_fromUtf8("label_3")) self.horizontalLayout_4.addWidget(self.label_3) self.QLineEdit_Password = QtGui.QLineEdit(self.frame) self.QLineEdit_Password.setMinimumSize(QtCore.QSize(0, 30)) self.QLineEdit_Password.setStyleSheet( _fromUtf8("QLineEdit{ \n" "border-radius: 4px;\n" "selection-background-color: darkgray;\n" "lineedit-password-character: 9679;\n" "color: #666666;\n" "font: 12px;\n" "selection-color: #0a214c;\n" "background-image: url(:/icons/bgxx.jpg);\n" "} \n" "QLineEdit:hover{ \n" "}")) self.QLineEdit_Password.setText(_fromUtf8("")) self.QLineEdit_Password.setObjectName(_fromUtf8("QLineEdit_Password")) self.horizontalLayout_4.addWidget(self.QLineEdit_Password) self.verticalLayout.addLayout(self.horizontalLayout_4) spacerItem4 = QtGui.QSpacerItem(20, 15, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.verticalLayout.addItem(spacerItem4) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.QCheckBox_RemberPwd = QtGui.QCheckBox(self.frame) self.QCheckBox_RemberPwd.setStyleSheet(_fromUtf8("")) self.QCheckBox_RemberPwd.setChecked(False) self.QCheckBox_RemberPwd.setObjectName( _fromUtf8("QCheckBox_RemberPwd")) self.horizontalLayout.addWidget(self.QCheckBox_RemberPwd) spacerItem5 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem5) self.QToolButton_Login = QtGui.QToolButton(self.frame) self.QToolButton_Login.setStyleSheet(_fromUtf8("")) self.QToolButton_Login.setAutoRepeatInterval(96) self.QToolButton_Login.setAutoRaise(True) self.QToolButton_Login.setObjectName(_fromUtf8("QToolButton_Login")) self.horizontalLayout.addWidget(self.QToolButton_Login) spacerItem6 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem6) self.verticalLayout.addLayout(self.horizontalLayout) spacerItem7 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.verticalLayout.addItem(spacerItem7) self.horizontalLayout_5.addLayout(self.verticalLayout) spacerItem8 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_5.addItem(spacerItem8) self.QToolButton_Register = QtGui.QToolButton(self.frame) font = QtGui.QFont() font.setPointSize(9) font.setUnderline(False) self.QToolButton_Register.setFont(font) self.QToolButton_Register.setStyleSheet(_fromUtf8("")) self.QToolButton_Register.setAutoRaise(True) self.QToolButton_Register.setObjectName( _fromUtf8("QToolButton_Register")) self.horizontalLayout_5.addWidget(self.QToolButton_Register) spacerItem9 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_5.addItem(spacerItem9) self.verticalLayout_2.addLayout(self.horizontalLayout_5) self.verticalLayout_3.addLayout(self.verticalLayout_2) self.verticalLayout_4.addWidget(self.frame) self.retranslateUi(Form) QtCore.QObject.connect(self.QToolButton_Close, QtCore.SIGNAL(_fromUtf8("clicked()")), Form.close) QtCore.QMetaObject.connectSlotsByName(Form)
def setupUi(self, MonitoringConfigDlg): MonitoringConfigDlg.setObjectName(_fromUtf8("MonitoringConfigDlg")) MonitoringConfigDlg.resize(594, 385) MonitoringConfigDlg.setWindowTitle(QtGui.QApplication.translate("MonitoringConfigDlg", "监控参数设置", None, QtGui.QApplication.UnicodeUTF8)) self.verticalLayout_4 = QtGui.QVBoxLayout(MonitoringConfigDlg) self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4")) self.horizontalLayout_3 = QtGui.QHBoxLayout() self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3")) self.lst_configs = QtGui.QListWidget(MonitoringConfigDlg) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lst_configs.sizePolicy().hasHeightForWidth()) self.lst_configs.setSizePolicy(sizePolicy) self.lst_configs.setObjectName(_fromUtf8("lst_configs")) item = QtGui.QListWidgetItem() item.setText(QtGui.QApplication.translate("MonitoringConfigDlg", "监控范围设置", None, QtGui.QApplication.UnicodeUTF8)) self.lst_configs.addItem(item) item = QtGui.QListWidgetItem() item.setText(QtGui.QApplication.translate("MonitoringConfigDlg", "温度传感器设置", None, QtGui.QApplication.UnicodeUTF8)) self.lst_configs.addItem(item) item = QtGui.QListWidgetItem() item.setText(QtGui.QApplication.translate("MonitoringConfigDlg", "串口设置", None, QtGui.QApplication.UnicodeUTF8)) self.lst_configs.addItem(item) item = QtGui.QListWidgetItem() item.setText(QtGui.QApplication.translate("MonitoringConfigDlg", "其他设置", None, QtGui.QApplication.UnicodeUTF8)) self.lst_configs.addItem(item) self.horizontalLayout_3.addWidget(self.lst_configs) self.stack_configs = QtGui.QStackedWidget(MonitoringConfigDlg) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.stack_configs.sizePolicy().hasHeightForWidth()) self.stack_configs.setSizePolicy(sizePolicy) self.stack_configs.setObjectName(_fromUtf8("stack_configs")) self.page_monitor_scope = QtGui.QWidget() self.page_monitor_scope.setObjectName(_fromUtf8("page_monitor_scope")) self.verticalLayout_2 = QtGui.QVBoxLayout(self.page_monitor_scope) self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.groupBox = QtGui.QGroupBox(self.page_monitor_scope) self.groupBox.setTitle(QtGui.QApplication.translate("MonitoringConfigDlg", "监控范围设置", None, QtGui.QApplication.UnicodeUTF8)) self.groupBox.setObjectName(_fromUtf8("groupBox")) self.verticalLayout = QtGui.QVBoxLayout(self.groupBox) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.label = QtGui.QLabel(self.groupBox) self.label.setText(QtGui.QApplication.translate("MonitoringConfigDlg", "风炉数量:", None, QtGui.QApplication.UnicodeUTF8)) self.label.setObjectName(_fromUtf8("label")) self.horizontalLayout.addWidget(self.label) self.spin_boiler_num = QtGui.QSpinBox(self.groupBox) self.spin_boiler_num.setAlignment(QtCore.Qt.AlignCenter) self.spin_boiler_num.setMaximum(16) self.spin_boiler_num.setProperty("value", 7) self.spin_boiler_num.setObjectName(_fromUtf8("spin_boiler_num")) self.horizontalLayout.addWidget(self.spin_boiler_num) self.verticalLayout.addLayout(self.horizontalLayout) self.horizontalLayout_2 = QtGui.QHBoxLayout() self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.label_2 = QtGui.QLabel(self.groupBox) self.label_2.setText(QtGui.QApplication.translate("MonitoringConfigDlg", "温度传感器数量:", None, QtGui.QApplication.UnicodeUTF8)) self.label_2.setObjectName(_fromUtf8("label_2")) self.horizontalLayout_2.addWidget(self.label_2) self.spin_sensor_num = QtGui.QSpinBox(self.groupBox) self.spin_sensor_num.setAlignment(QtCore.Qt.AlignCenter) self.spin_sensor_num.setMaximum(40) self.spin_sensor_num.setProperty("value", 20) self.spin_sensor_num.setObjectName(_fromUtf8("spin_sensor_num")) self.horizontalLayout_2.addWidget(self.spin_sensor_num) self.verticalLayout.addLayout(self.horizontalLayout_2) self.horizontalLayout_7 = QtGui.QHBoxLayout() self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7")) self.label_14 = QtGui.QLabel(self.groupBox) self.label_14.setText(QtGui.QApplication.translate("MonitoringConfigDlg", "风机数量:", None, QtGui.QApplication.UnicodeUTF8)) self.label_14.setObjectName(_fromUtf8("label_14")) self.horizontalLayout_7.addWidget(self.label_14) self.spin_fan_num = QtGui.QSpinBox(self.groupBox) self.spin_fan_num.setAlignment(QtCore.Qt.AlignCenter) self.spin_fan_num.setSuffix(QtGui.QApplication.translate("MonitoringConfigDlg", " 个", None, QtGui.QApplication.UnicodeUTF8)) self.spin_fan_num.setMaximum(8) self.spin_fan_num.setProperty("value", 4) self.spin_fan_num.setObjectName(_fromUtf8("spin_fan_num")) self.horizontalLayout_7.addWidget(self.spin_fan_num) self.verticalLayout.addLayout(self.horizontalLayout_7) self.verticalLayout_2.addWidget(self.groupBox) self.btn_apply_scope = QtGui.QPushButton(self.page_monitor_scope) self.btn_apply_scope.setText(QtGui.QApplication.translate("MonitoringConfigDlg", "应用", None, QtGui.QApplication.UnicodeUTF8)) self.btn_apply_scope.setObjectName(_fromUtf8("btn_apply_scope")) self.verticalLayout_2.addWidget(self.btn_apply_scope) spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.verticalLayout_2.addItem(spacerItem) self.stack_configs.addWidget(self.page_monitor_scope) self.sensor_config = QtGui.QWidget() self.sensor_config.setObjectName(_fromUtf8("sensor_config")) self.verticalLayout_3 = QtGui.QVBoxLayout(self.sensor_config) self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3")) self.groupBox_2 = QtGui.QGroupBox(self.sensor_config) self.groupBox_2.setTitle(QtGui.QApplication.translate("MonitoringConfigDlg", "温度传感器设置", None, QtGui.QApplication.UnicodeUTF8)) self.groupBox_2.setObjectName(_fromUtf8("groupBox_2")) self.gridLayout = QtGui.QGridLayout(self.groupBox_2) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.label_3 = QtGui.QLabel(self.groupBox_2) self.label_3.setText(QtGui.QApplication.translate("MonitoringConfigDlg", "风炉:", None, QtGui.QApplication.UnicodeUTF8)) self.label_3.setObjectName(_fromUtf8("label_3")) self.gridLayout.addWidget(self.label_3, 0, 0, 1, 1) self.cbo_boiler = QtGui.QComboBox(self.groupBox_2) self.cbo_boiler.setObjectName(_fromUtf8("cbo_boiler")) self.gridLayout.addWidget(self.cbo_boiler, 0, 1, 1, 2) self.line = QtGui.QFrame(self.groupBox_2) self.line.setFrameShape(QtGui.QFrame.HLine) self.line.setFrameShadow(QtGui.QFrame.Sunken) self.line.setObjectName(_fromUtf8("line")) self.gridLayout.addWidget(self.line, 1, 0, 1, 3) self.label_4 = QtGui.QLabel(self.groupBox_2) self.label_4.setText(QtGui.QApplication.translate("MonitoringConfigDlg", "最低记录温度:", None, QtGui.QApplication.UnicodeUTF8)) self.label_4.setObjectName(_fromUtf8("label_4")) self.gridLayout.addWidget(self.label_4, 2, 0, 1, 1) self.spin_low_temp = QtGui.QSpinBox(self.groupBox_2) self.spin_low_temp.setAlignment(QtCore.Qt.AlignCenter) self.spin_low_temp.setSuffix(QtGui.QApplication.translate("MonitoringConfigDlg", " ℃", None, QtGui.QApplication.UnicodeUTF8)) self.spin_low_temp.setMaximum(99) self.spin_low_temp.setProperty("value", 50) self.spin_low_temp.setObjectName(_fromUtf8("spin_low_temp")) self.gridLayout.addWidget(self.spin_low_temp, 2, 2, 1, 1) self.label_5 = QtGui.QLabel(self.groupBox_2) self.label_5.setText(QtGui.QApplication.translate("MonitoringConfigDlg", "最高记录温度:", None, QtGui.QApplication.UnicodeUTF8)) self.label_5.setObjectName(_fromUtf8("label_5")) self.gridLayout.addWidget(self.label_5, 3, 0, 1, 2) self.spin_hi_temp = QtGui.QSpinBox(self.groupBox_2) self.spin_hi_temp.setAlignment(QtCore.Qt.AlignCenter) self.spin_hi_temp.setSuffix(QtGui.QApplication.translate("MonitoringConfigDlg", " ℃", None, QtGui.QApplication.UnicodeUTF8)) self.spin_hi_temp.setProperty("value", 75) self.spin_hi_temp.setObjectName(_fromUtf8("spin_hi_temp")) self.gridLayout.addWidget(self.spin_hi_temp, 3, 2, 1, 1) self.label_6 = QtGui.QLabel(self.groupBox_2) self.label_6.setText(QtGui.QApplication.translate("MonitoringConfigDlg", "报警温度:", None, QtGui.QApplication.UnicodeUTF8)) self.label_6.setObjectName(_fromUtf8("label_6")) self.gridLayout.addWidget(self.label_6, 4, 0, 1, 2) self.spin_alert_temp = QtGui.QSpinBox(self.groupBox_2) self.spin_alert_temp.setAlignment(QtCore.Qt.AlignCenter) self.spin_alert_temp.setSuffix(QtGui.QApplication.translate("MonitoringConfigDlg", " ℃", None, QtGui.QApplication.UnicodeUTF8)) self.spin_alert_temp.setProperty("value", 71) self.spin_alert_temp.setObjectName(_fromUtf8("spin_alert_temp")) self.gridLayout.addWidget(self.spin_alert_temp, 4, 2, 1, 1) self.label_7 = QtGui.QLabel(self.groupBox_2) self.label_7.setText(QtGui.QApplication.translate("MonitoringConfigDlg", "报警时长:", None, QtGui.QApplication.UnicodeUTF8)) self.label_7.setObjectName(_fromUtf8("label_7")) self.gridLayout.addWidget(self.label_7, 5, 0, 1, 2) self.spin_alert_time = QtGui.QSpinBox(self.groupBox_2) self.spin_alert_time.setAlignment(QtCore.Qt.AlignCenter) self.spin_alert_time.setSuffix(QtGui.QApplication.translate("MonitoringConfigDlg", " 秒", None, QtGui.QApplication.UnicodeUTF8)) self.spin_alert_time.setProperty("value", 15) self.spin_alert_time.setObjectName(_fromUtf8("spin_alert_time")) self.gridLayout.addWidget(self.spin_alert_time, 5, 2, 1, 1) self.label_8 = QtGui.QLabel(self.groupBox_2) self.label_8.setText(QtGui.QApplication.translate("MonitoringConfigDlg", "巴氏消毒时间:", None, QtGui.QApplication.UnicodeUTF8)) self.label_8.setObjectName(_fromUtf8("label_8")) self.gridLayout.addWidget(self.label_8, 6, 0, 1, 2) self.spin_pasteu_time = QtGui.QSpinBox(self.groupBox_2) self.spin_pasteu_time.setAlignment(QtCore.Qt.AlignCenter) self.spin_pasteu_time.setSuffix(QtGui.QApplication.translate("MonitoringConfigDlg", " 分钟", None, QtGui.QApplication.UnicodeUTF8)) self.spin_pasteu_time.setProperty("value", 35) self.spin_pasteu_time.setObjectName(_fromUtf8("spin_pasteu_time")) self.gridLayout.addWidget(self.spin_pasteu_time, 6, 2, 1, 1) self.label_9 = QtGui.QLabel(self.groupBox_2) self.label_9.setText(QtGui.QApplication.translate("MonitoringConfigDlg", "消毒完成报警时长:", None, QtGui.QApplication.UnicodeUTF8)) self.label_9.setObjectName(_fromUtf8("label_9")) self.gridLayout.addWidget(self.label_9, 7, 0, 1, 2) self.spin_pasteu_alert_time = QtGui.QSpinBox(self.groupBox_2) self.spin_pasteu_alert_time.setAlignment(QtCore.Qt.AlignCenter) self.spin_pasteu_alert_time.setSuffix(QtGui.QApplication.translate("MonitoringConfigDlg", " 秒", None, QtGui.QApplication.UnicodeUTF8)) self.spin_pasteu_alert_time.setProperty("value", 20) self.spin_pasteu_alert_time.setObjectName(_fromUtf8("spin_pasteu_alert_time")) self.gridLayout.addWidget(self.spin_pasteu_alert_time, 7, 2, 1, 1) self.chk_hi_temp_alert = QtGui.QCheckBox(self.groupBox_2) self.chk_hi_temp_alert.setText(QtGui.QApplication.translate("MonitoringConfigDlg", "温度过高自动报警", None, QtGui.QApplication.UnicodeUTF8)) self.chk_hi_temp_alert.setChecked(True) self.chk_hi_temp_alert.setTristate(False) self.chk_hi_temp_alert.setObjectName(_fromUtf8("chk_hi_temp_alert")) self.gridLayout.addWidget(self.chk_hi_temp_alert, 8, 0, 1, 2) self.verticalLayout_3.addWidget(self.groupBox_2) self.btn_apply_sensor = QtGui.QPushButton(self.sensor_config) self.btn_apply_sensor.setText(QtGui.QApplication.translate("MonitoringConfigDlg", "应用", None, QtGui.QApplication.UnicodeUTF8)) self.btn_apply_sensor.setObjectName(_fromUtf8("btn_apply_sensor")) self.verticalLayout_3.addWidget(self.btn_apply_sensor) spacerItem1 = QtGui.QSpacerItem(20, 41, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.verticalLayout_3.addItem(spacerItem1) self.stack_configs.addWidget(self.sensor_config) self.page_com = QtGui.QWidget() self.page_com.setObjectName(_fromUtf8("page_com")) self.verticalLayout_7 = QtGui.QVBoxLayout(self.page_com) self.verticalLayout_7.setObjectName(_fromUtf8("verticalLayout_7")) self.groupBox_4 = QtGui.QGroupBox(self.page_com) self.groupBox_4.setTitle(QtGui.QApplication.translate("MonitoringConfigDlg", "串口设置", None, QtGui.QApplication.UnicodeUTF8)) self.groupBox_4.setObjectName(_fromUtf8("groupBox_4")) self.verticalLayout_6 = QtGui.QVBoxLayout(self.groupBox_4) self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6")) self.horizontalLayout_4 = QtGui.QHBoxLayout() self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4")) self.label_11 = QtGui.QLabel(self.groupBox_4) self.label_11.setText(QtGui.QApplication.translate("MonitoringConfigDlg", "选择串口:", None, QtGui.QApplication.UnicodeUTF8)) self.label_11.setObjectName(_fromUtf8("label_11")) self.horizontalLayout_4.addWidget(self.label_11) self.cbo_com = QtGui.QComboBox(self.groupBox_4) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cbo_com.sizePolicy().hasHeightForWidth()) self.cbo_com.setSizePolicy(sizePolicy) self.cbo_com.setObjectName(_fromUtf8("cbo_com")) self.horizontalLayout_4.addWidget(self.cbo_com) self.verticalLayout_6.addLayout(self.horizontalLayout_4) self.horizontalLayout_5 = QtGui.QHBoxLayout() self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5")) self.label_12 = QtGui.QLabel(self.groupBox_4) self.label_12.setText(QtGui.QApplication.translate("MonitoringConfigDlg", "波特率:", None, QtGui.QApplication.UnicodeUTF8)) self.label_12.setObjectName(_fromUtf8("label_12")) self.horizontalLayout_5.addWidget(self.label_12) self.cbo_baudrate = QtGui.QComboBox(self.groupBox_4) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cbo_baudrate.sizePolicy().hasHeightForWidth()) self.cbo_baudrate.setSizePolicy(sizePolicy) self.cbo_baudrate.setObjectName(_fromUtf8("cbo_baudrate")) self.cbo_baudrate.addItem(_fromUtf8("")) self.cbo_baudrate.setItemText(0, QtGui.QApplication.translate("MonitoringConfigDlg", "115200", None, QtGui.QApplication.UnicodeUTF8)) self.cbo_baudrate.addItem(_fromUtf8("")) self.cbo_baudrate.setItemText(1, QtGui.QApplication.translate("MonitoringConfigDlg", "19200", None, QtGui.QApplication.UnicodeUTF8)) self.cbo_baudrate.addItem(_fromUtf8("")) self.cbo_baudrate.setItemText(2, QtGui.QApplication.translate("MonitoringConfigDlg", "14400", None, QtGui.QApplication.UnicodeUTF8)) self.cbo_baudrate.addItem(_fromUtf8("")) self.cbo_baudrate.setItemText(3, QtGui.QApplication.translate("MonitoringConfigDlg", "9600", None, QtGui.QApplication.UnicodeUTF8)) self.horizontalLayout_5.addWidget(self.cbo_baudrate) self.verticalLayout_6.addLayout(self.horizontalLayout_5) self.horizontalLayout_6 = QtGui.QHBoxLayout() self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6")) self.label_13 = QtGui.QLabel(self.groupBox_4) self.label_13.setText(QtGui.QApplication.translate("MonitoringConfigDlg", "采集间隔时间:", None, QtGui.QApplication.UnicodeUTF8)) self.label_13.setObjectName(_fromUtf8("label_13")) self.horizontalLayout_6.addWidget(self.label_13) self.spin_acq_interval = QtGui.QSpinBox(self.groupBox_4) self.spin_acq_interval.setAlignment(QtCore.Qt.AlignCenter) self.spin_acq_interval.setSuffix(QtGui.QApplication.translate("MonitoringConfigDlg", " 秒", None, QtGui.QApplication.UnicodeUTF8)) self.spin_acq_interval.setProperty("value", 1) self.spin_acq_interval.setObjectName(_fromUtf8("spin_acq_interval")) self.horizontalLayout_6.addWidget(self.spin_acq_interval) self.verticalLayout_6.addLayout(self.horizontalLayout_6) self.horizontalLayout_8 = QtGui.QHBoxLayout() self.horizontalLayout_8.setObjectName(_fromUtf8("horizontalLayout_8")) self.label_15 = QtGui.QLabel(self.groupBox_4) self.label_15.setText(QtGui.QApplication.translate("MonitoringConfigDlg", "串口超时:", None, QtGui.QApplication.UnicodeUTF8)) self.label_15.setObjectName(_fromUtf8("label_15")) self.horizontalLayout_8.addWidget(self.label_15) self.spin_timeout = QtGui.QSpinBox(self.groupBox_4) self.spin_timeout.setAlignment(QtCore.Qt.AlignCenter) self.spin_timeout.setSuffix(QtGui.QApplication.translate("MonitoringConfigDlg", " 毫秒", None, QtGui.QApplication.UnicodeUTF8)) self.spin_timeout.setMaximum(100000) self.spin_timeout.setSingleStep(100) self.spin_timeout.setProperty("value", 1000) self.spin_timeout.setObjectName(_fromUtf8("spin_timeout")) self.horizontalLayout_8.addWidget(self.spin_timeout) self.verticalLayout_6.addLayout(self.horizontalLayout_8) self.verticalLayout_7.addWidget(self.groupBox_4) self.btn_apply_com = QtGui.QPushButton(self.page_com) self.btn_apply_com.setText(QtGui.QApplication.translate("MonitoringConfigDlg", "应用", None, QtGui.QApplication.UnicodeUTF8)) self.btn_apply_com.setObjectName(_fromUtf8("btn_apply_com")) self.verticalLayout_7.addWidget(self.btn_apply_com) spacerItem2 = QtGui.QSpacerItem(20, 198, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.verticalLayout_7.addItem(spacerItem2) self.stack_configs.addWidget(self.page_com) self.page_others = QtGui.QWidget() self.page_others.setObjectName(_fromUtf8("page_others")) self.verticalLayout_5 = QtGui.QVBoxLayout(self.page_others) self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5")) self.groupBox_3 = QtGui.QGroupBox(self.page_others) self.groupBox_3.setTitle(QtGui.QApplication.translate("MonitoringConfigDlg", "其他信息", None, QtGui.QApplication.UnicodeUTF8)) self.groupBox_3.setObjectName(_fromUtf8("groupBox_3")) self.gridLayout_2 = QtGui.QGridLayout(self.groupBox_3) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.label_10 = QtGui.QLabel(self.groupBox_3) self.label_10.setText(QtGui.QApplication.translate("MonitoringConfigDlg", "公司信息:", None, QtGui.QApplication.UnicodeUTF8)) self.label_10.setObjectName(_fromUtf8("label_10")) self.gridLayout_2.addWidget(self.label_10, 0, 0, 1, 1) self.edit_company_info = QtGui.QLineEdit(self.groupBox_3) self.edit_company_info.setObjectName(_fromUtf8("edit_company_info")) self.gridLayout_2.addWidget(self.edit_company_info, 0, 1, 1, 1) self.verticalLayout_5.addWidget(self.groupBox_3) self.btn_apply_others = QtGui.QPushButton(self.page_others) self.btn_apply_others.setText(QtGui.QApplication.translate("MonitoringConfigDlg", "应用", None, QtGui.QApplication.UnicodeUTF8)) self.btn_apply_others.setObjectName(_fromUtf8("btn_apply_others")) self.verticalLayout_5.addWidget(self.btn_apply_others) spacerItem3 = QtGui.QSpacerItem(20, 228, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.verticalLayout_5.addItem(spacerItem3) self.stack_configs.addWidget(self.page_others) self.horizontalLayout_3.addWidget(self.stack_configs) self.verticalLayout_4.addLayout(self.horizontalLayout_3) self.buttonBox = QtGui.QDialogButtonBox(MonitoringConfigDlg) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.verticalLayout_4.addWidget(self.buttonBox) self.retranslateUi(MonitoringConfigDlg) self.lst_configs.setCurrentRow(-1) self.stack_configs.setCurrentIndex(0) self.cbo_boiler.setCurrentIndex(-1) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), MonitoringConfigDlg.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), MonitoringConfigDlg.reject) QtCore.QMetaObject.connectSlotsByName(MonitoringConfigDlg)
def setFrame(self): self.frame = QtGui.QFrame(self) self.frame.setFrameStyle( QtGui.QFrame.Box | QtGui.QFrame.Sunken ) #Box, Panel | Sunken, Raised self.frame.setLineWidth(0) self.frame.setMidLineWidth(1) self.frame.setGeometry(self.rect())
def setupUi(self, SFCalculatorInterface): SFCalculatorInterface.setObjectName(_fromUtf8("SFCalculatorInterface")) SFCalculatorInterface.resize(1221, 776) self.centralwidget = QtGui.QWidget(SFCalculatorInterface) self.centralwidget.setObjectName(_fromUtf8("centralwidget")) self.horizontalLayout_5 = QtGui.QHBoxLayout(self.centralwidget) self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5")) self.scrollArea = QtGui.QScrollArea(self.centralwidget) self.scrollArea.setWidgetResizable(True) self.scrollArea.setObjectName(_fromUtf8("scrollArea")) self.scrollAreaWidgetContents = QtGui.QWidget() self.scrollAreaWidgetContents.setGeometry(QtCore.QRect( 0, 0, 1183, 918)) self.scrollAreaWidgetContents.setObjectName( _fromUtf8("scrollAreaWidgetContents")) self.verticalLayout_2 = QtGui.QVBoxLayout( self.scrollAreaWidgetContents) self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.verticalLayout = QtGui.QVBoxLayout() self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.horizontalLayout_2 = QtGui.QHBoxLayout() self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.label = QtGui.QLabel(self.scrollAreaWidgetContents) self.label.setObjectName(_fromUtf8("label")) self.horizontalLayout_2.addWidget(self.label) self.runSequenceLineEdit = QtGui.QLineEdit( self.scrollAreaWidgetContents) self.runSequenceLineEdit.setText(_fromUtf8("")) self.runSequenceLineEdit.setObjectName( _fromUtf8("runSequenceLineEdit")) self.horizontalLayout_2.addWidget(self.runSequenceLineEdit) self.incidentMediumComboBox = QtGui.QComboBox( self.scrollAreaWidgetContents) self.incidentMediumComboBox.setMinimumSize(QtCore.QSize(300, 0)) self.incidentMediumComboBox.setEditable(True) self.incidentMediumComboBox.setObjectName( _fromUtf8("incidentMediumComboBox")) self.incidentMediumComboBox.addItem(_fromUtf8("")) self.horizontalLayout_2.addWidget(self.incidentMediumComboBox) self.toolButton = QtGui.QToolButton(self.scrollAreaWidgetContents) self.toolButton.setEnabled(False) self.toolButton.setObjectName(_fromUtf8("toolButton")) self.horizontalLayout_2.addWidget(self.toolButton) self.verticalLayout.addLayout(self.horizontalLayout_2) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.yt_plot = MPLWidgetNoLog(self.scrollAreaWidgetContents) self.yt_plot.setEnabled(False) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.yt_plot.sizePolicy().hasHeightForWidth()) self.yt_plot.setSizePolicy(sizePolicy) self.yt_plot.setObjectName(_fromUtf8("yt_plot")) self.horizontalLayout.addWidget(self.yt_plot) self.yi_plot = MPLWidgetXLog(self.scrollAreaWidgetContents) self.yi_plot.setEnabled(False) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.yi_plot.sizePolicy().hasHeightForWidth()) self.yi_plot.setSizePolicy(sizePolicy) self.yi_plot.setObjectName(_fromUtf8("yi_plot")) self.horizontalLayout.addWidget(self.yi_plot) self.frame_11 = QtGui.QFrame(self.scrollAreaWidgetContents) self.frame_11.setMaximumSize(QtCore.QSize(180, 16777215)) self.frame_11.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_11.setFrameShadow(QtGui.QFrame.Raised) self.frame_11.setObjectName(_fromUtf8("frame_11")) self.verticalLayout_26 = QtGui.QVBoxLayout(self.frame_11) self.verticalLayout_26.setObjectName(_fromUtf8("verticalLayout_26")) spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum) self.verticalLayout_26.addItem(spacerItem) self.error_label = QtGui.QLabel(self.frame_11) self.error_label.setObjectName(_fromUtf8("error_label")) self.verticalLayout_26.addWidget(self.error_label) self.verticalLayout_28 = QtGui.QVBoxLayout() self.verticalLayout_28.setObjectName(_fromUtf8("verticalLayout_28")) self.horizontalLayout_32 = QtGui.QHBoxLayout() self.horizontalLayout_32.setObjectName( _fromUtf8("horizontalLayout_32")) self.dataBackFromLabel = QtGui.QLabel(self.frame_11) self.dataBackFromLabel.setEnabled(False) self.dataBackFromLabel.setObjectName(_fromUtf8("dataBackFromLabel")) self.horizontalLayout_32.addWidget(self.dataBackFromLabel) self.dataBackToValue = QtGui.QSpinBox(self.frame_11) self.dataBackToValue.setEnabled(False) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(170, 85, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(170, 85, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(118, 118, 117)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush) self.dataBackToValue.setPalette(palette) self.dataBackToValue.setMinimum(-1) self.dataBackToValue.setMaximum(255) self.dataBackToValue.setProperty("value", 255) self.dataBackToValue.setObjectName(_fromUtf8("dataBackToValue")) self.horizontalLayout_32.addWidget(self.dataBackToValue) self.back2_error = QtGui.QLabel(self.frame_11) font = QtGui.QFont() font.setPointSize(20) font.setBold(True) font.setWeight(75) self.back2_error.setFont(font) self.back2_error.setAccessibleDescription(_fromUtf8("")) self.back2_error.setAlignment(QtCore.Qt.AlignCenter) self.back2_error.setObjectName(_fromUtf8("back2_error")) self.horizontalLayout_32.addWidget(self.back2_error) self.verticalLayout_28.addLayout(self.horizontalLayout_32) self.horizontalLayout_33 = QtGui.QHBoxLayout() self.horizontalLayout_33.setObjectName( _fromUtf8("horizontalLayout_33")) self.dataPeakFromLabel = QtGui.QLabel(self.frame_11) self.dataPeakFromLabel.setEnabled(False) self.dataPeakFromLabel.setObjectName(_fromUtf8("dataPeakFromLabel")) self.horizontalLayout_33.addWidget(self.dataPeakFromLabel) self.dataPeakToValue = QtGui.QSpinBox(self.frame_11) self.dataPeakToValue.setEnabled(False) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(0, 0, 127)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 127)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(118, 118, 117)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush) self.dataPeakToValue.setPalette(palette) self.dataPeakToValue.setMinimum(-1) self.dataPeakToValue.setMaximum(255) self.dataPeakToValue.setProperty("value", 255) self.dataPeakToValue.setObjectName(_fromUtf8("dataPeakToValue")) self.horizontalLayout_33.addWidget(self.dataPeakToValue) self.peak2_error = QtGui.QLabel(self.frame_11) font = QtGui.QFont() font.setPointSize(20) font.setBold(True) font.setWeight(75) self.peak2_error.setFont(font) self.peak2_error.setAccessibleDescription(_fromUtf8("")) self.peak2_error.setAlignment(QtCore.Qt.AlignCenter) self.peak2_error.setObjectName(_fromUtf8("peak2_error")) self.horizontalLayout_33.addWidget(self.peak2_error) self.verticalLayout_28.addLayout(self.horizontalLayout_33) self.horizontalLayout_34 = QtGui.QHBoxLayout() self.horizontalLayout_34.setObjectName( _fromUtf8("horizontalLayout_34")) self.dataPeakToLabel = QtGui.QLabel(self.frame_11) self.dataPeakToLabel.setEnabled(False) self.dataPeakToLabel.setObjectName(_fromUtf8("dataPeakToLabel")) self.horizontalLayout_34.addWidget(self.dataPeakToLabel) self.dataPeakFromValue = QtGui.QSpinBox(self.frame_11) self.dataPeakFromValue.setEnabled(False) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(0, 0, 127)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 127)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(118, 118, 117)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush) self.dataPeakFromValue.setPalette(palette) self.dataPeakFromValue.setMinimum(-1) self.dataPeakFromValue.setMaximum(255) self.dataPeakFromValue.setProperty("value", 0) self.dataPeakFromValue.setObjectName(_fromUtf8("dataPeakFromValue")) self.horizontalLayout_34.addWidget(self.dataPeakFromValue) self.peak1_error = QtGui.QLabel(self.frame_11) font = QtGui.QFont() font.setPointSize(20) font.setBold(True) font.setWeight(75) self.peak1_error.setFont(font) self.peak1_error.setAccessibleDescription(_fromUtf8("")) self.peak1_error.setAlignment(QtCore.Qt.AlignCenter) self.peak1_error.setObjectName(_fromUtf8("peak1_error")) self.horizontalLayout_34.addWidget(self.peak1_error) self.verticalLayout_28.addLayout(self.horizontalLayout_34) self.horizontalLayout_35 = QtGui.QHBoxLayout() self.horizontalLayout_35.setObjectName( _fromUtf8("horizontalLayout_35")) self.dataBackToLabel = QtGui.QLabel(self.frame_11) self.dataBackToLabel.setEnabled(False) self.dataBackToLabel.setObjectName(_fromUtf8("dataBackToLabel")) self.horizontalLayout_35.addWidget(self.dataBackToLabel) self.dataBackFromValue = QtGui.QSpinBox(self.frame_11) self.dataBackFromValue.setEnabled(False) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(170, 85, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(170, 85, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(118, 118, 117)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush) self.dataBackFromValue.setPalette(palette) self.dataBackFromValue.setMinimum(-1) self.dataBackFromValue.setMaximum(255) self.dataBackFromValue.setProperty("value", 0) self.dataBackFromValue.setObjectName(_fromUtf8("dataBackFromValue")) self.horizontalLayout_35.addWidget(self.dataBackFromValue) self.back1_error = QtGui.QLabel(self.frame_11) font = QtGui.QFont() font.setPointSize(20) font.setBold(True) font.setWeight(75) self.back1_error.setFont(font) self.back1_error.setAccessibleDescription(_fromUtf8("")) self.back1_error.setAlignment(QtCore.Qt.AlignCenter) self.back1_error.setObjectName(_fromUtf8("back1_error")) self.horizontalLayout_35.addWidget(self.back1_error) self.verticalLayout_28.addLayout(self.horizontalLayout_35) self.dataBackgroundFlag = QtGui.QCheckBox(self.frame_11) self.dataBackgroundFlag.setEnabled(False) self.dataBackgroundFlag.setChecked(True) self.dataBackgroundFlag.setObjectName(_fromUtf8("dataBackgroundFlag")) self.verticalLayout_28.addWidget(self.dataBackgroundFlag) self.verticalLayout_26.addLayout(self.verticalLayout_28) spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum) self.verticalLayout_26.addItem(spacerItem1) self.horizontalLayout.addWidget(self.frame_11) self.verticalLayout.addLayout(self.horizontalLayout) self.horizontalLayout_40 = QtGui.QHBoxLayout() self.horizontalLayout_40.setObjectName( _fromUtf8("horizontalLayout_40")) self.dataTOFmanualLabel = QtGui.QLabel(self.scrollAreaWidgetContents) self.dataTOFmanualLabel.setEnabled(False) self.dataTOFmanualLabel.setObjectName(_fromUtf8("dataTOFmanualLabel")) self.horizontalLayout_40.addWidget(self.dataTOFmanualLabel) self.frame_14 = QtGui.QFrame(self.scrollAreaWidgetContents) self.frame_14.setFrameShape(QtGui.QFrame.NoFrame) self.frame_14.setFrameShadow(QtGui.QFrame.Raised) self.frame_14.setLineWidth(0) self.frame_14.setObjectName(_fromUtf8("frame_14")) self.horizontalLayout_41 = QtGui.QHBoxLayout(self.frame_14) self.horizontalLayout_41.setObjectName( _fromUtf8("horizontalLayout_41")) self.horizontalLayout_42 = QtGui.QHBoxLayout() self.horizontalLayout_42.setObjectName( _fromUtf8("horizontalLayout_42")) self.dataTOFautoMode = QtGui.QRadioButton(self.frame_14) self.dataTOFautoMode.setEnabled(False) self.dataTOFautoMode.setChecked(True) self.dataTOFautoMode.setAutoExclusive(True) self.dataTOFautoMode.setObjectName(_fromUtf8("dataTOFautoMode")) self.horizontalLayout_42.addWidget(self.dataTOFautoMode) spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Minimum) self.horizontalLayout_42.addItem(spacerItem2) self.dataTOFmanualMode = QtGui.QRadioButton(self.frame_14) self.dataTOFmanualMode.setEnabled(False) self.dataTOFmanualMode.setAutoExclusive(True) self.dataTOFmanualMode.setObjectName(_fromUtf8("dataTOFmanualMode")) self.horizontalLayout_42.addWidget(self.dataTOFmanualMode) self.horizontalLayout_41.addLayout(self.horizontalLayout_42) self.horizontalLayout_40.addWidget(self.frame_14) spacerItem3 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Minimum) self.horizontalLayout_40.addItem(spacerItem3) self.TOFmanualFromLabel = QtGui.QLabel(self.scrollAreaWidgetContents) self.TOFmanualFromLabel.setEnabled(False) self.TOFmanualFromLabel.setObjectName(_fromUtf8("TOFmanualFromLabel")) self.horizontalLayout_40.addWidget(self.TOFmanualFromLabel) self.TOFmanualFromValue = QtGui.QLineEdit( self.scrollAreaWidgetContents) self.TOFmanualFromValue.setEnabled(False) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.TOFmanualFromValue.sizePolicy().hasHeightForWidth()) self.TOFmanualFromValue.setSizePolicy(sizePolicy) self.TOFmanualFromValue.setMinimumSize(QtCore.QSize(100, 0)) self.TOFmanualFromValue.setMaximumSize(QtCore.QSize(100, 16777215)) self.TOFmanualFromValue.setObjectName(_fromUtf8("TOFmanualFromValue")) self.horizontalLayout_40.addWidget(self.TOFmanualFromValue) self.TOFmanualFromUnitsValue = QtGui.QLabel( self.scrollAreaWidgetContents) self.TOFmanualFromUnitsValue.setEnabled(False) self.TOFmanualFromUnitsValue.setObjectName( _fromUtf8("TOFmanualFromUnitsValue")) self.horizontalLayout_40.addWidget(self.TOFmanualFromUnitsValue) spacerItem4 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Minimum) self.horizontalLayout_40.addItem(spacerItem4) self.TOFmanualToLabel = QtGui.QLabel(self.scrollAreaWidgetContents) self.TOFmanualToLabel.setEnabled(False) self.TOFmanualToLabel.setObjectName(_fromUtf8("TOFmanualToLabel")) self.horizontalLayout_40.addWidget(self.TOFmanualToLabel) self.TOFmanualToValue = QtGui.QLineEdit(self.scrollAreaWidgetContents) self.TOFmanualToValue.setEnabled(False) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.TOFmanualToValue.sizePolicy().hasHeightForWidth()) self.TOFmanualToValue.setSizePolicy(sizePolicy) self.TOFmanualToValue.setMinimumSize(QtCore.QSize(100, 0)) self.TOFmanualToValue.setMaximumSize(QtCore.QSize(100, 16777215)) self.TOFmanualToValue.setObjectName(_fromUtf8("TOFmanualToValue")) self.horizontalLayout_40.addWidget(self.TOFmanualToValue) self.TOFmanualToUnitsValue = QtGui.QLabel( self.scrollAreaWidgetContents) self.TOFmanualToUnitsValue.setEnabled(False) self.TOFmanualToUnitsValue.setObjectName( _fromUtf8("TOFmanualToUnitsValue")) self.horizontalLayout_40.addWidget(self.TOFmanualToUnitsValue) spacerItem5 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_40.addItem(spacerItem5) self.verticalLayout.addLayout(self.horizontalLayout_40) self.tableWidget = QtGui.QTableWidget(self.scrollAreaWidgetContents) self.tableWidget.setEnabled(False) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(2) sizePolicy.setHeightForWidth( self.tableWidget.sizePolicy().hasHeightForWidth()) self.tableWidget.setSizePolicy(sizePolicy) self.tableWidget.setMinimumSize(QtCore.QSize(0, 350)) self.tableWidget.setContextMenuPolicy(QtCore.Qt.CustomContextMenu) self.tableWidget.setObjectName(_fromUtf8("tableWidget")) self.tableWidget.setColumnCount(16) 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) item = QtGui.QTableWidgetItem() self.tableWidget.setHorizontalHeaderItem(3, item) item = QtGui.QTableWidgetItem() self.tableWidget.setHorizontalHeaderItem(4, item) item = QtGui.QTableWidgetItem() self.tableWidget.setHorizontalHeaderItem(5, item) item = QtGui.QTableWidgetItem() self.tableWidget.setHorizontalHeaderItem(6, item) item = QtGui.QTableWidgetItem() self.tableWidget.setHorizontalHeaderItem(7, item) item = QtGui.QTableWidgetItem() self.tableWidget.setHorizontalHeaderItem(8, item) item = QtGui.QTableWidgetItem() self.tableWidget.setHorizontalHeaderItem(9, item) item = QtGui.QTableWidgetItem() self.tableWidget.setHorizontalHeaderItem(10, item) item = QtGui.QTableWidgetItem() self.tableWidget.setHorizontalHeaderItem(11, item) item = QtGui.QTableWidgetItem() self.tableWidget.setHorizontalHeaderItem(12, item) item = QtGui.QTableWidgetItem() self.tableWidget.setHorizontalHeaderItem(13, item) item = QtGui.QTableWidgetItem() self.tableWidget.setHorizontalHeaderItem(14, item) item = QtGui.QTableWidgetItem() self.tableWidget.setHorizontalHeaderItem(15, item) self.tableWidget.horizontalHeader().setCascadingSectionResizes(False) self.tableWidget.horizontalHeader().setSortIndicatorShown(False) self.tableWidget.verticalHeader().setDefaultSectionSize(45) self.verticalLayout.addWidget(self.tableWidget) self.horizontalLayout_3 = QtGui.QHBoxLayout() self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3")) self.label_2 = QtGui.QLabel(self.scrollAreaWidgetContents) self.label_2.setEnabled(True) self.label_2.setMinimumSize(QtCore.QSize(100, 0)) self.label_2.setMaximumSize(QtCore.QSize(80, 16777215)) self.label_2.setObjectName(_fromUtf8("label_2")) self.horizontalLayout_3.addWidget(self.label_2) self.sfFileNameLabel = QtGui.QLabel(self.scrollAreaWidgetContents) self.sfFileNameLabel.setObjectName(_fromUtf8("sfFileNameLabel")) self.horizontalLayout_3.addWidget(self.sfFileNameLabel) self.sfFileNameBrowseButton = QtGui.QPushButton( self.scrollAreaWidgetContents) self.sfFileNameBrowseButton.setMaximumSize(QtCore.QSize(150, 16777215)) self.sfFileNameBrowseButton.setObjectName( _fromUtf8("sfFileNameBrowseButton")) self.horizontalLayout_3.addWidget(self.sfFileNameBrowseButton) self.verticalLayout.addLayout(self.horizontalLayout_3) self.sfFileNamePreview = QtGui.QPlainTextEdit( self.scrollAreaWidgetContents) self.sfFileNamePreview.setEnabled(False) self.sfFileNamePreview.setMinimumSize(QtCore.QSize(0, 60)) self.sfFileNamePreview.setTextInteractionFlags( QtCore.Qt.NoTextInteraction) self.sfFileNamePreview.setObjectName(_fromUtf8("sfFileNamePreview")) self.verticalLayout.addWidget(self.sfFileNamePreview) self.horizontalLayout_4 = QtGui.QHBoxLayout() self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4")) spacerItem6 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_4.addItem(spacerItem6) self.generateSFfileButton = QtGui.QPushButton( self.scrollAreaWidgetContents) self.generateSFfileButton.setEnabled(False) self.generateSFfileButton.setObjectName( _fromUtf8("generateSFfileButton")) self.horizontalLayout_4.addWidget(self.generateSFfileButton) self.exportButton = QtGui.QPushButton(self.scrollAreaWidgetContents) self.exportButton.setEnabled(False) self.exportButton.setObjectName(_fromUtf8("exportButton")) self.horizontalLayout_4.addWidget(self.exportButton) self.verticalLayout.addLayout(self.horizontalLayout_4) self.verticalLayout_2.addLayout(self.verticalLayout) self.scrollArea.setWidget(self.scrollAreaWidgetContents) self.horizontalLayout_5.addWidget(self.scrollArea) SFCalculatorInterface.setCentralWidget(self.centralwidget) self.menubar = QtGui.QMenuBar(SFCalculatorInterface) self.menubar.setGeometry(QtCore.QRect(0, 0, 1221, 25)) self.menubar.setObjectName(_fromUtf8("menubar")) self.menuFile = QtGui.QMenu(self.menubar) self.menuFile.setObjectName(_fromUtf8("menuFile")) self.menuTools = QtGui.QMenu(self.menubar) self.menuTools.setObjectName(_fromUtf8("menuTools")) SFCalculatorInterface.setMenuBar(self.menubar) self.statusbar = QtGui.QStatusBar(SFCalculatorInterface) self.statusbar.setObjectName(_fromUtf8("statusbar")) SFCalculatorInterface.setStatusBar(self.statusbar) self.actionLoadingConfiguration = QtGui.QAction(SFCalculatorInterface) self.actionLoadingConfiguration.setEnabled(False) self.actionLoadingConfiguration.setObjectName( _fromUtf8("actionLoadingConfiguration")) self.actionSavingAsConfiguration = QtGui.QAction(SFCalculatorInterface) self.actionSavingAsConfiguration.setEnabled(False) self.actionSavingAsConfiguration.setObjectName( _fromUtf8("actionSavingAsConfiguration")) self.actionSavingConfiguration = QtGui.QAction(SFCalculatorInterface) self.actionSavingConfiguration.setEnabled(False) self.actionSavingConfiguration.setObjectName( _fromUtf8("actionSavingConfiguration")) self.actionEdit_Incident_Medium_List = QtGui.QAction( SFCalculatorInterface) self.actionEdit_Incident_Medium_List.setObjectName( _fromUtf8("actionEdit_Incident_Medium_List")) self.clearSFconentFileMenu = QtGui.QAction(SFCalculatorInterface) self.clearSFconentFileMenu.setObjectName( _fromUtf8("clearSFconentFileMenu")) self.menuFile.addAction(self.actionLoadingConfiguration) self.menuFile.addAction(self.actionSavingAsConfiguration) self.menuFile.addAction(self.actionSavingConfiguration) self.menuTools.addAction(self.clearSFconentFileMenu) self.menubar.addAction(self.menuFile.menuAction()) self.menubar.addAction(self.menuTools.menuAction()) self.retranslateUi(SFCalculatorInterface) QtCore.QObject.connect(self.runSequenceLineEdit, QtCore.SIGNAL(_fromUtf8("returnPressed()")), SFCalculatorInterface.runSequenceLineEditEvent) QtCore.QObject.connect( self.tableWidget, QtCore.SIGNAL(_fromUtf8("customContextMenuRequested(QPoint)")), SFCalculatorInterface.tableWidgetRightClick) QtCore.QObject.connect(self.sfFileNameBrowseButton, QtCore.SIGNAL(_fromUtf8("clicked()")), SFCalculatorInterface.browseFile) QtCore.QObject.connect(self.actionSavingAsConfiguration, QtCore.SIGNAL(_fromUtf8("triggered()")), SFCalculatorInterface.savingAsConfiguration) QtCore.QObject.connect(self.dataTOFautoMode, QtCore.SIGNAL(_fromUtf8("clicked()")), SFCalculatorInterface.selectAutoTOF) QtCore.QObject.connect(self.dataTOFmanualMode, QtCore.SIGNAL(_fromUtf8("clicked()")), SFCalculatorInterface.selectManualTOF) QtCore.QObject.connect(self.actionLoadingConfiguration, QtCore.SIGNAL(_fromUtf8("triggered()")), SFCalculatorInterface.loadingConfiguration) QtCore.QObject.connect( self.tableWidget, QtCore.SIGNAL(_fromUtf8("cellClicked(int,int)")), SFCalculatorInterface.tableWidgetCellSelected) QtCore.QObject.connect(self.dataBackToValue, QtCore.SIGNAL(_fromUtf8("editingFinished()")), SFCalculatorInterface.back2SpinBoxValueChanged) QtCore.QObject.connect(self.dataBackFromValue, QtCore.SIGNAL(_fromUtf8("editingFinished()")), SFCalculatorInterface.back1SpinBoxValueChanged) QtCore.QObject.connect(self.dataPeakFromValue, QtCore.SIGNAL(_fromUtf8("editingFinished()")), SFCalculatorInterface.peak1SpinBoxValueChanged) QtCore.QObject.connect(self.dataPeakToValue, QtCore.SIGNAL(_fromUtf8("editingFinished()")), SFCalculatorInterface.peak2SpinBoxValueChanged) QtCore.QObject.connect( self.TOFmanualFromValue, QtCore.SIGNAL(_fromUtf8("returnPressed()")), SFCalculatorInterface.manualTOFtextFieldValidated) QtCore.QObject.connect( self.TOFmanualToValue, QtCore.SIGNAL(_fromUtf8("returnPressed()")), SFCalculatorInterface.manualTOFtextFieldValidated) QtCore.QObject.connect( self.incidentMediumComboBox, QtCore.SIGNAL(_fromUtf8("currentIndexChanged(int)")), SFCalculatorInterface.incidentMediumComboBoxChanged) QtCore.QObject.connect(self.actionSavingConfiguration, QtCore.SIGNAL(_fromUtf8("triggered()")), SFCalculatorInterface.savingConfiguration) QtCore.QObject.connect(self.toolButton, QtCore.SIGNAL(_fromUtf8("clicked()")), SFCalculatorInterface.editIncidentMediumList) QtCore.QObject.connect(self.generateSFfileButton, QtCore.SIGNAL(_fromUtf8("clicked()")), SFCalculatorInterface.generateSFfile) QtCore.QObject.connect(self.exportButton, QtCore.SIGNAL(_fromUtf8("clicked()")), SFCalculatorInterface.exportScript) QtCore.QObject.connect( self.tableWidget, QtCore.SIGNAL(_fromUtf8("cellChanged(int,int)")), SFCalculatorInterface.tableWidgetCellEntered) QtCore.QObject.connect(self.clearSFconentFileMenu, QtCore.SIGNAL(_fromUtf8("triggered()")), SFCalculatorInterface.clearSFContentFile) QtCore.QObject.connect( self.tableWidget, QtCore.SIGNAL(_fromUtf8("itemSelectionChanged()")), SFCalculatorInterface.tableWidgetRowSelected) QtCore.QMetaObject.connectSlotsByName(SFCalculatorInterface)
def setupUi(self, MainWindow): MainWindow.setObjectName(_fromUtf8("Mixcell")) MainWindow.resize(1051, 587) MainWindow.setMinimumSize(QtCore.QSize(1051, 587)) MainWindow.setStyleSheet(_fromUtf8("")) self.centralwidget = QtGui.QWidget(MainWindow) self.centralwidget.setObjectName(_fromUtf8("centralwidget")) self.gridLayout_6 = QtGui.QGridLayout(self.centralwidget) self.gridLayout_6.setObjectName(_fromUtf8("gridLayout_6")) self.framesearch = QtGui.QFrame(self.centralwidget) self.framesearch.setFrameShape(QtGui.QFrame.NoFrame) self.framesearch.setFrameShadow(QtGui.QFrame.Raised) self.framesearch.setObjectName(_fromUtf8("framesearch")) self.gridLayout = QtGui.QGridLayout(self.framesearch) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.id_search_min = QtGui.QSpinBox(self.framesearch) self.id_search_min.setAccelerated(True) self.id_search_min.setMinimum(1) self.id_search_min.setMaximum(252) self.id_search_min.setObjectName(_fromUtf8("id_search_min")) self.horizontalLayout.addWidget(self.id_search_min) self.label_4 = QtGui.QLabel(self.framesearch) self.label_4.setObjectName(_fromUtf8("label_4")) self.horizontalLayout.addWidget(self.label_4) self.id_search_max = QtGui.QSpinBox(self.framesearch) self.id_search_max.setAccelerated(True) self.id_search_max.setMinimum(1) self.id_search_max.setMaximum(252) self.id_search_max.setSingleStep(1) self.id_search_max.setObjectName(_fromUtf8("id_search_max")) self.horizontalLayout.addWidget(self.id_search_max) self.label_5 = QtGui.QLabel(self.framesearch) self.label_5.setObjectName(_fromUtf8("label_5")) self.horizontalLayout.addWidget(self.label_5) self.gridLayout.addLayout(self.horizontalLayout, 5, 0, 1, 1) self.portttxt = QtGui.QLabel(self.framesearch) self.portttxt.setObjectName(_fromUtf8("portttxt")) self.gridLayout.addWidget(self.portttxt, 1, 0, 1, 1) self.port_combox = QtGui.QComboBox(self.framesearch) self.port_combox.setObjectName(_fromUtf8("port_combox")) self.port_combox.addItem(_fromUtf8("")) self.port_combox.addItem(_fromUtf8("")) self.port_combox.addItem(_fromUtf8("")) self.port_combox.addItem(_fromUtf8("")) self.gridLayout.addWidget(self.port_combox, 2, 0, 1, 1) self.BAUDRATEtxt = QtGui.QLabel(self.framesearch) self.BAUDRATEtxt.setObjectName(_fromUtf8("BAUDRATEtxt")) self.gridLayout.addWidget(self.BAUDRATEtxt, 3, 0, 1, 1) self.horizontalLayout_5 = QtGui.QHBoxLayout() self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5")) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_5.addItem(spacerItem) self.scan_btn = QtGui.QPushButton(self.framesearch) self.scan_btn.setMinimumSize(QtCore.QSize(266, 27)) self.scan_btn.setMaximumSize(QtCore.QSize(266, 27)) self.scan_btn.setLayoutDirection(QtCore.Qt.LeftToRight) self.scan_btn.setStyleSheet( _fromUtf8("background-image: url(:/testebutton.jpg);")) self.scan_btn.setObjectName(_fromUtf8("scan_btn")) self.horizontalLayout_5.addWidget(self.scan_btn) spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_5.addItem(spacerItem1) self.gridLayout.addLayout(self.horizontalLayout_5, 6, 0, 1, 1) self.baudrate_list = QtGui.QListWidget(self.framesearch) self.baudrate_list.setFrameShape(QtGui.QFrame.StyledPanel) self.baudrate_list.setFrameShadow(QtGui.QFrame.Sunken) self.baudrate_list.setLineWidth(0) self.baudrate_list.setMidLineWidth(0) self.baudrate_list.setVerticalScrollBarPolicy( QtCore.Qt.ScrollBarAsNeeded) self.baudrate_list.setDragEnabled(False) self.baudrate_list.setDragDropOverwriteMode(False) self.baudrate_list.setMovement(QtGui.QListView.Static) self.baudrate_list.setFlow(QtGui.QListView.TopToBottom) self.baudrate_list.setViewMode(QtGui.QListView.ListMode) self.baudrate_list.setUniformItemSizes(False) self.baudrate_list.setWordWrap(False) self.baudrate_list.setObjectName(_fromUtf8("baudrate_list")) item = QtGui.QListWidgetItem() item.setCheckState(QtCore.Qt.Unchecked) self.baudrate_list.addItem(item) item = QtGui.QListWidgetItem() item.setCheckState(QtCore.Qt.Unchecked) self.baudrate_list.addItem(item) item = QtGui.QListWidgetItem() item.setCheckState(QtCore.Qt.Unchecked) self.baudrate_list.addItem(item) item = QtGui.QListWidgetItem() item.setCheckState(QtCore.Qt.Unchecked) self.baudrate_list.addItem(item) item = QtGui.QListWidgetItem() item.setCheckState(QtCore.Qt.Unchecked) self.baudrate_list.addItem(item) item = QtGui.QListWidgetItem() item.setCheckState(QtCore.Qt.Unchecked) self.baudrate_list.addItem(item) item = QtGui.QListWidgetItem() item.setCheckState(QtCore.Qt.Unchecked) self.baudrate_list.addItem(item) item = QtGui.QListWidgetItem() item.setCheckState(QtCore.Qt.Unchecked) self.baudrate_list.addItem(item) item = QtGui.QListWidgetItem() item.setCheckState(QtCore.Qt.Unchecked) self.baudrate_list.addItem(item) self.gridLayout.addWidget(self.baudrate_list, 4, 0, 1, 1) self.horizontalLayout_8 = QtGui.QHBoxLayout() self.horizontalLayout_8.setObjectName(_fromUtf8("horizontalLayout_8")) spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_8.addItem(spacerItem2) self.searchparamtxt = QtGui.QLabel(self.framesearch) self.searchparamtxt.setObjectName(_fromUtf8("searchparamtxt")) self.horizontalLayout_8.addWidget(self.searchparamtxt) spacerItem3 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_8.addItem(spacerItem3) self.gridLayout.addLayout(self.horizontalLayout_8, 0, 0, 1, 1) self.gridLayout_6.addWidget(self.framesearch, 0, 0, 1, 1) self.framelist = QtGui.QFrame(self.centralwidget) self.framelist.setFrameShape(QtGui.QFrame.NoFrame) self.framelist.setFrameShadow(QtGui.QFrame.Raised) self.framelist.setObjectName(_fromUtf8("framelist")) self.gridLayout_2 = QtGui.QGridLayout(self.framelist) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.label_6 = QtGui.QLabel(self.framelist) self.label_6.setEnabled(True) self.label_6.setLayoutDirection(QtCore.Qt.LeftToRight) self.label_6.setAlignment(QtCore.Qt.AlignCenter) self.label_6.setObjectName(_fromUtf8("label_6")) self.gridLayout_2.addWidget(self.label_6, 0, 0, 1, 1) self.table_found = QtGui.QTableWidget(self.framelist) self.table_found.setMaximumSize(QtCore.QSize(302, 16777215)) self.table_found.setObjectName(_fromUtf8("table_found")) self.table_found.setColumnCount(3) self.table_found.setRowCount(0) item = QtGui.QTableWidgetItem() self.table_found.setHorizontalHeaderItem(0, item) item = QtGui.QTableWidgetItem() self.table_found.setHorizontalHeaderItem(1, item) item = QtGui.QTableWidgetItem() self.table_found.setHorizontalHeaderItem(2, item) self.gridLayout_2.addWidget(self.table_found, 1, 0, 1, 1) self.gridLayout_6.addWidget(self.framelist, 0, 1, 1, 1) self.verticalLayout_7 = QtGui.QVBoxLayout() self.verticalLayout_7.setObjectName(_fromUtf8("verticalLayout_7")) self.frameconfig = QtGui.QFrame(self.centralwidget) self.frameconfig.setMaximumSize(QtCore.QSize(273, 523)) self.frameconfig.setFrameShape(QtGui.QFrame.NoFrame) self.frameconfig.setFrameShadow(QtGui.QFrame.Raised) self.frameconfig.setObjectName(_fromUtf8("frameconfig")) self.gridLayout_7 = QtGui.QGridLayout(self.frameconfig) self.gridLayout_7.setObjectName(_fromUtf8("gridLayout_7")) self.horizontalLayout_2 = QtGui.QHBoxLayout() self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.torquemaxtxt = QtGui.QLabel(self.frameconfig) self.torquemaxtxt.setObjectName(_fromUtf8("torquemaxtxt")) self.horizontalLayout_2.addWidget(self.torquemaxtxt) self.torque_slider = QtGui.QSlider(self.frameconfig) self.torque_slider.setMinimum(1) self.torque_slider.setMaximum(100) self.torque_slider.setProperty("value", 100) self.torque_slider.setTracking(True) self.torque_slider.setOrientation(QtCore.Qt.Horizontal) self.torque_slider.setObjectName(_fromUtf8("torque_slider")) self.horizontalLayout_2.addWidget(self.torque_slider) self.horizontalLayout_4 = QtGui.QHBoxLayout() self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4")) self.torque_spin = QtGui.QSpinBox(self.frameconfig) self.torque_spin.setMinimum(1) self.torque_spin.setMaximum(100) self.torque_spin.setProperty("value", 100) self.torque_spin.setObjectName(_fromUtf8("torque_spin")) self.horizontalLayout_4.addWidget(self.torque_spin) self.label = QtGui.QLabel(self.frameconfig) self.label.setAlignment(QtCore.Qt.AlignCenter) self.label.setObjectName(_fromUtf8("label")) self.horizontalLayout_4.addWidget(self.label) self.horizontalLayout_2.addLayout(self.horizontalLayout_4) self.gridLayout_7.addLayout(self.horizontalLayout_2, 4, 0, 1, 1) self.horizontalLayout_7 = QtGui.QHBoxLayout() self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7")) self.reverse_mode = QtGui.QCheckBox(self.frameconfig) self.reverse_mode.setEnabled(False) self.reverse_mode.setObjectName(_fromUtf8("reverse_mode")) self.horizontalLayout_7.addWidget(self.reverse_mode) self.slave_mode = QtGui.QCheckBox(self.frameconfig) self.slave_mode.setEnabled(False) self.slave_mode.setObjectName(_fromUtf8("slave_mode")) self.horizontalLayout_7.addWidget(self.slave_mode) self.gridLayout_7.addLayout(self.horizontalLayout_7, 8, 0, 1, 1) self.label_7 = QtGui.QLabel(self.frameconfig) self.label_7.setAlignment(QtCore.Qt.AlignCenter) self.label_7.setObjectName(_fromUtf8("label_7")) self.gridLayout_7.addWidget(self.label_7, 0, 0, 1, 1) self.gridLayout_3 = QtGui.QGridLayout() self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) self.verticalLayout = QtGui.QVBoxLayout() self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.servoidtxt = QtGui.QLabel(self.frameconfig) self.servoidtxt.setObjectName(_fromUtf8("servoidtxt")) self.verticalLayout.addWidget(self.servoidtxt) self.servo_id = QtGui.QSpinBox(self.frameconfig) self.servo_id.setAccelerated(True) self.servo_id.setMinimum(1) self.servo_id.setMaximum(252) self.servo_id.setObjectName(_fromUtf8("servo_id")) self.verticalLayout.addWidget(self.servo_id) self.gridLayout_3.addLayout(self.verticalLayout, 0, 0, 1, 1) self.factory_reset_box = QtGui.QCheckBox(self.frameconfig) self.factory_reset_box.setObjectName(_fromUtf8("factory_reset_box")) self.gridLayout_3.addWidget(self.factory_reset_box, 1, 0, 1, 2) self.verticalLayout_3 = QtGui.QVBoxLayout() self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3")) self.newidtxt = QtGui.QLabel(self.frameconfig) self.newidtxt.setObjectName(_fromUtf8("newidtxt")) self.verticalLayout_3.addWidget(self.newidtxt) self.new_id = QtGui.QSpinBox(self.frameconfig) self.new_id.setAccelerated(True) self.new_id.setMinimum(1) self.new_id.setMaximum(252) self.new_id.setObjectName(_fromUtf8("new_id")) self.verticalLayout_3.addWidget(self.new_id) self.gridLayout_3.addLayout(self.verticalLayout_3, 2, 0, 1, 1) self.verticalLayout_4 = QtGui.QVBoxLayout() self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4")) self.newbaud = QtGui.QLabel(self.frameconfig) self.newbaud.setObjectName(_fromUtf8("newbaud")) self.verticalLayout_4.addWidget(self.newbaud) self.new_baudlist = QtGui.QComboBox(self.frameconfig) self.new_baudlist.setObjectName(_fromUtf8("new_baudlist")) self.new_baudlist.addItem(_fromUtf8("")) self.new_baudlist.addItem(_fromUtf8("")) self.new_baudlist.addItem(_fromUtf8("")) self.new_baudlist.addItem(_fromUtf8("")) self.new_baudlist.addItem(_fromUtf8("")) self.new_baudlist.addItem(_fromUtf8("")) self.new_baudlist.addItem(_fromUtf8("")) self.new_baudlist.addItem(_fromUtf8("")) self.new_baudlist.addItem(_fromUtf8("")) self.verticalLayout_4.addWidget(self.new_baudlist) self.gridLayout_3.addLayout(self.verticalLayout_4, 2, 2, 1, 1) self.verticalLayout_2 = QtGui.QVBoxLayout() self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.servobaudrate = QtGui.QLabel(self.frameconfig) self.servobaudrate.setObjectName(_fromUtf8("servobaudrate")) self.verticalLayout_2.addWidget(self.servobaudrate) self.servo_baudlist = QtGui.QComboBox(self.frameconfig) self.servo_baudlist.setObjectName(_fromUtf8("servo_baudlist")) self.servo_baudlist.addItem(_fromUtf8("")) self.servo_baudlist.addItem(_fromUtf8("")) self.servo_baudlist.addItem(_fromUtf8("")) self.servo_baudlist.addItem(_fromUtf8("")) self.servo_baudlist.addItem(_fromUtf8("")) self.servo_baudlist.addItem(_fromUtf8("")) self.servo_baudlist.addItem(_fromUtf8("")) self.servo_baudlist.addItem(_fromUtf8("")) self.servo_baudlist.addItem(_fromUtf8("")) self.verticalLayout_2.addWidget(self.servo_baudlist) self.gridLayout_3.addLayout(self.verticalLayout_2, 0, 1, 1, 2) self.gridLayout_7.addLayout(self.gridLayout_3, 3, 0, 1, 1) self.update_memory = QtGui.QPushButton(self.frameconfig) self.update_memory.setMaximumSize(QtCore.QSize(1920, 1080)) self.update_memory.setStyleSheet( _fromUtf8("background-image: url(:/updateeprombut.jpg);")) self.update_memory.setFlat(False) self.update_memory.setObjectName(_fromUtf8("update_memory")) self.gridLayout_7.addWidget(self.update_memory, 9, 0, 1, 1) self.gridLayout_5 = QtGui.QGridLayout() self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5")) self.label_16 = QtGui.QLabel(self.frameconfig) self.label_16.setAlignment(QtCore.Qt.AlignCenter) self.label_16.setObjectName(_fromUtf8("label_16")) self.gridLayout_5.addWidget(self.label_16, 0, 0, 1, 1) self.horizontalLayout_6 = QtGui.QHBoxLayout() self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6")) self.wheel_mode = QtGui.QCheckBox(self.frameconfig) self.wheel_mode.setStyleSheet( _fromUtf8("background-image: url(:/background.jpg);")) self.wheel_mode.setObjectName(_fromUtf8("wheel_mode")) self.horizontalLayout_6.addWidget(self.wheel_mode) self.joint_mode = QtGui.QCheckBox(self.frameconfig) self.joint_mode.setAutoFillBackground(False) self.joint_mode.setCheckable(True) self.joint_mode.setTristate(False) self.joint_mode.setObjectName(_fromUtf8("joint_mode")) self.horizontalLayout_6.addWidget(self.joint_mode) self.multiturn_mode = QtGui.QCheckBox(self.frameconfig) self.multiturn_mode.setEnabled(False) self.multiturn_mode.setObjectName(_fromUtf8("multiturn_mode")) self.horizontalLayout_6.addWidget(self.multiturn_mode) self.gridLayout_5.addLayout(self.horizontalLayout_6, 1, 0, 1, 1) self.gridLayout_4 = QtGui.QGridLayout() self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4")) self.verticalLayout_6 = QtGui.QVBoxLayout() self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6")) self.label_13 = QtGui.QLabel(self.frameconfig) self.label_13.setObjectName(_fromUtf8("label_13")) self.verticalLayout_6.addWidget(self.label_13) self.cw_anglelimit = QtGui.QSpinBox(self.frameconfig) self.cw_anglelimit.setEnabled(False) self.cw_anglelimit.setFrame(True) self.cw_anglelimit.setAccelerated(True) self.cw_anglelimit.setKeyboardTracking(True) self.cw_anglelimit.setSuffix(_fromUtf8("")) self.cw_anglelimit.setMaximum(4095) self.cw_anglelimit.setObjectName(_fromUtf8("cw_anglelimit")) self.verticalLayout_6.addWidget(self.cw_anglelimit) self.gridLayout_4.addLayout(self.verticalLayout_6, 0, 0, 1, 1) self.verticalLayout_5 = QtGui.QVBoxLayout() self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5")) self.label_14 = QtGui.QLabel(self.frameconfig) self.label_14.setObjectName(_fromUtf8("label_14")) self.verticalLayout_5.addWidget(self.label_14) self.ccw_anglelimit = QtGui.QSpinBox(self.frameconfig) self.ccw_anglelimit.setEnabled(False) self.ccw_anglelimit.setAccelerated(True) self.ccw_anglelimit.setMaximum(4095) self.ccw_anglelimit.setObjectName(_fromUtf8("ccw_anglelimit")) self.verticalLayout_5.addWidget(self.ccw_anglelimit) self.gridLayout_4.addLayout(self.verticalLayout_5, 0, 1, 1, 1) self.gridLayout_5.addLayout(self.gridLayout_4, 2, 0, 1, 1) self.gridLayout_7.addLayout(self.gridLayout_5, 6, 0, 1, 1) self.label_2 = QtGui.QLabel(self.frameconfig) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout_7.addWidget(self.label_2, 1, 0, 1, 1) self.verticalLayout_8 = QtGui.QVBoxLayout() self.verticalLayout_8.setObjectName(_fromUtf8("verticalLayout_8")) self.horizontalLayout_3 = QtGui.QHBoxLayout() self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3")) self.label_3 = QtGui.QLabel(self.frameconfig) self.label_3.setObjectName(_fromUtf8("label_3")) self.horizontalLayout_3.addWidget(self.label_3) self.label_8 = QtGui.QLabel(self.frameconfig) self.label_8.setObjectName(_fromUtf8("label_8")) self.horizontalLayout_3.addWidget(self.label_8) self.label_9 = QtGui.QLabel(self.frameconfig) self.label_9.setObjectName(_fromUtf8("label_9")) self.horizontalLayout_3.addWidget(self.label_9) self.verticalLayout_8.addLayout(self.horizontalLayout_3) self.horizontalLayout_9 = QtGui.QHBoxLayout() self.horizontalLayout_9.setObjectName(_fromUtf8("horizontalLayout_9")) self.d_gain = QtGui.QSpinBox(self.frameconfig) self.d_gain.setAccelerated(True) self.d_gain.setMaximum(254) self.d_gain.setObjectName(_fromUtf8("d_gain")) self.horizontalLayout_9.addWidget(self.d_gain) self.i_gain = QtGui.QSpinBox(self.frameconfig) self.i_gain.setAccelerated(True) self.i_gain.setMaximum(254) self.i_gain.setObjectName(_fromUtf8("i_gain")) self.horizontalLayout_9.addWidget(self.i_gain) self.p_gain = QtGui.QSpinBox(self.frameconfig) self.p_gain.setAccelerated(True) self.p_gain.setMaximum(254) self.p_gain.setProperty("value", 32) self.p_gain.setObjectName(_fromUtf8("p_gain")) self.horizontalLayout_9.addWidget(self.p_gain) self.verticalLayout_8.addLayout(self.horizontalLayout_9) self.gridLayout_7.addLayout(self.verticalLayout_8, 7, 0, 1, 1) self.model_list = QtGui.QComboBox(self.frameconfig) self.model_list.setObjectName(_fromUtf8("model_list")) self.model_list.addItem(_fromUtf8("")) self.model_list.addItem(_fromUtf8("")) self.model_list.addItem(_fromUtf8("")) self.model_list.addItem(_fromUtf8("")) self.model_list.addItem(_fromUtf8("")) self.model_list.addItem(_fromUtf8("")) self.model_list.addItem(_fromUtf8("")) self.model_list.addItem(_fromUtf8("")) self.model_list.addItem(_fromUtf8("")) self.model_list.addItem(_fromUtf8("")) self.model_list.addItem(_fromUtf8("")) self.gridLayout_7.addWidget(self.model_list, 2, 0, 1, 1) self.verticalLayout_7.addWidget(self.frameconfig) spacerItem4 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.verticalLayout_7.addItem(spacerItem4) self.gridLayout_6.addLayout(self.verticalLayout_7, 0, 2, 1, 1) MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtGui.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 1051, 25)) self.menubar.setObjectName(_fromUtf8("menubar")) MainWindow.setMenuBar(self.menubar) self.statusbar = QtGui.QStatusBar(MainWindow) self.statusbar.setObjectName(_fromUtf8("statusbar")) MainWindow.setStatusBar(self.statusbar) self.retranslateUi(MainWindow) self.baudrate_list.setCurrentRow(-1) QtCore.QObject.connect(self.torque_slider, QtCore.SIGNAL(_fromUtf8("sliderMoved(int)")), self.torque_spin.setValue) QtCore.QObject.connect(self.torque_spin, QtCore.SIGNAL(_fromUtf8("valueChanged(int)")), self.torque_slider.setValue) QtCore.QObject.connect(self.joint_mode, QtCore.SIGNAL(_fromUtf8("clicked(bool)")), self.ccw_anglelimit.setEnabled) QtCore.QObject.connect(self.joint_mode, QtCore.SIGNAL(_fromUtf8("clicked(bool)")), self.cw_anglelimit.setEnabled) QtCore.QObject.connect(self.joint_mode, QtCore.SIGNAL(_fromUtf8("clicked(bool)")), self.wheel_mode.setDisabled) QtCore.QObject.connect(self.wheel_mode, QtCore.SIGNAL(_fromUtf8("clicked(bool)")), self.joint_mode.setDisabled) QtCore.QObject.connect(self.multiturn_mode, QtCore.SIGNAL(_fromUtf8("clicked(bool)")), self.joint_mode.setDisabled) QtCore.QObject.connect(self.multiturn_mode, QtCore.SIGNAL(_fromUtf8("clicked(bool)")), self.wheel_mode.setDisabled) QtCore.QMetaObject.connectSlotsByName(MainWindow) QtCore.QObject.connect(self.multiturn_mode, QtCore.SIGNAL(_fromUtf8("clicked(bool)")), self.joint_mode.setDisabled) #Everytime the model list current index changes, activated the enable_checkboxes method self.model_list.currentIndexChanged.connect(self.enable_checkboxes) #When multiturn mode is selected, activate uncheck_modes method self.multiturn_mode.clicked.connect(self.uncheck_modes) #Defines the Angle values when the mode is selected self.multiturn_mode.stateChanged.connect(self.define_angle_limit) self.wheel_mode.stateChanged.connect(self.define_angle_limit) self.joint_mode.stateChanged.connect(self.define_angle_limit) #Changes the cw angle limit and ccw angle limit according to the user input self.cw_anglelimit.valueChanged.connect(self.define_angle_limit) self.ccw_anglelimit.valueChanged.connect(self.define_angle_limit) #Saves the selected baudrates in a vector self.baudrate_list.itemClicked.connect(self.baudrates_to_search) #Connects search button to search method self.scan_btn.clicked.connect(self.network_search) #Connects the update memory button to configure method self.update_memory.clicked.connect(self.configure_confirmation) #Port changing self.port_combox.currentIndexChanged.connect(self.port_change)
def setupUi(self, StanzaEditorBase): StanzaEditorBase.setObjectName("StanzaEditorBase") StanzaEditorBase.resize( QtCore.QSize(QtCore.QRect(0, 0, 640, 455).size()).expandedTo( StanzaEditorBase.minimumSizeHint())) self.gridlayout = QtGui.QGridLayout(StanzaEditorBase) self.gridlayout.setMargin(9) self.gridlayout.setSpacing(6) self.gridlayout.setObjectName("gridlayout") self.mToolboxFrame = QtGui.QFrame(StanzaEditorBase) self.mToolboxFrame.setFrameShape(QtGui.QFrame.StyledPanel) self.mToolboxFrame.setFrameShadow(QtGui.QFrame.Raised) self.mToolboxFrame.setObjectName("mToolboxFrame") self.vboxlayout = QtGui.QVBoxLayout(self.mToolboxFrame) self.vboxlayout.setMargin(9) self.vboxlayout.setSpacing(6) self.vboxlayout.setObjectName("vboxlayout") spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.vboxlayout.addItem(spacerItem) self.gridlayout.addWidget(self.mToolboxFrame, 1, 0, 1, 1) self.mSplitter1 = QtGui.QSplitter(StanzaEditorBase) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Policy(7), QtGui.QSizePolicy.Policy(7)) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.mSplitter1.sizePolicy().hasHeightForWidth()) self.mSplitter1.setSizePolicy(sizePolicy) self.mSplitter1.setOrientation(QtCore.Qt.Vertical) self.mSplitter1.setObjectName("mSplitter1") self.mGraphicsView = QtGui.QGraphicsView(self.mSplitter1) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Policy(7), QtGui.QSizePolicy.Policy(3)) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.mGraphicsView.sizePolicy().hasHeightForWidth()) self.mGraphicsView.setSizePolicy(sizePolicy) self.mGraphicsView.setObjectName("mGraphicsView") self.mEditFrame = QtGui.QFrame(self.mSplitter1) self.mEditFrame.setFrameShape(QtGui.QFrame.StyledPanel) self.mEditFrame.setFrameShadow(QtGui.QFrame.Raised) self.mEditFrame.setObjectName("mEditFrame") self.vboxlayout1 = QtGui.QVBoxLayout(self.mEditFrame) self.vboxlayout1.setMargin(9) self.vboxlayout1.setSpacing(6) self.vboxlayout1.setObjectName("vboxlayout1") self.mSplitter2 = QtGui.QSplitter(self.mEditFrame) self.mSplitter2.setOrientation(QtCore.Qt.Horizontal) self.mSplitter2.setObjectName("mSplitter2") self.mEditorTabWidget = QtGui.QTabWidget(self.mSplitter2) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Policy(7), QtGui.QSizePolicy.Policy(7)) sizePolicy.setHorizontalStretch(4) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.mEditorTabWidget.sizePolicy().hasHeightForWidth()) self.mEditorTabWidget.setSizePolicy(sizePolicy) self.mEditorTabWidget.setObjectName("mEditorTabWidget") self.mHelpWidget = QtGui.QTextEdit(self.mSplitter2) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Policy(7), QtGui.QSizePolicy.Policy(7)) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.mHelpWidget.sizePolicy().hasHeightForWidth()) self.mHelpWidget.setSizePolicy(sizePolicy) self.mHelpWidget.setTextInteractionFlags( QtCore.Qt.TextBrowserInteraction) self.mHelpWidget.setObjectName("mHelpWidget") self.vboxlayout1.addWidget(self.mSplitter2) self.gridlayout.addWidget(self.mSplitter1, 1, 1, 1, 1) self.mToolGroupBox = QtGui.QGroupBox(StanzaEditorBase) self.mToolGroupBox.setObjectName("mToolGroupBox") self.hboxlayout = QtGui.QHBoxLayout(self.mToolGroupBox) self.hboxlayout.setMargin(0) self.hboxlayout.setSpacing(3) self.hboxlayout.setObjectName("hboxlayout") self.mNewAppBtn = QtGui.QToolButton(self.mToolGroupBox) self.mNewAppBtn.setIcon(QtGui.QIcon(":/Maestro/images/stanza_new.png")) self.mNewAppBtn.setIconSize(QtCore.QSize(24, 24)) self.mNewAppBtn.setObjectName("mNewAppBtn") self.hboxlayout.addWidget(self.mNewAppBtn) self.mNewGlobalOptBtn = QtGui.QToolButton(self.mToolGroupBox) self.mNewGlobalOptBtn.setIcon( QtGui.QIcon(":/Maestro/images/stanza_global_new.png")) self.mNewGlobalOptBtn.setIconSize(QtCore.QSize(24, 24)) self.mNewGlobalOptBtn.setObjectName("mNewGlobalOptBtn") self.hboxlayout.addWidget(self.mNewGlobalOptBtn) self.mLayoutBtn = QtGui.QToolButton(self.mToolGroupBox) self.mLayoutBtn.setIcon( QtGui.QIcon(":/Maestro/StanzaEditor/images/layout.png")) self.mLayoutBtn.setIconSize(QtCore.QSize(24, 24)) self.mLayoutBtn.setPopupMode(QtGui.QToolButton.MenuButtonPopup) self.mLayoutBtn.setToolButtonStyle(QtCore.Qt.ToolButtonIconOnly) self.mLayoutBtn.setObjectName("mLayoutBtn") self.hboxlayout.addWidget(self.mLayoutBtn) self.mNoDragBtn = QtGui.QToolButton(self.mToolGroupBox) self.mNoDragBtn.setIcon( QtGui.QIcon(":/Maestro/StanzaEditor/images/no-drag.png")) self.mNoDragBtn.setIconSize(QtCore.QSize(24, 24)) self.mNoDragBtn.setCheckable(True) self.mNoDragBtn.setChecked(True) self.mNoDragBtn.setObjectName("mNoDragBtn") self.hboxlayout.addWidget(self.mNoDragBtn) self.mScrollDragBtn = QtGui.QToolButton(self.mToolGroupBox) self.mScrollDragBtn.setIcon( QtGui.QIcon(":/Maestro/StanzaEditor/images/scroll-drag.png")) self.mScrollDragBtn.setIconSize(QtCore.QSize(24, 24)) self.mScrollDragBtn.setCheckable(True) self.mScrollDragBtn.setObjectName("mScrollDragBtn") self.hboxlayout.addWidget(self.mScrollDragBtn) self.mRubberBandDragBtn = QtGui.QToolButton(self.mToolGroupBox) self.mRubberBandDragBtn.setIcon( QtGui.QIcon(":/Maestro/StanzaEditor/images/rubber-drag.png")) self.mRubberBandDragBtn.setIconSize(QtCore.QSize(24, 24)) self.mRubberBandDragBtn.setCheckable(True) self.mRubberBandDragBtn.setObjectName("mRubberBandDragBtn") self.hboxlayout.addWidget(self.mRubberBandDragBtn) self.mZoomExtentsBtn = QtGui.QToolButton(self.mToolGroupBox) self.mZoomExtentsBtn.setIcon( QtGui.QIcon(":/Maestro/StanzaEditor/images/zoom-extents.png")) self.mZoomExtentsBtn.setIconSize(QtCore.QSize(24, 24)) self.mZoomExtentsBtn.setAutoRaise(False) self.mZoomExtentsBtn.setObjectName("mZoomExtentsBtn") self.hboxlayout.addWidget(self.mZoomExtentsBtn) self.mApplicationLbl = QtGui.QLabel(self.mToolGroupBox) self.mApplicationLbl.setObjectName("mApplicationLbl") self.hboxlayout.addWidget(self.mApplicationLbl) self.mStanzaCB = QtGui.QComboBox(self.mToolGroupBox) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Policy(3), QtGui.QSizePolicy.Policy(0)) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.mStanzaCB.sizePolicy().hasHeightForWidth()) self.mStanzaCB.setSizePolicy(sizePolicy) self.mStanzaCB.setObjectName("mStanzaCB") self.hboxlayout.addWidget(self.mStanzaCB) self.mClassLine = QtGui.QFrame(self.mToolGroupBox) self.mClassLine.setFrameShape(QtGui.QFrame.VLine) self.mClassLine.setFrameShadow(QtGui.QFrame.Sunken) self.mClassLine.setObjectName("mClassLine") self.hboxlayout.addWidget(self.mClassLine) self.mClassFilterLbl = QtGui.QLabel(self.mToolGroupBox) self.mClassFilterLbl.setPixmap( QtGui.QPixmap(":/Maestro/StanzaEditor/images/filter.png")) self.mClassFilterLbl.setObjectName("mClassFilterLbl") self.hboxlayout.addWidget(self.mClassFilterLbl) self.mOperatingSystemCB = QtGui.QComboBox(self.mToolGroupBox) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Policy(7), QtGui.QSizePolicy.Policy(0)) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.mOperatingSystemCB.sizePolicy().hasHeightForWidth()) self.mOperatingSystemCB.setSizePolicy(sizePolicy) self.mOperatingSystemCB.setObjectName("mOperatingSystemCB") self.hboxlayout.addWidget(self.mOperatingSystemCB) self.mClassFilterComma = QtGui.QLabel(self.mToolGroupBox) font = QtGui.QFont() font.setPointSize(20) self.mClassFilterComma.setFont(font) self.mClassFilterComma.setAlignment(QtCore.Qt.AlignBottom | QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft) self.mClassFilterComma.setObjectName("mClassFilterComma") self.hboxlayout.addWidget(self.mClassFilterComma) self.mClassFilterCB = QtGui.QComboBox(self.mToolGroupBox) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Policy(7), QtGui.QSizePolicy.Policy(0)) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.mClassFilterCB.sizePolicy().hasHeightForWidth()) self.mClassFilterCB.setSizePolicy(sizePolicy) self.mClassFilterCB.setEditable(True) self.mClassFilterCB.setObjectName("mClassFilterCB") self.hboxlayout.addWidget(self.mClassFilterCB) self.gridlayout.addWidget(self.mToolGroupBox, 0, 0, 1, 2) self.mNewApplicationAction = QtGui.QAction(StanzaEditorBase) self.mNewApplicationAction.setIcon( QtGui.QIcon(":/Maestro/images/stanza_new.png")) self.mNewApplicationAction.setObjectName("mNewApplicationAction") self.mNewGlobalOptionAction = QtGui.QAction(StanzaEditorBase) self.mNewGlobalOptionAction.setIcon( QtGui.QIcon(":/Maestro/images/stanza_global_new.png")) self.mNewGlobalOptionAction.setObjectName("mNewGlobalOptionAction") self.retranslateUi(StanzaEditorBase) QtCore.QMetaObject.connectSlotsByName(StanzaEditorBase)
def setupUi(self, RatShuttlingPawEventsGenerator): RatShuttlingPawEventsGenerator.setObjectName(_fromUtf8("RatShuttlingPawEventsGenerator")) RatShuttlingPawEventsGenerator.resize(1290, 997) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(RatShuttlingPawEventsGenerator.sizePolicy().hasHeightForWidth()) RatShuttlingPawEventsGenerator.setSizePolicy(sizePolicy) self.centralwidget = QtGui.QWidget(RatShuttlingPawEventsGenerator) self.centralwidget.setObjectName(_fromUtf8("centralwidget")) self.mplg_frames = MplGraphWidget(self.centralwidget) self.mplg_frames.setGeometry(QtCore.QRect(0, -10, 1291, 591)) self.mplg_frames.setNavBarOn(False) self.mplg_frames.setObjectName(_fromUtf8("mplg_frames")) self.mplg_piezos = MplGraphWidget(self.centralwidget) self.mplg_piezos.setGeometry(QtCore.QRect(0, 550, 1291, 161)) self.mplg_piezos.setProperty("spCols", 8) self.mplg_piezos.setNavBarOn(False) self.mplg_piezos.setObjectName(_fromUtf8("mplg_piezos")) self.frame = QtGui.QFrame(self.centralwidget) self.frame.setGeometry(QtCore.QRect(192, 746, 263, 139)) self.frame.setFrameShape(QtGui.QFrame.WinPanel) self.frame.setFrameShadow(QtGui.QFrame.Plain) self.frame.setLineWidth(4) self.frame.setObjectName(_fromUtf8("frame")) self.layoutWidget = QtGui.QWidget(self.frame) self.layoutWidget.setGeometry(QtCore.QRect(4, 4, 253, 130)) self.layoutWidget.setObjectName(_fromUtf8("layoutWidget")) self.verticalLayout_2 = QtGui.QVBoxLayout(self.layoutWidget) self.verticalLayout_2.setMargin(0) self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.horizontalLayout_10 = QtGui.QHBoxLayout() self.horizontalLayout_10.setObjectName(_fromUtf8("horizontalLayout_10")) self.pB_Run = QtGui.QPushButton(self.layoutWidget) font = QtGui.QFont() font.setPointSize(16) self.pB_Run.setFont(font) self.pB_Run.setAutoFillBackground(False) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/playbuttons/Run.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/playbuttons/Stop.png")), QtGui.QIcon.Normal, QtGui.QIcon.On) self.pB_Run.setIcon(icon) self.pB_Run.setIconSize(QtCore.QSize(64, 64)) self.pB_Run.setCheckable(True) self.pB_Run.setAutoExclusive(False) self.pB_Run.setDefault(False) self.pB_Run.setFlat(True) self.pB_Run.setObjectName(_fromUtf8("pB_Run")) self.buttonGroup = QtGui.QButtonGroup(RatShuttlingPawEventsGenerator) self.buttonGroup.setObjectName(_fromUtf8("buttonGroup")) self.buttonGroup.addButton(self.pB_Run) self.horizontalLayout_10.addWidget(self.pB_Run) self.pB_Stop = QtGui.QPushButton(self.layoutWidget) font = QtGui.QFont() font.setPointSize(16) self.pB_Stop.setFont(font) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/playbuttons/Pause.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/playbuttons/Stop.png")), QtGui.QIcon.Normal, QtGui.QIcon.On) self.pB_Stop.setIcon(icon1) self.pB_Stop.setIconSize(QtCore.QSize(64, 64)) self.pB_Stop.setCheckable(True) self.pB_Stop.setChecked(True) self.pB_Stop.setAutoExclusive(False) self.pB_Stop.setDefault(False) self.pB_Stop.setFlat(True) self.pB_Stop.setObjectName(_fromUtf8("pB_Stop")) self.buttonGroup.addButton(self.pB_Stop) self.horizontalLayout_10.addWidget(self.pB_Stop) self.verticalLayout_2.addLayout(self.horizontalLayout_10) self.horizontalLayout_7 = QtGui.QHBoxLayout() self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7")) self.label_updates_sec = QtGui.QLabel(self.layoutWidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_updates_sec.sizePolicy().hasHeightForWidth()) self.label_updates_sec.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setPointSize(14) self.label_updates_sec.setFont(font) self.label_updates_sec.setObjectName(_fromUtf8("label_updates_sec")) self.horizontalLayout_7.addWidget(self.label_updates_sec) self.sB_updates_sec = QtGui.QSpinBox(self.layoutWidget) font = QtGui.QFont() font.setPointSize(14) self.sB_updates_sec.setFont(font) self.sB_updates_sec.setMinimum(1) self.sB_updates_sec.setMaximum(20) self.sB_updates_sec.setObjectName(_fromUtf8("sB_updates_sec")) self.horizontalLayout_7.addWidget(self.sB_updates_sec) self.verticalLayout_2.addLayout(self.horizontalLayout_7) self.frame_2 = QtGui.QFrame(self.centralwidget) self.frame_2.setGeometry(QtCore.QRect(6, 746, 139, 125)) self.frame_2.setFrameShape(QtGui.QFrame.WinPanel) self.frame_2.setFrameShadow(QtGui.QFrame.Plain) self.frame_2.setLineWidth(4) self.frame_2.setObjectName(_fromUtf8("frame_2")) self.layoutWidget1 = QtGui.QWidget(self.frame_2) self.layoutWidget1.setGeometry(QtCore.QRect(8, 8, 126, 112)) self.layoutWidget1.setObjectName(_fromUtf8("layoutWidget1")) self.verticalLayout_8 = QtGui.QVBoxLayout(self.layoutWidget1) self.verticalLayout_8.setMargin(0) self.verticalLayout_8.setObjectName(_fromUtf8("verticalLayout_8")) self.pB_selecet_data = QtGui.QPushButton(self.layoutWidget1) font = QtGui.QFont() font.setPointSize(14) self.pB_selecet_data.setFont(font) self.pB_selecet_data.setObjectName(_fromUtf8("pB_selecet_data")) self.verticalLayout_8.addWidget(self.pB_selecet_data) self.horizontalLayout_9 = QtGui.QHBoxLayout() self.horizontalLayout_9.setObjectName(_fromUtf8("horizontalLayout_9")) self.label_data_loaded = QtGui.QLabel(self.layoutWidget1) font = QtGui.QFont() font.setPointSize(14) self.label_data_loaded.setFont(font) self.label_data_loaded.setAlignment(QtCore.Qt.AlignCenter) self.label_data_loaded.setObjectName(_fromUtf8("label_data_loaded")) self.horizontalLayout_9.addWidget(self.label_data_loaded) self.qled_data_loaded = QLed(self.layoutWidget1) self.qled_data_loaded.setProperty("value", False) self.qled_data_loaded.setOnColour(2) self.qled_data_loaded.setOffColour(1) self.qled_data_loaded.setShape(1) self.qled_data_loaded.setObjectName(_fromUtf8("qled_data_loaded")) self.horizontalLayout_9.addWidget(self.qled_data_loaded) self.verticalLayout_8.addLayout(self.horizontalLayout_9) self.frame_3 = QtGui.QFrame(self.centralwidget) self.frame_3.setGeometry(QtCore.QRect(2, 892, 453, 75)) self.frame_3.setFrameShape(QtGui.QFrame.WinPanel) self.frame_3.setFrameShadow(QtGui.QFrame.Plain) self.frame_3.setLineWidth(4) self.frame_3.setObjectName(_fromUtf8("frame_3")) self.layoutWidget2 = QtGui.QWidget(self.frame_3) self.layoutWidget2.setGeometry(QtCore.QRect(8, 4, 438, 64)) self.layoutWidget2.setObjectName(_fromUtf8("layoutWidget2")) self.verticalLayout_5 = QtGui.QVBoxLayout(self.layoutWidget2) self.verticalLayout_5.setMargin(0) self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5")) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.label_FrameNum = QtGui.QLabel(self.layoutWidget2) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_FrameNum.sizePolicy().hasHeightForWidth()) self.label_FrameNum.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setPointSize(12) self.label_FrameNum.setFont(font) self.label_FrameNum.setObjectName(_fromUtf8("label_FrameNum")) self.horizontalLayout.addWidget(self.label_FrameNum) self.sBox_FrameNum = QtGui.QSpinBox(self.layoutWidget2) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.sBox_FrameNum.sizePolicy().hasHeightForWidth()) self.sBox_FrameNum.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setPointSize(12) self.sBox_FrameNum.setFont(font) self.sBox_FrameNum.setFrame(True) self.sBox_FrameNum.setButtonSymbols(QtGui.QAbstractSpinBox.UpDownArrows) self.sBox_FrameNum.setSpecialValueText(_fromUtf8("")) self.sBox_FrameNum.setKeyboardTracking(False) self.sBox_FrameNum.setMaximum(10000000) self.sBox_FrameNum.setObjectName(_fromUtf8("sBox_FrameNum")) self.horizontalLayout.addWidget(self.sBox_FrameNum) self.pB_PrevFrame = QtGui.QPushButton(self.layoutWidget2) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pB_PrevFrame.sizePolicy().hasHeightForWidth()) self.pB_PrevFrame.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setPointSize(12) self.pB_PrevFrame.setFont(font) self.pB_PrevFrame.setObjectName(_fromUtf8("pB_PrevFrame")) self.horizontalLayout.addWidget(self.pB_PrevFrame) self.pB_NextFrame = QtGui.QPushButton(self.layoutWidget2) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pB_NextFrame.sizePolicy().hasHeightForWidth()) self.pB_NextFrame.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setPointSize(12) self.pB_NextFrame.setFont(font) self.pB_NextFrame.setObjectName(_fromUtf8("pB_NextFrame")) self.horizontalLayout.addWidget(self.pB_NextFrame) self.verticalLayout_5.addLayout(self.horizontalLayout) self.horizontalLayout_11 = QtGui.QHBoxLayout() self.horizontalLayout_11.setObjectName(_fromUtf8("horizontalLayout_11")) self.label_frames_step = QtGui.QLabel(self.layoutWidget2) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_frames_step.sizePolicy().hasHeightForWidth()) self.label_frames_step.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setPointSize(12) self.label_frames_step.setFont(font) self.label_frames_step.setObjectName(_fromUtf8("label_frames_step")) self.horizontalLayout_11.addWidget(self.label_frames_step) self.sBox_frames_step = QtGui.QSpinBox(self.layoutWidget2) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.sBox_frames_step.sizePolicy().hasHeightForWidth()) self.sBox_frames_step.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setPointSize(12) self.sBox_frames_step.setFont(font) self.sBox_frames_step.setKeyboardTracking(False) self.sBox_frames_step.setMinimum(1) self.sBox_frames_step.setMaximum(1000) self.sBox_frames_step.setObjectName(_fromUtf8("sBox_frames_step")) self.horizontalLayout_11.addWidget(self.sBox_frames_step) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_11.addItem(spacerItem) self.verticalLayout_5.addLayout(self.horizontalLayout_11) self.frame_4 = QtGui.QFrame(self.centralwidget) self.frame_4.setGeometry(QtCore.QRect(464, 746, 119, 95)) self.frame_4.setFrameShape(QtGui.QFrame.WinPanel) self.frame_4.setFrameShadow(QtGui.QFrame.Plain) self.frame_4.setLineWidth(4) self.frame_4.setObjectName(_fromUtf8("frame_4")) self.layoutWidget3 = QtGui.QWidget(self.frame_4) self.layoutWidget3.setGeometry(QtCore.QRect(6, 6, 108, 85)) self.layoutWidget3.setObjectName(_fromUtf8("layoutWidget3")) self.verticalLayout_4 = QtGui.QVBoxLayout(self.layoutWidget3) self.verticalLayout_4.setMargin(0) self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4")) self.label_frame_resize = QtGui.QLabel(self.layoutWidget3) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_frame_resize.sizePolicy().hasHeightForWidth()) self.label_frame_resize.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setPointSize(12) self.label_frame_resize.setFont(font) self.label_frame_resize.setAlignment(QtCore.Qt.AlignCenter) self.label_frame_resize.setObjectName(_fromUtf8("label_frame_resize")) self.verticalLayout_4.addWidget(self.label_frame_resize) self.dSB_frame_resize = QtGui.QDoubleSpinBox(self.layoutWidget3) font = QtGui.QFont() font.setPointSize(12) self.dSB_frame_resize.setFont(font) self.dSB_frame_resize.setDecimals(1) self.dSB_frame_resize.setMinimum(0.1) self.dSB_frame_resize.setMaximum(2.0) self.dSB_frame_resize.setSingleStep(0.1) self.dSB_frame_resize.setProperty("value", 0.5) self.dSB_frame_resize.setObjectName(_fromUtf8("dSB_frame_resize")) self.verticalLayout_4.addWidget(self.dSB_frame_resize) self.frame_5 = QtGui.QFrame(self.centralwidget) self.frame_5.setGeometry(QtCore.QRect(608, 746, 295, 111)) self.frame_5.setFrameShape(QtGui.QFrame.WinPanel) self.frame_5.setFrameShadow(QtGui.QFrame.Plain) self.frame_5.setLineWidth(4) self.frame_5.setObjectName(_fromUtf8("frame_5")) self.layoutWidget4 = QtGui.QWidget(self.frame_5) self.layoutWidget4.setGeometry(QtCore.QRect(4, 4, 199, 100)) self.layoutWidget4.setObjectName(_fromUtf8("layoutWidget4")) self.verticalLayout = QtGui.QVBoxLayout(self.layoutWidget4) self.verticalLayout.setMargin(0) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.pB_add_trial = QtGui.QPushButton(self.layoutWidget4) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pB_add_trial.sizePolicy().hasHeightForWidth()) self.pB_add_trial.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setPointSize(12) self.pB_add_trial.setFont(font) self.pB_add_trial.setObjectName(_fromUtf8("pB_add_trial")) self.verticalLayout.addWidget(self.pB_add_trial) self.pB_remove_trial = QtGui.QPushButton(self.layoutWidget4) font = QtGui.QFont() font.setPointSize(12) self.pB_remove_trial.setFont(font) self.pB_remove_trial.setObjectName(_fromUtf8("pB_remove_trial")) self.verticalLayout.addWidget(self.pB_remove_trial) self.layoutWidget5 = QtGui.QWidget(self.frame_5) self.layoutWidget5.setGeometry(QtCore.QRect(206, 20, 85, 71)) self.layoutWidget5.setObjectName(_fromUtf8("layoutWidget5")) self.verticalLayout_9 = QtGui.QVBoxLayout(self.layoutWidget5) self.verticalLayout_9.setMargin(0) self.verticalLayout_9.setObjectName(_fromUtf8("verticalLayout_9")) self.label_selected_trials = QtGui.QLabel(self.layoutWidget5) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_selected_trials.sizePolicy().hasHeightForWidth()) self.label_selected_trials.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setPointSize(12) self.label_selected_trials.setFont(font) self.label_selected_trials.setAlignment(QtCore.Qt.AlignCenter) self.label_selected_trials.setObjectName(_fromUtf8("label_selected_trials")) self.verticalLayout_9.addWidget(self.label_selected_trials) self.cB_selected_trials = QtGui.QComboBox(self.layoutWidget5) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cB_selected_trials.sizePolicy().hasHeightForWidth()) self.cB_selected_trials.setSizePolicy(sizePolicy) self.cB_selected_trials.setMaximumSize(QtCore.QSize(200, 200)) font = QtGui.QFont() font.setPointSize(12) self.cB_selected_trials.setFont(font) self.cB_selected_trials.setObjectName(_fromUtf8("cB_selected_trials")) self.verticalLayout_9.addWidget(self.cB_selected_trials) self.frame_6 = QtGui.QFrame(self.centralwidget) self.frame_6.setGeometry(QtCore.QRect(464, 908, 439, 59)) self.frame_6.setFrameShape(QtGui.QFrame.WinPanel) self.frame_6.setFrameShadow(QtGui.QFrame.Plain) self.frame_6.setLineWidth(4) self.frame_6.setObjectName(_fromUtf8("frame_6")) self.layoutWidget6 = QtGui.QWidget(self.frame_6) self.layoutWidget6.setGeometry(QtCore.QRect(6, 6, 427, 48)) self.layoutWidget6.setObjectName(_fromUtf8("layoutWidget6")) self.horizontalLayout_2 = QtGui.QHBoxLayout(self.layoutWidget6) self.horizontalLayout_2.setMargin(0) self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.pB_goto_trial_frame = QtGui.QPushButton(self.layoutWidget6) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pB_goto_trial_frame.sizePolicy().hasHeightForWidth()) self.pB_goto_trial_frame.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setPointSize(12) self.pB_goto_trial_frame.setFont(font) self.pB_goto_trial_frame.setObjectName(_fromUtf8("pB_goto_trial_frame")) self.horizontalLayout_2.addWidget(self.pB_goto_trial_frame) self.horizontalLayout_13 = QtGui.QHBoxLayout() self.horizontalLayout_13.setObjectName(_fromUtf8("horizontalLayout_13")) self.label_trial_number_txt = QtGui.QLabel(self.layoutWidget6) font = QtGui.QFont() font.setPointSize(12) self.label_trial_number_txt.setFont(font) self.label_trial_number_txt.setToolTip(_fromUtf8("")) self.label_trial_number_txt.setAlignment(QtCore.Qt.AlignCenter) self.label_trial_number_txt.setObjectName(_fromUtf8("label_trial_number_txt")) self.horizontalLayout_13.addWidget(self.label_trial_number_txt) self.label_trial_number_int = QtGui.QLabel(self.layoutWidget6) font = QtGui.QFont() font.setPointSize(12) self.label_trial_number_int.setFont(font) self.label_trial_number_int.setObjectName(_fromUtf8("label_trial_number_int")) self.horizontalLayout_13.addWidget(self.label_trial_number_int) self.horizontalLayout_2.addLayout(self.horizontalLayout_13) self.horizontalLayout_12 = QtGui.QHBoxLayout() self.horizontalLayout_12.setObjectName(_fromUtf8("horizontalLayout_12")) self.label_trial_start_frames = QtGui.QLabel(self.layoutWidget6) font = QtGui.QFont() font.setPointSize(12) self.label_trial_start_frames.setFont(font) self.label_trial_start_frames.setAlignment(QtCore.Qt.AlignCenter) self.label_trial_start_frames.setObjectName(_fromUtf8("label_trial_start_frames")) self.horizontalLayout_12.addWidget(self.label_trial_start_frames) self.cB_trial_start_frames = QtGui.QComboBox(self.layoutWidget6) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(50) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cB_trial_start_frames.sizePolicy().hasHeightForWidth()) self.cB_trial_start_frames.setSizePolicy(sizePolicy) self.cB_trial_start_frames.setMinimumSize(QtCore.QSize(150, 0)) self.cB_trial_start_frames.setMaximumSize(QtCore.QSize(150, 30)) self.cB_trial_start_frames.setMaxVisibleItems(20) self.cB_trial_start_frames.setFrame(True) self.cB_trial_start_frames.setObjectName(_fromUtf8("cB_trial_start_frames")) self.horizontalLayout_12.addWidget(self.cB_trial_start_frames) self.horizontalLayout_2.addLayout(self.horizontalLayout_12) self.frame_7 = QtGui.QFrame(self.centralwidget) self.frame_7.setGeometry(QtCore.QRect(8, 696, 983, 27)) self.frame_7.setFrameShape(QtGui.QFrame.WinPanel) self.frame_7.setFrameShadow(QtGui.QFrame.Plain) self.frame_7.setLineWidth(4) self.frame_7.setObjectName(_fromUtf8("frame_7")) self.layoutWidget7 = QtGui.QWidget(self.frame_7) self.layoutWidget7.setGeometry(QtCore.QRect(4, 2, 975, 24)) self.layoutWidget7.setObjectName(_fromUtf8("layoutWidget7")) self.horizontalLayout_8 = QtGui.QHBoxLayout(self.layoutWidget7) self.horizontalLayout_8.setMargin(0) self.horizontalLayout_8.setObjectName(_fromUtf8("horizontalLayout_8")) self.label_piezo_samples_to_plot = QtGui.QLabel(self.layoutWidget7) font = QtGui.QFont() font.setPointSize(12) self.label_piezo_samples_to_plot.setFont(font) self.label_piezo_samples_to_plot.setObjectName(_fromUtf8("label_piezo_samples_to_plot")) self.horizontalLayout_8.addWidget(self.label_piezo_samples_to_plot) self.hSB_piezo_samples_to_plot = QtGui.QScrollBar(self.layoutWidget7) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.hSB_piezo_samples_to_plot.sizePolicy().hasHeightForWidth()) self.hSB_piezo_samples_to_plot.setSizePolicy(sizePolicy) self.hSB_piezo_samples_to_plot.setMinimum(2) self.hSB_piezo_samples_to_plot.setMaximum(500) self.hSB_piezo_samples_to_plot.setSingleStep(2) self.hSB_piezo_samples_to_plot.setProperty("value", 100) self.hSB_piezo_samples_to_plot.setOrientation(QtCore.Qt.Horizontal) self.hSB_piezo_samples_to_plot.setObjectName(_fromUtf8("hSB_piezo_samples_to_plot")) self.horizontalLayout_8.addWidget(self.hSB_piezo_samples_to_plot) spacerItem1 = QtGui.QSpacerItem(10, 20, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum) self.horizontalLayout_8.addItem(spacerItem1) self.label = QtGui.QLabel(self.layoutWidget7) font = QtGui.QFont() font.setPointSize(12) self.label.setFont(font) self.label.setObjectName(_fromUtf8("label")) self.horizontalLayout_8.addWidget(self.label) self.cB_trajectory_name = QtGui.QComboBox(self.layoutWidget7) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(100) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cB_trajectory_name.sizePolicy().hasHeightForWidth()) self.cB_trajectory_name.setSizePolicy(sizePolicy) self.cB_trajectory_name.setMinimumSize(QtCore.QSize(200, 0)) font = QtGui.QFont() font.setPointSize(10) self.cB_trajectory_name.setFont(font) self.cB_trajectory_name.setEditable(True) self.cB_trajectory_name.setObjectName(_fromUtf8("cB_trajectory_name")) self.horizontalLayout_8.addWidget(self.cB_trajectory_name) self.frame_8 = QtGui.QFrame(self.centralwidget) self.frame_8.setGeometry(QtCore.QRect(912, 746, 177, 103)) self.frame_8.setFrameShape(QtGui.QFrame.WinPanel) self.frame_8.setFrameShadow(QtGui.QFrame.Plain) self.frame_8.setLineWidth(4) self.frame_8.setObjectName(_fromUtf8("frame_8")) self.layoutWidget8 = QtGui.QWidget(self.frame_8) self.layoutWidget8.setGeometry(QtCore.QRect(2, -2, 171, 102)) self.layoutWidget8.setObjectName(_fromUtf8("layoutWidget8")) self.gridLayout = QtGui.QGridLayout(self.layoutWidget8) self.gridLayout.setMargin(0) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.pB_fl_paw_add_frame = QtGui.QPushButton(self.layoutWidget8) font = QtGui.QFont() font.setPointSize(10) self.pB_fl_paw_add_frame.setFont(font) self.pB_fl_paw_add_frame.setObjectName(_fromUtf8("pB_fl_paw_add_frame")) self.gridLayout.addWidget(self.pB_fl_paw_add_frame, 0, 0, 1, 1) self.pB_fl_paw_remove_frame = QtGui.QPushButton(self.layoutWidget8) font = QtGui.QFont() font.setPointSize(10) self.pB_fl_paw_remove_frame.setFont(font) self.pB_fl_paw_remove_frame.setObjectName(_fromUtf8("pB_fl_paw_remove_frame")) self.gridLayout.addWidget(self.pB_fl_paw_remove_frame, 0, 1, 1, 1) self.cB_fl_paw_frames = QtGui.QComboBox(self.layoutWidget8) font = QtGui.QFont() font.setPointSize(10) self.cB_fl_paw_frames.setFont(font) self.cB_fl_paw_frames.setObjectName(_fromUtf8("cB_fl_paw_frames")) self.gridLayout.addWidget(self.cB_fl_paw_frames, 1, 1, 1, 1) self.label_fl_paw_frames = QtGui.QLabel(self.layoutWidget8) font = QtGui.QFont() font.setPointSize(10) self.label_fl_paw_frames.setFont(font) self.label_fl_paw_frames.setAlignment(QtCore.Qt.AlignCenter) self.label_fl_paw_frames.setObjectName(_fromUtf8("label_fl_paw_frames")) self.gridLayout.addWidget(self.label_fl_paw_frames, 1, 0, 1, 1) self.frame_9 = QtGui.QFrame(self.centralwidget) self.frame_9.setGeometry(QtCore.QRect(1102, 746, 177, 103)) self.frame_9.setFrameShape(QtGui.QFrame.WinPanel) self.frame_9.setFrameShadow(QtGui.QFrame.Plain) self.frame_9.setLineWidth(4) self.frame_9.setObjectName(_fromUtf8("frame_9")) self.layoutWidget9 = QtGui.QWidget(self.frame_9) self.layoutWidget9.setGeometry(QtCore.QRect(2, -2, 171, 102)) self.layoutWidget9.setObjectName(_fromUtf8("layoutWidget9")) self.gridLayout_2 = QtGui.QGridLayout(self.layoutWidget9) self.gridLayout_2.setMargin(0) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.pB_fr_paw_add_frame = QtGui.QPushButton(self.layoutWidget9) font = QtGui.QFont() font.setPointSize(10) self.pB_fr_paw_add_frame.setFont(font) self.pB_fr_paw_add_frame.setObjectName(_fromUtf8("pB_fr_paw_add_frame")) self.gridLayout_2.addWidget(self.pB_fr_paw_add_frame, 0, 0, 1, 1) self.pB_fr_paw_remove_frame = QtGui.QPushButton(self.layoutWidget9) font = QtGui.QFont() font.setPointSize(10) self.pB_fr_paw_remove_frame.setFont(font) self.pB_fr_paw_remove_frame.setObjectName(_fromUtf8("pB_fr_paw_remove_frame")) self.gridLayout_2.addWidget(self.pB_fr_paw_remove_frame, 0, 1, 1, 1) self.cB_fr_paw_frames = QtGui.QComboBox(self.layoutWidget9) font = QtGui.QFont() font.setPointSize(10) self.cB_fr_paw_frames.setFont(font) self.cB_fr_paw_frames.setObjectName(_fromUtf8("cB_fr_paw_frames")) self.gridLayout_2.addWidget(self.cB_fr_paw_frames, 1, 1, 1, 1) self.label_fr_paw_frames = QtGui.QLabel(self.layoutWidget9) font = QtGui.QFont() font.setPointSize(10) self.label_fr_paw_frames.setFont(font) self.label_fr_paw_frames.setAlignment(QtCore.Qt.AlignCenter) self.label_fr_paw_frames.setObjectName(_fromUtf8("label_fr_paw_frames")) self.gridLayout_2.addWidget(self.label_fr_paw_frames, 1, 0, 1, 1) self.frame_10 = QtGui.QFrame(self.centralwidget) self.frame_10.setGeometry(QtCore.QRect(912, 864, 177, 103)) self.frame_10.setFrameShape(QtGui.QFrame.WinPanel) self.frame_10.setFrameShadow(QtGui.QFrame.Plain) self.frame_10.setLineWidth(4) self.frame_10.setObjectName(_fromUtf8("frame_10")) self.layoutWidget_2 = QtGui.QWidget(self.frame_10) self.layoutWidget_2.setGeometry(QtCore.QRect(2, -2, 171, 102)) self.layoutWidget_2.setObjectName(_fromUtf8("layoutWidget_2")) self.gridLayout_3 = QtGui.QGridLayout(self.layoutWidget_2) self.gridLayout_3.setMargin(0) self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) self.pB_bl_paw_add_frame = QtGui.QPushButton(self.layoutWidget_2) font = QtGui.QFont() font.setPointSize(10) self.pB_bl_paw_add_frame.setFont(font) self.pB_bl_paw_add_frame.setObjectName(_fromUtf8("pB_bl_paw_add_frame")) self.gridLayout_3.addWidget(self.pB_bl_paw_add_frame, 0, 0, 1, 1) self.pB_bl_paw_remove_frame = QtGui.QPushButton(self.layoutWidget_2) font = QtGui.QFont() font.setPointSize(10) self.pB_bl_paw_remove_frame.setFont(font) self.pB_bl_paw_remove_frame.setObjectName(_fromUtf8("pB_bl_paw_remove_frame")) self.gridLayout_3.addWidget(self.pB_bl_paw_remove_frame, 0, 1, 1, 1) self.cB_bl_paw_frames = QtGui.QComboBox(self.layoutWidget_2) font = QtGui.QFont() font.setPointSize(10) self.cB_bl_paw_frames.setFont(font) self.cB_bl_paw_frames.setObjectName(_fromUtf8("cB_bl_paw_frames")) self.gridLayout_3.addWidget(self.cB_bl_paw_frames, 1, 1, 1, 1) self.label_bl_paw_frames = QtGui.QLabel(self.layoutWidget_2) font = QtGui.QFont() font.setPointSize(10) self.label_bl_paw_frames.setFont(font) self.label_bl_paw_frames.setAlignment(QtCore.Qt.AlignCenter) self.label_bl_paw_frames.setObjectName(_fromUtf8("label_bl_paw_frames")) self.gridLayout_3.addWidget(self.label_bl_paw_frames, 1, 0, 1, 1) self.frame_11 = QtGui.QFrame(self.centralwidget) self.frame_11.setGeometry(QtCore.QRect(1102, 864, 177, 103)) self.frame_11.setFrameShape(QtGui.QFrame.WinPanel) self.frame_11.setFrameShadow(QtGui.QFrame.Plain) self.frame_11.setLineWidth(4) self.frame_11.setObjectName(_fromUtf8("frame_11")) self.layoutWidget_3 = QtGui.QWidget(self.frame_11) self.layoutWidget_3.setGeometry(QtCore.QRect(2, -2, 171, 102)) self.layoutWidget_3.setObjectName(_fromUtf8("layoutWidget_3")) self.gridLayout_4 = QtGui.QGridLayout(self.layoutWidget_3) self.gridLayout_4.setMargin(0) self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4")) self.pB_br_paw_add_frame = QtGui.QPushButton(self.layoutWidget_3) font = QtGui.QFont() font.setPointSize(10) self.pB_br_paw_add_frame.setFont(font) self.pB_br_paw_add_frame.setObjectName(_fromUtf8("pB_br_paw_add_frame")) self.gridLayout_4.addWidget(self.pB_br_paw_add_frame, 0, 0, 1, 1) self.pB_br_paw_remove_frame = QtGui.QPushButton(self.layoutWidget_3) font = QtGui.QFont() font.setPointSize(10) self.pB_br_paw_remove_frame.setFont(font) self.pB_br_paw_remove_frame.setObjectName(_fromUtf8("pB_br_paw_remove_frame")) self.gridLayout_4.addWidget(self.pB_br_paw_remove_frame, 0, 1, 1, 1) self.cB_br_paw_frames = QtGui.QComboBox(self.layoutWidget_3) font = QtGui.QFont() font.setPointSize(10) self.cB_br_paw_frames.setFont(font) self.cB_br_paw_frames.setObjectName(_fromUtf8("cB_br_paw_frames")) self.gridLayout_4.addWidget(self.cB_br_paw_frames, 1, 1, 1, 1) self.label_br_paw_frames = QtGui.QLabel(self.layoutWidget_3) font = QtGui.QFont() font.setPointSize(10) self.label_br_paw_frames.setFont(font) self.label_br_paw_frames.setAlignment(QtCore.Qt.AlignCenter) self.label_br_paw_frames.setObjectName(_fromUtf8("label_br_paw_frames")) self.gridLayout_4.addWidget(self.label_br_paw_frames, 1, 0, 1, 1) self.label_paw_touch_frames = QtGui.QLabel(self.centralwidget) self.label_paw_touch_frames.setGeometry(QtCore.QRect(982, 720, 231, 27)) font = QtGui.QFont() font.setPointSize(14) self.label_paw_touch_frames.setFont(font) self.label_paw_touch_frames.setObjectName(_fromUtf8("label_paw_touch_frames")) self.layoutWidget10 = QtGui.QWidget(self.centralwidget) self.layoutWidget10.setGeometry(QtCore.QRect(0, 0, 2, 2)) self.layoutWidget10.setObjectName(_fromUtf8("layoutWidget10")) self.verticalLayout_3 = QtGui.QVBoxLayout(self.layoutWidget10) self.verticalLayout_3.setMargin(0) self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3")) RatShuttlingPawEventsGenerator.setCentralWidget(self.centralwidget) self.menubar = QtGui.QMenuBar(RatShuttlingPawEventsGenerator) self.menubar.setGeometry(QtCore.QRect(0, 0, 1290, 21)) self.menubar.setObjectName(_fromUtf8("menubar")) RatShuttlingPawEventsGenerator.setMenuBar(self.menubar) self.statusbar = QtGui.QStatusBar(RatShuttlingPawEventsGenerator) self.statusbar.setObjectName(_fromUtf8("statusbar")) RatShuttlingPawEventsGenerator.setStatusBar(self.statusbar) self.retranslateUi(RatShuttlingPawEventsGenerator) self.cB_trial_start_frames.setCurrentIndex(-1) QtCore.QObject.connect(self.pB_PrevFrame, QtCore.SIGNAL(_fromUtf8("released()")), self.sBox_FrameNum.stepDown) QtCore.QObject.connect(self.pB_NextFrame, QtCore.SIGNAL(_fromUtf8("released()")), self.sBox_FrameNum.stepUp) QtCore.QMetaObject.connectSlotsByName(RatShuttlingPawEventsGenerator)
def initUI_compare(self): """ Initiate the interface for a tab """ self.filenames = [] grid = qtg.QGridLayout() grid.setSpacing(20) open_button = qtg.QPushButton("Ajouter fichier") open_button.clicked.connect(self.open_file) open_button.setToolTip("Ajouter un fichier .csv à la liste") grid.addWidget(open_button, 0,0) self.delete = qtg.QPushButton("Supprimer fichier") self.delete.clicked.connect(self.delete_file) self.delete.setToolTip("Supprimer un fichier .csv de la liste") grid.addWidget(self.delete, 1,0) self.file_list = qtg.QListWidget() grid.addWidget(self.file_list, 0,1, 2,2) value_label = qtg.QLabel("Attribut:") value_label.setAlignment(qtc.Qt.AlignCenter) value_label.setToolTip("Choisissez l'attribut de donnée \n que vous voulez comparer") self.attributes = qtg.QComboBox() self.attributes.addItems(['Est/Nord','Est','Nord','Hauteur','Vitesse','Vitesse Plani','Vitesse Alti','Acceleration']) grid.addWidget(value_label, 2,0) grid.addWidget(self.attributes, 2,1) self.redux_option = qtg.QCheckBox("Moyenner les valeurs") self.redux_option.setChecked(True) self.redux_option.setToolTip("Recentrer les valeurs en 0") grid.addWidget(self.redux_option, 3,0, 1,2) start = qtg.QPushButton("Visionner") start.setToolTip('Start !') start.clicked.connect(self.launch_compare) grid.addWidget(start, 4,1, 1,1) line = qtg.QFrame() line.setFrameStyle(qtg.QFrame.HLine) grid.addWidget(line, 5,0, 1,3) draw_label = qtg.QLabel("Options d'affichage:") grid.addWidget(draw_label, 6,0) color_label = qtg.QLabel("Couleur: ") color_label.setAlignment(qtc.Qt.AlignCenter) self.color_choice = qtg.QComboBox() self.color_choice.addItems(['Bleu','Vert','Rouge','Jaune','Violet','Turquoise','Noir']) grid.addWidget(color_label, 7,0) grid.addWidget(self.color_choice, 7,1) self.line_choice = qtg.QCheckBox("Relier les points") self.line_choice.setChecked(True) grid.addWidget(self.line_choice, 7,2) self.tab_comp.setLayout(grid) self.setTabText(2,"Visionner")
def setupUi(self, MaskEditingGui): MaskEditingGui.setObjectName(_fromUtf8("MaskEditingGui")) MaskEditingGui.resize(1417, 825) self.gridLayout = QtGui.QGridLayout(MaskEditingGui) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.button_autoSnake = QtGui.QPushButton(MaskEditingGui) self.button_autoSnake.setObjectName(_fromUtf8("button_autoSnake")) self.horizontalLayout.addWidget(self.button_autoSnake) self.button_loadAnchorContours = QtGui.QPushButton(MaskEditingGui) self.button_loadAnchorContours.setObjectName( _fromUtf8("button_loadAnchorContours")) self.horizontalLayout.addWidget(self.button_loadAnchorContours) self.button_saveAnchorContours = QtGui.QPushButton(MaskEditingGui) self.button_saveAnchorContours.setObjectName( _fromUtf8("button_saveAnchorContours")) self.horizontalLayout.addWidget(self.button_saveAnchorContours) self.button_loadAllInitContours = QtGui.QPushButton(MaskEditingGui) self.button_loadAllInitContours.setObjectName( _fromUtf8("button_loadAllInitContours")) self.horizontalLayout.addWidget(self.button_loadAllInitContours) self.button_saveAllInitContours = QtGui.QPushButton(MaskEditingGui) self.button_saveAllInitContours.setObjectName( _fromUtf8("button_saveAllInitContours")) self.horizontalLayout.addWidget(self.button_saveAllInitContours) self.button_saveCurrFinalMasks = QtGui.QPushButton(MaskEditingGui) self.button_saveCurrFinalMasks.setObjectName( _fromUtf8("button_saveCurrFinalMasks")) self.horizontalLayout.addWidget(self.button_saveCurrFinalMasks) self.button_saveAllFinalMasks = QtGui.QPushButton(MaskEditingGui) self.button_saveAllFinalMasks.setObjectName( _fromUtf8("button_saveAllFinalMasks")) self.horizontalLayout.addWidget(self.button_saveAllFinalMasks) self.button_exportAllMasks = QtGui.QPushButton(MaskEditingGui) self.button_exportAllMasks.setObjectName( _fromUtf8("button_exportAllMasks")) self.horizontalLayout.addWidget(self.button_exportAllMasks) self.gridLayout.addLayout(self.horizontalLayout, 3, 0, 1, 2) self.verticalLayout_4 = QtGui.QVBoxLayout() self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4")) self.label_6 = QtGui.QLabel(MaskEditingGui) self.label_6.setObjectName(_fromUtf8("label_6")) self.verticalLayout_4.addWidget(self.label_6) self.gview_merged_mask = QtGui.QGraphicsView(MaskEditingGui) self.gview_merged_mask.setMaximumSize(QtCore.QSize(800, 500)) self.gview_merged_mask.setObjectName(_fromUtf8("gview_merged_mask")) self.verticalLayout_4.addWidget(self.gview_merged_mask) self.horizontalLayout_2 = QtGui.QHBoxLayout() self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.button_update_merged_mask = QtGui.QPushButton(MaskEditingGui) self.button_update_merged_mask.setObjectName( _fromUtf8("button_update_merged_mask")) self.horizontalLayout_2.addWidget(self.button_update_merged_mask) self.verticalLayout_4.addLayout(self.horizontalLayout_2) self.gridLayout.addLayout(self.verticalLayout_4, 1, 1, 1, 1) self.line = QtGui.QFrame(MaskEditingGui) self.line.setFrameShape(QtGui.QFrame.HLine) self.line.setFrameShadow(QtGui.QFrame.Sunken) self.line.setObjectName(_fromUtf8("line")) self.gridLayout.addWidget(self.line, 2, 0, 1, 2) self.verticalLayout_2 = QtGui.QVBoxLayout() self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.label_4 = QtGui.QLabel(MaskEditingGui) self.label_4.setObjectName(_fromUtf8("label_4")) self.verticalLayout_2.addWidget(self.label_4) self.gview_thresholded = QtGui.QGraphicsView(MaskEditingGui) self.gview_thresholded.setMaximumSize(QtCore.QSize(800, 500)) self.gview_thresholded.setObjectName(_fromUtf8("gview_thresholded")) self.verticalLayout_2.addWidget(self.gview_thresholded) self.horizontalLayout_3 = QtGui.QHBoxLayout() self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3")) self.label_2 = QtGui.QLabel(MaskEditingGui) self.label_2.setObjectName(_fromUtf8("label_2")) self.horizontalLayout_3.addWidget(self.label_2) self.comboBox_channel = QtGui.QComboBox(MaskEditingGui) self.comboBox_channel.setObjectName(_fromUtf8("comboBox_channel")) self.horizontalLayout_3.addWidget(self.comboBox_channel) self.verticalLayout_2.addLayout(self.horizontalLayout_3) self.gridLayout.addLayout(self.verticalLayout_2, 0, 1, 1, 1) self.verticalLayout = QtGui.QVBoxLayout() self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.label_3 = QtGui.QLabel(MaskEditingGui) self.label_3.setObjectName(_fromUtf8("label_3")) self.verticalLayout.addWidget(self.label_3) self.init_snake_contour_gview = QtGui.QGraphicsView(MaskEditingGui) self.init_snake_contour_gview.setMaximumSize(QtCore.QSize(800, 500)) self.init_snake_contour_gview.setObjectName( _fromUtf8("init_snake_contour_gview")) self.verticalLayout.addWidget(self.init_snake_contour_gview) self.horizontalLayout_5 = QtGui.QHBoxLayout() self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5")) self.label_5 = QtGui.QLabel(MaskEditingGui) self.label_5.setObjectName(_fromUtf8("label_5")) self.horizontalLayout_5.addWidget(self.label_5) self.verticalLayout.addLayout(self.horizontalLayout_5) self.gridLayout.addLayout(self.verticalLayout, 0, 0, 1, 1) self.verticalLayout_3 = QtGui.QVBoxLayout() self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3")) self.label_9 = QtGui.QLabel(MaskEditingGui) self.label_9.setObjectName(_fromUtf8("label_9")) self.verticalLayout_3.addWidget(self.label_9) self.gview_final_masks_user = QtGui.QGraphicsView(MaskEditingGui) self.gview_final_masks_user.setMaximumSize(QtCore.QSize(800, 500)) self.gview_final_masks_user.setObjectName( _fromUtf8("gview_final_masks_user")) self.verticalLayout_3.addWidget(self.gview_final_masks_user) self.horizontalLayout_4 = QtGui.QHBoxLayout() self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4")) self.label = QtGui.QLabel(MaskEditingGui) self.label.setObjectName(_fromUtf8("label")) self.horizontalLayout_4.addWidget(self.label) self.slider_snakeShrink = QtGui.QSlider(MaskEditingGui) self.slider_snakeShrink.setOrientation(QtCore.Qt.Horizontal) self.slider_snakeShrink.setObjectName(_fromUtf8("slider_snakeShrink")) self.horizontalLayout_4.addWidget(self.slider_snakeShrink) self.label_snakeShrink = QtGui.QLabel(MaskEditingGui) self.label_snakeShrink.setObjectName(_fromUtf8("label_snakeShrink")) self.horizontalLayout_4.addWidget(self.label_snakeShrink) self.label_7 = QtGui.QLabel(MaskEditingGui) self.label_7.setObjectName(_fromUtf8("label_7")) self.horizontalLayout_4.addWidget(self.label_7) self.slider_minSize = QtGui.QSlider(MaskEditingGui) self.slider_minSize.setOrientation(QtCore.Qt.Horizontal) self.slider_minSize.setObjectName(_fromUtf8("slider_minSize")) self.horizontalLayout_4.addWidget(self.slider_minSize) self.label_minSize = QtGui.QLabel(MaskEditingGui) self.label_minSize.setObjectName(_fromUtf8("label_minSize")) self.horizontalLayout_4.addWidget(self.label_minSize) self.button_snake = QtGui.QPushButton(MaskEditingGui) self.button_snake.setObjectName(_fromUtf8("button_snake")) self.horizontalLayout_4.addWidget(self.button_snake) self.label_8 = QtGui.QLabel(MaskEditingGui) self.label_8.setObjectName(_fromUtf8("label_8")) self.horizontalLayout_4.addWidget(self.label_8) self.slider_minSize2 = QtGui.QSlider(MaskEditingGui) self.slider_minSize2.setOrientation(QtCore.Qt.Horizontal) self.slider_minSize2.setObjectName(_fromUtf8("slider_minSize2")) self.horizontalLayout_4.addWidget(self.slider_minSize2) self.label_minSize2 = QtGui.QLabel(MaskEditingGui) self.label_minSize2.setObjectName(_fromUtf8("label_minSize2")) self.horizontalLayout_4.addWidget(self.label_minSize2) self.button_minSize2 = QtGui.QPushButton(MaskEditingGui) self.button_minSize2.setObjectName(_fromUtf8("button_minSize2")) self.horizontalLayout_4.addWidget(self.button_minSize2) self.verticalLayout_3.addLayout(self.horizontalLayout_4) self.gridLayout.addLayout(self.verticalLayout_3, 1, 0, 1, 1) self.retranslateUi(MaskEditingGui) QtCore.QMetaObject.connectSlotsByName(MaskEditingGui)
def setupUi(self, tab_markers): tab_markers.setObjectName(_fromUtf8("tab_markers")) tab_markers.resize(813, 613) self.gridLayout = QtGui.QGridLayout(tab_markers) self.gridLayout.setMargin(0) self.gridLayout.setSpacing(0) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.gridLayout_2 = QtGui.QGridLayout() self.gridLayout_2.setSpacing(1) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.toolBox = QtGui.QToolBox(tab_markers) self.toolBox.setObjectName(_fromUtf8("toolBox")) self.page_marker_detection = QtGui.QWidget() self.page_marker_detection.setGeometry(QtCore.QRect(0, 0, 811, 553)) self.page_marker_detection.setObjectName( _fromUtf8("page_marker_detection")) self.gridLayout_6 = QtGui.QGridLayout(self.page_marker_detection) self.gridLayout_6.setMargin(0) self.gridLayout_6.setSpacing(0) self.gridLayout_6.setObjectName(_fromUtf8("gridLayout_6")) self.layout_feature_parameters = QtGui.QGridLayout() self.layout_feature_parameters.setSpacing(0) self.layout_feature_parameters.setObjectName( _fromUtf8("layout_feature_parameters")) self.spin_hue_min = QtGui.QSpinBox(self.page_marker_detection) self.spin_hue_min.setWrapping(True) self.spin_hue_min.setButtonSymbols(QtGui.QAbstractSpinBox.PlusMinus) self.spin_hue_min.setAccelerated(True) self.spin_hue_min.setMaximum(179) self.spin_hue_min.setObjectName(_fromUtf8("spin_hue_min")) self.layout_feature_parameters.addWidget(self.spin_hue_min, 1, 2, 1, 1) self.lbl_max = QtGui.QLabel(self.page_marker_detection) self.lbl_max.setLayoutDirection(QtCore.Qt.LeftToRight) self.lbl_max.setAlignment(QtCore.Qt.AlignCenter) self.lbl_max.setObjectName(_fromUtf8("lbl_max")) self.layout_feature_parameters.addWidget(self.lbl_max, 0, 3, 1, 1) self.lbl_min = QtGui.QLabel(self.page_marker_detection) self.lbl_min.setLayoutDirection(QtCore.Qt.LeftToRight) self.lbl_min.setAlignment(QtCore.Qt.AlignCenter) self.lbl_min.setObjectName(_fromUtf8("lbl_min")) self.layout_feature_parameters.addWidget(self.lbl_min, 0, 2, 1, 1) self.spin_sat_min = QtGui.QSpinBox(self.page_marker_detection) self.spin_sat_min.setWrapping(True) self.spin_sat_min.setFrame(True) self.spin_sat_min.setButtonSymbols(QtGui.QAbstractSpinBox.PlusMinus) self.spin_sat_min.setAccelerated(True) self.spin_sat_min.setMaximum(255) self.spin_sat_min.setObjectName(_fromUtf8("spin_sat_min")) self.layout_feature_parameters.addWidget(self.spin_sat_min, 2, 2, 1, 1) self.spin_area_max = QtGui.QSpinBox(self.page_marker_detection) self.spin_area_max.setMaximum(99999) self.spin_area_max.setObjectName(_fromUtf8("spin_area_max")) self.layout_feature_parameters.addWidget(self.spin_area_max, 4, 3, 1, 1) self.spin_val_min = QtGui.QSpinBox(self.page_marker_detection) self.spin_val_min.setWrapping(True) self.spin_val_min.setFrame(True) self.spin_val_min.setButtonSymbols(QtGui.QAbstractSpinBox.PlusMinus) self.spin_val_min.setAccelerated(True) self.spin_val_min.setMaximum(255) self.spin_val_min.setObjectName(_fromUtf8("spin_val_min")) self.layout_feature_parameters.addWidget(self.spin_val_min, 3, 2, 1, 1) self.spin_hue_max = QtGui.QSpinBox(self.page_marker_detection) self.spin_hue_max.setWrapping(True) self.spin_hue_max.setFrame(True) self.spin_hue_max.setButtonSymbols(QtGui.QAbstractSpinBox.PlusMinus) self.spin_hue_max.setAccelerated(True) self.spin_hue_max.setMaximum(179) self.spin_hue_max.setObjectName(_fromUtf8("spin_hue_max")) self.layout_feature_parameters.addWidget(self.spin_hue_max, 1, 3, 1, 1) self.lbl_sat = QtGui.QLabel(self.page_marker_detection) self.lbl_sat.setMargin(2) self.lbl_sat.setObjectName(_fromUtf8("lbl_sat")) self.layout_feature_parameters.addWidget(self.lbl_sat, 2, 1, 1, 1) self.lbl_val = QtGui.QLabel(self.page_marker_detection) self.lbl_val.setMargin(2) self.lbl_val.setObjectName(_fromUtf8("lbl_val")) self.layout_feature_parameters.addWidget(self.lbl_val, 3, 1, 1, 1) self.lbl_min_area = QtGui.QLabel(self.page_marker_detection) self.lbl_min_area.setMargin(2) self.lbl_min_area.setObjectName(_fromUtf8("lbl_min_area")) self.layout_feature_parameters.addWidget(self.lbl_min_area, 4, 1, 1, 1) self.lbl_hue = QtGui.QLabel(self.page_marker_detection) self.lbl_hue.setMargin(2) self.lbl_hue.setObjectName(_fromUtf8("lbl_hue")) self.layout_feature_parameters.addWidget(self.lbl_hue, 1, 1, 1, 1) self.spin_sat_max = QtGui.QSpinBox(self.page_marker_detection) self.spin_sat_max.setWrapping(True) self.spin_sat_max.setFrame(True) self.spin_sat_max.setButtonSymbols(QtGui.QAbstractSpinBox.PlusMinus) self.spin_sat_max.setAccelerated(True) self.spin_sat_max.setMaximum(255) self.spin_sat_max.setObjectName(_fromUtf8("spin_sat_max")) self.layout_feature_parameters.addWidget(self.spin_sat_max, 2, 3, 1, 1) self.spin_val_max = QtGui.QSpinBox(self.page_marker_detection) self.spin_val_max.setWrapping(True) self.spin_val_max.setFrame(True) self.spin_val_max.setButtonSymbols(QtGui.QAbstractSpinBox.PlusMinus) self.spin_val_max.setAccelerated(True) self.spin_val_max.setMaximum(255) self.spin_val_max.setObjectName(_fromUtf8("spin_val_max")) self.layout_feature_parameters.addWidget(self.spin_val_max, 3, 3, 1, 1) self.line_2 = QtGui.QFrame(self.page_marker_detection) self.line_2.setFrameShape(QtGui.QFrame.VLine) self.line_2.setFrameShadow(QtGui.QFrame.Sunken) self.line_2.setObjectName(_fromUtf8("line_2")) self.layout_feature_parameters.addWidget(self.line_2, 0, 4, 8, 1) self.spin_area_min = QtGui.QSpinBox(self.page_marker_detection) self.spin_area_min.setMaximum(99999) self.spin_area_min.setObjectName(_fromUtf8("spin_area_min")) self.layout_feature_parameters.addWidget(self.spin_area_min, 4, 2, 1, 1) self.gridLayout_5 = QtGui.QGridLayout() self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5")) self.lbl_xlbl = QtGui.QLabel(self.page_marker_detection) self.lbl_xlbl.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.lbl_xlbl.setObjectName(_fromUtf8("lbl_xlbl")) self.gridLayout_5.addWidget(self.lbl_xlbl, 1, 0, 1, 1) self.lbl_x = QtGui.QLabel(self.page_marker_detection) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.lbl_x.sizePolicy().hasHeightForWidth()) self.lbl_x.setSizePolicy(sizePolicy) self.lbl_x.setMinimumSize(QtCore.QSize(32, 0)) self.lbl_x.setMaximumSize(QtCore.QSize(32, 16777215)) self.lbl_x.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter) self.lbl_x.setMargin(1) self.lbl_x.setObjectName(_fromUtf8("lbl_x")) self.gridLayout_5.addWidget(self.lbl_x, 1, 1, 1, 1) self.lbl_y_lbl = QtGui.QLabel(self.page_marker_detection) self.lbl_y_lbl.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.lbl_y_lbl.setObjectName(_fromUtf8("lbl_y_lbl")) self.gridLayout_5.addWidget(self.lbl_y_lbl, 1, 2, 1, 1) self.lbl_y = QtGui.QLabel(self.page_marker_detection) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.lbl_y.sizePolicy().hasHeightForWidth()) self.lbl_y.setSizePolicy(sizePolicy) self.lbl_y.setMinimumSize(QtCore.QSize(32, 0)) self.lbl_y.setMaximumSize(QtCore.QSize(32, 16777215)) self.lbl_y.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter) self.lbl_y.setMargin(1) self.lbl_y.setObjectName(_fromUtf8("lbl_y")) self.gridLayout_5.addWidget(self.lbl_y, 1, 3, 1, 1) self.gridLayout_4 = QtGui.QGridLayout() self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4")) self.lbl_zoom = QtGui.QLabel(self.page_marker_detection) self.lbl_zoom.setMinimumSize(QtCore.QSize(96, 96)) self.lbl_zoom.setMaximumSize(QtCore.QSize(96, 96)) self.lbl_zoom.setText(_fromUtf8("")) self.lbl_zoom.setScaledContents(True) self.lbl_zoom.setAlignment(QtCore.Qt.AlignCenter) self.lbl_zoom.setObjectName(_fromUtf8("lbl_zoom")) self.gridLayout_4.addWidget(self.lbl_zoom, 0, 0, 1, 1) self.gridLayout_5.addLayout(self.gridLayout_4, 2, 0, 1, 4) self.layout_feature_parameters.addLayout(self.gridLayout_5, 0, 5, 6, 1) self.btn_pick_color = QtGui.QPushButton(self.page_marker_detection) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Ignored, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.btn_pick_color.sizePolicy().hasHeightForWidth()) self.btn_pick_color.setSizePolicy(sizePolicy) self.btn_pick_color.setCheckable(True) self.btn_pick_color.setFlat(False) self.btn_pick_color.setObjectName(_fromUtf8("btn_pick_color")) self.layout_feature_parameters.addWidget(self.btn_pick_color, 5, 1, 1, 3) self.gridLayout_6.addLayout(self.layout_feature_parameters, 9, 0, 1, 1) self.gridLayout_3 = QtGui.QGridLayout() self.gridLayout_3.setSpacing(0) self.gridLayout_3.setContentsMargins(2, 0, -1, -1) self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) self.ckb_track = QtGui.QCheckBox(self.page_marker_detection) self.ckb_track.setChecked(True) self.ckb_track.setObjectName(_fromUtf8("ckb_track")) self.gridLayout_3.addWidget(self.ckb_track, 0, 0, 1, 1) self.ckb_marker = QtGui.QCheckBox(self.page_marker_detection) self.ckb_marker.setChecked(True) self.ckb_marker.setObjectName(_fromUtf8("ckb_marker")) self.gridLayout_3.addWidget(self.ckb_marker, 2, 0, 1, 1) self.ckb_fixed_pos = QtGui.QCheckBox(self.page_marker_detection) self.ckb_fixed_pos.setObjectName(_fromUtf8("ckb_fixed_pos")) self.gridLayout_3.addWidget(self.ckb_fixed_pos, 3, 0, 1, 1) self.gridLayout_6.addLayout(self.gridLayout_3, 7, 0, 1, 1) self.line = QtGui.QFrame(self.page_marker_detection) self.line.setFrameShape(QtGui.QFrame.HLine) self.line.setFrameShadow(QtGui.QFrame.Sunken) self.line.setObjectName(_fromUtf8("line")) self.gridLayout_6.addWidget(self.line, 8, 0, 1, 1) self.verticalLayout_4 = QtGui.QVBoxLayout() self.verticalLayout_4.setSpacing(0) self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4")) self.lbl_colorspace = QtGui.QLabel(self.page_marker_detection) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.lbl_colorspace.sizePolicy().hasHeightForWidth()) self.lbl_colorspace.setSizePolicy(sizePolicy) self.lbl_colorspace.setMaximumSize(QtCore.QSize(16777215, 32)) self.lbl_colorspace.setStyleSheet( _fromUtf8( "background-color:qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0,stop:0 hsva(0, 255, 255, 255),stop:0.49 hsva(60, 255, 255, 255),stop:0.5 hsva(60, 255, 255, 255),stop:1 hsva(180, 255, 255, 255));" )) self.lbl_colorspace.setFrameShape(QtGui.QFrame.StyledPanel) self.lbl_colorspace.setText(_fromUtf8("")) self.lbl_colorspace.setIndent(0) self.lbl_colorspace.setObjectName(_fromUtf8("lbl_colorspace")) self.verticalLayout_4.addWidget(self.lbl_colorspace) self.gridLayout_6.addLayout(self.verticalLayout_4, 10, 0, 1, 1) self.toolBox.addItem(self.page_marker_detection, _fromUtf8("")) self.page_feature_IO = QtGui.QWidget() self.page_feature_IO.setGeometry(QtCore.QRect(0, 0, 235, 124)) self.page_feature_IO.setObjectName(_fromUtf8("page_feature_IO")) self.gridLayout_7 = QtGui.QGridLayout(self.page_feature_IO) self.gridLayout_7.setMargin(0) self.gridLayout_7.setObjectName(_fromUtf8("gridLayout_7")) self.gridLayout_9 = QtGui.QGridLayout() self.gridLayout_9.setObjectName(_fromUtf8("gridLayout_9")) self.pushButton_12 = QtGui.QPushButton(self.page_feature_IO) self.pushButton_12.setEnabled(False) self.pushButton_12.setObjectName(_fromUtf8("pushButton_12")) self.gridLayout_9.addWidget(self.pushButton_12, 1, 1, 1, 1) self.pushButton_13 = QtGui.QPushButton(self.page_feature_IO) self.pushButton_13.setEnabled(False) self.pushButton_13.setObjectName(_fromUtf8("pushButton_13")) self.gridLayout_9.addWidget(self.pushButton_13, 2, 1, 1, 1) self.pushButton_14 = QtGui.QPushButton(self.page_feature_IO) self.pushButton_14.setEnabled(False) self.pushButton_14.setObjectName(_fromUtf8("pushButton_14")) self.gridLayout_9.addWidget(self.pushButton_14, 2, 0, 1, 1) self.pushButton_15 = QtGui.QPushButton(self.page_feature_IO) self.pushButton_15.setEnabled(False) self.pushButton_15.setObjectName(_fromUtf8("pushButton_15")) self.gridLayout_9.addWidget(self.pushButton_15, 1, 0, 1, 1) self.combo_label = QtGui.QComboBox(self.page_feature_IO) self.combo_label.setEnabled(False) self.combo_label.setEditable(True) self.combo_label.setObjectName(_fromUtf8("combo_label")) self.gridLayout_9.addWidget(self.combo_label, 0, 0, 1, 2) spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout_9.addItem(spacerItem, 3, 0, 2, 2) self.gridLayout_7.addLayout(self.gridLayout_9, 0, 0, 1, 1) self.toolBox.addItem(self.page_feature_IO, _fromUtf8("")) self.gridLayout_2.addWidget(self.toolBox, 0, 0, 1, 1) self.gridLayout.addLayout(self.gridLayout_2, 0, 0, 1, 1) self.retranslateUi(tab_markers) self.toolBox.setCurrentIndex(0) self.toolBox.layout().setSpacing(0) QtCore.QMetaObject.connectSlotsByName(tab_markers) tab_markers.setTabOrder(self.spin_hue_min, self.spin_hue_max) tab_markers.setTabOrder(self.spin_hue_max, self.spin_sat_min) tab_markers.setTabOrder(self.spin_sat_min, self.spin_sat_max) tab_markers.setTabOrder(self.spin_sat_max, self.spin_val_min) tab_markers.setTabOrder(self.spin_val_min, self.spin_val_max) tab_markers.setTabOrder(self.spin_val_max, self.spin_area_min) tab_markers.setTabOrder(self.spin_area_min, self.spin_area_max) tab_markers.setTabOrder(self.spin_area_max, self.btn_pick_color) tab_markers.setTabOrder(self.btn_pick_color, self.pushButton_12) tab_markers.setTabOrder(self.pushButton_12, self.pushButton_13) tab_markers.setTabOrder(self.pushButton_13, self.pushButton_14) tab_markers.setTabOrder(self.pushButton_14, self.pushButton_15) tab_markers.setTabOrder(self.pushButton_15, self.combo_label)
def setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(619, 320) Form.setMinimumSize(QtCore.QSize(619, 320)) Form.setMaximumSize(QtCore.QSize(619, 320)) Form.setStyleSheet(_fromUtf8("background-color: rgb(185, 185, 185);")) self.label = QtGui.QLabel(Form) self.label.setGeometry(QtCore.QRect(20, 40, 71, 21)) font = QtGui.QFont() font.setPointSize(12) self.label.setFont(font) self.label.setObjectName(_fromUtf8("label")) self.pushButton_5 = QtGui.QPushButton(Form) self.pushButton_5.setGeometry(QtCore.QRect(510, 210, 91, 31)) self.pushButton_5.setStyleSheet( _fromUtf8("background-color: rgb(0, 255, 0);")) self.pushButton_5.setObjectName(_fromUtf8("pushButton_5")) self.pushButton_7 = QtGui.QPushButton(Form) self.pushButton_7.setGeometry(QtCore.QRect(510, 250, 91, 31)) self.pushButton_7.setStyleSheet( _fromUtf8("background-color: rgb(0, 255, 0);")) self.pushButton_7.setObjectName(_fromUtf8("pushButton_7")) self.label_4 = QtGui.QLabel(Form) self.label_4.setGeometry(QtCore.QRect(0, 0, 591, 31)) font = QtGui.QFont() font.setPointSize(11) font.setBold(True) font.setWeight(75) self.label_4.setFont(font) self.label_4.setAlignment(QtCore.Qt.AlignCenter) self.label_4.setObjectName(_fromUtf8("label_4")) self.label_7 = QtGui.QLabel(Form) self.label_7.setGeometry(QtCore.QRect(120, 50, 371, 231)) self.label_7.setStyleSheet( _fromUtf8("background-color: rgb(0, 0, 0);")) self.label_7.setText(_fromUtf8("")) self.label_7.setAlignment(QtCore.Qt.AlignCenter) self.label_7.setObjectName(_fromUtf8("label_7")) self.line = QtGui.QFrame(Form) self.line.setGeometry(QtCore.QRect(517, 150, 81, 20)) self.line.setFrameShape(QtGui.QFrame.HLine) self.line.setFrameShadow(QtGui.QFrame.Sunken) self.line.setObjectName(_fromUtf8("line")) self.pushButton_6 = QtGui.QPushButton(Form) self.pushButton_6.setGeometry(QtCore.QRect(510, 170, 91, 31)) self.pushButton_6.setStyleSheet( _fromUtf8("background-color: rgb(0, 255, 0);")) self.pushButton_6.setObjectName(_fromUtf8("pushButton_6")) self.pushButton_3 = QtGui.QPushButton(Form) self.pushButton_3.setGeometry(QtCore.QRect(10, 190, 91, 31)) self.pushButton_3.setStyleSheet( _fromUtf8("background-color: rgb(0, 255, 0);")) self.pushButton_3.setObjectName(_fromUtf8("pushButton_3")) self.pushButton_4 = QtGui.QPushButton(Form) self.pushButton_4.setGeometry(QtCore.QRect(10, 250, 91, 31)) self.pushButton_4.setStyleSheet( _fromUtf8("background-color: rgb(0, 255, 0);")) self.pushButton_4.setObjectName(_fromUtf8("pushButton_4")) self.pushButton_2 = QtGui.QPushButton(Form) self.pushButton_2.setGeometry(QtCore.QRect(10, 130, 91, 31)) self.pushButton_2.setStyleSheet( _fromUtf8("background-color: rgb(0, 255, 0);")) self.pushButton_2.setObjectName(_fromUtf8("pushButton_2")) self.pushButton = QtGui.QPushButton(Form) self.pushButton.setGeometry(QtCore.QRect(10, 70, 91, 31)) self.pushButton.setStyleSheet( _fromUtf8("background-color: rgb(0, 255, 0);")) self.pushButton.setObjectName(_fromUtf8("pushButton")) self.layoutWidget = QtGui.QWidget(Form) self.layoutWidget.setGeometry(QtCore.QRect(510, 40, 91, 111)) self.layoutWidget.setObjectName(_fromUtf8("layoutWidget")) self.verticalLayout = QtGui.QVBoxLayout(self.layoutWidget) self.verticalLayout.setMargin(0) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.label_2 = QtGui.QLabel(self.layoutWidget) font = QtGui.QFont() font.setPointSize(11) self.label_2.setFont(font) self.label_2.setAlignment(QtCore.Qt.AlignCenter) self.label_2.setObjectName(_fromUtf8("label_2")) self.verticalLayout.addWidget(self.label_2) self.label_5 = QtGui.QLabel(self.layoutWidget) self.label_5.setAlignment(QtCore.Qt.AlignCenter) self.label_5.setObjectName(_fromUtf8("label_5")) self.verticalLayout.addWidget(self.label_5) self.label_3 = QtGui.QLabel(self.layoutWidget) font = QtGui.QFont() font.setPointSize(11) self.label_3.setFont(font) self.label_3.setAlignment(QtCore.Qt.AlignCenter) self.label_3.setObjectName(_fromUtf8("label_3")) self.verticalLayout.addWidget(self.label_3) self.label_6 = QtGui.QLabel(self.layoutWidget) self.label_6.setAlignment(QtCore.Qt.AlignCenter) self.label_6.setObjectName(_fromUtf8("label_6")) self.verticalLayout.addWidget(self.label_6) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form)
def setupUi(self, MainWindow): MainWindow.setObjectName(_fromUtf8("MainWindow")) MainWindow.resize(820, 453) self.centralwidget = QtGui.QWidget(MainWindow) self.centralwidget.setObjectName(_fromUtf8("centralwidget")) self.comboBox = QtGui.QComboBox(self.centralwidget) self.comboBox.setGeometry(QtCore.QRect(20, 30, 221, 31)) self.comboBox.setObjectName(_fromUtf8("comboBox")) self.groupBox = QtGui.QGroupBox(self.centralwidget) self.groupBox.setGeometry(QtCore.QRect(30, 90, 331, 271)) self.groupBox.setObjectName(_fromUtf8("groupBox")) self.estimate = QtGui.QLabel(self.groupBox) self.estimate.setGeometry(QtCore.QRect(180, 20, 101, 16)) self.estimate.setObjectName(_fromUtf8("estimate")) self.label = QtGui.QLabel(self.groupBox) self.label.setGeometry(QtCore.QRect(10, 20, 181, 21)) self.label.setObjectName(_fromUtf8("label")) self.label_4 = QtGui.QLabel(self.groupBox) self.label_4.setGeometry(QtCore.QRect(10, 40, 151, 16)) self.label_4.setObjectName(_fromUtf8("label_4")) self.mttf = QtGui.QLabel(self.groupBox) self.mttf.setGeometry(QtCore.QRect(180, 40, 71, 20)) self.mttf.setObjectName(_fromUtf8("mttf")) self.label_6 = QtGui.QLabel(self.groupBox) self.label_6.setGeometry(QtCore.QRect(10, 60, 101, 16)) self.label_6.setObjectName(_fromUtf8("label_6")) self.conf1 = QtGui.QLabel(self.groupBox) self.conf1.setGeometry(QtCore.QRect(140, 60, 51, 16)) self.conf1.setObjectName(_fromUtf8("conf1")) self.label_8 = QtGui.QLabel(self.groupBox) self.label_8.setGeometry(QtCore.QRect(200, 60, 16, 16)) self.label_8.setObjectName(_fromUtf8("label_8")) self.conf2 = QtGui.QLabel(self.groupBox) self.conf2.setGeometry(QtCore.QRect(220, 60, 61, 16)) self.conf2.setObjectName(_fromUtf8("conf2")) self.label_15 = QtGui.QLabel(self.groupBox) self.label_15.setGeometry(QtCore.QRect(10, 160, 171, 16)) self.label_15.setObjectName(_fromUtf8("label_15")) self.afterMonth = QtGui.QLabel(self.groupBox) self.afterMonth.setGeometry(QtCore.QRect(180, 160, 61, 16)) self.afterMonth.setObjectName(_fromUtf8("afterMonth")) self.label_17 = QtGui.QLabel(self.groupBox) self.label_17.setGeometry(QtCore.QRect(10, 80, 141, 16)) self.label_17.setObjectName(_fromUtf8("label_17")) self.numberOfFaults = QtGui.QLabel(self.groupBox) self.numberOfFaults.setGeometry(QtCore.QRect(180, 80, 81, 16)) self.numberOfFaults.setObjectName(_fromUtf8("numberOfFaults")) self.label_19 = QtGui.QLabel(self.groupBox) self.label_19.setGeometry(QtCore.QRect(10, 180, 131, 16)) self.label_19.setObjectName(_fromUtf8("label_19")) self.month = QtGui.QLabel(self.groupBox) self.month.setGeometry(QtCore.QRect(180, 180, 61, 16)) self.month.setObjectName(_fromUtf8("month")) self.label_21 = QtGui.QLabel(self.groupBox) self.label_21.setGeometry(QtCore.QRect(10, 100, 121, 16)) self.label_21.setObjectName(_fromUtf8("label_21")) self.testingTime = QtGui.QLabel(self.groupBox) self.testingTime.setGeometry(QtCore.QRect(180, 100, 91, 16)) self.testingTime.setObjectName(_fromUtf8("testingTime")) self.label_23 = QtGui.QLabel(self.groupBox) self.label_23.setGeometry(QtCore.QRect(10, 200, 161, 16)) self.label_23.setObjectName(_fromUtf8("label_23")) self.afterYear = QtGui.QLabel(self.groupBox) self.afterYear.setGeometry(QtCore.QRect(180, 200, 61, 16)) self.afterYear.setObjectName(_fromUtf8("afterYear")) self.label_25 = QtGui.QLabel(self.groupBox) self.label_25.setGeometry(QtCore.QRect(10, 220, 151, 16)) self.label_25.setObjectName(_fromUtf8("label_25")) self.year = QtGui.QLabel(self.groupBox) self.year.setGeometry(QtCore.QRect(180, 220, 61, 16)) self.year.setObjectName(_fromUtf8("year")) self.label_27 = QtGui.QLabel(self.groupBox) self.label_27.setGeometry(QtCore.QRect(10, 120, 161, 16)) self.label_27.setObjectName(_fromUtf8("label_27")) self.afterWeek = QtGui.QLabel(self.groupBox) self.afterWeek.setGeometry(QtCore.QRect(180, 120, 131, 16)) self.afterWeek.setObjectName(_fromUtf8("afterWeek")) self.label_29 = QtGui.QLabel(self.groupBox) self.label_29.setGeometry(QtCore.QRect(10, 140, 151, 16)) self.label_29.setObjectName(_fromUtf8("label_29")) self.week = QtGui.QLabel(self.groupBox) self.week.setGeometry(QtCore.QRect(180, 140, 61, 16)) self.week.setObjectName(_fromUtf8("week")) self.pushButton = QtGui.QPushButton(self.centralwidget) self.pushButton.setGeometry(QtCore.QRect(260, 30, 101, 31)) self.pushButton.setObjectName(_fromUtf8("pushButton")) self.graph = QtGui.QWidget(self.centralwidget) self.graph.setGeometry(QtCore.QRect(440, 110, 300, 300)) self.graph.setObjectName(_fromUtf8("graph")) self.label_11 = QtGui.QLabel(self.graph) self.label_11.setGeometry(QtCore.QRect(230, 260, 31, 16)) self.label_11.setObjectName(_fromUtf8("label_11")) self.line = QtGui.QFrame(self.centralwidget) self.line.setGeometry(QtCore.QRect(440, 80, 5, 311)) self.line.setFrameShape(QtGui.QFrame.VLine) self.line.setFrameShadow(QtGui.QFrame.Sunken) self.line.setObjectName(_fromUtf8("line")) self.label_10 = QtGui.QLabel(self.centralwidget) self.label_10.setGeometry(QtCore.QRect(390, 50, 81, 21)) self.label_10.setLayoutDirection(QtCore.Qt.LeftToRight) self.label_10.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter) self.label_10.setWordWrap(False) self.label_10.setObjectName(_fromUtf8("label_10")) self.label_12 = QtGui.QLabel(self.centralwidget) self.label_12.setGeometry(QtCore.QRect(430, 370, 16, 16)) self.label_12.setObjectName(_fromUtf8("label_12")) self.graphY = QtGui.QLabel(self.centralwidget) self.graphY.setGeometry(QtCore.QRect(410, 80, 51, 16)) self.graphY.setObjectName(_fromUtf8("graphY")) self.graphX = QtGui.QLabel(self.centralwidget) self.graphX.setGeometry(QtCore.QRect(760, 370, 41, 16)) self.graphX.setObjectName(_fromUtf8("graphX")) self.line_2 = QtGui.QFrame(self.centralwidget) self.line_2.setGeometry(QtCore.QRect(410, 360, 361, 16)) self.line_2.setFrameShape(QtGui.QFrame.HLine) self.line_2.setFrameShadow(QtGui.QFrame.Sunken) self.line_2.setObjectName(_fromUtf8("line_2")) MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtGui.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 820, 21)) self.menubar.setObjectName(_fromUtf8("menubar")) self.menuFile = QtGui.QMenu(self.menubar) self.menuFile.setObjectName(_fromUtf8("menuFile")) self.menuEdit = QtGui.QMenu(self.menubar) self.menuEdit.setObjectName(_fromUtf8("menuEdit")) 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.actionNew_Project = QtGui.QAction(MainWindow) self.actionNew_Project.setObjectName(_fromUtf8("actionNew_Project")) self.actionOpen_Project = QtGui.QAction(MainWindow) self.actionOpen_Project.setObjectName(_fromUtf8("actionOpen_Project")) self.actionSave_Project = QtGui.QAction(MainWindow) self.actionSave_Project.setObjectName(_fromUtf8("actionSave_Project")) self.actionSave_Project_As = QtGui.QAction(MainWindow) self.actionSave_Project_As.setObjectName(_fromUtf8("actionSave_Project_As")) self.actionChange_models_list = QtGui.QAction(MainWindow) self.actionChange_models_list.setObjectName(_fromUtf8("actionChange_models_list")) self.actionLoad_new_XML_file = QtGui.QAction(MainWindow) self.actionLoad_new_XML_file.setObjectName(_fromUtf8("actionLoad_new_XML_file")) self.actionAdd_data_to_current_project = QtGui.QAction(MainWindow) self.actionAdd_data_to_current_project.setObjectName(_fromUtf8("actionAdd_data_to_current_project")) self.actionSetup_data_selection = QtGui.QAction(MainWindow) self.actionSetup_data_selection.setObjectName(_fromUtf8("actionSetup_data_selection")) self.actionBatch_data_load = QtGui.QAction(MainWindow) self.actionBatch_data_load.setObjectName(_fromUtf8("actionBatch_data_load")) self.menuFile.addAction(self.actionNew_Project) self.menuFile.addAction(self.actionOpen_Project) self.menuFile.addAction(self.actionSave_Project) self.menuFile.addAction(self.actionSave_Project_As) self.menuFile.addSeparator() self.menuFile.addAction(self.actionAbout) self.menuFile.addAction(self.actionExit) self.menuEdit.addAction(self.actionChange_models_list) self.menuEdit.addAction(self.actionLoad_new_XML_file) self.menuEdit.addAction(self.actionSetup_data_selection) self.menuEdit.addAction(self.actionAdd_data_to_current_project) self.menuEdit.addAction(self.actionBatch_data_load) self.menubar.addAction(self.menuFile.menuAction()) self.menubar.addAction(self.menuEdit.menuAction()) self.retranslateUi(MainWindow) QtCore.QObject.connect(self.actionExit, QtCore.SIGNAL(_fromUtf8("triggered()")), MainWindow.Exit) QtCore.QObject.connect(self.actionAbout, QtCore.SIGNAL(_fromUtf8("triggered()")), MainWindow.About) QtCore.QObject.connect(self.actionNew_Project, QtCore.SIGNAL(_fromUtf8("triggered()")), MainWindow.NewProject) QtCore.QObject.connect(self.actionOpen_Project, QtCore.SIGNAL(_fromUtf8("triggered()")), MainWindow.OpenProject) QtCore.QObject.connect(self.actionSave_Project, QtCore.SIGNAL(_fromUtf8("triggered()")), MainWindow.SaveProject) QtCore.QObject.connect(self.actionSave_Project_As, QtCore.SIGNAL(_fromUtf8("triggered()")), MainWindow.SaveProjectAs) QtCore.QObject.connect(self.actionAdd_data_to_current_project, QtCore.SIGNAL(_fromUtf8("triggered()")), MainWindow.AddData) QtCore.QObject.connect(self.actionBatch_data_load, QtCore.SIGNAL(_fromUtf8("triggered()")), MainWindow.BatchAddData) QtCore.QObject.connect(self.actionChange_models_list, QtCore.SIGNAL(_fromUtf8("triggered()")), MainWindow.ChangeModelsList) QtCore.QObject.connect(self.actionLoad_new_XML_file, QtCore.SIGNAL(_fromUtf8("triggered()")), MainWindow.LoadNewXml) QtCore.QObject.connect(self.actionSetup_data_selection, QtCore.SIGNAL(_fromUtf8("triggered()")), MainWindow.SelectData) QtCore.QObject.connect(self.pushButton, QtCore.SIGNAL(_fromUtf8("clicked()")), MainWindow.Compute) QtCore.QMetaObject.connectSlotsByName(MainWindow)
def setupUi(self, B_ItemLevel): B_ItemLevel.setObjectName("B_ItemLevel") B_ItemLevel.resize( QtCore.QSize(QtCore.QRect(0, 0, 333, 192).size()).expandedTo( B_ItemLevel.minimumSizeHint())) self.hboxlayout = QtGui.QHBoxLayout(B_ItemLevel) self.hboxlayout.setMargin(9) self.hboxlayout.setSpacing(6) self.hboxlayout.setObjectName("hboxlayout") self.vboxlayout = QtGui.QVBoxLayout() self.vboxlayout.setMargin(0) self.vboxlayout.setSpacing(6) self.vboxlayout.setObjectName("vboxlayout") self.hboxlayout1 = QtGui.QHBoxLayout() self.hboxlayout1.setMargin(0) self.hboxlayout1.setSpacing(6) self.hboxlayout1.setObjectName("hboxlayout1") self.ButtonGroup3 = QtGui.QFrame(B_ItemLevel) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Policy(7), QtGui.QSizePolicy.Policy(7)) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.ButtonGroup3.sizePolicy().hasHeightForWidth()) self.ButtonGroup3.setSizePolicy(sizePolicy) self.ButtonGroup3.setMinimumSize(QtCore.QSize(180, 130)) self.ButtonGroup3.setBaseSize(QtCore.QSize(0, 0)) self.ButtonGroup3.setObjectName("ButtonGroup3") self.verticalLayout = QtGui.QWidget(self.ButtonGroup3) self.verticalLayout.setGeometry(QtCore.QRect(10, 10, 160, 111)) self.verticalLayout.setObjectName("verticalLayout") self.vboxlayout1 = QtGui.QVBoxLayout(self.verticalLayout) self.vboxlayout1.setMargin(0) self.vboxlayout1.setSpacing(0) self.vboxlayout1.setObjectName("vboxlayout1") self.Armor = QtGui.QRadioButton(self.verticalLayout) self.Armor.setChecked(True) self.Armor.setObjectName("Armor") self.vboxlayout1.addWidget(self.Armor) self.ClothArmor = QtGui.QRadioButton(self.verticalLayout) self.ClothArmor.setObjectName("ClothArmor") self.vboxlayout1.addWidget(self.ClothArmor) self.Weapon = QtGui.QRadioButton(self.verticalLayout) self.Weapon.setObjectName("Weapon") self.vboxlayout1.addWidget(self.Weapon) self.Shield = QtGui.QRadioButton(self.verticalLayout) self.Shield.setObjectName("Shield") self.vboxlayout1.addWidget(self.Shield) self.ReinforcedShield = QtGui.QRadioButton(self.verticalLayout) self.ReinforcedShield.setObjectName("ReinforcedShield") self.vboxlayout1.addWidget(self.ReinforcedShield) self.hboxlayout1.addWidget(self.ButtonGroup3) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.hboxlayout1.addItem(spacerItem) self.vboxlayout2 = QtGui.QVBoxLayout() self.vboxlayout2.setMargin(0) self.vboxlayout2.setSpacing(6) self.vboxlayout2.setObjectName("vboxlayout2") self.hboxlayout2 = QtGui.QHBoxLayout() self.hboxlayout2.setMargin(0) self.hboxlayout2.setSpacing(6) self.hboxlayout2.setObjectName("hboxlayout2") self.LevelLabel = QtGui.QLabel(B_ItemLevel) self.LevelLabel.setObjectName("LevelLabel") self.hboxlayout2.addWidget(self.LevelLabel) self.Level = QtGui.QLineEdit(B_ItemLevel) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Policy(4), QtGui.QSizePolicy.Policy(0)) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.Level.sizePolicy().hasHeightForWidth()) self.Level.setSizePolicy(sizePolicy) self.Level.setMinimumSize(QtCore.QSize(52, 0)) self.Level.setAlignment(QtCore.Qt.AlignRight) self.Level.setObjectName("Level") self.hboxlayout2.addWidget(self.Level) self.vboxlayout2.addLayout(self.hboxlayout2) self.hboxlayout3 = QtGui.QHBoxLayout() self.hboxlayout3.setMargin(0) self.hboxlayout3.setSpacing(6) self.hboxlayout3.setObjectName("hboxlayout3") self.AFDPSLabel = QtGui.QLabel(B_ItemLevel) self.AFDPSLabel.setObjectName("AFDPSLabel") self.hboxlayout3.addWidget(self.AFDPSLabel) self.AFDPS = QtGui.QLineEdit(B_ItemLevel) self.AFDPS.setMinimumSize(QtCore.QSize(58, 0)) self.AFDPS.setAlignment(QtCore.Qt.AlignRight) self.AFDPS.setObjectName("AFDPS") self.hboxlayout3.addWidget(self.AFDPS) self.vboxlayout2.addLayout(self.hboxlayout3) self.ShieldType = SearchingCombo(B_ItemLevel) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Policy(4), QtGui.QSizePolicy.Policy(4)) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.ShieldType.sizePolicy().hasHeightForWidth()) self.ShieldType.setSizePolicy(sizePolicy) self.ShieldType.setObjectName("ShieldType") self.vboxlayout2.addWidget(self.ShieldType) self.hboxlayout1.addLayout(self.vboxlayout2) self.vboxlayout.addLayout(self.hboxlayout1) self.hboxlayout4 = QtGui.QHBoxLayout() self.hboxlayout4.setMargin(0) self.hboxlayout4.setSpacing(6) self.hboxlayout4.setObjectName("hboxlayout4") self.OK = QtGui.QPushButton(B_ItemLevel) self.OK.setObjectName("OK") self.hboxlayout4.addWidget(self.OK) spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.hboxlayout4.addItem(spacerItem1) self.Cancel = QtGui.QPushButton(B_ItemLevel) self.Cancel.setObjectName("Cancel") self.hboxlayout4.addWidget(self.Cancel) self.vboxlayout.addLayout(self.hboxlayout4) self.hboxlayout.addLayout(self.vboxlayout) self.retranslateUi(B_ItemLevel) QtCore.QObject.connect(self.Armor, QtCore.SIGNAL("clicked()"), B_ItemLevel.TypeChanged) QtCore.QObject.connect(self.ClothArmor, QtCore.SIGNAL("clicked()"), B_ItemLevel.TypeChanged) QtCore.QObject.connect(self.Weapon, QtCore.SIGNAL("clicked()"), B_ItemLevel.TypeChanged) QtCore.QObject.connect(self.Shield, QtCore.SIGNAL("clicked()"), B_ItemLevel.TypeChanged) QtCore.QObject.connect(self.ReinforcedShield, QtCore.SIGNAL("clicked()"), B_ItemLevel.TypeChanged) QtCore.QObject.connect(self.Level, QtCore.SIGNAL("textChanged(const QString&)"), B_ItemLevel.LevelChanged) QtCore.QObject.connect(self.Level, QtCore.SIGNAL("lostFocus()"), B_ItemLevel.LevelDone) QtCore.QObject.connect(self.AFDPS, QtCore.SIGNAL("textChanged(const QString&)"), B_ItemLevel.AFDPSChanged) QtCore.QObject.connect(self.AFDPS, QtCore.SIGNAL("lostFocus()"), B_ItemLevel.AFDPSDone) QtCore.QObject.connect(self.ShieldType, QtCore.SIGNAL("activated(const QString&)"), B_ItemLevel.ShieldChanged) QtCore.QObject.connect(self.OK, QtCore.SIGNAL("clicked()"), B_ItemLevel.OkClicked) QtCore.QObject.connect(self.Cancel, QtCore.SIGNAL("clicked()"), B_ItemLevel.CancelClicked) QtCore.QMetaObject.connectSlotsByName(B_ItemLevel)
def setupUi(self, ROI_Buddy): ROI_Buddy.setObjectName(_fromUtf8("ROI_Buddy")) ROI_Buddy.resize(1200, 942) self.centralwidget = QtGui.QWidget(ROI_Buddy) self.centralwidget.setObjectName(_fromUtf8("centralwidget")) self.gridLayout = QtGui.QGridLayout(self.centralwidget) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.lookupTableFrame = QtGui.QFrame(self.centralwidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(1) sizePolicy.setVerticalStretch(2) sizePolicy.setHeightForWidth( self.lookupTableFrame.sizePolicy().hasHeightForWidth()) self.lookupTableFrame.setSizePolicy(sizePolicy) self.lookupTableFrame.setFrameShape(QtGui.QFrame.StyledPanel) self.lookupTableFrame.setFrameShadow(QtGui.QFrame.Raised) self.lookupTableFrame.setObjectName(_fromUtf8("lookupTableFrame")) self.gridLayout.addWidget(self.lookupTableFrame, 4, 1, 1, 1) self.channelSelectionFrame = QtGui.QFrame(self.centralwidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(1) sizePolicy.setVerticalStretch(1) sizePolicy.setHeightForWidth( self.channelSelectionFrame.sizePolicy().hasHeightForWidth()) self.channelSelectionFrame.setSizePolicy(sizePolicy) self.channelSelectionFrame.setFrameShape(QtGui.QFrame.StyledPanel) self.channelSelectionFrame.setFrameShadow(QtGui.QFrame.Raised) self.channelSelectionFrame.setObjectName( _fromUtf8("channelSelectionFrame")) self.horizontalLayout = QtGui.QHBoxLayout(self.channelSelectionFrame) self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.label_2 = QtGui.QLabel(self.channelSelectionFrame) self.label_2.setObjectName(_fromUtf8("label_2")) self.horizontalLayout.addWidget(self.label_2) self.plane_index_box = QtGui.QSpinBox(self.channelSelectionFrame) self.plane_index_box.setObjectName(_fromUtf8("plane_index_box")) self.horizontalLayout.addWidget(self.plane_index_box) self.baseImage_label = QtGui.QLabel(self.channelSelectionFrame) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(1) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.baseImage_label.sizePolicy().hasHeightForWidth()) self.baseImage_label.setSizePolicy(sizePolicy) self.baseImage_label.setObjectName(_fromUtf8("baseImage_label")) self.horizontalLayout.addWidget(self.baseImage_label) self.baseImage_list = QtGui.QComboBox(self.channelSelectionFrame) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(2) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.baseImage_list.sizePolicy().hasHeightForWidth()) self.baseImage_list.setSizePolicy(sizePolicy) self.baseImage_list.setLayoutDirection(QtCore.Qt.RightToLeft) self.baseImage_list.setSizeAdjustPolicy( QtGui.QComboBox.AdjustToMinimumContentsLength) self.baseImage_list.setMinimumContentsLength(30) self.baseImage_list.setObjectName(_fromUtf8("baseImage_list")) self.horizontalLayout.addWidget(self.baseImage_list) self.processed_checkbox = QtGui.QCheckBox(self.channelSelectionFrame) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(1) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.processed_checkbox.sizePolicy().hasHeightForWidth()) self.processed_checkbox.setSizePolicy(sizePolicy) self.processed_checkbox.setObjectName(_fromUtf8("processed_checkbox")) self.horizontalLayout.addWidget(self.processed_checkbox) self.gridLayout.addWidget(self.channelSelectionFrame, 5, 1, 1, 1) self.displayFrame = QtGui.QFrame(self.centralwidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(3) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.displayFrame.sizePolicy().hasHeightForWidth()) self.displayFrame.setSizePolicy(sizePolicy) self.displayFrame.setFrameShape(QtGui.QFrame.StyledPanel) self.displayFrame.setFrameShadow(QtGui.QFrame.Raised) self.displayFrame.setObjectName(_fromUtf8("displayFrame")) self.gridLayout_3 = QtGui.QGridLayout(self.displayFrame) self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) self.gridLayout.addWidget(self.displayFrame, 0, 0, 6, 1) self.tSeriesListFrame = QtGui.QFrame(self.centralwidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(4) sizePolicy.setHeightForWidth( self.tSeriesListFrame.sizePolicy().hasHeightForWidth()) self.tSeriesListFrame.setSizePolicy(sizePolicy) self.tSeriesListFrame.setFrameShape(QtGui.QFrame.StyledPanel) self.tSeriesListFrame.setFrameShadow(QtGui.QFrame.Raised) self.tSeriesListFrame.setObjectName(_fromUtf8("tSeriesListFrame")) self.gridLayout_2 = QtGui.QGridLayout(self.tSeriesListFrame) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.tSeries_list = QtGui.QListWidget(self.tSeriesListFrame) self.tSeries_list.setObjectName(_fromUtf8("tSeries_list")) self.gridLayout_2.addWidget(self.tSeries_list, 1, 0, 1, 3) self.roi_set_widget = QtGui.QWidget(self.tSeriesListFrame) self.roi_set_widget.setObjectName(_fromUtf8("roi_set_widget")) self.horizontalLayout_4 = QtGui.QHBoxLayout(self.roi_set_widget) self.horizontalLayout_4.setMargin(0) self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4")) self.label = QtGui.QLabel(self.roi_set_widget) self.label.setObjectName(_fromUtf8("label")) self.horizontalLayout_4.addWidget(self.label) self.active_rois_combobox = QtGui.QComboBox(self.roi_set_widget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.active_rois_combobox.sizePolicy().hasHeightForWidth()) self.active_rois_combobox.setSizePolicy(sizePolicy) self.active_rois_combobox.setObjectName( _fromUtf8("active_rois_combobox")) self.horizontalLayout_4.addWidget(self.active_rois_combobox) self.new_set_button = QtGui.QPushButton(self.roi_set_widget) self.new_set_button.setMaximumSize(QtCore.QSize(100, 16777215)) self.new_set_button.setObjectName(_fromUtf8("new_set_button")) self.horizontalLayout_4.addWidget(self.new_set_button) self.delete_set_button = QtGui.QPushButton(self.roi_set_widget) self.delete_set_button.setMaximumSize(QtCore.QSize(100, 16777215)) self.delete_set_button.setObjectName(_fromUtf8("delete_set_button")) self.horizontalLayout_4.addWidget(self.delete_set_button) self.gridLayout_2.addWidget(self.roi_set_widget, 4, 0, 1, 3) self.show_rois_widget = QtGui.QWidget(self.tSeriesListFrame) self.show_rois_widget.setObjectName(_fromUtf8("show_rois_widget")) self.verticalLayout_2 = QtGui.QVBoxLayout(self.show_rois_widget) self.verticalLayout_2.setMargin(0) self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.show_ROIs_checkbox = QtGui.QCheckBox(self.show_rois_widget) self.show_ROIs_checkbox.setChecked(True) self.show_ROIs_checkbox.setObjectName(_fromUtf8("show_ROIs_checkbox")) self.verticalLayout_2.addWidget(self.show_ROIs_checkbox) self.show_all_checkbox = QtGui.QCheckBox(self.show_rois_widget) self.show_all_checkbox.setEnabled(False) self.show_all_checkbox.setCheckable(True) self.show_all_checkbox.setTristate(False) self.show_all_checkbox.setObjectName(_fromUtf8("show_all_checkbox")) self.verticalLayout_2.addWidget(self.show_all_checkbox) self.gridLayout_2.addWidget(self.show_rois_widget, 5, 0, 1, 1) self.widget = QtGui.QWidget(self.tSeriesListFrame) self.widget.setObjectName(_fromUtf8("widget")) self.horizontalLayout_2 = QtGui.QHBoxLayout(self.widget) self.horizontalLayout_2.setMargin(0) self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.remove_tseries_button = QtGui.QPushButton(self.widget) self.remove_tseries_button.setObjectName( _fromUtf8("remove_tseries_button")) self.horizontalLayout_2.addWidget(self.remove_tseries_button, QtCore.Qt.AlignLeft) self.add_tseries_button = QtGui.QPushButton(self.widget) self.add_tseries_button.setObjectName(_fromUtf8("add_tseries_button")) self.horizontalLayout_2.addWidget(self.add_tseries_button, QtCore.Qt.AlignRight) self.gridLayout_2.addWidget(self.widget, 2, 2, 1, 1) self.save_rois_widget = QtGui.QWidget(self.tSeriesListFrame) self.save_rois_widget.setObjectName(_fromUtf8("save_rois_widget")) self.verticalLayout_3 = QtGui.QVBoxLayout(self.save_rois_widget) self.verticalLayout_3.setMargin(0) self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3")) self.import_rois_button = QtGui.QPushButton(self.save_rois_widget) self.import_rois_button.setObjectName(_fromUtf8("import_rois_button")) self.verticalLayout_3.addWidget(self.import_rois_button) self.save_current_rois_button = QtGui.QPushButton( self.save_rois_widget) self.save_current_rois_button.setObjectName( _fromUtf8("save_current_rois_button")) self.verticalLayout_3.addWidget(self.save_current_rois_button) self.gridLayout_2.addWidget(self.save_rois_widget, 5, 2, 1, 1) self.mode_selection_widget = QtGui.QWidget(self.tSeriesListFrame) self.mode_selection_widget.setObjectName( _fromUtf8("mode_selection_widget")) self.horizontalLayout_3 = QtGui.QHBoxLayout(self.mode_selection_widget) self.horizontalLayout_3.setMargin(0) self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3")) self.edit_mode_radiobutton = QtGui.QRadioButton( self.mode_selection_widget) self.edit_mode_radiobutton.setChecked(True) self.edit_mode_radiobutton.setObjectName( _fromUtf8("edit_mode_radiobutton")) self.modeSelection = QtGui.QButtonGroup(ROI_Buddy) self.modeSelection.setObjectName(_fromUtf8("modeSelection")) self.modeSelection.addButton(self.edit_mode_radiobutton) self.horizontalLayout_3.addWidget(self.edit_mode_radiobutton, QtCore.Qt.AlignLeft) self.align_mode_radiobutton = QtGui.QRadioButton( self.mode_selection_widget) self.align_mode_radiobutton.setObjectName( _fromUtf8("align_mode_radiobutton")) self.modeSelection.addButton(self.align_mode_radiobutton) self.horizontalLayout_3.addWidget(self.align_mode_radiobutton, QtCore.Qt.AlignHCenter) self.register_rois_button = QtGui.QPushButton( self.mode_selection_widget) self.register_rois_button.setEnabled(False) self.register_rois_button.setCheckable(False) self.register_rois_button.setObjectName( _fromUtf8("register_rois_button")) self.horizontalLayout_3.addWidget(self.register_rois_button, QtCore.Qt.AlignRight) self.propagate_tags_button = QtGui.QPushButton( self.mode_selection_widget) self.propagate_tags_button.setEnabled(False) self.propagate_tags_button.setObjectName( _fromUtf8("propagate_tags_button")) self.horizontalLayout_3.addWidget(self.propagate_tags_button) self.gridLayout_2.addWidget(self.mode_selection_widget, 0, 0, 1, 3) self.line = QtGui.QFrame(self.tSeriesListFrame) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.line.sizePolicy().hasHeightForWidth()) self.line.setSizePolicy(sizePolicy) self.line.setFrameShape(QtGui.QFrame.HLine) self.line.setFrameShadow(QtGui.QFrame.Sunken) self.line.setObjectName(_fromUtf8("line")) self.gridLayout_2.addWidget(self.line, 3, 0, 1, 3) self.widget_2 = QtGui.QWidget(self.tSeriesListFrame) self.widget_2.setObjectName(_fromUtf8("widget_2")) self.verticalLayout = QtGui.QVBoxLayout(self.widget_2) self.verticalLayout.setMargin(0) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.colorbyid_radioButton = QtGui.QRadioButton(self.widget_2) self.colorbyid_radioButton.setChecked(True) self.colorbyid_radioButton.setObjectName( _fromUtf8("colorbyid_radioButton")) self.colorbyMode = QtGui.QButtonGroup(ROI_Buddy) self.colorbyMode.setObjectName(_fromUtf8("colorbyMode")) self.colorbyMode.addButton(self.colorbyid_radioButton) self.verticalLayout.addWidget(self.colorbyid_radioButton) self.colorbytags_radioButton = QtGui.QRadioButton(self.widget_2) self.colorbytags_radioButton.setObjectName( _fromUtf8("colorbytags_radioButton")) self.colorbyMode.addButton(self.colorbytags_radioButton) self.verticalLayout.addWidget(self.colorbytags_radioButton) self.gridLayout_2.addWidget(self.widget_2, 5, 1, 1, 1) self.gridLayout.addWidget(self.tSeriesListFrame, 0, 1, 1, 1) self.itemListFrame = QtGui.QFrame(self.centralwidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(1) sizePolicy.setVerticalStretch(6) sizePolicy.setHeightForWidth( self.itemListFrame.sizePolicy().hasHeightForWidth()) self.itemListFrame.setSizePolicy(sizePolicy) self.itemListFrame.setLayoutDirection(QtCore.Qt.LeftToRight) self.itemListFrame.setFrameShape(QtGui.QFrame.StyledPanel) self.itemListFrame.setFrameShadow(QtGui.QFrame.Raised) self.itemListFrame.setObjectName(_fromUtf8("itemListFrame")) self.gridLayout.addWidget(self.itemListFrame, 3, 1, 1, 1) ROI_Buddy.setCentralWidget(self.centralwidget) self.menubar = QtGui.QMenuBar(ROI_Buddy) self.menubar.setGeometry(QtCore.QRect(0, 0, 1200, 19)) self.menubar.setObjectName(_fromUtf8("menubar")) ROI_Buddy.setMenuBar(self.menubar) self.statusbar = QtGui.QStatusBar(ROI_Buddy) self.statusbar.setObjectName(_fromUtf8("statusbar")) ROI_Buddy.setStatusBar(self.statusbar) self.retranslateUi(ROI_Buddy) QtCore.QMetaObject.connectSlotsByName(ROI_Buddy)
def setupUi(self, KeywordsDialogBase): KeywordsDialogBase.setObjectName(_fromUtf8("KeywordsDialogBase")) KeywordsDialogBase.resize(520, 580) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/plugins/inasafe/icon.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) KeywordsDialogBase.setWindowIcon(icon) self.gridLayout_2 = QtGui.QGridLayout(KeywordsDialogBase) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.lblLayerName = QtGui.QLabel(KeywordsDialogBase) self.lblLayerName.setText(_fromUtf8("")) self.lblLayerName.setWordWrap(True) self.lblLayerName.setObjectName(_fromUtf8("lblLayerName")) self.gridLayout_2.addWidget(self.lblLayerName, 0, 0, 1, 1) self.grpSimple = QtGui.QGroupBox(KeywordsDialogBase) self.grpSimple.setObjectName(_fromUtf8("grpSimple")) self.gridLayout_3 = QtGui.QGridLayout(self.grpSimple) self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) self.lblTitle = QtGui.QLabel(self.grpSimple) self.lblTitle.setObjectName(_fromUtf8("lblTitle")) self.gridLayout_3.addWidget(self.lblTitle, 0, 0, 1, 1) self.leTitle = QtGui.QLineEdit(self.grpSimple) self.leTitle.setObjectName(_fromUtf8("leTitle")) self.gridLayout_3.addWidget(self.leTitle, 0, 1, 1, 1) self.lblCategory = QtGui.QLabel(self.grpSimple) self.lblCategory.setObjectName(_fromUtf8("lblCategory")) self.gridLayout_3.addWidget(self.lblCategory, 1, 0, 1, 1) self.horizontalLayout_3 = QtGui.QHBoxLayout() self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3")) self.radHazard = QtGui.QRadioButton(self.grpSimple) self.radHazard.setObjectName(_fromUtf8("radHazard")) self.horizontalLayout_3.addWidget(self.radHazard) self.radExposure = QtGui.QRadioButton(self.grpSimple) self.radExposure.setChecked(True) self.radExposure.setObjectName(_fromUtf8("radExposure")) self.horizontalLayout_3.addWidget(self.radExposure) self.gridLayout_3.addLayout(self.horizontalLayout_3, 1, 1, 1, 1) self.label_2 = QtGui.QLabel(self.grpSimple) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout_3.addWidget(self.label_2, 2, 0, 1, 1) self.cboSubcategory = QtGui.QComboBox(self.grpSimple) self.cboSubcategory.setObjectName(_fromUtf8("cboSubcategory")) self.gridLayout_3.addWidget(self.cboSubcategory, 2, 1, 1, 1) self.gridLayout_2.addWidget(self.grpSimple, 2, 0, 1, 1) self.pbnAdvanced = QtGui.QPushButton(KeywordsDialogBase) self.pbnAdvanced.setCheckable(True) self.pbnAdvanced.setObjectName(_fromUtf8("pbnAdvanced")) self.gridLayout_2.addWidget(self.pbnAdvanced, 3, 0, 1, 1) self.grpAdvanced = QtGui.QGroupBox(KeywordsDialogBase) self.grpAdvanced.setObjectName(_fromUtf8("grpAdvanced")) self.gridLayout = QtGui.QGridLayout(self.grpAdvanced) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.horizontalLayout_4 = QtGui.QHBoxLayout() self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4")) self.radPredefined = QtGui.QRadioButton(self.grpAdvanced) self.radPredefined.setObjectName(_fromUtf8("radPredefined")) self.horizontalLayout_4.addWidget(self.radPredefined) self.radUserDefined = QtGui.QRadioButton(self.grpAdvanced) self.radUserDefined.setObjectName(_fromUtf8("radUserDefined")) self.horizontalLayout_4.addWidget(self.radUserDefined) self.gridLayout.addLayout(self.horizontalLayout_4, 0, 0, 1, 1) self.framePredefined = QtGui.QFrame(self.grpAdvanced) self.framePredefined.setFrameShape(QtGui.QFrame.StyledPanel) self.framePredefined.setFrameShadow(QtGui.QFrame.Raised) self.framePredefined.setObjectName(_fromUtf8("framePredefined")) self.horizontalLayout = QtGui.QHBoxLayout(self.framePredefined) self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.label_4 = QtGui.QLabel(self.framePredefined) self.label_4.setObjectName(_fromUtf8("label_4")) self.horizontalLayout.addWidget(self.label_4) self.cboKeyword = QtGui.QComboBox(self.framePredefined) self.cboKeyword.setObjectName(_fromUtf8("cboKeyword")) self.cboKeyword.addItem(_fromUtf8("")) self.cboKeyword.setItemText(0, _fromUtf8("subcategory")) self.cboKeyword.addItem(_fromUtf8("")) self.cboKeyword.setItemText(1, _fromUtf8("unit")) self.cboKeyword.addItem(_fromUtf8("")) self.cboKeyword.setItemText(2, _fromUtf8("datatype")) self.horizontalLayout.addWidget(self.cboKeyword) self.label_5 = QtGui.QLabel(self.framePredefined) self.label_5.setObjectName(_fromUtf8("label_5")) self.horizontalLayout.addWidget(self.label_5) self.lePredefinedValue = QtGui.QLineEdit(self.framePredefined) self.lePredefinedValue.setObjectName(_fromUtf8("lePredefinedValue")) self.horizontalLayout.addWidget(self.lePredefinedValue) self.pbnAddToList1 = QtGui.QPushButton(self.framePredefined) self.pbnAddToList1.setObjectName(_fromUtf8("pbnAddToList1")) self.horizontalLayout.addWidget(self.pbnAddToList1) self.gridLayout.addWidget(self.framePredefined, 1, 0, 1, 1) self.frameUserDefined = QtGui.QFrame(self.grpAdvanced) self.frameUserDefined.setFrameShape(QtGui.QFrame.StyledPanel) self.frameUserDefined.setFrameShadow(QtGui.QFrame.Raised) self.frameUserDefined.setObjectName(_fromUtf8("frameUserDefined")) self.horizontalLayout_2 = QtGui.QHBoxLayout(self.frameUserDefined) self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.label_6 = QtGui.QLabel(self.frameUserDefined) self.label_6.setObjectName(_fromUtf8("label_6")) self.horizontalLayout_2.addWidget(self.label_6) self.leKey = QtGui.QLineEdit(self.frameUserDefined) self.leKey.setObjectName(_fromUtf8("leKey")) self.horizontalLayout_2.addWidget(self.leKey) self.label_7 = QtGui.QLabel(self.frameUserDefined) self.label_7.setObjectName(_fromUtf8("label_7")) self.horizontalLayout_2.addWidget(self.label_7) self.leValue = QtGui.QLineEdit(self.frameUserDefined) self.leValue.setObjectName(_fromUtf8("leValue")) self.horizontalLayout_2.addWidget(self.leValue) self.pbnAddToList2 = QtGui.QPushButton(self.frameUserDefined) self.pbnAddToList2.setObjectName(_fromUtf8("pbnAddToList2")) self.horizontalLayout_2.addWidget(self.pbnAddToList2) self.gridLayout.addWidget(self.frameUserDefined, 2, 0, 1, 1) self.label_8 = QtGui.QLabel(self.grpAdvanced) self.label_8.setObjectName(_fromUtf8("label_8")) self.gridLayout.addWidget(self.label_8, 3, 0, 1, 1) self.lstKeywords = QtGui.QListWidget(self.grpAdvanced) self.lstKeywords.setAlternatingRowColors(True) self.lstKeywords.setSelectionMode( QtGui.QAbstractItemView.ExtendedSelection) self.lstKeywords.setObjectName(_fromUtf8("lstKeywords")) self.gridLayout.addWidget(self.lstKeywords, 4, 0, 1, 1) self.lblMessage = QtGui.QLabel(self.grpAdvanced) self.lblMessage.setStyleSheet(_fromUtf8("color: red;")) self.lblMessage.setText(_fromUtf8("")) self.lblMessage.setTextFormat(QtCore.Qt.RichText) self.lblMessage.setWordWrap(True) self.lblMessage.setObjectName(_fromUtf8("lblMessage")) self.gridLayout.addWidget(self.lblMessage, 5, 0, 1, 1) self.pbnRemove = QtGui.QPushButton(self.grpAdvanced) self.pbnRemove.setObjectName(_fromUtf8("pbnRemove")) self.gridLayout.addWidget(self.pbnRemove, 6, 0, 1, 1) self.gridLayout_2.addWidget(self.grpAdvanced, 4, 0, 1, 1) self.buttonBox = QtGui.QDialogButtonBox(KeywordsDialogBase) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Help | QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.gridLayout_2.addWidget(self.buttonBox, 5, 0, 1, 1) self.label_2.setBuddy(self.cboSubcategory) self.label_4.setBuddy(self.cboKeyword) self.label_6.setBuddy(self.leKey) self.label_7.setBuddy(self.leValue) self.label_8.setBuddy(self.lstKeywords) self.retranslateUi(KeywordsDialogBase) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), KeywordsDialogBase.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), KeywordsDialogBase.reject) QtCore.QObject.connect(self.pbnAdvanced, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.grpAdvanced.setVisible) QtCore.QObject.connect(self.radPredefined, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.framePredefined.setVisible) QtCore.QObject.connect(self.radPredefined, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.frameUserDefined.setHidden) QtCore.QObject.connect(self.radUserDefined, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.frameUserDefined.setVisible) QtCore.QObject.connect(self.radUserDefined, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.framePredefined.setHidden) QtCore.QMetaObject.connectSlotsByName(KeywordsDialogBase) KeywordsDialogBase.setTabOrder(self.radHazard, self.radExposure) KeywordsDialogBase.setTabOrder(self.radExposure, self.pbnAdvanced) KeywordsDialogBase.setTabOrder(self.pbnAdvanced, self.radPredefined) KeywordsDialogBase.setTabOrder(self.radPredefined, self.cboKeyword) KeywordsDialogBase.setTabOrder(self.cboKeyword, self.pbnAddToList1) KeywordsDialogBase.setTabOrder(self.pbnAddToList1, self.leKey) KeywordsDialogBase.setTabOrder(self.leKey, self.leValue) KeywordsDialogBase.setTabOrder(self.leValue, self.pbnAddToList2) KeywordsDialogBase.setTabOrder(self.pbnAddToList2, self.lstKeywords) KeywordsDialogBase.setTabOrder(self.lstKeywords, self.pbnRemove) KeywordsDialogBase.setTabOrder(self.pbnRemove, self.buttonBox)
def __init__(self, parent=None): super(generator, self).__init__(parent) self.parent = parent self.setFixedSize(670, 580) self.frame = QtGui.QFrame(self) self.frame.setGeometry(QtCore.QRect(340, 430, 321, 131)) self.frame.setFrameShape(QtGui.QFrame.StyledPanel) self.frame.setFrameShadow(QtGui.QFrame.Raised) self.frame.setObjectName(_fromUtf8("frame")) self.checkBox_4 = QtGui.QCheckBox(self.frame) self.checkBox_4.setEnabled(False) self.checkBox_4.setGeometry(QtCore.QRect(5, 5, 221, 25)) self.checkBox_4.setCheckable(True) self.checkBox_4.setObjectName(_fromUtf8("checkBox_4")) self.genPass = QtGui.QPushButton(self.frame) self.genPass.setGeometry(QtCore.QRect(65, 90, 181, 28)) self.genPass.setObjectName(_fromUtf8("genPass")) self.genPass.clicked.connect(self.strongPassword) self.genAPass = QtGui.QPushButton(self.frame) self.genAPass.setGeometry(QtCore.QRect(65, 62, 181, 28)) self.genAPass.setObjectName(_fromUtf8("genAPass")) self.genAPass.clicked.connect(self.randomAPass) self.label_5 = QtGui.QLabel(self.frame) self.label_5.setGeometry(QtCore.QRect(10, 35, 131, 20)) self.label_5.setObjectName(_fromUtf8("label_5")) self.prCombo2 = QtGui.QComboBox(self.frame) self.prCombo2.setGeometry(QtCore.QRect(145, 30, 141, 30)) self.prCombo2.setObjectName(_fromUtf8("prCombo2")) self.prCombo2.addItem(_fromUtf8("")) self.prCombo2.addItem(_fromUtf8("")) self.prCombo2.addItem(_fromUtf8("")) self.frame_2 = QtGui.QFrame(self) self.frame_2.setGeometry(QtCore.QRect(10, 290, 651, 131)) self.frame_2.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_2.setFrameShadow(QtGui.QFrame.Raised) self.frame_2.setObjectName(_fromUtf8("frame_2")) #self.Time = QtGui.QLineEdit(self.frame_2) #self.Time.setGeometry(QtCore.QRect(180, 10, 71, 31)) #self.Time.setObjectName(_fromUtf8("Time")) self.tr = QtGui.QLineEdit(self.frame_2) self.tr.setGeometry(QtCore.QRect(240, 30, 71, 31)) self.tr.setObjectName(_fromUtf8("tr")) self.label_3 = QtGui.QLabel(self.frame_2) self.label_3.setGeometry(QtCore.QRect(10, 35, 231, 20)) self.label_3.setObjectName(_fromUtf8("label_3")) self.multiThread = QtGui.QCheckBox(self.frame_2) self.multiThread.setEnabled(False) self.multiThread.setGeometry(QtCore.QRect(400, 5, 181, 25)) self.multiThread.setCheckable(True) self.multiThread.setObjectName(_fromUtf8("multiThread")) self.multiThreadG = QtGui.QCheckBox(self.frame_2) self.multiThreadG.setEnabled(False) self.multiThreadG.setGeometry(QtCore.QRect(400, 35, 181, 25)) self.multiThreadG.setCheckable(True) self.multiThreadG.setObjectName(_fromUtf8("multiThreadG")) self.multiHard = QtGui.QCheckBox(self.frame_2) self.multiHard.setEnabled(False) self.multiHard.setGeometry(QtCore.QRect(400, 65, 151, 25)) self.multiHard.setCheckable(True) self.multiHard.setObjectName(_fromUtf8("multiHard")) self.hashCrack = QtGui.QPushButton(self.frame_2) self.hashCrack.setGeometry(QtCore.QRect(400, 95, 100, 28)) self.hashCrack.setEnabled(False) self.archiveCrack = QtGui.QPushButton(self.frame_2) self.archiveCrack.setGeometry(QtCore.QRect(500, 95, 100, 28)) self.archiveCrack.setEnabled(False) #self.TimeCheck = QtGui.QCheckBox(self.frame_2) #self.TimeCheck.setGeometry(QtCore.QRect(10, 12, 171, 25)) #self.TimeCheck.setObjectName(_fromUtf8("TimeCheck")) self.label_6 = QtGui.QLabel(self.frame_2) self.label_6.setGeometry(QtCore.QRect(10, 80, 141, 20)) self.label_6.setObjectName(_fromUtf8("label_6")) self.Address = QtGui.QLineEdit(self.frame_2) self.Address.setGeometry(QtCore.QRect(140, 75, 150, 32)) self.Address.setObjectName(_fromUtf8("Address")) self.setAddr = QtGui.QPushButton(self.frame_2) self.setAddr.setGeometry(QtCore.QRect(290, 75, 90, 28)) self.setAddr.setObjectName(_fromUtf8("setAddr")) self.frame_3 = QtGui.QFrame(self) self.frame_3.setGeometry(QtCore.QRect(10, 30, 651, 231)) self.frame_3.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_3.setFrameShadow(QtGui.QFrame.Raised) self.frame_3.setObjectName(_fromUtf8("frame_3")) self.input = QtGui.QLineEdit(self.frame_3) self.input.setGeometry(QtCore.QRect(140, 10, 501, 32)) self.input.setObjectName(_fromUtf8("input")) self.input.setText( '{setLower}->{23}+{setLower}->{12}=4') # + {setDigit}->{34} =9') self.label = QtGui.QLabel(self.frame_3) self.label.setGeometry(QtCore.QRect(10, 15, 131, 21)) self.label.setObjectName(_fromUtf8("label")) self.executText = QtGui.QTextEdit(self.frame_3) self.executText.setGeometry(QtCore.QRect(10, 50, 631, 171)) self.executText.setObjectName(_fromUtf8("executText")) self.executText.setText(r"""setLower=r"abcdefghijklmnopqrstuvwxyz" setUpper="ABCDEFGHIJKLMNOPQRSTUVWXYZ" setDigit=r"0123456789" setSym=r"!\#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ '" setAscii=''.join([chr(i) for i in range(256)] ) setAllChars=r" !#$%&\"\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~" setMyOwn="1234" setMyOwn2="567" """) self.frame_4 = QtGui.QFrame(self) self.frame_4.setGeometry(QtCore.QRect(10, 430, 321, 131)) self.frame_4.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_4.setFrameShadow(QtGui.QFrame.Raised) self.frame_4.setObjectName(_fromUtf8("frame_4")) self.label_4 = QtGui.QLabel(self.frame_4) self.label_4.setEnabled(False) self.label_4.setGeometry(QtCore.QRect(10, 15, 141, 20)) self.label_4.setObjectName(_fromUtf8("label_4")) self.splitSize = QtGui.QLineEdit(self.frame_4) self.splitSize.setEnabled(False) self.splitSize.setGeometry(QtCore.QRect(155, 10, 113, 32)) self.splitSize.setObjectName(_fromUtf8("splitSize")) self.genData = QtGui.QPushButton(self.frame_4) self.genData.setGeometry(QtCore.QRect(70, 90, 181, 28)) self.genData.setObjectName(_fromUtf8("genData")) self.genData.clicked.connect(self.generateDatabase) self.prCombo1 = QtGui.QComboBox(self.frame_4) self.prCombo1.setGeometry(QtCore.QRect(110, 50, 141, 30)) self.prCombo1.setObjectName(_fromUtf8("prCombo1")) self.prCombo1.addItem(_fromUtf8("")) self.prCombo1.addItem(_fromUtf8("")) self.prCombo1.addItem(_fromUtf8("")) self.prCombo1.addItem(_fromUtf8("")) self.label_2 = QtGui.QLabel(self.frame_4) self.label_2.setGeometry(QtCore.QRect(10, 55, 91, 20)) self.label_2.setObjectName(_fromUtf8("label_2")) self.futureBtn = QtGui.QPushButton(self) self.futureBtn.setGeometry(QtCore.QRect(170, 260, 341, 28)) self.futureBtn.setObjectName(_fromUtf8("pushButton")) self.futureBtn.clicked.connect(parent.future.show) self.setWindowTitle('Main window') self.checkBox_4.setText( _translate("MainWindow", "Use quantum randombit server", None)) self.genPass.setText( _translate("MainWindow", "Generate strong password", None)) self.genAPass.setText( _translate("MainWindow", "A random strong password", None)) #self.Time.setText(_translate("MainWindow", "1", None)) self.tr.setText(_translate("MainWindow", "-35", None)) self.label_3.setText( _translate("MainWindow", "Log_2 of each password probablity:", None)) self.multiThread.setText( _translate("MainWindow", "Use multiThread by CPU", None)) self.multiThreadG.setText( _translate("MainWindow", "Use multiThread by GPU", None)) self.multiHard.setText( _translate("MainWindow", "Use multiHardDisk", None)) self.hashCrack.setText(_translate("MainWindow", "Crack hashes", None)) self.archiveCrack.setText( _translate("MainWindow", "Crack archives", None)) #self.TimeCheck.setText(_translate("MainWindow", "Time to stop (hourse):", None)) self.label_6.setText( _translate("MainWindow", "Output file Address:", None)) self.Address.setText(_translate("MainWindow", "output.txt", None)) self.setAddr.setText(_translate("MainWindow", "SetAddress", None)) self.label.setText( _translate("MainWindow", "Password structure:", None)) self.label_4.setText( _translate("MainWindow", "Split output files (GB): ", None)) self.splitSize.setText(_translate("MainWindow", "100", None)) self.genData.setText( _translate("MainWindow", "Generate database", None)) self.prCombo1.setItemText( 0, _translate("MainWindow", "Dual frequency", None)) self.prCombo1.setItemText( 1, _translate("MainWindow", "Mono frequency", None)) self.prCombo1.setItemText( 2, _translate("MainWindow", "Triple frequency", None)) self.prCombo1.setItemText(3, _translate("MainWindow", "Brut force", None)) self.label_2.setText(_translate("MainWindow", "Filter method:", None)) self.futureBtn.setText( _translate("MainWindow", "See \"futurer\" window for disabled items", None)) self.label_5.setText( _translate("MainWindow", "Probablity method:", None)) self.prCombo2.setItemText( 0, _translate("MainWindow", "Dual frequency", None)) self.prCombo2.setItemText( 1, _translate("MainWindow", "Mono frequency", None)) self.prCombo2.setItemText( 2, _translate("MainWindow", "Triple frequency", None))
def setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(467, 538) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) Form.setFont(font) self.verticalLayout = QtGui.QVBoxLayout(Form) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.gbVorDmePosition = QtGui.QGroupBox(Form) self.gbVorDmePosition.setObjectName(_fromUtf8("gbVorDmePosition")) self.vl_VorDmePosition = QtGui.QVBoxLayout(self.gbVorDmePosition) self.vl_VorDmePosition.setObjectName(_fromUtf8("vl_VorDmePosition")) self.verticalLayout.addWidget(self.gbVorDmePosition) self.gbParameters = QtGui.QGroupBox(Form) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.gbParameters.setFont(font) self.gbParameters.setObjectName(_fromUtf8("gbParameters")) self.vl_gbParameters = QtGui.QVBoxLayout(self.gbParameters) self.vl_gbParameters.setObjectName(_fromUtf8("vl_gbParameters")) self.frameUsedFor = QtGui.QFrame(self.gbParameters) self.frameUsedFor.setFrameShape(QtGui.QFrame.NoFrame) self.frameUsedFor.setFrameShadow(QtGui.QFrame.Raised) self.frameUsedFor.setObjectName(_fromUtf8("frameUsedFor")) self.horizontalLayout_58 = QtGui.QHBoxLayout(self.frameUsedFor) self.horizontalLayout_58.setSpacing(0) self.horizontalLayout_58.setMargin(0) self.horizontalLayout_58.setObjectName(_fromUtf8("horizontalLayout_58")) self.label_66 = QtGui.QLabel(self.frameUsedFor) self.label_66.setMinimumSize(QtCore.QSize(250, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_66.setFont(font) self.label_66.setObjectName(_fromUtf8("label_66")) self.horizontalLayout_58.addWidget(self.label_66) self.cmbUsedFor = QtGui.QComboBox(self.frameUsedFor) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cmbUsedFor.sizePolicy().hasHeightForWidth()) self.cmbUsedFor.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.cmbUsedFor.setFont(font) self.cmbUsedFor.setObjectName(_fromUtf8("cmbUsedFor")) self.horizontalLayout_58.addWidget(self.cmbUsedFor) self.vl_gbParameters.addWidget(self.frameUsedFor) self.frameType = QtGui.QFrame(self.gbParameters) self.frameType.setFrameShape(QtGui.QFrame.NoFrame) self.frameType.setFrameShadow(QtGui.QFrame.Raised) self.frameType.setObjectName(_fromUtf8("frameType")) self.horizontalLayout_59 = QtGui.QHBoxLayout(self.frameType) self.horizontalLayout_59.setSpacing(0) self.horizontalLayout_59.setMargin(0) self.horizontalLayout_59.setObjectName(_fromUtf8("horizontalLayout_59")) self.label_67 = QtGui.QLabel(self.frameType) self.label_67.setMinimumSize(QtCore.QSize(250, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_67.setFont(font) self.label_67.setObjectName(_fromUtf8("label_67")) self.horizontalLayout_59.addWidget(self.label_67) self.cmbType = QtGui.QComboBox(self.frameType) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cmbType.sizePolicy().hasHeightForWidth()) self.cmbType.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.cmbType.setFont(font) self.cmbType.setObjectName(_fromUtf8("cmbType")) self.horizontalLayout_59.addWidget(self.cmbType) self.vl_gbParameters.addWidget(self.frameType) self.frameAircraftCategory = QtGui.QFrame(self.gbParameters) self.frameAircraftCategory.setFrameShape(QtGui.QFrame.NoFrame) self.frameAircraftCategory.setFrameShadow(QtGui.QFrame.Raised) self.frameAircraftCategory.setObjectName(_fromUtf8("frameAircraftCategory")) self.horizontalLayout_61 = QtGui.QHBoxLayout(self.frameAircraftCategory) self.horizontalLayout_61.setSpacing(0) self.horizontalLayout_61.setMargin(0) self.horizontalLayout_61.setObjectName(_fromUtf8("horizontalLayout_61")) self.label_69 = QtGui.QLabel(self.frameAircraftCategory) self.label_69.setMinimumSize(QtCore.QSize(250, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_69.setFont(font) self.label_69.setObjectName(_fromUtf8("label_69")) self.horizontalLayout_61.addWidget(self.label_69) self.cmbAircraftCategory = QtGui.QComboBox(self.frameAircraftCategory) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cmbAircraftCategory.sizePolicy().hasHeightForWidth()) self.cmbAircraftCategory.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.cmbAircraftCategory.setFont(font) self.cmbAircraftCategory.setObjectName(_fromUtf8("cmbAircraftCategory")) self.horizontalLayout_61.addWidget(self.cmbAircraftCategory) self.vl_gbParameters.addWidget(self.frameAircraftCategory) self.frameIas = QtGui.QFrame(self.gbParameters) self.frameIas.setFrameShape(QtGui.QFrame.NoFrame) self.frameIas.setFrameShadow(QtGui.QFrame.Raised) self.frameIas.setObjectName(_fromUtf8("frameIas")) self.horizontalLayout_60 = QtGui.QHBoxLayout(self.frameIas) self.horizontalLayout_60.setSpacing(0) self.horizontalLayout_60.setMargin(0) self.horizontalLayout_60.setObjectName(_fromUtf8("horizontalLayout_60")) self.label_68 = QtGui.QLabel(self.frameIas) self.label_68.setMinimumSize(QtCore.QSize(250, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_68.setFont(font) self.label_68.setObjectName(_fromUtf8("label_68")) self.horizontalLayout_60.addWidget(self.label_68) self.txtIas = QtGui.QLineEdit(self.frameIas) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtIas.setFont(font) self.txtIas.setObjectName(_fromUtf8("txtIas")) self.horizontalLayout_60.addWidget(self.txtIas) self.vl_gbParameters.addWidget(self.frameIas) self.frameTas = QtGui.QFrame(self.gbParameters) self.frameTas.setFrameShape(QtGui.QFrame.NoFrame) self.frameTas.setFrameShadow(QtGui.QFrame.Raised) self.frameTas.setObjectName(_fromUtf8("frameTas")) self.horizontalLayout_68 = QtGui.QHBoxLayout(self.frameTas) self.horizontalLayout_68.setSpacing(0) self.horizontalLayout_68.setMargin(0) self.horizontalLayout_68.setObjectName(_fromUtf8("horizontalLayout_68")) self.label_76 = QtGui.QLabel(self.frameTas) self.label_76.setMinimumSize(QtCore.QSize(250, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_76.setFont(font) self.label_76.setObjectName(_fromUtf8("label_76")) self.horizontalLayout_68.addWidget(self.label_76) self.txtTas = QtGui.QLineEdit(self.frameTas) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtTas.setFont(font) self.txtTas.setText(_fromUtf8("")) self.txtTas.setObjectName(_fromUtf8("txtTas")) self.horizontalLayout_68.addWidget(self.txtTas) self.vl_gbParameters.addWidget(self.frameTas) self.frameAltitude = QtGui.QFrame(self.gbParameters) self.frameAltitude.setFrameShape(QtGui.QFrame.NoFrame) self.frameAltitude.setFrameShadow(QtGui.QFrame.Raised) self.frameAltitude.setObjectName(_fromUtf8("frameAltitude")) self.horizontalLayout_69 = QtGui.QHBoxLayout(self.frameAltitude) self.horizontalLayout_69.setSpacing(0) self.horizontalLayout_69.setMargin(0) self.horizontalLayout_69.setObjectName(_fromUtf8("horizontalLayout_69")) self.label_77 = QtGui.QLabel(self.frameAltitude) self.label_77.setMinimumSize(QtCore.QSize(250, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_77.setFont(font) self.label_77.setObjectName(_fromUtf8("label_77")) self.horizontalLayout_69.addWidget(self.label_77) self.txtAltitude = QtGui.QLineEdit(self.frameAltitude) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtAltitude.setFont(font) self.txtAltitude.setObjectName(_fromUtf8("txtAltitude")) self.horizontalLayout_69.addWidget(self.txtAltitude) self.vl_gbParameters.addWidget(self.frameAltitude) self.frameIsa = QtGui.QFrame(self.gbParameters) self.frameIsa.setFrameShape(QtGui.QFrame.NoFrame) self.frameIsa.setFrameShadow(QtGui.QFrame.Raised) self.frameIsa.setObjectName(_fromUtf8("frameIsa")) self.horizontalLayout_72 = QtGui.QHBoxLayout(self.frameIsa) self.horizontalLayout_72.setSpacing(0) self.horizontalLayout_72.setMargin(0) self.horizontalLayout_72.setObjectName(_fromUtf8("horizontalLayout_72")) self.label_80 = QtGui.QLabel(self.frameIsa) self.label_80.setMinimumSize(QtCore.QSize(250, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_80.setFont(font) self.label_80.setObjectName(_fromUtf8("label_80")) self.horizontalLayout_72.addWidget(self.label_80) self.txtIsa = QtGui.QLineEdit(self.frameIsa) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtIsa.setFont(font) self.txtIsa.setObjectName(_fromUtf8("txtIsa")) self.horizontalLayout_72.addWidget(self.txtIsa) self.vl_gbParameters.addWidget(self.frameIsa) self.frameHoldingDme = QtGui.QFrame(self.gbParameters) self.frameHoldingDme.setFrameShape(QtGui.QFrame.NoFrame) self.frameHoldingDme.setFrameShadow(QtGui.QFrame.Raised) self.frameHoldingDme.setObjectName(_fromUtf8("frameHoldingDme")) self.horizontalLayout_66 = QtGui.QHBoxLayout(self.frameHoldingDme) self.horizontalLayout_66.setSpacing(0) self.horizontalLayout_66.setMargin(0) self.horizontalLayout_66.setObjectName(_fromUtf8("horizontalLayout_66")) self.label_74 = QtGui.QLabel(self.frameHoldingDme) self.label_74.setMinimumSize(QtCore.QSize(250, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_74.setFont(font) self.label_74.setObjectName(_fromUtf8("label_74")) self.horizontalLayout_66.addWidget(self.label_74) self.frameTrack_4 = QtGui.QFrame(self.frameHoldingDme) self.frameTrack_4.setFrameShape(QtGui.QFrame.StyledPanel) self.frameTrack_4.setFrameShadow(QtGui.QFrame.Raised) self.frameTrack_4.setObjectName(_fromUtf8("frameTrack_4")) self.horizontalLayout_13 = QtGui.QHBoxLayout(self.frameTrack_4) self.horizontalLayout_13.setSpacing(0) self.horizontalLayout_13.setMargin(0) self.horizontalLayout_13.setObjectName(_fromUtf8("horizontalLayout_13")) self.txtHoldingDme = QtGui.QLineEdit(self.frameTrack_4) self.txtHoldingDme.setEnabled(True) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtHoldingDme.setFont(font) self.txtHoldingDme.setObjectName(_fromUtf8("txtHoldingDme")) self.horizontalLayout_13.addWidget(self.txtHoldingDme) self.btnCaptureHoldingDme = QtGui.QToolButton(self.frameTrack_4) self.btnCaptureHoldingDme.setText(_fromUtf8("")) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/coordinate_capture.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.btnCaptureHoldingDme.setIcon(icon) self.btnCaptureHoldingDme.setObjectName(_fromUtf8("btnCaptureHoldingDme")) self.horizontalLayout_13.addWidget(self.btnCaptureHoldingDme) self.horizontalLayout_66.addWidget(self.frameTrack_4) self.vl_gbParameters.addWidget(self.frameHoldingDme) self.frameLimitingDme = QtGui.QFrame(self.gbParameters) self.frameLimitingDme.setFrameShape(QtGui.QFrame.NoFrame) self.frameLimitingDme.setFrameShadow(QtGui.QFrame.Raised) self.frameLimitingDme.setObjectName(_fromUtf8("frameLimitingDme")) self.horizontalLayout_65 = QtGui.QHBoxLayout(self.frameLimitingDme) self.horizontalLayout_65.setSpacing(0) self.horizontalLayout_65.setMargin(0) self.horizontalLayout_65.setObjectName(_fromUtf8("horizontalLayout_65")) self.label_73 = QtGui.QLabel(self.frameLimitingDme) self.label_73.setMinimumSize(QtCore.QSize(250, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_73.setFont(font) self.label_73.setObjectName(_fromUtf8("label_73")) self.horizontalLayout_65.addWidget(self.label_73) self.frameTrack_3 = QtGui.QFrame(self.frameLimitingDme) self.frameTrack_3.setFrameShape(QtGui.QFrame.StyledPanel) self.frameTrack_3.setFrameShadow(QtGui.QFrame.Raised) self.frameTrack_3.setObjectName(_fromUtf8("frameTrack_3")) self.horizontalLayout_12 = QtGui.QHBoxLayout(self.frameTrack_3) self.horizontalLayout_12.setSpacing(0) self.horizontalLayout_12.setMargin(0) self.horizontalLayout_12.setObjectName(_fromUtf8("horizontalLayout_12")) self.txtLimitingDme = QtGui.QLineEdit(self.frameTrack_3) self.txtLimitingDme.setEnabled(True) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtLimitingDme.setFont(font) self.txtLimitingDme.setObjectName(_fromUtf8("txtLimitingDme")) self.horizontalLayout_12.addWidget(self.txtLimitingDme) self.btnCaptureLimitingDme = QtGui.QToolButton(self.frameTrack_3) self.btnCaptureLimitingDme.setText(_fromUtf8("")) self.btnCaptureLimitingDme.setIcon(icon) self.btnCaptureLimitingDme.setObjectName(_fromUtf8("btnCaptureLimitingDme")) self.horizontalLayout_12.addWidget(self.btnCaptureLimitingDme) self.horizontalLayout_65.addWidget(self.frameTrack_3) self.vl_gbParameters.addWidget(self.frameLimitingDme) self.frameMoc = QtGui.QFrame(self.gbParameters) self.frameMoc.setFrameShape(QtGui.QFrame.NoFrame) self.frameMoc.setFrameShadow(QtGui.QFrame.Raised) self.frameMoc.setObjectName(_fromUtf8("frameMoc")) self.horizontalLayout_74 = QtGui.QHBoxLayout(self.frameMoc) self.horizontalLayout_74.setSpacing(0) self.horizontalLayout_74.setMargin(0) self.horizontalLayout_74.setObjectName(_fromUtf8("horizontalLayout_74")) self.label_82 = QtGui.QLabel(self.frameMoc) self.label_82.setMinimumSize(QtCore.QSize(250, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_82.setFont(font) self.label_82.setObjectName(_fromUtf8("label_82")) self.horizontalLayout_74.addWidget(self.label_82) self.txtMoc = QtGui.QLineEdit(self.frameMoc) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtMoc.setFont(font) self.txtMoc.setObjectName(_fromUtf8("txtMoc")) self.horizontalLayout_74.addWidget(self.txtMoc) self.vl_gbParameters.addWidget(self.frameMoc) self.gbEntryAreas = QtGui.QGroupBox(self.gbParameters) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.gbEntryAreas.setFont(font) self.gbEntryAreas.setObjectName(_fromUtf8("gbEntryAreas")) self.vl_gbEntryAreas = QtGui.QVBoxLayout(self.gbEntryAreas) self.vl_gbEntryAreas.setObjectName(_fromUtf8("vl_gbEntryAreas")) self.frameEntryAreas = QtGui.QFrame(self.gbEntryAreas) self.frameEntryAreas.setFrameShape(QtGui.QFrame.StyledPanel) self.frameEntryAreas.setFrameShadow(QtGui.QFrame.Raised) self.frameEntryAreas.setObjectName(_fromUtf8("frameEntryAreas")) self.hl_EntryAreas = QtGui.QHBoxLayout(self.frameEntryAreas) self.hl_EntryAreas.setMargin(0) self.hl_EntryAreas.setObjectName(_fromUtf8("hl_EntryAreas")) self.chbSector1 = QtGui.QCheckBox(self.frameEntryAreas) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.chbSector1.setFont(font) self.chbSector1.setLayoutDirection(QtCore.Qt.LeftToRight) self.chbSector1.setObjectName(_fromUtf8("chbSector1")) self.hl_EntryAreas.addWidget(self.chbSector1) self.chbSector2 = QtGui.QCheckBox(self.frameEntryAreas) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.chbSector2.setFont(font) self.chbSector2.setLayoutDirection(QtCore.Qt.LeftToRight) self.chbSector2.setObjectName(_fromUtf8("chbSector2")) self.hl_EntryAreas.addWidget(self.chbSector2) self.chbReciprocalEntry = QtGui.QCheckBox(self.frameEntryAreas) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.chbReciprocalEntry.setFont(font) self.chbReciprocalEntry.setLayoutDirection(QtCore.Qt.LeftToRight) self.chbReciprocalEntry.setObjectName(_fromUtf8("chbReciprocalEntry")) self.hl_EntryAreas.addWidget(self.chbReciprocalEntry) self.chbLimitingRadial = QtGui.QCheckBox(self.frameEntryAreas) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.chbLimitingRadial.setFont(font) self.chbLimitingRadial.setLayoutDirection(QtCore.Qt.LeftToRight) self.chbLimitingRadial.setObjectName(_fromUtf8("chbLimitingRadial")) self.hl_EntryAreas.addWidget(self.chbLimitingRadial) self.vl_gbEntryAreas.addWidget(self.frameEntryAreas) self.vl_gbParameters.addWidget(self.gbEntryAreas) self.frameConstruction = QtGui.QFrame(self.gbParameters) self.frameConstruction.setFrameShape(QtGui.QFrame.NoFrame) self.frameConstruction.setFrameShadow(QtGui.QFrame.Raised) self.frameConstruction.setObjectName(_fromUtf8("frameConstruction")) self.horizontalLayout_75 = QtGui.QHBoxLayout(self.frameConstruction) self.horizontalLayout_75.setSpacing(0) self.horizontalLayout_75.setMargin(0) self.horizontalLayout_75.setObjectName(_fromUtf8("horizontalLayout_75")) self.label_83 = QtGui.QLabel(self.frameConstruction) self.label_83.setMinimumSize(QtCore.QSize(250, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_83.setFont(font) self.label_83.setObjectName(_fromUtf8("label_83")) self.horizontalLayout_75.addWidget(self.label_83) self.cmbConstruction = QtGui.QComboBox(self.frameConstruction) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cmbConstruction.sizePolicy().hasHeightForWidth()) self.cmbConstruction.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.cmbConstruction.setFont(font) self.cmbConstruction.setObjectName(_fromUtf8("cmbConstruction")) self.horizontalLayout_75.addWidget(self.cmbConstruction) self.vl_gbParameters.addWidget(self.frameConstruction) self.frameIas_2 = QtGui.QFrame(self.gbParameters) self.frameIas_2.setFrameShape(QtGui.QFrame.NoFrame) self.frameIas_2.setFrameShadow(QtGui.QFrame.Raised) self.frameIas_2.setObjectName(_fromUtf8("frameIas_2")) self.horizontalLayout_62 = QtGui.QHBoxLayout(self.frameIas_2) self.horizontalLayout_62.setSpacing(0) self.horizontalLayout_62.setMargin(0) self.horizontalLayout_62.setObjectName(_fromUtf8("horizontalLayout_62")) self.label_70 = QtGui.QLabel(self.frameIas_2) self.label_70.setMinimumSize(QtCore.QSize(250, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_70.setFont(font) self.label_70.setObjectName(_fromUtf8("label_70")) self.horizontalLayout_62.addWidget(self.label_70) self.mocSpinBox = QtGui.QSpinBox(self.frameIas_2) self.mocSpinBox.setProperty("value", 1) self.mocSpinBox.setObjectName(_fromUtf8("mocSpinBox")) self.horizontalLayout_62.addWidget(self.mocSpinBox) self.vl_gbParameters.addWidget(self.frameIas_2) self.verticalLayout.addWidget(self.gbParameters) self.gbOrientation = QtGui.QGroupBox(Form) self.gbOrientation.setObjectName(_fromUtf8("gbOrientation")) self.vl_gbOrientation = QtGui.QVBoxLayout(self.gbOrientation) self.vl_gbOrientation.setObjectName(_fromUtf8("vl_gbOrientation")) self.frameTrackRoot = QtGui.QFrame(self.gbOrientation) self.frameTrackRoot.setFrameShape(QtGui.QFrame.NoFrame) self.frameTrackRoot.setFrameShadow(QtGui.QFrame.Raised) self.frameTrackRoot.setObjectName(_fromUtf8("frameTrackRoot")) self.horizontalLayout_63 = QtGui.QHBoxLayout(self.frameTrackRoot) self.horizontalLayout_63.setSpacing(0) self.horizontalLayout_63.setMargin(0) self.horizontalLayout_63.setObjectName(_fromUtf8("horizontalLayout_63")) self.label_71 = QtGui.QLabel(self.frameTrackRoot) self.label_71.setMinimumSize(QtCore.QSize(250, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_71.setFont(font) self.label_71.setObjectName(_fromUtf8("label_71")) self.horizontalLayout_63.addWidget(self.label_71) self.frameTrack = QtGui.QFrame(self.frameTrackRoot) self.frameTrack.setFrameShape(QtGui.QFrame.StyledPanel) self.frameTrack.setFrameShadow(QtGui.QFrame.Raised) self.frameTrack.setObjectName(_fromUtf8("frameTrack")) self.horizontalLayout_10 = QtGui.QHBoxLayout(self.frameTrack) self.horizontalLayout_10.setSpacing(0) self.horizontalLayout_10.setMargin(0) self.horizontalLayout_10.setObjectName(_fromUtf8("horizontalLayout_10")) self.txtTrack = QtGui.QLineEdit(self.frameTrack) self.txtTrack.setEnabled(True) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtTrack.setFont(font) self.txtTrack.setObjectName(_fromUtf8("txtTrack")) self.horizontalLayout_10.addWidget(self.txtTrack) self.btnCaptureTrack = QtGui.QToolButton(self.frameTrack) self.btnCaptureTrack.setText(_fromUtf8("")) self.btnCaptureTrack.setIcon(icon) self.btnCaptureTrack.setObjectName(_fromUtf8("btnCaptureTrack")) self.horizontalLayout_10.addWidget(self.btnCaptureTrack) self.horizontalLayout_63.addWidget(self.frameTrack) self.vl_gbOrientation.addWidget(self.frameTrackRoot) self.frameOrientation = QtGui.QFrame(self.gbOrientation) self.frameOrientation.setFrameShape(QtGui.QFrame.NoFrame) self.frameOrientation.setFrameShadow(QtGui.QFrame.Raised) self.frameOrientation.setObjectName(_fromUtf8("frameOrientation")) self.horizontalLayout_67 = QtGui.QHBoxLayout(self.frameOrientation) self.horizontalLayout_67.setSpacing(0) self.horizontalLayout_67.setMargin(0) self.horizontalLayout_67.setObjectName(_fromUtf8("horizontalLayout_67")) self.label_75 = QtGui.QLabel(self.frameOrientation) self.label_75.setMinimumSize(QtCore.QSize(250, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_75.setFont(font) self.label_75.setObjectName(_fromUtf8("label_75")) self.horizontalLayout_67.addWidget(self.label_75) self.cmbOrientation = QtGui.QComboBox(self.frameOrientation) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cmbOrientation.sizePolicy().hasHeightForWidth()) self.cmbOrientation.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.cmbOrientation.setFont(font) self.cmbOrientation.setContextMenuPolicy(QtCore.Qt.NoContextMenu) self.cmbOrientation.setObjectName(_fromUtf8("cmbOrientation")) self.horizontalLayout_67.addWidget(self.cmbOrientation) self.vl_gbOrientation.addWidget(self.frameOrientation) self.verticalLayout.addWidget(self.gbOrientation) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form)
def getDivider(): hLine = QtGui.QFrame() hLine.setFrameStyle(QtGui.QFrame.HLine) hLine.setSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) return hLine
def setupUi(self, NetworkXPath): NetworkXPath.setObjectName("NetworkXPath") NetworkXPath.resize(447, 473) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.MinimumExpanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( NetworkXPath.sizePolicy().hasHeightForWidth()) NetworkXPath.setSizePolicy(sizePolicy) NetworkXPath.setMinimumSize(QtCore.QSize(447, 357)) NetworkXPath.setBaseSize(QtCore.QSize(0, 0)) self.dockWidgetContents = QtGui.QWidget() self.dockWidgetContents.setObjectName("dockWidgetContents") self.btnOK = QtGui.QPushButton(self.dockWidgetContents) self.btnOK.setEnabled(True) self.btnOK.setGeometry(QtCore.QRect(350, 410, 81, 27)) self.btnOK.setObjectName("btnOK") self.btnCancel = QtGui.QPushButton(self.dockWidgetContents) self.btnCancel.setGeometry(QtCore.QRect(260, 410, 81, 27)) self.btnCancel.setObjectName("btnCancel") self.labelNodes_2 = QtGui.QLabel(self.dockWidgetContents) self.labelNodes_2.setEnabled(True) self.labelNodes_2.setGeometry(QtCore.QRect(30, 20, 171, 17)) self.labelNodes_2.setObjectName("labelNodes_2") self.comboBoxAlgorithm = QtGui.QComboBox(self.dockWidgetContents) self.comboBoxAlgorithm.setEnabled(True) self.comboBoxAlgorithm.setGeometry(QtCore.QRect(120, 10, 301, 31)) self.comboBoxAlgorithm.setObjectName("comboBoxAlgorithm") self.frame = QtGui.QFrame(self.dockWidgetContents) self.frame.setGeometry(QtCore.QRect(10, 49, 421, 161)) self.frame.setFrameShape(QtGui.QFrame.StyledPanel) self.frame.setFrameShadow(QtGui.QFrame.Raised) self.frame.setObjectName("frame") self.frame_2 = QtGui.QFrame(self.frame) self.frame_2.setGeometry(QtCore.QRect(10, 170, 411, 131)) self.frame_2.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_2.setFrameShadow(QtGui.QFrame.Raised) self.frame_2.setObjectName("frame_2") self.checkBoxUndirected = QtGui.QCheckBox(self.frame) self.checkBoxUndirected.setGeometry(QtCore.QRect(110, 130, 161, 22)) self.checkBoxUndirected.setObjectName("checkBoxUndirected") self.labelNodes = QtGui.QLabel(self.frame) self.labelNodes.setEnabled(True) self.labelNodes.setGeometry(QtCore.QRect(10, 20, 171, 17)) self.labelNodes.setObjectName("labelNodes") self.labelEdges = QtGui.QLabel(self.frame) self.labelEdges.setGeometry(QtCore.QRect(10, 60, 171, 17)) self.labelEdges.setObjectName("labelEdges") self.comboBoxInputNodes = QtGui.QComboBox(self.frame) self.comboBoxInputNodes.setEnabled(True) self.comboBoxInputNodes.setGeometry(QtCore.QRect(110, 10, 301, 31)) self.comboBoxInputNodes.setObjectName("comboBoxInputNodes") self.comboBoxInputEdges = QtGui.QComboBox(self.frame) self.comboBoxInputEdges.setGeometry(QtCore.QRect(110, 50, 301, 31)) self.comboBoxInputEdges.setObjectName("comboBoxInputEdges") self.labelEdges_2 = QtGui.QLabel(self.frame) self.labelEdges_2.setGeometry(QtCore.QRect(10, 100, 171, 17)) self.labelEdges_2.setObjectName("labelEdges_2") self.comboBoxInputWeight = QtGui.QComboBox(self.frame) self.comboBoxInputWeight.setGeometry(QtCore.QRect(110, 90, 301, 31)) self.comboBoxInputWeight.setObjectName("comboBoxInputWeight") self.frame_3 = QtGui.QFrame(self.dockWidgetContents) self.frame_3.setGeometry(QtCore.QRect(10, 220, 421, 91)) self.frame_3.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_3.setFrameShadow(QtGui.QFrame.Raised) self.frame_3.setObjectName("frame_3") self.frameOutput = QtGui.QFrame(self.dockWidgetContents) self.frameOutput.setGeometry(QtCore.QRect(10, 320, 421, 81)) self.frameOutput.setFrameShape(QtGui.QFrame.StyledPanel) self.frameOutput.setFrameShadow(QtGui.QFrame.Raised) self.frameOutput.setObjectName("frameOutput") self.checkBoxOverwrite = QtGui.QCheckBox(self.frameOutput) self.checkBoxOverwrite.setGeometry(QtCore.QRect(110, 50, 181, 22)) self.checkBoxOverwrite.setObjectName("checkBoxOverwrite") self.LabelSave = QtGui.QLabel(self.frameOutput) self.LabelSave.setGeometry(QtCore.QRect(10, 10, 101, 31)) self.LabelSave.setObjectName("LabelSave") self.btnSave = QtGui.QPushButton(self.frameOutput) self.btnSave.setGeometry(QtCore.QRect(110, 10, 31, 31)) self.btnSave.setText("") icon = QtGui.QIcon() icon.addPixmap( QtGui.QPixmap(":/plugins/NetworkX/icon/mActionFolder.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.btnSave.setIcon(icon) self.btnSave.setObjectName("btnSave") self.lineEditSave = QtGui.QLineEdit(self.frameOutput) self.lineEditSave.setGeometry(QtCore.QRect(150, 10, 261, 31)) self.lineEditSave.setObjectName("lineEditSave") self.lineEditTargetNode = QtGui.QLineEdit(self.dockWidgetContents) self.lineEditTargetNode.setGeometry(QtCore.QRect(160, 270, 261, 31)) self.lineEditTargetNode.setObjectName("lineEditTargetNode") self.labelTargetNode = QtGui.QLabel(self.dockWidgetContents) self.labelTargetNode.setGeometry(QtCore.QRect(20, 270, 91, 31)) self.labelTargetNode.setObjectName("labelTargetNode") self.labelSourceNode = QtGui.QLabel(self.dockWidgetContents) self.labelSourceNode.setGeometry(QtCore.QRect(20, 230, 91, 31)) self.labelSourceNode.setObjectName("labelSourceNode") self.btnTargetNode = QtGui.QPushButton(self.dockWidgetContents) self.btnTargetNode.setGeometry(QtCore.QRect(120, 270, 31, 31)) self.btnTargetNode.setText("") icon1 = QtGui.QIcon() icon1.addPixmap( QtGui.QPixmap(":/plugins/NetworkX/icon/coordinate_capture.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.btnTargetNode.setIcon(icon1) self.btnTargetNode.setObjectName("btnTargetNode") self.btnSourceNode = QtGui.QPushButton(self.dockWidgetContents) self.btnSourceNode.setGeometry(QtCore.QRect(120, 230, 31, 31)) self.btnSourceNode.setText("") self.btnSourceNode.setIcon(icon1) self.btnSourceNode.setObjectName("btnSourceNode") self.lineEditSourceNode = QtGui.QLineEdit(self.dockWidgetContents) self.lineEditSourceNode.setGeometry(QtCore.QRect(160, 230, 261, 31)) self.lineEditSourceNode.setObjectName("lineEditSourceNode") self.btnReload = QtGui.QPushButton(self.dockWidgetContents) self.btnReload.setGeometry(QtCore.QRect(10, 410, 101, 27)) self.btnReload.setObjectName("btnReload") NetworkXPath.setWidget(self.dockWidgetContents) self.retranslateUi(NetworkXPath) QtCore.QMetaObject.connectSlotsByName(NetworkXPath)
def setupUi(self, MainWindow): MainWindow.setObjectName(_fromUtf8("MainWindow")) MainWindow.resize(837, 745) self.centralwidget = QtGui.QWidget(MainWindow) self.centralwidget.setObjectName(_fromUtf8("centralwidget")) self.pushButton = QtGui.QPushButton(self.centralwidget) self.pushButton.setGeometry(QtCore.QRect(10, 10, 61, 23)) self.pushButton.setObjectName(_fromUtf8("pushButton")) self.lineEdit_file_name = QtGui.QLineEdit(self.centralwidget) self.lineEdit_file_name.setGeometry(QtCore.QRect(80, 10, 421, 21)) self.lineEdit_file_name.setObjectName(_fromUtf8("lineEdit_file_name")) self.label_info_length = QtGui.QLabel(self.centralwidget) self.label_info_length.setGeometry(QtCore.QRect(270, 105, 61, 16)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_info_length.setFont(font) self.label_info_length.setObjectName(_fromUtf8("label_info_length")) self.label_info_date = QtGui.QLabel(self.centralwidget) self.label_info_date.setGeometry(QtCore.QRect(10, 105, 71, 16)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_info_date.setFont(font) self.label_info_date.setObjectName(_fromUtf8("label_info_date")) self.lineEdit_file_newname = QtGui.QLineEdit(self.centralwidget) self.lineEdit_file_newname.setGeometry(QtCore.QRect(70, 80, 431, 20)) self.lineEdit_file_newname.setObjectName( _fromUtf8("lineEdit_file_newname")) self.lineEdit_file_saveto = QtGui.QLineEdit(self.centralwidget) self.lineEdit_file_saveto.setGeometry(QtCore.QRect(80, 35, 421, 20)) self.lineEdit_file_saveto.setObjectName( _fromUtf8("lineEdit_file_saveto")) self.label_info_header = QtGui.QLabel(self.centralwidget) self.label_info_header.setGeometry(QtCore.QRect(10, 85, 46, 13)) font = QtGui.QFont() font.setPointSize(8) font.setBold(True) font.setWeight(75) self.label_info_header.setFont(font) self.label_info_header.setTextFormat(QtCore.Qt.AutoText) self.label_info_header.setScaledContents(False) self.label_info_header.setObjectName(_fromUtf8("label_info_header")) self.pushButton_2 = QtGui.QPushButton(self.centralwidget) self.pushButton_2.setGeometry(QtCore.QRect(749, 200, 71, 40)) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.pushButton_2.setFont(font) self.pushButton_2.setDefault(False) self.pushButton_2.setFlat(False) self.pushButton_2.setObjectName(_fromUtf8("pushButton_2")) self.tabWidget = QtGui.QTabWidget(self.centralwidget) self.tabWidget.setGeometry(QtCore.QRect(0, 250, 821, 451)) self.tabWidget.setAutoFillBackground(True) self.tabWidget.setObjectName(_fromUtf8("tabWidget")) self.tab = QtGui.QWidget() self.tab.setObjectName(_fromUtf8("tab")) self.webView = QtWebKit.QWebView(self.tab) self.webView.setGeometry(QtCore.QRect(0, 0, 815, 420)) self.webView.setUrl(QtCore.QUrl(_fromUtf8("about:blank"))) self.webView.setObjectName(_fromUtf8("webView")) self.tabWidget.addTab(self.tab, _fromUtf8("")) self.tab_4 = QtGui.QWidget() self.tab_4.setObjectName(_fromUtf8("tab_4")) self.label_elevation = QtGui.QLabel(self.tab_4) self.label_elevation.setGeometry(QtCore.QRect(0, 0, 815, 420)) self.label_elevation.setText(_fromUtf8("")) self.label_elevation.setObjectName(_fromUtf8("label_elevation")) self.tabWidget.addTab(self.tab_4, _fromUtf8("")) self.tab_2 = QtGui.QWidget() self.tab_2.setObjectName(_fromUtf8("tab_2")) self.label_speed = QtGui.QLabel(self.tab_2) self.label_speed.setGeometry(QtCore.QRect(0, 0, 815, 420)) self.label_speed.setText(_fromUtf8("")) self.label_speed.setObjectName(_fromUtf8("label_speed")) self.tabWidget.addTab(self.tab_2, _fromUtf8("")) self.tab_3 = QtGui.QWidget() self.tab_3.setObjectName(_fromUtf8("tab_3")) self.label_hr = QtGui.QLabel(self.tab_3) self.label_hr.setGeometry(QtCore.QRect(0, 0, 815, 420)) self.label_hr.setText(_fromUtf8("")) self.label_hr.setObjectName(_fromUtf8("label_hr")) self.tabWidget.addTab(self.tab_3, _fromUtf8("")) self.tab_5 = QtGui.QWidget() self.tab_5.setObjectName(_fromUtf8("tab_5")) self.textEdit_2 = QtGui.QTextEdit(self.tab_5) self.textEdit_2.setGeometry(QtCore.QRect(0, 0, 820, 415)) self.textEdit_2.setObjectName(_fromUtf8("textEdit_2")) self.tabWidget.addTab(self.tab_5, _fromUtf8("")) self.tab_6 = QtGui.QWidget() self.tab_6.setObjectName(_fromUtf8("tab_6")) self.textEdit_3 = QtGui.QTextEdit(self.tab_6) self.textEdit_3.setGeometry(QtCore.QRect(0, 0, 820, 415)) self.textEdit_3.setObjectName(_fromUtf8("textEdit_3")) self.tabWidget.addTab(self.tab_6, _fromUtf8("")) self.pushButton_3 = QtGui.QPushButton(self.centralwidget) self.pushButton_3.setGeometry(QtCore.QRect(10, 35, 61, 23)) self.pushButton_3.setObjectName(_fromUtf8("pushButton_3")) self.line = QtGui.QFrame(self.centralwidget) self.line.setGeometry(QtCore.QRect(503, 10, 20, 161)) self.line.setFrameShape(QtGui.QFrame.VLine) self.line.setFrameShadow(QtGui.QFrame.Sunken) self.line.setObjectName(_fromUtf8("line")) self.label = QtGui.QLabel(self.centralwidget) self.label.setGeometry(QtCore.QRect(520, 10, 310, 160)) self.label.setStyleSheet( _fromUtf8("image: url(:/bla/image/pRect.png);")) self.label.setText(_fromUtf8("")) self.label.setObjectName(_fromUtf8("label")) self.label_2 = QtGui.QLabel(self.centralwidget) self.label_2.setGeometry(QtCore.QRect(10, 120, 71, 16)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_2.setFont(font) self.label_2.setObjectName(_fromUtf8("label_2")) self.label_3 = QtGui.QLabel(self.centralwidget) self.label_3.setGeometry(QtCore.QRect(270, 120, 91, 16)) font = QtGui.QFont() font.setStrikeOut(False) self.label_3.setFont(font) self.label_3.setObjectName(_fromUtf8("label_3")) self.label_4 = QtGui.QLabel(self.centralwidget) self.label_4.setGeometry(QtCore.QRect(270, 135, 91, 16)) self.label_4.setObjectName(_fromUtf8("label_4")) self.label_5 = QtGui.QLabel(self.centralwidget) self.label_5.setGeometry(QtCore.QRect(10, 135, 61, 16)) self.label_5.setObjectName(_fromUtf8("label_5")) self.lab_walktime = QtGui.QLabel(self.centralwidget) self.lab_walktime.setGeometry(QtCore.QRect(370, 120, 121, 16)) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.lab_walktime.setFont(font) self.lab_walktime.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.lab_walktime.setObjectName(_fromUtf8("lab_walktime")) self.lab_avgspeed = QtGui.QLabel(self.centralwidget) self.lab_avgspeed.setGeometry(QtCore.QRect(370, 135, 121, 16)) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.lab_avgspeed.setFont(font) self.lab_avgspeed.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.lab_avgspeed.setObjectName(_fromUtf8("lab_avgspeed")) self.lab_climb = QtGui.QLabel(self.centralwidget) self.lab_climb.setGeometry(QtCore.QRect(90, 135, 121, 16)) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.lab_climb.setFont(font) self.lab_climb.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.lab_climb.setObjectName(_fromUtf8("lab_climb")) self.lab_date = QtGui.QLabel(self.centralwidget) self.lab_date.setGeometry(QtCore.QRect(80, 105, 131, 16)) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.lab_date.setFont(font) self.lab_date.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.lab_date.setObjectName(_fromUtf8("lab_date")) self.lab_tottime = QtGui.QLabel(self.centralwidget) self.lab_tottime.setGeometry(QtCore.QRect(80, 120, 131, 16)) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.lab_tottime.setFont(font) self.lab_tottime.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.lab_tottime.setObjectName(_fromUtf8("lab_tottime")) self.lab_length = QtGui.QLabel(self.centralwidget) self.lab_length.setGeometry(QtCore.QRect(360, 105, 131, 16)) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.lab_length.setFont(font) self.lab_length.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.lab_length.setObjectName(_fromUtf8("lab_length")) self.comboBox = QtGui.QComboBox(self.centralwidget) self.comboBox.setGeometry(QtCore.QRect(80, 160, 121, 22)) self.comboBox.setObjectName(_fromUtf8("comboBox")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.label_6 = QtGui.QLabel(self.centralwidget) self.label_6.setGeometry(QtCore.QRect(10, 165, 46, 13)) self.label_6.setObjectName(_fromUtf8("label_6")) self.textEdit = QtGui.QTextEdit(self.centralwidget) self.textEdit.setGeometry(QtCore.QRect(10, 200, 731, 40)) self.textEdit.setObjectName(_fromUtf8("textEdit")) self.label_7 = QtGui.QLabel(self.centralwidget) self.label_7.setGeometry(QtCore.QRect(10, 185, 61, 16)) self.label_7.setObjectName(_fromUtf8("label_7")) MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtGui.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 837, 26)) self.menubar.setObjectName(_fromUtf8("menubar")) self.menuFile = QtGui.QMenu(self.menubar) self.menuFile.setObjectName(_fromUtf8("menuFile")) MainWindow.setMenuBar(self.menubar) self.statusbar = QtGui.QStatusBar(MainWindow) self.statusbar.setObjectName(_fromUtf8("statusbar")) MainWindow.setStatusBar(self.statusbar) self.actionSave = QtGui.QAction(MainWindow) self.actionSave.setObjectName(_fromUtf8("actionSave")) self.actionClose = QtGui.QAction(MainWindow) self.actionClose.setObjectName(_fromUtf8("actionClose")) self.actionExit = QtGui.QAction(MainWindow) self.actionExit.setObjectName(_fromUtf8("actionExit")) self.actionSave_As = QtGui.QAction(MainWindow) self.actionSave_As.setObjectName(_fromUtf8("actionSave_As")) self.menuFile.addAction(self.actionSave) self.menuFile.addAction(self.actionSave_As) self.menuFile.addAction(self.actionClose) self.menuFile.addSeparator() self.menuFile.addAction(self.actionExit) self.menubar.addAction(self.menuFile.menuAction()) self.retranslateUi(MainWindow) self.tabWidget.setCurrentIndex(3) QtCore.QMetaObject.connectSlotsByName(MainWindow)
def setupUi(self, FredWindow): FredWindow.setObjectName("FredWindow") FredWindow.resize( QtCore.QSize(QtCore.QRect(0, 0, 574, 1068).size()).expandedTo( FredWindow.minimumSizeHint())) self.textLabel2 = QtGui.QLabel(FredWindow) self.textLabel2.setGeometry(QtCore.QRect(10, 470, 160, 20)) self.textLabel2.setWordWrap(False) self.textLabel2.setObjectName("textLabel2") self.frame_add_dns = QtGui.QFrame(FredWindow) self.frame_add_dns.setGeometry(QtCore.QRect(10, 190, 530, 270)) self.frame_add_dns.setFrameShape(QtGui.QFrame.Panel) self.frame_add_dns.setFrameShadow(QtGui.QFrame.Raised) self.frame_add_dns.setObjectName("frame_add_dns") self.line1_2 = QtGui.QFrame(FredWindow) self.line1_2.setGeometry(QtCore.QRect(10, 140, 530, 20)) self.line1_2.setFrameShape(QtGui.QFrame.HLine) self.line1_2.setFrameShadow(QtGui.QFrame.Sunken) self.line1_2.setFrameShape(QtGui.QFrame.HLine) self.line1_2.setFrameShadow(QtGui.QFrame.Sunken) self.line1_2.setObjectName("line1_2") self.textLabel9 = QtGui.QLabel(FredWindow) self.textLabel9.setGeometry(QtCore.QRect(10, 10, 530, 90)) self.textLabel9.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignTop) self.textLabel9.setWordWrap(True) self.textLabel9.setObjectName("textLabel9") self.textLabel10 = QtGui.QLabel(FredWindow) self.textLabel10.setGeometry(QtCore.QRect(10, 160, 530, 21)) self.textLabel10.setWordWrap(False) self.textLabel10.setObjectName("textLabel10") self.id = QtGui.QLineEdit(FredWindow) self.id.setGeometry(QtCore.QRect(180, 110, 360, 22)) self.id.setObjectName("id") self.textLabel3 = QtGui.QLabel(FredWindow) self.textLabel3.setGeometry(QtCore.QRect(10, 610, 530, 30)) self.textLabel3.setWordWrap(False) self.textLabel3.setObjectName("textLabel3") self.textLabel7 = QtGui.QLabel(FredWindow) self.textLabel7.setGeometry(QtCore.QRect(10, 910, 530, 21)) self.textLabel7.setWordWrap(False) self.textLabel7.setObjectName("textLabel7") self.line1_2_2 = QtGui.QFrame(FredWindow) self.line1_2_2.setGeometry(QtCore.QRect(10, 890, 530, 20)) self.line1_2_2.setFrameShape(QtGui.QFrame.HLine) self.line1_2_2.setFrameShadow(QtGui.QFrame.Sunken) self.line1_2_2.setFrameShape(QtGui.QFrame.HLine) self.line1_2_2.setFrameShadow(QtGui.QFrame.Sunken) self.line1_2_2.setObjectName("line1_2_2") self.textLabel4 = QtGui.QLabel(FredWindow) self.textLabel4.setGeometry(QtCore.QRect(10, 770, 160, 100)) self.textLabel4.setAlignment(QtCore.Qt.AlignTop) self.textLabel4.setWordWrap(True) self.textLabel4.setObjectName("textLabel4") self.line1 = QtGui.QFrame(FredWindow) self.line1.setGeometry(QtCore.QRect(10, 590, 530, 20)) self.line1.setFrameShape(QtGui.QFrame.HLine) self.line1.setFrameShadow(QtGui.QFrame.Sunken) self.line1.setFrameShape(QtGui.QFrame.HLine) self.line1.setFrameShadow(QtGui.QFrame.Sunken) self.line1.setObjectName("line1") self.add_tech = QtGui.QTableWidget(FredWindow) self.add_tech.setGeometry(QtCore.QRect(180, 470, 360, 110)) self.add_tech.setFrameShape(QtGui.QFrame.StyledPanel) self.add_tech.setFrameShadow(QtGui.QFrame.Sunken) self.add_tech.setShowGrid(True) self.add_tech.setObjectName("add_tech") self.rem_tech = QtGui.QTableWidget(FredWindow) self.rem_tech.setGeometry(QtCore.QRect(180, 770, 360, 110)) self.rem_tech.setFrameShape(QtGui.QFrame.StyledPanel) self.rem_tech.setFrameShadow(QtGui.QFrame.Sunken) self.rem_tech.setShowGrid(True) self.rem_tech.setObjectName("rem_tech") self.textLabel5 = QtGui.QLabel(FredWindow) self.textLabel5.setGeometry(QtCore.QRect(10, 650, 160, 100)) self.textLabel5.setAlignment(QtCore.Qt.AlignTop) self.textLabel5.setWordWrap(True) self.textLabel5.setObjectName("textLabel5") self.rem_name = QtGui.QTableWidget(FredWindow) self.rem_name.setGeometry(QtCore.QRect(180, 650, 360, 110)) self.rem_name.setFrameShape(QtGui.QFrame.StyledPanel) self.rem_name.setFrameShadow(QtGui.QFrame.Sunken) self.rem_name.setShowGrid(True) self.rem_name.setObjectName("rem_name") self.textLabel1 = QtGui.QLabel(FredWindow) self.textLabel1.setGeometry(QtCore.QRect(10, 110, 160, 20)) self.textLabel1.setWordWrap(False) self.textLabel1.setObjectName("textLabel1") self.line1_2_2_2 = QtGui.QFrame(FredWindow) self.line1_2_2_2.setGeometry(QtCore.QRect(10, 1000, 530, 20)) self.line1_2_2_2.setFrameShape(QtGui.QFrame.HLine) self.line1_2_2_2.setFrameShadow(QtGui.QFrame.Sunken) self.line1_2_2_2.setFrameShape(QtGui.QFrame.HLine) self.line1_2_2_2.setFrameShadow(QtGui.QFrame.Sunken) self.line1_2_2_2.setObjectName("line1_2_2_2") self.textLabel6 = QtGui.QLabel(FredWindow) self.textLabel6.setGeometry(QtCore.QRect(10, 1020, 160, 20)) self.textLabel6.setWordWrap(False) self.textLabel6.setObjectName("textLabel6") self.cltrid = QtGui.QLineEdit(FredWindow) self.cltrid.setGeometry(QtCore.QRect(180, 1020, 360, 22)) self.cltrid.setObjectName("cltrid") self.textLabel8 = QtGui.QLabel(FredWindow) self.textLabel8.setGeometry(QtCore.QRect(10, 940, 160, 20)) self.textLabel8.setWordWrap(False) self.textLabel8.setObjectName("textLabel8") self.textLabel8_2 = QtGui.QLabel(FredWindow) self.textLabel8_2.setGeometry(QtCore.QRect(10, 970, 160, 20)) self.textLabel8_2.setWordWrap(False) self.textLabel8_2.setObjectName("textLabel8_2") self.reportlevel = QtGui.QLineEdit(FredWindow) self.reportlevel.setGeometry(QtCore.QRect(180, 970, 360, 22)) self.reportlevel.setObjectName("reportlevel") self.auth_info = QtGui.QLineEdit(FredWindow) self.auth_info.setGeometry(QtCore.QRect(180, 940, 360, 22)) self.auth_info.setObjectName("auth_info") self.retranslateUi(FredWindow) QtCore.QObject.connect( self.add_tech, QtCore.SIGNAL("currentCellChanged(int,int,int,int)"), FredWindow.add_tech_current_changed) QtCore.QObject.connect(self.add_tech, QtCore.SIGNAL("cellChanged(int,int)"), FredWindow.add_tech_value_changed) QtCore.QObject.connect( self.rem_name, QtCore.SIGNAL("currentCellChanged(int,int,int,int)"), FredWindow.rem_name_current_changed) QtCore.QObject.connect(self.rem_name, QtCore.SIGNAL("cellChanged(int,int)"), FredWindow.rem_name_value_changed) QtCore.QObject.connect( self.rem_tech, QtCore.SIGNAL("currentCellChanged(int,int,int,int)"), FredWindow.rem_tech_current_changed) QtCore.QObject.connect(self.rem_tech, QtCore.SIGNAL("cellChanged(int,int)"), FredWindow.rem_tech_value_changed) QtCore.QMetaObject.connectSlotsByName(FredWindow) FredWindow.setTabOrder(self.id, self.add_tech) FredWindow.setTabOrder(self.add_tech, self.rem_name) FredWindow.setTabOrder(self.rem_name, self.rem_tech) FredWindow.setTabOrder(self.rem_tech, self.auth_info) FredWindow.setTabOrder(self.auth_info, self.reportlevel) FredWindow.setTabOrder(self.reportlevel, self.cltrid)
def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(1252, 953) MainWindow.setMinimumSize(QtCore.QSize(750, 550)) font = QtGui.QFont() font.setFamily("DejaVu Sans") font.setPointSize(10) MainWindow.setFont(font) self.centralwidget = QtGui.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.gridLayout = QtGui.QGridLayout(self.centralwidget) self.gridLayout.setObjectName("gridLayout") self.splitter_leftright = QtGui.QSplitter(self.centralwidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.splitter_leftright.sizePolicy().hasHeightForWidth()) self.splitter_leftright.setSizePolicy(sizePolicy) self.splitter_leftright.setOrientation(QtCore.Qt.Horizontal) self.splitter_leftright.setChildrenCollapsible(False) self.splitter_leftright.setObjectName("splitter_leftright") self.frame_left = QtGui.QFrame(self.splitter_leftright) self.frame_left.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_left.setFrameShadow(QtGui.QFrame.Raised) self.frame_left.setObjectName("frame_left") self.gridLayout_3 = QtGui.QGridLayout(self.frame_left) self.gridLayout_3.setObjectName("gridLayout_3") self.tabWidget_treeview = QtGui.QTabWidget(self.frame_left) self.tabWidget_treeview.setObjectName("tabWidget_treeview") self.tab_proj = QtGui.QWidget() self.tab_proj.setObjectName("tab_proj") self.gridLayout_5 = QtGui.QGridLayout(self.tab_proj) self.gridLayout_5.setObjectName("gridLayout_5") self.treeWidget_proj = QtGui.QTreeWidget(self.tab_proj) self.treeWidget_proj.setItemHidden(self.treeWidget_proj.headerItem(), True) self.treeWidget_proj.setObjectName("treeWidget_proj") self.treeWidget_proj.headerItem().setText(0, "1") self.gridLayout_5.addWidget(self.treeWidget_proj, 0, 0, 1, 1) self.tabWidget_treeview.addTab(self.tab_proj, "") self.tab_nonProj = QtGui.QWidget() self.tab_nonProj.setObjectName("tab_nonProj") self.gridLayout_4 = QtGui.QGridLayout(self.tab_nonProj) self.gridLayout_4.setObjectName("gridLayout_4") self.treeWidget_nonProj = QtGui.QTreeWidget(self.tab_nonProj) self.treeWidget_nonProj.setItemHidden( self.treeWidget_nonProj.headerItem(), True) self.treeWidget_nonProj.setObjectName("treeWidget_nonProj") self.treeWidget_nonProj.headerItem().setText(0, "1") self.gridLayout_4.addWidget(self.treeWidget_nonProj, 0, 0, 1, 1) self.tabWidget_treeview.addTab(self.tab_nonProj, "") self.gridLayout_3.addWidget(self.tabWidget_treeview, 0, 0, 1, 1) self.frame_right = QtGui.QFrame(self.splitter_leftright) self.frame_right.setAutoFillBackground(False) self.frame_right.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_right.setFrameShadow(QtGui.QFrame.Raised) self.frame_right.setLineWidth(1) self.frame_right.setObjectName("frame_right") self.gridLayout_2 = QtGui.QGridLayout(self.frame_right) self.gridLayout_2.setObjectName("gridLayout_2") self.tabWidget_viewer = QtGui.QTabWidget(self.frame_right) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.tabWidget_viewer.sizePolicy().hasHeightForWidth()) self.tabWidget_viewer.setSizePolicy(sizePolicy) self.tabWidget_viewer.setObjectName("tabWidget_viewer") self.gridLayout_2.addWidget(self.tabWidget_viewer, 0, 0, 1, 1) self.gridLayout.addWidget(self.splitter_leftright, 0, 0, 1, 1) MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtGui.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 1252, 21)) self.menubar.setObjectName("menubar") self.menuFile = QtGui.QMenu(self.menubar) self.menuFile.setObjectName("menuFile") self.menuHelp = QtGui.QMenu(self.menubar) self.menuHelp.setObjectName("menuHelp") self.menuEdit = QtGui.QMenu(self.menubar) self.menuEdit.setObjectName("menuEdit") self.menuBuild = QtGui.QMenu(self.menubar) self.menuBuild.setObjectName("menuBuild") MainWindow.setMenuBar(self.menubar) self.statusbar = QtGui.QStatusBar(MainWindow) self.statusbar.setAutoFillBackground(False) self.statusbar.setObjectName("statusbar") MainWindow.setStatusBar(self.statusbar) self.toolBar = QtGui.QToolBar(MainWindow) self.toolBar.setOrientation(QtCore.Qt.Horizontal) self.toolBar.setObjectName("toolBar") MainWindow.addToolBar(QtCore.Qt.ToolBarArea(QtCore.Qt.TopToolBarArea), self.toolBar) self.actionExit = QtGui.QAction(MainWindow) self.actionExit.setObjectName("actionExit") self.actionFind = QtGui.QAction(MainWindow) self.actionFind.setObjectName("actionFind") self.actionManual = QtGui.QAction(MainWindow) self.actionManual.setObjectName("actionManual") self.actionAbout = QtGui.QAction(MainWindow) self.actionAbout.setObjectName("actionAbout") self.actionCut = QtGui.QAction(MainWindow) self.actionCut.setObjectName("actionCut") self.actionCopy = QtGui.QAction(MainWindow) self.actionCopy.setObjectName("actionCopy") self.actionPaste = QtGui.QAction(MainWindow) self.actionPaste.setObjectName("actionPaste") self.actionFindInFiles = QtGui.QAction(MainWindow) self.actionFindInFiles.setObjectName("actionFindInFiles") self.actionReference = QtGui.QAction(MainWindow) self.actionReference.setObjectName("actionReference") self.actionUndo = QtGui.QAction(MainWindow) self.actionUndo.setObjectName("actionUndo") self.actionRedo = QtGui.QAction(MainWindow) self.actionRedo.setObjectName("actionRedo") self.actionGoto = QtGui.QAction(MainWindow) self.actionGoto.setObjectName("actionGoto") self.actionIndent = QtGui.QAction(MainWindow) self.actionIndent.setObjectName("actionIndent") self.actionUnindent = QtGui.QAction(MainWindow) self.actionUnindent.setObjectName("actionUnindent") self.actionComment = QtGui.QAction(MainWindow) self.actionComment.setObjectName("actionComment") self.actionUncomment = QtGui.QAction(MainWindow) self.actionUncomment.setObjectName("actionUncomment") self.actionSave = QtGui.QAction(MainWindow) self.actionSave.setObjectName("actionSave") self.actionSave_All = QtGui.QAction(MainWindow) self.actionSave_All.setObjectName("actionSave_All") self.actionOpen = QtGui.QAction(MainWindow) self.actionOpen.setObjectName("actionOpen") self.actionDownload = QtGui.QAction(MainWindow) self.actionDownload.setObjectName("actionDownload") self.actionReferenceInFiles = QtGui.QAction(MainWindow) self.actionReferenceInFiles.setObjectName("actionReferenceInFiles") self.menuHelp.addAction(self.actionManual) self.menuHelp.addAction(self.actionAbout) self.menuEdit.addAction(self.actionUndo) self.menuEdit.addAction(self.actionRedo) self.menuEdit.addSeparator() self.menuEdit.addAction(self.actionCut) self.menuEdit.addAction(self.actionCopy) self.menuEdit.addAction(self.actionPaste) self.menuEdit.addSeparator() self.menuEdit.addAction(self.actionIndent) self.menuEdit.addAction(self.actionUnindent) self.menuEdit.addAction(self.actionComment) self.menuEdit.addAction(self.actionUncomment) self.menuEdit.addSeparator() self.menuEdit.addAction(self.actionFind) self.menuEdit.addAction(self.actionFindInFiles) self.menuEdit.addAction(self.actionReference) self.menuEdit.addAction(self.actionReferenceInFiles) self.menuEdit.addAction(self.actionGoto) self.menubar.addAction(self.menuFile.menuAction()) self.menubar.addAction(self.menuEdit.menuAction()) self.menubar.addAction(self.menuBuild.menuAction()) self.menubar.addAction(self.menuHelp.menuAction()) self.toolBar.addAction(self.actionOpen) self.toolBar.addAction(self.actionSave) self.toolBar.addSeparator() self.toolBar.addAction(self.actionUndo) self.toolBar.addAction(self.actionRedo) self.toolBar.addSeparator() self.toolBar.addAction(self.actionIndent) self.toolBar.addAction(self.actionUnindent) self.toolBar.addAction(self.actionComment) self.toolBar.addAction(self.actionUncomment) self.toolBar.addSeparator() self.toolBar.addAction(self.actionFind) self.toolBar.addAction(self.actionReference) self.toolBar.addAction(self.actionReferenceInFiles) self.toolBar.addAction(self.actionGoto) self.toolBar.addSeparator() self.toolBar.addAction(self.actionDownload) self.retranslateUi(MainWindow) self.tabWidget_treeview.setCurrentIndex(0) self.tabWidget_viewer.setCurrentIndex(-1) QtCore.QObject.connect(self.actionExit, QtCore.SIGNAL("activated()"), MainWindow.close) QtCore.QObject.connect(self.treeWidget_proj, QtCore.SIGNAL("itemSelectionChanged()"), MainWindow.update) QtCore.QObject.connect(self.treeWidget_nonProj, QtCore.SIGNAL("itemSelectionChanged()"), MainWindow.update) QtCore.QObject.connect(self.splitter_leftright, QtCore.SIGNAL("splitterMoved(int,int)"), MainWindow.update) QtCore.QObject.connect(self.actionCut, QtCore.SIGNAL("activated()"), MainWindow.update) QtCore.QObject.connect(self.actionCopy, QtCore.SIGNAL("activated()"), MainWindow.update) QtCore.QObject.connect(self.actionPaste, QtCore.SIGNAL("activated()"), MainWindow.update) QtCore.QObject.connect(self.actionFindInFiles, QtCore.SIGNAL("activated()"), MainWindow.update) QtCore.QObject.connect(self.tabWidget_viewer, QtCore.SIGNAL("tabCloseRequested(int)"), MainWindow.update) QtCore.QMetaObject.connectSlotsByName(MainWindow) MainWindow.setTabOrder(self.treeWidget_proj, self.treeWidget_nonProj) MainWindow.setTabOrder(self.treeWidget_nonProj, self.tabWidget_treeview)
def setupUi(self, MainWindow): MainWindow.setObjectName(_fromUtf8("MainWindow")) MainWindow.resize(599, 477) font = QtGui.QFont() font.setBold(True) font.setWeight(75) MainWindow.setFont(font) # ---- Importing the logo for the GUI--------# MainWindow.setWindowIcon( QtGui.QIcon( '/home/jagadeesh/Desktop/py/PycharmProjects/QT/cw.png')) self.centralwidget = QtGui.QWidget(MainWindow) self.centralwidget.setObjectName(_fromUtf8("centralwidget")) self.tabWidget = QtGui.QTabWidget(self.centralwidget) self.tabWidget.setGeometry(QtCore.QRect(0, 0, 601, 271)) self.tabWidget.setObjectName(_fromUtf8("tabWidget")) self.learn = QtGui.QWidget() self.learn.setEnabled(True) self.learn.setObjectName(_fromUtf8("learn")) self.label_6 = QtGui.QLabel(self.learn) self.label_6.setGeometry(QtCore.QRect(10, 80, 301, 17)) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.label_6.setFont(font) self.label_6.setObjectName(_fromUtf8("label_6")) self.label = QtGui.QLabel(self.learn) self.label.setGeometry(QtCore.QRect(10, 110, 21, 17)) self.label.setObjectName(_fromUtf8("label")) self.Rinput = QtGui.QTextEdit(self.learn) self.Rinput.setGeometry(QtCore.QRect(30, 100, 50, 30)) self.Rinput.setObjectName(_fromUtf8("Rinput")) self.label_2 = QtGui.QLabel(self.learn) self.label_2.setGeometry(QtCore.QRect(90, 110, 21, 17)) self.label_2.setObjectName(_fromUtf8("label_2")) self.Ginput = QtGui.QTextEdit(self.learn) self.Ginput.setGeometry(QtCore.QRect(110, 100, 50, 30)) self.Ginput.setObjectName(_fromUtf8("Ginput")) self.label_3 = QtGui.QLabel(self.learn) self.label_3.setGeometry(QtCore.QRect(170, 110, 21, 17)) self.label_3.setObjectName(_fromUtf8("label_3")) self.Binput = QtGui.QTextEdit(self.learn) self.Binput.setGeometry(QtCore.QRect(190, 100, 50, 30)) self.Binput.setObjectName(_fromUtf8("Binput")) self.enterrgb = QtGui.QPushButton(self.learn) self.enterrgb.setGeometry(QtCore.QRect(245, 100, 120, 30)) self.enterrgb.setObjectName(_fromUtf8("enterrgb")) #QtCore.QObject.connect(self.enterrgb, QtCore.SIGNAL("clicked()"), self.inputrgb) self.enterrgb.clicked.connect(self.inputrgb) self.line_10 = QtGui.QFrame(self.learn) self.line_10.setGeometry(QtCore.QRect(0, 60, 371, 20)) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.line_10.setFont(font) self.line_10.setFrameShadow(QtGui.QFrame.Raised) self.line_10.setLineWidth(2) self.line_10.setFrameShape(QtGui.QFrame.HLine) self.line_10.setFrameShadow(QtGui.QFrame.Sunken) self.line_10.setObjectName(_fromUtf8("line_10")) self.learnload = QtGui.QPushButton(self.learn) self.learnload.setGeometry(QtCore.QRect(10, 160, 101, 27)) self.learnload.setObjectName(_fromUtf8("learnload")) self.learnload.clicked.connect(self.file_open1) self.label_5 = QtGui.QLabel(self.learn) self.label_5.setGeometry(QtCore.QRect(10, 10, 141, 17)) self.label_5.setObjectName(_fromUtf8("label_5")) self.learnbutton = QtGui.QPushButton(self.learn) self.learnbutton.setGeometry(QtCore.QRect(100, 200, 141, 27)) self.learnbutton.setObjectName(_fromUtf8("learnbutton")) self.line_9 = QtGui.QFrame(self.learn) self.line_9.setGeometry(QtCore.QRect(0, 140, 371, 20)) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.line_9.setFont(font) self.line_9.setFrameShadow(QtGui.QFrame.Raised) self.line_9.setLineWidth(2) self.line_9.setFrameShape(QtGui.QFrame.HLine) self.line_9.setFrameShadow(QtGui.QFrame.Sunken) self.line_9.setObjectName(_fromUtf8("line_9")) self.line = QtGui.QFrame(self.learn) self.line.setGeometry(QtCore.QRect(360, 0, 20, 241)) self.line.setFrameShape(QtGui.QFrame.VLine) self.line.setFrameShadow(QtGui.QFrame.Sunken) self.line.setObjectName(_fromUtf8("line")) self.learncolorinput = QtGui.QTextEdit(self.learn) self.learncolorinput.setGeometry(QtCore.QRect(10, 30, 161, 31)) self.learncolorinput.setObjectName(_fromUtf8("learncolorinput")) global color_entered self.line_12 = QtGui.QFrame(self.learn) self.line_12.setGeometry(QtCore.QRect(0, 230, 641, 20)) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.line_12.setFont(font) self.line_12.setFrameShadow(QtGui.QFrame.Raised) self.line_12.setLineWidth(2) self.line_12.setFrameShape(QtGui.QFrame.HLine) self.line_12.setFrameShadow(QtGui.QFrame.Sunken) self.line_12.setObjectName(_fromUtf8("line_12")) self.learnimg = QtGui.QLabel(self.learn) self.learnimg.setGeometry(QtCore.QRect(380, 40, 171, 181)) self.learnimg.setText(_fromUtf8("")) self.learnimg.setObjectName(_fromUtf8("learnimg")) self.txtlbl2_3 = QtGui.QLabel(self.learn) self.txtlbl2_3.setGeometry(QtCore.QRect(380, 10, 121, 20)) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.txtlbl2_3.setFont(font) self.txtlbl2_3.setObjectName(_fromUtf8("txtlbl2_3")) self.Binputfromimage = QtGui.QTextEdit(self.learn) self.Binputfromimage.setGeometry(QtCore.QRect(280, 160, 45, 31)) self.Binputfromimage.setObjectName(_fromUtf8("Binputfromimage")) self.Ginputfromimage = QtGui.QTextEdit(self.learn) self.Ginputfromimage.setGeometry(QtCore.QRect(210, 160, 45, 31)) self.Ginputfromimage.setObjectName(_fromUtf8("Ginputfromimage")) self.label_11 = QtGui.QLabel(self.learn) self.label_11.setGeometry(QtCore.QRect(120, 170, 21, 17)) self.label_11.setObjectName(_fromUtf8("label_11")) self.Rinputfromimage = QtGui.QTextEdit(self.learn) self.Rinputfromimage.setGeometry(QtCore.QRect(140, 160, 45, 31)) self.Rinputfromimage.setObjectName(_fromUtf8("Rinputfromimage")) self.label_12 = QtGui.QLabel(self.learn) self.label_12.setGeometry(QtCore.QRect(190, 170, 21, 17)) self.label_12.setObjectName(_fromUtf8("label_12")) self.label_13 = QtGui.QLabel(self.learn) self.label_13.setGeometry(QtCore.QRect(260, 170, 21, 17)) self.label_13.setObjectName(_fromUtf8("label_13")) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(_fromUtf8("ll.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.tabWidget.addTab(self.learn, icon1, _fromUtf8("")) self.rr = QtGui.QWidget() self.rr.setObjectName(_fromUtf8("rr")) self.line_7 = QtGui.QFrame(self.rr) self.line_7.setGeometry(QtCore.QRect(0, 100, 391, 20)) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.line_7.setFont(font) self.line_7.setFrameShadow(QtGui.QFrame.Raised) self.line_7.setLineWidth(2) self.line_7.setFrameShape(QtGui.QFrame.HLine) self.line_7.setFrameShadow(QtGui.QFrame.Sunken) self.line_7.setObjectName(_fromUtf8("line_7")) self.rrload = QtGui.QPushButton(self.rr) self.rrload.setGeometry(QtCore.QRect(20, 40, 101, 27)) self.rrload.setObjectName(_fromUtf8("rrload")) self.rrload.clicked.connect(self.file_open2) self.rrcoloroutput = QtGui.QTextEdit(self.rr) self.rrcoloroutput.setGeometry(QtCore.QRect(270, 40, 111, 31)) self.rrcoloroutput.setObjectName(_fromUtf8("rrcoloroutput")) self.label_7 = QtGui.QLabel(self.rr) self.label_7.setGeometry(QtCore.QRect(140, 50, 121, 20)) self.label_7.setObjectName(_fromUtf8("label_7")) self.rrcolorinput = QtGui.QTextEdit(self.rr) self.rrcolorinput.setGeometry(QtCore.QRect(140, 140, 111, 31)) self.rrcolorinput.setObjectName(_fromUtf8("rrcolorinput")) self.label_8 = QtGui.QLabel(self.rr) self.label_8.setGeometry(QtCore.QRect(10, 150, 121, 17)) self.label_8.setObjectName(_fromUtf8("label_8")) self.rrbutton = QtGui.QPushButton(self.rr) self.rrbutton.setGeometry(QtCore.QRect(260, 140, 121, 27)) self.rrbutton.setObjectName(_fromUtf8("rrbutton")) self.rrbutton.clicked.connect(self.Rkmeans) self.label_4 = QtGui.QLabel(self.rr) self.label_4.setGeometry(QtCore.QRect(10, 10, 161, 17)) self.label_4.setObjectName(_fromUtf8("label_4")) self.label_9 = QtGui.QLabel(self.rr) self.label_9.setGeometry(QtCore.QRect(10, 120, 141, 17)) self.label_9.setObjectName(_fromUtf8("label_9")) self.txtlbl2_2 = QtGui.QLabel(self.rr) self.txtlbl2_2.setGeometry(QtCore.QRect(400, 10, 121, 20)) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.txtlbl2_2.setFont(font) self.txtlbl2_2.setObjectName(_fromUtf8("txtlbl2_2")) self.rrimageoutput = QtGui.QLabel(self.rr) self.rrimageoutput.setGeometry(QtCore.QRect(400, 30, 191, 201)) self.rrimageoutput.setText(_fromUtf8("")) self.rrimageoutput.setObjectName(_fromUtf8("rrimageoutput")) self.line_2 = QtGui.QFrame(self.rr) self.line_2.setGeometry(QtCore.QRect(380, 0, 16, 241)) self.line_2.setFrameShape(QtGui.QFrame.VLine) self.line_2.setFrameShadow(QtGui.QFrame.Sunken) self.line_2.setObjectName(_fromUtf8("line_2")) self.line_11 = QtGui.QFrame(self.rr) self.line_11.setGeometry(QtCore.QRect(0, 230, 601, 20)) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.line_11.setFont(font) self.line_11.setFrameShadow(QtGui.QFrame.Raised) self.line_11.setLineWidth(2) self.line_11.setFrameShape(QtGui.QFrame.HLine) self.line_11.setFrameShadow(QtGui.QFrame.Sunken) self.line_11.setObjectName(_fromUtf8("line_11")) icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap(_fromUtf8("l.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.tabWidget.addTab(self.rr, icon2, _fromUtf8("")) self.textEdit = QtGui.QTextEdit(self.centralwidget) self.textEdit.setGeometry(QtCore.QRect(10, 300, 581, 151)) self.textEdit.setObjectName(_fromUtf8("textEdit")) self.label_10 = QtGui.QLabel(self.centralwidget) self.label_10.setGeometry(QtCore.QRect(10, 280, 141, 17)) self.label_10.setObjectName(_fromUtf8("label_10")) MainWindow.setCentralWidget(self.centralwidget) self.statusBar = QtGui.QStatusBar(MainWindow) self.statusBar.setObjectName(_fromUtf8("statusBar")) MainWindow.setStatusBar(self.statusBar) self.actionAbout = QtGui.QAction(MainWindow) self.actionAbout.setObjectName(_fromUtf8("actionAbout")) sys.stdout = EmittingStream(textWritten=self.normalOutputWritten) #print names self.retranslateUi(MainWindow) self.tabWidget.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(MainWindow)
def setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(554, 483) Form.setStyleSheet(_fromUtf8("background-color:rgb(245, 245, 245)")) self.layoutWidget_2 = QtGui.QWidget(Form) self.layoutWidget_2.setGeometry(QtCore.QRect(0, 0, 198, 483)) self.layoutWidget_2.setObjectName(_fromUtf8("layoutWidget_2")) self.Debug = QtGui.QVBoxLayout(self.layoutWidget_2) self.Debug.setSizeConstraint(QtGui.QLayout.SetDefaultConstraint) self.Debug.setContentsMargins(0, -1, -1, -1) self.Debug.setObjectName(_fromUtf8("Debug")) self.verticalLayout_18 = QtGui.QVBoxLayout() self.verticalLayout_18.setSizeConstraint(QtGui.QLayout.SetMaximumSize) self.verticalLayout_18.setObjectName(_fromUtf8("verticalLayout_18")) self.distext = QtGui.QTabWidget(self.layoutWidget_2) self.distext.setEnabled(True) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.distext.sizePolicy().hasHeightForWidth()) self.distext.setSizePolicy(sizePolicy) self.distext.setMaximumSize(QtCore.QSize(194, 16777215)) self.distext.setTabPosition(QtGui.QTabWidget.North) self.distext.setTabShape(QtGui.QTabWidget.Triangular) self.distext.setUsesScrollButtons(True) self.distext.setTabsClosable(False) self.distext.setMovable(False) self.distext.setObjectName(_fromUtf8("distext")) self.dishextext_3 = QtGui.QWidget() self.dishextext_3.setMouseTracking(False) self.dishextext_3.setObjectName(_fromUtf8("dishextext_3")) self.verticalLayout_19 = QtGui.QVBoxLayout(self.dishextext_3) self.verticalLayout_19.setMargin(0) self.verticalLayout_19.setSpacing(1) self.verticalLayout_19.setObjectName(_fromUtf8("verticalLayout_19")) self.dishex = QtGui.QPlainTextEdit(self.dishextext_3) self.dishex.setEnabled(True) font = QtGui.QFont() font.setFamily(_fromUtf8("Consolas")) font.setPointSize(11) self.dishex.setFont(font) self.dishex.setReadOnly(True) self.dishex.setObjectName(_fromUtf8("dishex")) self.verticalLayout_19.addWidget(self.dishex) self.distext.addTab(self.dishextext_3, _fromUtf8("")) self.verticalLayout_18.addWidget(self.distext) self.horizontalLayout_27 = QtGui.QHBoxLayout() self.horizontalLayout_27.setObjectName( _fromUtf8("horizontalLayout_27")) self.qingchuneirong = QtGui.QPushButton(self.layoutWidget_2) self.qingchuneirong.setObjectName(_fromUtf8("qingchuneirong")) self.horizontalLayout_27.addWidget(self.qingchuneirong) self.lingchunwei = QtGui.QPushButton(self.layoutWidget_2) self.lingchunwei.setObjectName(_fromUtf8("lingchunwei")) self.horizontalLayout_27.addWidget(self.lingchunwei) self.verticalLayout_18.addLayout(self.horizontalLayout_27) self.line_9 = QtGui.QFrame(self.layoutWidget_2) self.line_9.setFrameShape(QtGui.QFrame.HLine) self.line_9.setFrameShadow(QtGui.QFrame.Sunken) self.line_9.setObjectName(_fromUtf8("line_9")) self.verticalLayout_18.addWidget(self.line_9) self.Debug.addLayout(self.verticalLayout_18) self.verticalLayout_22 = QtGui.QVBoxLayout() self.verticalLayout_22.setSizeConstraint(QtGui.QLayout.SetFixedSize) self.verticalLayout_22.setSpacing(3) self.verticalLayout_22.setObjectName(_fromUtf8("verticalLayout_22")) self.horizontalLayout_28 = QtGui.QHBoxLayout() self.horizontalLayout_28.setObjectName( _fromUtf8("horizontalLayout_28")) self.portlabel_2 = QtGui.QLabel(self.layoutWidget_2) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.portlabel_2.sizePolicy().hasHeightForWidth()) self.portlabel_2.setSizePolicy(sizePolicy) self.portlabel_2.setMinimumSize(QtCore.QSize(60, 0)) self.portlabel_2.setMaximumSize(QtCore.QSize(60, 16777215)) font = QtGui.QFont() font.setPointSize(12) font.setBold(True) font.setWeight(75) self.portlabel_2.setFont(font) self.portlabel_2.setObjectName(_fromUtf8("portlabel_2")) self.horizontalLayout_28.addWidget(self.portlabel_2) spacerItem = QtGui.QSpacerItem(10, 13, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum) self.horizontalLayout_28.addItem(spacerItem) self.lineEdit_2 = QtGui.QLineEdit(self.layoutWidget_2) self.lineEdit_2.setEnabled(False) self.lineEdit_2.setMinimumSize(QtCore.QSize(60, 25)) self.lineEdit_2.setMaximumSize(QtCore.QSize(60, 16777215)) self.lineEdit_2.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter) self.lineEdit_2.setReadOnly(True) self.lineEdit_2.setObjectName(_fromUtf8("lineEdit_2")) self.horizontalLayout_28.addWidget(self.lineEdit_2) self.comport = QtGui.QLineEdit(self.layoutWidget_2) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.comport.sizePolicy().hasHeightForWidth()) self.comport.setSizePolicy(sizePolicy) self.comport.setMinimumSize(QtCore.QSize(35, 25)) self.comport.setMaximumSize(QtCore.QSize(40, 16777215)) self.comport.setMaxLength(2) self.comport.setFrame(True) self.comport.setEchoMode(QtGui.QLineEdit.Normal) self.comport.setAlignment(QtCore.Qt.AlignCenter) self.comport.setCursorMoveStyle(QtCore.Qt.LogicalMoveStyle) self.comport.setObjectName(_fromUtf8("comport")) self.horizontalLayout_28.addWidget(self.comport) self.verticalLayout_22.addLayout(self.horizontalLayout_28) self.horizontalLayout_29 = QtGui.QHBoxLayout() self.horizontalLayout_29.setObjectName( _fromUtf8("horizontalLayout_29")) self.bandratelabel_2 = QtGui.QLabel(self.layoutWidget_2) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.bandratelabel_2.sizePolicy().hasHeightForWidth()) self.bandratelabel_2.setSizePolicy(sizePolicy) self.bandratelabel_2.setMaximumSize(QtCore.QSize(60, 16777215)) font = QtGui.QFont() font.setPointSize(12) font.setBold(True) font.setWeight(75) self.bandratelabel_2.setFont(font) self.bandratelabel_2.setObjectName(_fromUtf8("bandratelabel_2")) self.horizontalLayout_29.addWidget(self.bandratelabel_2) spacerItem1 = QtGui.QSpacerItem(10, 10, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum) self.horizontalLayout_29.addItem(spacerItem1) self.botelv = QtGui.QComboBox(self.layoutWidget_2) self.botelv.setEnabled(True) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.botelv.sizePolicy().hasHeightForWidth()) self.botelv.setSizePolicy(sizePolicy) self.botelv.setMinimumSize(QtCore.QSize(0, 25)) self.botelv.setMaximumSize(QtCore.QSize(110, 16777215)) self.botelv.setBaseSize(QtCore.QSize(0, 0)) self.botelv.setEditable(False) self.botelv.setObjectName(_fromUtf8("botelv")) self.botelv.addItem(_fromUtf8("")) self.botelv.addItem(_fromUtf8("")) self.botelv.addItem(_fromUtf8("")) self.botelv.addItem(_fromUtf8("")) self.botelv.addItem(_fromUtf8("")) self.botelv.addItem(_fromUtf8("")) self.botelv.addItem(_fromUtf8("")) self.botelv.addItem(_fromUtf8("")) self.botelv.addItem(_fromUtf8("")) self.botelv.addItem(_fromUtf8("")) self.botelv.addItem(_fromUtf8("")) self.botelv.addItem(_fromUtf8("")) self.botelv.addItem(_fromUtf8("")) self.botelv.addItem(_fromUtf8("")) self.botelv.addItem(_fromUtf8("")) self.botelv.addItem(_fromUtf8("")) self.botelv.addItem(_fromUtf8("")) self.horizontalLayout_29.addWidget(self.botelv) self.verticalLayout_22.addLayout(self.horizontalLayout_29) self.horizontalLayout_30 = QtGui.QHBoxLayout() self.horizontalLayout_30.setObjectName( _fromUtf8("horizontalLayout_30")) self.databitlabel_2 = QtGui.QLabel(self.layoutWidget_2) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.databitlabel_2.sizePolicy().hasHeightForWidth()) self.databitlabel_2.setSizePolicy(sizePolicy) self.databitlabel_2.setMaximumSize(QtCore.QSize(60, 16777215)) font = QtGui.QFont() font.setPointSize(12) font.setBold(True) font.setWeight(75) self.databitlabel_2.setFont(font) self.databitlabel_2.setObjectName(_fromUtf8("databitlabel_2")) self.horizontalLayout_30.addWidget(self.databitlabel_2) spacerItem2 = QtGui.QSpacerItem(10, 10, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum) self.horizontalLayout_30.addItem(spacerItem2) self.shujuwei = QtGui.QComboBox(self.layoutWidget_2) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.shujuwei.sizePolicy().hasHeightForWidth()) self.shujuwei.setSizePolicy(sizePolicy) self.shujuwei.setMinimumSize(QtCore.QSize(0, 25)) self.shujuwei.setMaximumSize(QtCore.QSize(110, 16777215)) self.shujuwei.setObjectName(_fromUtf8("shujuwei")) self.shujuwei.addItem(_fromUtf8("")) self.shujuwei.addItem(_fromUtf8("")) self.shujuwei.addItem(_fromUtf8("")) self.shujuwei.addItem(_fromUtf8("")) self.horizontalLayout_30.addWidget(self.shujuwei) self.verticalLayout_22.addLayout(self.horizontalLayout_30) self.horizontalLayout_31 = QtGui.QHBoxLayout() self.horizontalLayout_31.setObjectName( _fromUtf8("horizontalLayout_31")) self.checkbitlabel_2 = QtGui.QLabel(self.layoutWidget_2) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.checkbitlabel_2.sizePolicy().hasHeightForWidth()) self.checkbitlabel_2.setSizePolicy(sizePolicy) self.checkbitlabel_2.setMaximumSize(QtCore.QSize(60, 16777215)) font = QtGui.QFont() font.setPointSize(12) font.setBold(True) font.setWeight(75) self.checkbitlabel_2.setFont(font) self.checkbitlabel_2.setObjectName(_fromUtf8("checkbitlabel_2")) self.horizontalLayout_31.addWidget(self.checkbitlabel_2) spacerItem3 = QtGui.QSpacerItem(10, 20, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum) self.horizontalLayout_31.addItem(spacerItem3) self.jiaoyanwei = QtGui.QComboBox(self.layoutWidget_2) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.jiaoyanwei.sizePolicy().hasHeightForWidth()) self.jiaoyanwei.setSizePolicy(sizePolicy) self.jiaoyanwei.setMinimumSize(QtCore.QSize(0, 25)) self.jiaoyanwei.setMaximumSize(QtCore.QSize(110, 16777215)) self.jiaoyanwei.setObjectName(_fromUtf8("jiaoyanwei")) self.jiaoyanwei.addItem(_fromUtf8("")) self.jiaoyanwei.addItem(_fromUtf8("")) self.jiaoyanwei.addItem(_fromUtf8("")) self.jiaoyanwei.addItem(_fromUtf8("")) self.jiaoyanwei.addItem(_fromUtf8("")) self.horizontalLayout_31.addWidget(self.jiaoyanwei) self.verticalLayout_22.addLayout(self.horizontalLayout_31) self.horizontalLayout_32 = QtGui.QHBoxLayout() self.horizontalLayout_32.setObjectName( _fromUtf8("horizontalLayout_32")) self.stopbitlabel_2 = QtGui.QLabel(self.layoutWidget_2) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.stopbitlabel_2.sizePolicy().hasHeightForWidth()) self.stopbitlabel_2.setSizePolicy(sizePolicy) self.stopbitlabel_2.setMaximumSize(QtCore.QSize(60, 16777215)) font = QtGui.QFont() font.setPointSize(12) font.setBold(True) font.setWeight(75) self.stopbitlabel_2.setFont(font) self.stopbitlabel_2.setObjectName(_fromUtf8("stopbitlabel_2")) self.horizontalLayout_32.addWidget(self.stopbitlabel_2) spacerItem4 = QtGui.QSpacerItem(10, 20, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum) self.horizontalLayout_32.addItem(spacerItem4) self.tingzhiwei = QtGui.QComboBox(self.layoutWidget_2) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.tingzhiwei.sizePolicy().hasHeightForWidth()) self.tingzhiwei.setSizePolicy(sizePolicy) self.tingzhiwei.setMinimumSize(QtCore.QSize(0, 25)) self.tingzhiwei.setMaximumSize(QtCore.QSize(110, 16777215)) self.tingzhiwei.setObjectName(_fromUtf8("tingzhiwei")) self.tingzhiwei.addItem(_fromUtf8("")) self.tingzhiwei.addItem(_fromUtf8("")) self.tingzhiwei.addItem(_fromUtf8("")) self.horizontalLayout_32.addWidget(self.tingzhiwei) self.verticalLayout_22.addLayout(self.horizontalLayout_32) self.chuankouopen = QtGui.QPushButton(self.layoutWidget_2) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.chuankouopen.sizePolicy().hasHeightForWidth()) self.chuankouopen.setSizePolicy(sizePolicy) self.chuankouopen.setMaximumSize(QtCore.QSize(194, 16777215)) self.chuankouopen.setCheckable(True) self.chuankouopen.setChecked(False) self.chuankouopen.setObjectName(_fromUtf8("chuankouopen")) self.verticalLayout_22.addWidget(self.chuankouopen) self.Debug.addLayout(self.verticalLayout_22) self.debugtab = QtGui.QTabWidget(Form) self.debugtab.setEnabled(True) self.debugtab.setGeometry(QtCore.QRect(200, 10, 361, 481)) self.debugtab.setAcceptDrops(False) self.debugtab.setAutoFillBackground(False) self.debugtab.setStyleSheet(_fromUtf8("")) self.debugtab.setTabShape(QtGui.QTabWidget.Triangular) self.debugtab.setObjectName(_fromUtf8("debugtab")) self.main = QtGui.QWidget() self.main.setObjectName(_fromUtf8("main")) self.gridLayoutWidget = QtGui.QWidget(self.main) self.gridLayoutWidget.setGeometry(QtCore.QRect(0, 0, 351, 81)) self.gridLayoutWidget.setObjectName(_fromUtf8("gridLayoutWidget")) self.gridLayout = QtGui.QGridLayout(self.gridLayoutWidget) self.gridLayout.setMargin(0) self.gridLayout.setHorizontalSpacing(0) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.wendu = QtGui.QPlainTextEdit(self.gridLayoutWidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Ignored) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.wendu.sizePolicy().hasHeightForWidth()) self.wendu.setSizePolicy(sizePolicy) self.wendu.setMidLineWidth(0) self.wendu.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAsNeeded) self.wendu.setObjectName(_fromUtf8("wendu")) self.gridLayout.addWidget(self.wendu, 0, 2, 1, 1) self.label_11 = QtGui.QLabel(self.gridLayoutWidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Ignored) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_11.sizePolicy().hasHeightForWidth()) self.label_11.setSizePolicy(sizePolicy) self.label_11.setFrameShape(QtGui.QFrame.StyledPanel) self.label_11.setTextFormat(QtCore.Qt.AutoText) self.label_11.setAlignment(QtCore.Qt.AlignCenter) self.label_11.setObjectName(_fromUtf8("label_11")) self.gridLayout.addWidget(self.label_11, 0, 0, 1, 2) self.gridLayoutWidget_2 = QtGui.QWidget(self.main) self.gridLayoutWidget_2.setGeometry(QtCore.QRect(0, 90, 351, 41)) self.gridLayoutWidget_2.setObjectName(_fromUtf8("gridLayoutWidget_2")) self.gridLayout_3 = QtGui.QGridLayout(self.gridLayoutWidget_2) self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) self.settemple = QtGui.QPushButton(self.gridLayoutWidget_2) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.settemple.sizePolicy().hasHeightForWidth()) self.settemple.setSizePolicy(sizePolicy) self.settemple.setObjectName(_fromUtf8("settemple")) self.gridLayout_3.addWidget(self.settemple, 0, 0, 1, 1) self.temple = QtGui.QLineEdit(self.gridLayoutWidget_2) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.temple.sizePolicy().hasHeightForWidth()) self.temple.setSizePolicy(sizePolicy) self.temple.setObjectName(_fromUtf8("temple")) self.gridLayout_3.addWidget(self.temple, 0, 1, 1, 1) self.gridLayoutWidget_3 = QtGui.QWidget(self.main) self.gridLayoutWidget_3.setGeometry(QtCore.QRect(0, 180, 351, 271)) self.gridLayoutWidget_3.setObjectName(_fromUtf8("gridLayoutWidget_3")) self.plot = QtGui.QGridLayout(self.gridLayoutWidget_3) self.plot.setObjectName(_fromUtf8("plot")) self.start = QtGui.QPushButton(self.main) self.start.setGeometry(QtCore.QRect(40, 150, 75, 23)) self.start.setObjectName(_fromUtf8("start")) self.stop = QtGui.QPushButton(self.main) self.stop.setGeometry(QtCore.QRect(230, 150, 75, 23)) self.stop.setObjectName(_fromUtf8("stop")) self.debugtab.addTab(self.main, _fromUtf8("")) self.matplottab_2 = QtGui.QWidget() self.matplottab_2.setEnabled(False) self.matplottab_2.setObjectName(_fromUtf8("matplottab_2")) self.verticalLayout_7 = QtGui.QVBoxLayout(self.matplottab_2) self.verticalLayout_7.setMargin(0) self.verticalLayout_7.setSpacing(1) self.verticalLayout_7.setObjectName(_fromUtf8("verticalLayout_7")) self.Dataplot1_2 = QtGui.QHBoxLayout() self.Dataplot1_2.setSpacing(1) self.Dataplot1_2.setObjectName(_fromUtf8("Dataplot1_2")) self.label = QtGui.QLabel(self.matplottab_2) self.label.setObjectName(_fromUtf8("label")) self.Dataplot1_2.addWidget(self.label) self.verticalLayout_7.addLayout(self.Dataplot1_2) self.Dataplot2_2 = QtGui.QHBoxLayout() self.Dataplot2_2.setSpacing(1) self.Dataplot2_2.setObjectName(_fromUtf8("Dataplot2_2")) self.verticalLayout_7.addLayout(self.Dataplot2_2) self.Dataplot3_2 = QtGui.QHBoxLayout() self.Dataplot3_2.setSpacing(1) self.Dataplot3_2.setObjectName(_fromUtf8("Dataplot3_2")) self.verticalLayout_7.addLayout(self.Dataplot3_2) self.debugtab.addTab(self.matplottab_2, _fromUtf8("")) self.retranslateUi(Form) self.distext.setCurrentIndex(0) self.botelv.setCurrentIndex(12) self.debugtab.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(Form)
def initUI(self): conf = { 'port': '/dev/ttyAMA0', 'baud': 115200, 'address': 0x08000000, 'erase': 0, 'write': 0, 'verify': 0, 'read': 0, } self.col = QtGui.QColor(0, 0, 0) self.uart = CommandInterface() self.uart.open(conf['port'], conf['baud']) self.InitEPI() RedLabel = QtGui.QLabel("Red", self) RedLabel.setGeometry(60, 20, 30, 10) BlueLabel = QtGui.QLabel("Blue", self) BlueLabel.setGeometry(55, 60, 40, 10) GreenLabel = QtGui.QLabel("Green", self) GreenLabel.setGeometry(50, 100, 50, 10) Redsld = QtGui.QSlider(QtCore.Qt.Horizontal, self) Redsld.setFocusPolicy(QtCore.Qt.NoFocus) Redsld.setGeometry(100, 20, 260, 30) Redsld.valueChanged[int].connect(self.RedchangeValue) Bluesld = QtGui.QSlider(QtCore.Qt.Horizontal, self) Bluesld.setFocusPolicy(QtCore.Qt.NoFocus) Bluesld.setGeometry(100, 60, 260, 30) Bluesld.valueChanged[int].connect(self.BluechangeValue) Greensld = QtGui.QSlider(QtCore.Qt.Horizontal, self) Greensld.setFocusPolicy(QtCore.Qt.NoFocus) Greensld.setGeometry(100, 100, 260, 30) Greensld.valueChanged[int].connect(self.GreenchangeValue) Redsld.setRange(0, 255) Bluesld.setRange(0, 255) Greensld.setRange(0, 255) Redsld.setObjectName("Red") Bluesld.setObjectName("Blue") Greensld.setObjectName("Green") GreenLabel = QtGui.QLabel("Color show below:", self) GreenLabel.setGeometry(100, 180, 200, 10) self.square = QtGui.QFrame(self) self.square.setGeometry(100, 200, 250, 250) self.square.setStyleSheet("QWidget { background-color: %s }" % self.col.name()) self.setGeometry(500, 500, 500, 500) self.setWindowTitle('color set') self.show()
def __init__(self, parent=None): QtGui.QWidget.__init__(self, parent) self.setWindowFlags(QtCore.Qt.Dialog | QtCore.Qt.WindowSystemMenuHint) self.setWindowModality(QtCore.Qt.WindowModal) global par par = parent global int_lng int_lng = par.interface_lng_val # ------------------------Функции связанные с формой----------------------------- # .....Функция, запускаемая при нажатии радио-кнопки "создать новый проект"...... def on_np_clicked(): if np_radio.isChecked(): title_label.setEnabled(True) project_frame.setEnabled(True) project_frame.setStyleSheet("border-color: dimgray;") project_name.setEnabled(True) project_name.setText("") project_path_name.setText("") app_name.setEnabled(True) path_button.setEnabled(True) # .....Функция, запускаемая при нажатии радио-кнопки "открыть имеющийся проект"...... def on_cp_clicked(): if cp_radio.isChecked(): choice_button.setEnabled(True) title_label.setEnabled(False) project_frame.setEnabled(False) project_frame.setStyleSheet("border-color: darkgray;") else: choice_button.setEnabled(False) # .....Функция, запускаемая при нажатии кнопки "выбрать имеющийся проект"...... def on_chbtn_clicked(): global new_dir folder_dir = QtGui.QFileDialog.getExistingDirectory( directory=QtCore.QDir.currentPath()) new_dir, project_name_dir = os.path.split(folder_dir) path_button.setEnabled(False) title_label.setEnabled(True) project_frame.setEnabled(True) project_frame.setStyleSheet("border-color: dimgray;") project_name.setEnabled(False) project_name.setStyleSheet("border-color: silver;") project_path_name.setEnabled(False) project_path_name.setStyleSheet("border-color: silver;") app_name.setEnabled(False) # --------------------------Функции связанные c выводом----------------------------- file = open(folder_dir + "/system/controlDict", 'r') data = file.read() file.close() app_reg = re.compile(r"(?<=[ ])\S*(?=[;])") app_mas = app_reg.findall(data) mas = app_name.count() for i in range(mas): if app_name.itemText(i) == app_mas[5]: app_name.setCurrentIndex(i) project_name.setText(project_name_dir) project_path_name.setText(new_dir) file = open(folder_dir + "/system/controlDict", 'r') data = file.read() file.close() a_reg = re.compile(r"(?<=[ ])\S*(?=[;])") a_mas = a_reg.findall(data) app_name.setEditText(a_mas[5]) index = app_name.findText(a_mas[5], QtCore.Qt.MatchFixedString) app_name.setCurrentIndex(index) if os.path.exists(folder_dir + "/system/decomposeParDict") == True: rsp_label.setEnabled(True) rsp_frame.setEnabled(True) rsp_frame.setStyleSheet("border-color: dimgray;") rsp_radio.setChecked(True) file = open(folder_dir + "/system/decomposeParDict", 'r') data = file.read() file.close() nos_reg = re.compile(r"(?<=[ ])\S*(?=[;])") nos_mas = nos_reg.findall(data) nos_edit.setValue(int(nos_mas[5])) index = m_name.findText(nos_mas[6], QtCore.Qt.MatchFixedString) m_name.setCurrentIndex(index) # .....Функция, запускаемая при нажатии кнопки выбора директории сохранения нового проекта"...... def on_path_choose(): global new_dir new_dir = QtGui.QFileDialog.getExistingDirectory( directory=QtCore.QDir.currentPath()) dir_reg = re.compile(r"\S*(?<=[\/])run(?![\/])") dir_mas = dir_reg.findall(new_dir) project_path_name.setText(new_dir) # .....Функция, запускаемая при завершении редактирования названия проекта и его директории"...... def handleEditingFinished(): if project_name.text() and project_path_name.text(): save_button.setEnabled(True) # ....................Функция, запускаемая при нажатии кнопки "сохранить".................... def on_save_clicked(): par.addDockWidget(QtCore.Qt.LeftDockWidgetArea, par.fsw) par.addDockWidget(QtCore.Qt.BottomDockWidgetArea, par.serv_mes) prj_name = project_name.text() full_dir = new_dir + "/" + prj_name par.full_dir = full_dir par.prj_name = prj_name file = open( project_path_name.text() + "/" + project_name.text() + "/system/controlDict", 'r') data = file.read() file.close() a = app_name.currentText() a_reg = re.compile(r"application\s*\S*\;") data = re.sub(a_reg, "application" + " " + a + ";", data) file = open( project_path_name.text() + "/" + project_name.text() + "/system/controlDict", 'w') file.write(data) file.close() new_app = app_name.currentText() par.new_app = new_app if np_radio.isChecked(): shutil.copytree("./matches/Шаблон проекта", new_dir + "/" + project_name.text()) #---constant--- dir_constant_path = full_dir + '/constant' if dir_constant_path: dir_constant_name = os.path.basename(full_dir + '/constant') files_constant = [ 'thermophysicalProperties', 'turbulenceProperties' ] item_constant = QtGui.QStandardItem(dir_constant_name) par.treeview.model.insertRow(0, item_constant) j = 0 index_constant = par.treeview.model.index(0, 0) par.treeview.expand(index_constant) for el_constant in files_constant: child_item_constant = QtGui.QStandardItem(el_constant) child_item_constant.setForeground(QtGui.QColor('navy')) item_constant.setChild(j, 0, child_item_constant) j = j + 1 dir_system_path = full_dir + '/system' #---system--- dir_system_name = os.path.basename(full_dir + '/system') if dir_system_name: files_system = ['controlDict', 'fvSchemes', 'fvSolution'] item_system = QtGui.QStandardItem(dir_system_name) par.treeview.model.insertRow(1, item_system) j = 0 index_system = par.treeview.model.index(1, 0) par.treeview.expand(index_system) for el_system in files_system: child_item_system = QtGui.QStandardItem(el_system) child_item_system.setForeground(QtGui.QColor('navy')) item_system.setChild(j, 0, child_item_system) j = j + 1 if cp_radio.isChecked(): dir_0_path = par.full_dir + '/0' #---0--- if dir_0_path: dir_0_name = os.path.basename(par.full_dir + '/0') files_0 = ['p', 'T', 'U'] item_0 = QtGui.QStandardItem(dir_0_name) par.treeview.model.insertRow(2, item_0) j = 0 index = par.treeview.model.index(2, 0) par.treeview.expand(index) for el_0 in files_0: child_item_0 = QtGui.QStandardItem(el_0) child_item_0.setForeground(QtGui.QColor('navy')) item_0.setChild(j, 0, child_item_0) j = j + 1 par.task_open.setEnabled(True) par.view_open.setEnabled(True) prj_lbl = QtGui.QLabel() if int_lng == 'Russian': prj_lbl.setText('Путь до директории проекта:') elif int_lng == 'English': prj_lbl.setText('Path to mesh file:') prj_lbl.setStyleSheet("border-style: none;" "font-size: 10pt;") prj_path_lbl = QtGui.QLineEdit() prj_path_lbl.setStyleSheet("background-color: white;" "font-size: 10pt;" "color: green;") prj_path_lbl.setFixedSize(500, 25) prj_path_lbl.setText(full_dir) prj_path_lbl.setEnabled(False) par.tdw_grid.addWidget(prj_lbl, 0, 0, alignment=QtCore.Qt.AlignCenter) par.tdw_grid.addWidget(prj_path_lbl, 0, 1, alignment=QtCore.Qt.AlignCenter) par.msh_open.setEnabled(True) self.close() # .....................Функция, запускаемая при нажатии кнопки "отмена"...................... def on_cancel_clicked(): self.close() self.clear_label = QtGui.QLabel() parent.ffw.setTitleBarWidget(self.clear_label) # ------------------------------------Первый блок формы-------------------------------------- choice_label = QtGui.QLabel( "Создайте новый проект или откройте имеющийся") cl_hbox = QtGui.QHBoxLayout() cl_hbox.addWidget(choice_label) np_radio = QtGui.QRadioButton("Создать новый проект") np_radio.toggled.connect(on_np_clicked) cp_radio = QtGui.QRadioButton("Открыть имеющийся проект") cp_radio.toggled.connect(on_cp_clicked) icon = self.style().standardIcon(QtGui.QStyle.SP_DirOpenIcon) choice_button = QtGui.QPushButton() choice_button.setFixedSize(30, 30) choice_button.setIcon(icon) choice_button.setEnabled(False) choice_button.clicked.connect(on_chbtn_clicked) ch_grid = QtGui.QGridLayout() ch_grid.addWidget(np_radio, 0, 0) ch_grid.addWidget(cp_radio, 0, 1) ch_grid.addWidget(choice_button, 0, 2) ch_frame = QtGui.QFrame() ch_frame.setFrameShape(QtGui.QFrame.Panel) ch_frame.setFrameShadow(QtGui.QFrame.Sunken) ch_frame.setLayout(ch_grid) ch_hbox = QtGui.QHBoxLayout() ch_hbox.addWidget(ch_frame) # -------------------------------------Второй блок формы------------------------------------ title_label = QtGui.QLabel( "Введите название задачи и укажите директорию и решатель") title_label.setEnabled(False) tl_hbox = QtGui.QHBoxLayout() tl_hbox.addWidget(title_label) project_label = QtGui.QLabel("Название проекта:") project_name = QtGui.QLineEdit() project_name.textChanged.connect(handleEditingFinished) project_name.setFixedSize(180, 25) valid = QtGui.QRegExpValidator(QtCore.QRegExp("\S*"), self) project_name.setValidator(valid) project_path_label = QtGui.QLabel("Путь:") project_path_name = QtGui.QLineEdit() project_path_name.setEnabled(False) project_path_name.textChanged.connect(handleEditingFinished) project_path_name.setFixedSize(180, 25) path_button = QtGui.QPushButton("...") path_button.clicked.connect(on_path_choose) path_button.setFixedSize(25, 25) app_label = QtGui.QLabel("Решатель:") app_name = QtGui.QComboBox() app_name.addItems("rhoCentralFoam".split()) app_name.setFixedSize(180, 25) project_grid = QtGui.QGridLayout() project_grid.addWidget(project_label, 0, 0) project_grid.addWidget(project_name, 0, 1, alignment=QtCore.Qt.AlignRight) project_grid.addWidget(project_path_label, 1, 0) project_grid.addWidget(project_path_name, 1, 1) project_grid.addWidget(app_label, 2, 0) project_grid.addWidget(app_name, 2, 1) project_grid.addWidget(path_button, 1, 2) project_frame = QtGui.QFrame() project_frame.setEnabled(False) project_frame.setStyleSheet("border-color: darkgray;") project_frame.setFrameShape(QtGui.QFrame.Panel) project_frame.setFrameShadow(QtGui.QFrame.Sunken) project_frame.setLayout(project_grid) project_grid_vbox = QtGui.QVBoxLayout() project_grid_vbox.addWidget(project_frame) # ---------------------Кнопки сохранения и отмены и их блок------------------------- save_button = QtGui.QPushButton("Сохранить") save_button.setFixedSize(80, 25) save_button.clicked.connect(on_save_clicked) save_button.setEnabled(False) cancel_button = QtGui.QPushButton("Отмена") cancel_button.setFixedSize(80, 25) cancel_button.clicked.connect(on_cancel_clicked) buttons_hbox = QtGui.QHBoxLayout() buttons_hbox.addWidget(save_button) buttons_hbox.addWidget(cancel_button) # -------------------------Фрейм формы--------------------------- bound_grid = QtGui.QGridLayout() bound_grid.addLayout(cl_hbox, 0, 0, alignment=QtCore.Qt.AlignCenter) bound_grid.addLayout(ch_hbox, 1, 0, alignment=QtCore.Qt.AlignCenter) bound_grid.addLayout(tl_hbox, 2, 0, alignment=QtCore.Qt.AlignCenter) bound_grid.addLayout(project_grid_vbox, 3, 0, alignment=QtCore.Qt.AlignCenter) bound_grid.addLayout(buttons_hbox, 4, 0, alignment=QtCore.Qt.AlignCenter) bound_frame = QtGui.QFrame() bound_frame.setStyleSheet( open("./styles/properties_form_style.qss", "r").read()) bound_frame.setLayout(bound_grid) bound_vbox = QtGui.QVBoxLayout() bound_vbox.addWidget(bound_frame) # --------------------Размещение на форме всех компонентов--------- form_1 = QtGui.QFormLayout() form_1.addRow(bound_vbox) self.setLayout(form_1)
def setupUi(self, MeshNetCDF): MeshNetCDF.setObjectName("MeshNetCDF") MeshNetCDF.resize(550, 640) self.buttonBox = QtGui.QDialogButtonBox(MeshNetCDF) self.buttonBox.setGeometry(QtCore.QRect(350, 590, 191, 32)) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName("buttonBox") self.frame = QtGui.QFrame(MeshNetCDF) self.frame.setGeometry(QtCore.QRect(10, 260, 531, 201)) self.frame.setFrameShape(QtGui.QFrame.StyledPanel) self.frame.setFrameShadow(QtGui.QFrame.Raised) self.frame.setObjectName("frame") self.grpNCDF = QtGui.QGroupBox(self.frame) self.grpNCDF.setEnabled(True) self.grpNCDF.setGeometry(QtCore.QRect(10, 10, 521, 191)) self.grpNCDF.setToolTip("") self.grpNCDF.setWhatsThis("") self.grpNCDF.setAutoFillBackground(False) self.grpNCDF.setFlat(False) self.grpNCDF.setCheckable(True) self.grpNCDF.setChecked(True) self.grpNCDF.setObjectName("grpNCDF") self.singleNetCDFGroupBox = QtGui.QGroupBox(self.grpNCDF) self.singleNetCDFGroupBox.setEnabled(True) self.singleNetCDFGroupBox.setGeometry(QtCore.QRect(30, 50, 481, 81)) self.singleNetCDFGroupBox.setTitle("") self.singleNetCDFGroupBox.setObjectName("singleNetCDFGroupBox") self.singleNetCDFChooseFilesPushButton = QtGui.QPushButton( self.singleNetCDFGroupBox) self.singleNetCDFChooseFilesPushButton.setEnabled(False) self.singleNetCDFChooseFilesPushButton.setGeometry( QtCore.QRect(390, 40, 85, 27)) self.singleNetCDFChooseFilesPushButton.setObjectName( "singleNetCDFChooseFilesPushButton") self.singleNetCDFChooseFilesLineEdit = QtGui.QLineEdit( self.singleNetCDFGroupBox) self.singleNetCDFChooseFilesLineEdit.setEnabled(False) self.singleNetCDFChooseFilesLineEdit.setGeometry( QtCore.QRect(180, 40, 201, 27)) self.singleNetCDFChooseFilesLineEdit.setObjectName( "singleNetCDFChooseFilesLineEdit") self.singleNetCDFLayersRadioButton = QtGui.QRadioButton( self.singleNetCDFGroupBox) self.singleNetCDFLayersRadioButton.setGeometry( QtCore.QRect(0, 10, 160, 22)) self.singleNetCDFLayersRadioButton.setObjectName( "singleNetCDFLayersRadioButton") self.singleNetCDFLayerDropDown = QtGui.QComboBox( self.singleNetCDFGroupBox) self.singleNetCDFLayerDropDown.setEnabled(False) self.singleNetCDFLayerDropDown.setGeometry( QtCore.QRect(180, 10, 201, 27)) self.singleNetCDFLayerDropDown.setObjectName( "singleNetCDFLayerDropDown") self.singleNetCDFChooseFilesRadioButton = QtGui.QRadioButton( self.singleNetCDFGroupBox) self.singleNetCDFChooseFilesRadioButton.setGeometry( QtCore.QRect(0, 40, 114, 22)) self.singleNetCDFChooseFilesRadioButton.setObjectName( "singleNetCDFChooseFilesRadioButton") self.singleNetCDFRadioButton = QtGui.QRadioButton(self.grpNCDF) self.singleNetCDFRadioButton.setGeometry(QtCore.QRect(10, 30, 183, 22)) self.singleNetCDFRadioButton.setChecked(True) self.singleNetCDFRadioButton.setObjectName("singleNetCDFRadioButton") self.addLayerToCanvasCheckBox = QtGui.QCheckBox(self.grpNCDF) self.addLayerToCanvasCheckBox.setEnabled(False) self.addLayerToCanvasCheckBox.setGeometry( QtCore.QRect(30, 160, 126, 22)) self.addLayerToCanvasCheckBox.setObjectName("addLayerToCanvasCheckBox") self.multipleNetCDFFilesRadioButton = QtGui.QRadioButton(self.grpNCDF) self.multipleNetCDFFilesRadioButton.setGeometry( QtCore.QRect(11, 130, 370, 22)) self.multipleNetCDFFilesRadioButton.setChecked(False) self.multipleNetCDFFilesRadioButton.setObjectName( "multipleNetCDFFilesRadioButton") self.frame_2 = QtGui.QFrame(MeshNetCDF) self.frame_2.setGeometry(QtCore.QRect(10, 10, 531, 241)) self.frame_2.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_2.setFrameShadow(QtGui.QFrame.Raised) self.frame_2.setObjectName("frame_2") self.grpDom = QtGui.QGroupBox(self.frame_2) self.grpDom.setGeometry(QtCore.QRect(10, 10, 521, 231)) self.grpDom.setFlat(False) self.grpDom.setObjectName("grpDom") self.domainShapefileLayerDropDown = QtGui.QComboBox(self.grpDom) self.domainShapefileLayerDropDown.setGeometry( QtCore.QRect(210, 30, 201, 27)) self.domainShapefileLayerDropDown.setObjectName( "domainShapefileLayerDropDown") self.domainShapefileLayerRadioButton = QtGui.QRadioButton(self.grpDom) self.domainShapefileLayerRadioButton.setGeometry( QtCore.QRect(10, 30, 190, 22)) self.domainShapefileLayerRadioButton.setChecked(True) self.domainShapefileLayerRadioButton.setObjectName( "domainShapefileLayerRadioButton") self.grpDefID = QtGui.QGroupBox(self.grpDom) self.grpDefID.setEnabled(True) self.grpDefID.setGeometry(QtCore.QRect(30, 90, 391, 91)) font = QtGui.QFont() font.setWeight(50) font.setBold(False) self.grpDefID.setFont(font) self.grpDefID.setAcceptDrops(False) self.grpDefID.setCheckable(True) self.grpDefID.setChecked(False) self.grpDefID.setObjectName("grpDefID") self.label_2 = QtGui.QLabel(self.grpDefID) self.label_2.setGeometry(QtCore.QRect(30, 30, 67, 17)) self.label_2.setObjectName("label_2") self.IdDropdown = QtGui.QComboBox(self.grpDefID) self.IdDropdown.setGeometry(QtCore.QRect(180, 30, 201, 27)) self.IdDropdown.setObjectName("IdDropdown") self.label_3 = QtGui.QLabel(self.grpDefID) self.label_3.setGeometry(QtCore.QRect(30, 60, 71, 17)) self.label_3.setObjectName("label_3") self.Default_Id = QtGui.QLineEdit(self.grpDefID) self.Default_Id.setGeometry(QtCore.QRect(180, 60, 201, 27)) self.Default_Id.setObjectName("Default_Id") self.grpChooseGeo = QtGui.QGroupBox(self.grpDom) self.grpChooseGeo.setEnabled(True) self.grpChooseGeo.setGeometry(QtCore.QRect(10, 190, 501, 41)) self.grpChooseGeo.setTitle("") self.grpChooseGeo.setObjectName("grpChooseGeo") self.chooseGeoFileRadioButton = QtGui.QRadioButton(self.grpChooseGeo) self.chooseGeoFileRadioButton.setGeometry(QtCore.QRect(0, 0, 177, 22)) self.chooseGeoFileRadioButton.setChecked(False) self.chooseGeoFileRadioButton.setObjectName("chooseGeoFileRadioButton") self.chooseGeoFileLineEdit = QtGui.QLineEdit(self.grpChooseGeo) self.chooseGeoFileLineEdit.setEnabled(True) self.chooseGeoFileLineEdit.setGeometry(QtCore.QRect(200, 0, 201, 27)) self.chooseGeoFileLineEdit.setObjectName("chooseGeoFileLineEdit") self.chooseGeoFilePushButton = QtGui.QPushButton(self.grpChooseGeo) self.chooseGeoFilePushButton.setEnabled(True) self.chooseGeoFilePushButton.setGeometry(QtCore.QRect(410, 0, 85, 27)) self.chooseGeoFilePushButton.setObjectName("chooseGeoFilePushButton") self.Threshold = QtGui.QLineEdit(self.grpDom) self.Threshold.setEnabled(True) self.Threshold.setGeometry(QtCore.QRect(210, 60, 201, 27)) self.Threshold.setObjectName("Threshold") self.define_th = QtGui.QCheckBox(self.grpDom) self.define_th.setEnabled(True) self.define_th.setGeometry(QtCore.QRect(30, 60, 141, 22)) self.define_th.setObjectName("define_th") self.frame_5 = QtGui.QFrame(MeshNetCDF) self.frame_5.setGeometry(QtCore.QRect(10, 470, 531, 111)) self.frame_5.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_5.setFrameShadow(QtGui.QFrame.Raised) self.frame_5.setObjectName("frame_5") self.grpCSpace_2 = QtGui.QGroupBox(self.frame_5) self.grpCSpace_2.setGeometry(QtCore.QRect(10, 10, 511, 91)) self.grpCSpace_2.setCheckable(True) self.grpCSpace_2.setObjectName("grpCSpace_2") self.sphereRadioButton = QtGui.QRadioButton(self.grpCSpace_2) self.sphereRadioButton.setGeometry(QtCore.QRect(300, 30, 93, 22)) self.sphereRadioButton.setObjectName("sphereRadioButton") self.meshingAlgorithmDropDown = QtGui.QComboBox(self.grpCSpace_2) self.meshingAlgorithmDropDown.setGeometry( QtCore.QRect(210, 60, 201, 27)) self.meshingAlgorithmDropDown.setObjectName("meshingAlgorithmDropDown") self.flatRadioButton = QtGui.QRadioButton(self.grpCSpace_2) self.flatRadioButton.setGeometry(QtCore.QRect(210, 30, 74, 22)) self.flatRadioButton.setAcceptDrops(False) self.flatRadioButton.setChecked(True) self.flatRadioButton.setObjectName("flatRadioButton") self.label = QtGui.QLabel(self.grpCSpace_2) self.label.setGeometry(QtCore.QRect(40, 30, 120, 17)) self.label.setObjectName("label") self.label_4 = QtGui.QLabel(self.grpCSpace_2) self.label_4.setGeometry(QtCore.QRect(40, 60, 69, 17)) self.label_4.setObjectName("label_4") self.retranslateUi(MeshNetCDF) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("accepted()"), MeshNetCDF.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("rejected()"), MeshNetCDF.reject) QtCore.QObject.connect(self.singleNetCDFChooseFilesRadioButton, QtCore.SIGNAL("toggled(bool)"), self.singleNetCDFChooseFilesLineEdit.setEnabled) QtCore.QObject.connect(self.singleNetCDFLayersRadioButton, QtCore.SIGNAL("toggled(bool)"), self.singleNetCDFLayerDropDown.setEnabled) QtCore.QMetaObject.connectSlotsByName(MeshNetCDF)