class Ui_plotdialog(object): def setupUi(self, plotdialog): plotdialog.setObjectName(_fromUtf8("plotdialog")) plotdialog.resize(854, 610) self.graphicsView = GraphicsLayoutWidget(plotdialog) self.graphicsView.setGeometry(QtCore.QRect(30, 10, 811, 481)) self.graphicsView.setObjectName(_fromUtf8("graphicsView")) self.hslider = QtGui.QSlider(plotdialog) self.hslider.setGeometry(QtCore.QRect(20, 510, 431, 29)) self.hslider.setMaximum(100) self.hslider.setOrientation(QtCore.Qt.Horizontal) self.hslider.setTickPosition(QtGui.QSlider.TicksBothSides) self.hslider.setObjectName(_fromUtf8("hslider")) self.comboBox = QtGui.QComboBox(plotdialog) self.comboBox.setGeometry(QtCore.QRect(30, 550, 141, 31)) self.comboBox.setObjectName(_fromUtf8("comboBox")) self.showbtn = QtGui.QToolButton(plotdialog) self.showbtn.setGeometry(QtCore.QRect(240, 550, 151, 31)) self.showbtn.setObjectName(_fromUtf8("showbtn")) self.retranslateUi(plotdialog) QtCore.QMetaObject.connectSlotsByName(plotdialog) def retranslateUi(self, plotdialog): plotdialog.setWindowTitle(QtGui.QApplication.translate("plotdialog", "Dialog", None, QtGui.QApplication.UnicodeUTF8)) self.showbtn.setText(QtGui.QApplication.translate("plotdialog", "Show/Hide PF", None, QtGui.QApplication.UnicodeUTF8))
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(648, 335) self.horizontalLayout = QtGui.QHBoxLayout(Form) self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.tabWidget = QtGui.QTabWidget(Form) self.tabWidget.setObjectName(_fromUtf8("tabWidget")) self.tab = QtGui.QWidget() self.tab.setObjectName(_fromUtf8("tab")) self.verticalLayout = QtGui.QVBoxLayout(self.tab) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.pg_layout = GraphicsLayoutWidget(self.tab) self.pg_layout.setObjectName(_fromUtf8("pg_layout")) self.verticalLayout.addWidget(self.pg_layout) self.tabWidget.addTab(self.tab, _fromUtf8("")) self.tab_2 = QtGui.QWidget() self.tab_2.setObjectName(_fromUtf8("tab_2")) self.tabWidget.addTab(self.tab_2, _fromUtf8("")) self.horizontalLayout.addWidget(self.tabWidget) self.pg_layout2 = GraphicsLayoutWidget(Form) self.pg_layout2.setObjectName(_fromUtf8("pg_layout2")) self.horizontalLayout.addWidget(self.pg_layout2) self.retranslateUi(Form) self.tabWidget.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): Form.setWindowTitle(_translate("Form", "Form", None)) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("Form", "Tab 1", None)) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("Form", "Tab 2", None))
class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(800, 600) self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.pushButton = QtWidgets.QPushButton(self.centralwidget) self.pushButton.setGeometry(QtCore.QRect(670, 140, 75, 23)) self.pushButton.setObjectName("pushButton") self.pyqtgraph1 = GraphicsLayoutWidget(self.centralwidget) self.pyqtgraph1.setGeometry(QtCore.QRect(10, 10, 601, 201)) self.pyqtgraph1.setObjectName("pyqtgraph1") self.pyqtgraph2 = GraphicsLayoutWidget(self.centralwidget) self.pyqtgraph2.setGeometry(QtCore.QRect(10, 220, 381, 351)) self.pyqtgraph2.setObjectName("pyqtgraph2") self.pushButton_2 = QtWidgets.QPushButton(self.centralwidget) self.pushButton_2.setGeometry(QtCore.QRect(430, 380, 75, 23)) self.pushButton_2.setObjectName("pushButton_2") MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtWidgets.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 23)) self.menubar.setObjectName("menubar") MainWindow.setMenuBar(self.menubar) self.statusbar = QtWidgets.QStatusBar(MainWindow) self.statusbar.setObjectName("statusbar") MainWindow.setStatusBar(self.statusbar) self.retranslateUi(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): _translate = QtCore.QCoreApplication.translate MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow")) self.pushButton.setText(_translate("MainWindow", "水平绘图")) self.pushButton_2.setText(_translate("MainWindow", "垂直绘图"))
class Ui_ROI(object): def setupUi(self, ROI): ROI.setObjectName(_fromUtf8("ROI")) ROI.resize(625, 300) self.horizontalLayout = QtGui.QHBoxLayout(ROI) self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.graphicsView = GraphicsLayoutWidget(ROI) self.graphicsView.setObjectName(_fromUtf8("graphicsView")) self.horizontalLayout.addWidget(self.graphicsView) self.retranslateUi(ROI) QtCore.QMetaObject.connectSlotsByName(ROI) def retranslateUi(self, ROI): ROI.setWindowTitle(_translate("ROI", "Form", None))
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(648, 335) Form.setStyleSheet(_fromUtf8("#Form {\n" " background-color: rgb(0,0,0)\n" "}\n" "\n" "QLabel{\n" " color: white\n" "}")) self.verticalLayout = QtGui.QVBoxLayout(Form) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.pg_layout = GraphicsLayoutWidget(Form) self.pg_layout.setObjectName(_fromUtf8("pg_layout")) self.horizontalLayout.addWidget(self.pg_layout) self.verticalLayout.addLayout(self.horizontalLayout) self.horizontalLayout_2 = QtGui.QHBoxLayout() self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.bench_btn = QtGui.QPushButton(Form) self.bench_btn.setObjectName(_fromUtf8("bench_btn")) self.horizontalLayout_2.addWidget(self.bench_btn) self.pos_lbl = QtGui.QLabel(Form) self.pos_lbl.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.pos_lbl.setObjectName(_fromUtf8("pos_lbl")) self.horizontalLayout_2.addWidget(self.pos_lbl) self.verticalLayout.addLayout(self.horizontalLayout_2) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): Form.setWindowTitle(_translate("Form", "PyQtGraphTest", None)) self.bench_btn.setText(_translate("Form", "PushButton", None)) self.pos_lbl.setText(_translate("Form", "HUAHSUGAHUGAS", None))
class Ui_QSpectrumAnalyzerMainWindow(object): def setupUi(self, QSpectrumAnalyzerMainWindow): QSpectrumAnalyzerMainWindow.setObjectName(_fromUtf8("QSpectrumAnalyzerMainWindow")) QSpectrumAnalyzerMainWindow.resize(1100, 731) self.centralwidget = QtGui.QWidget(QSpectrumAnalyzerMainWindow) self.centralwidget.setObjectName(_fromUtf8("centralwidget")) self.horizontalLayout = QtGui.QHBoxLayout(self.centralwidget) self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.plotSplitter = QtGui.QSplitter(self.centralwidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.plotSplitter.sizePolicy().hasHeightForWidth()) self.plotSplitter.setSizePolicy(sizePolicy) self.plotSplitter.setOrientation(QtCore.Qt.Vertical) self.plotSplitter.setObjectName(_fromUtf8("plotSplitter")) self.mainPlotLayout = GraphicsLayoutWidget(self.plotSplitter) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.mainPlotLayout.sizePolicy().hasHeightForWidth()) self.mainPlotLayout.setSizePolicy(sizePolicy) self.mainPlotLayout.setObjectName(_fromUtf8("mainPlotLayout")) self.waterfallPlotLayout = GraphicsLayoutWidget(self.plotSplitter) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.waterfallPlotLayout.sizePolicy().hasHeightForWidth()) self.waterfallPlotLayout.setSizePolicy(sizePolicy) self.waterfallPlotLayout.setObjectName(_fromUtf8("waterfallPlotLayout")) self.horizontalLayout.addWidget(self.plotSplitter) QSpectrumAnalyzerMainWindow.setCentralWidget(self.centralwidget) self.menubar = QtGui.QMenuBar(QSpectrumAnalyzerMainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 1100, 30)) self.menubar.setObjectName(_fromUtf8("menubar")) self.menu_File = QtGui.QMenu(self.menubar) self.menu_File.setObjectName(_fromUtf8("menu_File")) self.menu_Help = QtGui.QMenu(self.menubar) self.menu_Help.setObjectName(_fromUtf8("menu_Help")) QSpectrumAnalyzerMainWindow.setMenuBar(self.menubar) self.statusbar = QtGui.QStatusBar(QSpectrumAnalyzerMainWindow) self.statusbar.setObjectName(_fromUtf8("statusbar")) QSpectrumAnalyzerMainWindow.setStatusBar(self.statusbar) self.dockWidget = QtGui.QDockWidget(QSpectrumAnalyzerMainWindow) self.dockWidget.setFeatures(QtGui.QDockWidget.DockWidgetFloatable|QtGui.QDockWidget.DockWidgetMovable) self.dockWidget.setObjectName(_fromUtf8("dockWidget")) self.dockWidgetContents = QtGui.QWidget() self.dockWidgetContents.setObjectName(_fromUtf8("dockWidgetContents")) self.verticalLayout_3 = QtGui.QVBoxLayout(self.dockWidgetContents) self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3")) self.groupBox_2 = QtGui.QGroupBox(self.dockWidgetContents) self.groupBox_2.setObjectName(_fromUtf8("groupBox_2")) self.gridLayout = QtGui.QGridLayout(self.groupBox_2) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.startButton = QtGui.QPushButton(self.groupBox_2) self.startButton.setObjectName(_fromUtf8("startButton")) self.gridLayout.addWidget(self.startButton, 0, 0, 1, 1) self.stopButton = QtGui.QPushButton(self.groupBox_2) self.stopButton.setObjectName(_fromUtf8("stopButton")) self.gridLayout.addWidget(self.stopButton, 0, 1, 1, 1) self.singleShotButton = QtGui.QPushButton(self.groupBox_2) self.singleShotButton.setObjectName(_fromUtf8("singleShotButton")) self.gridLayout.addWidget(self.singleShotButton, 1, 0, 1, 2) self.verticalLayout_3.addWidget(self.groupBox_2) self.groupBox = QtGui.QGroupBox(self.dockWidgetContents) self.groupBox.setObjectName(_fromUtf8("groupBox")) self.verticalLayout = QtGui.QVBoxLayout(self.groupBox) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.label_2 = QtGui.QLabel(self.groupBox) self.label_2.setObjectName(_fromUtf8("label_2")) self.verticalLayout.addWidget(self.label_2) self.startFreqSpinBox = QtGui.QDoubleSpinBox(self.groupBox) self.startFreqSpinBox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.startFreqSpinBox.setDecimals(3) self.startFreqSpinBox.setMinimum(24.0) self.startFreqSpinBox.setMaximum(1766.0) self.startFreqSpinBox.setProperty("value", 87.0) self.startFreqSpinBox.setObjectName(_fromUtf8("startFreqSpinBox")) self.verticalLayout.addWidget(self.startFreqSpinBox) self.label_3 = QtGui.QLabel(self.groupBox) self.label_3.setObjectName(_fromUtf8("label_3")) self.verticalLayout.addWidget(self.label_3) self.stopFreqSpinBox = QtGui.QDoubleSpinBox(self.groupBox) self.stopFreqSpinBox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.stopFreqSpinBox.setDecimals(3) self.stopFreqSpinBox.setMinimum(24.0) self.stopFreqSpinBox.setMaximum(1766.0) self.stopFreqSpinBox.setProperty("value", 108.0) self.stopFreqSpinBox.setObjectName(_fromUtf8("stopFreqSpinBox")) self.verticalLayout.addWidget(self.stopFreqSpinBox) self.label = QtGui.QLabel(self.groupBox) self.label.setObjectName(_fromUtf8("label")) self.verticalLayout.addWidget(self.label) self.binSizeSpinBox = QtGui.QDoubleSpinBox(self.groupBox) self.binSizeSpinBox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.binSizeSpinBox.setDecimals(3) self.binSizeSpinBox.setMaximum(2800.0) self.binSizeSpinBox.setProperty("value", 10.0) self.binSizeSpinBox.setObjectName(_fromUtf8("binSizeSpinBox")) self.verticalLayout.addWidget(self.binSizeSpinBox) self.verticalLayout_3.addWidget(self.groupBox) self.groupBox_3 = QtGui.QGroupBox(self.dockWidgetContents) self.groupBox_3.setObjectName(_fromUtf8("groupBox_3")) self.gridLayout_2 = QtGui.QGridLayout(self.groupBox_3) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.label_4 = QtGui.QLabel(self.groupBox_3) self.label_4.setObjectName(_fromUtf8("label_4")) self.gridLayout_2.addWidget(self.label_4, 0, 0, 1, 1) self.label_6 = QtGui.QLabel(self.groupBox_3) self.label_6.setObjectName(_fromUtf8("label_6")) self.gridLayout_2.addWidget(self.label_6, 0, 1, 1, 1) self.gainSpinBox = QtGui.QSpinBox(self.groupBox_3) self.gainSpinBox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.gainSpinBox.setMinimum(-1) self.gainSpinBox.setMaximum(49) self.gainSpinBox.setProperty("value", -1) self.gainSpinBox.setObjectName(_fromUtf8("gainSpinBox")) self.gridLayout_2.addWidget(self.gainSpinBox, 1, 1, 1, 1) self.label_5 = QtGui.QLabel(self.groupBox_3) self.label_5.setObjectName(_fromUtf8("label_5")) self.gridLayout_2.addWidget(self.label_5, 2, 0, 1, 1) self.label_7 = QtGui.QLabel(self.groupBox_3) self.label_7.setObjectName(_fromUtf8("label_7")) self.gridLayout_2.addWidget(self.label_7, 2, 1, 1, 1) self.ppmSpinBox = QtGui.QSpinBox(self.groupBox_3) self.ppmSpinBox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.ppmSpinBox.setMinimum(-999) self.ppmSpinBox.setMaximum(999) self.ppmSpinBox.setObjectName(_fromUtf8("ppmSpinBox")) self.gridLayout_2.addWidget(self.ppmSpinBox, 3, 0, 1, 1) self.cropSpinBox = QtGui.QSpinBox(self.groupBox_3) self.cropSpinBox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.cropSpinBox.setObjectName(_fromUtf8("cropSpinBox")) self.gridLayout_2.addWidget(self.cropSpinBox, 3, 1, 1, 1) self.intervalSpinBox = QtGui.QDoubleSpinBox(self.groupBox_3) self.intervalSpinBox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.intervalSpinBox.setMaximum(999.0) self.intervalSpinBox.setProperty("value", 1.0) self.intervalSpinBox.setObjectName(_fromUtf8("intervalSpinBox")) self.gridLayout_2.addWidget(self.intervalSpinBox, 1, 0, 1, 1) self.verticalLayout_3.addWidget(self.groupBox_3) self.groupBox_4 = QtGui.QGroupBox(self.dockWidgetContents) self.groupBox_4.setObjectName(_fromUtf8("groupBox_4")) self.verticalLayout_2 = QtGui.QVBoxLayout(self.groupBox_4) self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.histogramPlotLayout = GraphicsLayoutWidget(self.groupBox_4) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Ignored, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.histogramPlotLayout.sizePolicy().hasHeightForWidth()) self.histogramPlotLayout.setSizePolicy(sizePolicy) self.histogramPlotLayout.setObjectName(_fromUtf8("histogramPlotLayout")) self.verticalLayout_2.addWidget(self.histogramPlotLayout) self.verticalLayout_3.addWidget(self.groupBox_4) self.dockWidget.setWidget(self.dockWidgetContents) QSpectrumAnalyzerMainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(2), self.dockWidget) self.action_Settings = QtGui.QAction(QSpectrumAnalyzerMainWindow) self.action_Settings.setObjectName(_fromUtf8("action_Settings")) self.action_Quit = QtGui.QAction(QSpectrumAnalyzerMainWindow) self.action_Quit.setObjectName(_fromUtf8("action_Quit")) self.action_About = QtGui.QAction(QSpectrumAnalyzerMainWindow) self.action_About.setObjectName(_fromUtf8("action_About")) self.menu_File.addAction(self.action_Settings) self.menu_File.addSeparator() self.menu_File.addAction(self.action_Quit) self.menu_Help.addAction(self.action_About) self.menubar.addAction(self.menu_File.menuAction()) self.menubar.addAction(self.menu_Help.menuAction()) self.label_2.setBuddy(self.startFreqSpinBox) self.label_3.setBuddy(self.stopFreqSpinBox) self.label.setBuddy(self.binSizeSpinBox) self.label_4.setBuddy(self.intervalSpinBox) self.label_6.setBuddy(self.gainSpinBox) self.label_5.setBuddy(self.ppmSpinBox) self.label_7.setBuddy(self.cropSpinBox) self.retranslateUi(QSpectrumAnalyzerMainWindow) QtCore.QMetaObject.connectSlotsByName(QSpectrumAnalyzerMainWindow) QSpectrumAnalyzerMainWindow.setTabOrder(self.startButton, self.stopButton) QSpectrumAnalyzerMainWindow.setTabOrder(self.stopButton, self.singleShotButton) QSpectrumAnalyzerMainWindow.setTabOrder(self.singleShotButton, self.startFreqSpinBox) QSpectrumAnalyzerMainWindow.setTabOrder(self.startFreqSpinBox, self.stopFreqSpinBox) QSpectrumAnalyzerMainWindow.setTabOrder(self.stopFreqSpinBox, self.binSizeSpinBox) QSpectrumAnalyzerMainWindow.setTabOrder(self.binSizeSpinBox, self.intervalSpinBox) QSpectrumAnalyzerMainWindow.setTabOrder(self.intervalSpinBox, self.gainSpinBox) QSpectrumAnalyzerMainWindow.setTabOrder(self.gainSpinBox, self.ppmSpinBox) QSpectrumAnalyzerMainWindow.setTabOrder(self.ppmSpinBox, self.cropSpinBox) QSpectrumAnalyzerMainWindow.setTabOrder(self.cropSpinBox, self.histogramPlotLayout) QSpectrumAnalyzerMainWindow.setTabOrder(self.histogramPlotLayout, self.mainPlotLayout) QSpectrumAnalyzerMainWindow.setTabOrder(self.mainPlotLayout, self.waterfallPlotLayout) def retranslateUi(self, QSpectrumAnalyzerMainWindow): QSpectrumAnalyzerMainWindow.setWindowTitle(_translate("QSpectrumAnalyzerMainWindow", "QSpectrumAnalyzer", None)) self.menu_File.setTitle(_translate("QSpectrumAnalyzerMainWindow", "&File", None)) self.menu_Help.setTitle(_translate("QSpectrumAnalyzerMainWindow", "&Help", None)) self.groupBox_2.setTitle(_translate("QSpectrumAnalyzerMainWindow", "Controls", None)) self.startButton.setText(_translate("QSpectrumAnalyzerMainWindow", "&Start", None)) self.stopButton.setText(_translate("QSpectrumAnalyzerMainWindow", "S&top", None)) self.singleShotButton.setText(_translate("QSpectrumAnalyzerMainWindow", "Si&ngle shot", None)) self.groupBox.setTitle(_translate("QSpectrumAnalyzerMainWindow", "Frequency", None)) self.label_2.setText(_translate("QSpectrumAnalyzerMainWindow", "Start:", None)) self.startFreqSpinBox.setSuffix(_translate("QSpectrumAnalyzerMainWindow", " MHz", None)) self.label_3.setText(_translate("QSpectrumAnalyzerMainWindow", "Stop:", None)) self.stopFreqSpinBox.setSuffix(_translate("QSpectrumAnalyzerMainWindow", " MHz", None)) self.label.setText(_translate("QSpectrumAnalyzerMainWindow", "Bin size:", None)) self.binSizeSpinBox.setSuffix(_translate("QSpectrumAnalyzerMainWindow", " kHz", None)) self.groupBox_3.setTitle(_translate("QSpectrumAnalyzerMainWindow", "Settings", None)) self.label_4.setText(_translate("QSpectrumAnalyzerMainWindow", "Interval [s]:", None)) self.label_6.setText(_translate("QSpectrumAnalyzerMainWindow", "Gain [dB]:", None)) self.gainSpinBox.setSpecialValueText(_translate("QSpectrumAnalyzerMainWindow", "auto", None)) self.label_5.setText(_translate("QSpectrumAnalyzerMainWindow", "Corr. [ppm]:", None)) self.label_7.setText(_translate("QSpectrumAnalyzerMainWindow", "Crop [%]:", None)) self.groupBox_4.setTitle(_translate("QSpectrumAnalyzerMainWindow", "Levels", None)) self.action_Settings.setText(_translate("QSpectrumAnalyzerMainWindow", "&Settings...", None)) self.action_Quit.setText(_translate("QSpectrumAnalyzerMainWindow", "&Quit", None)) self.action_Quit.setShortcut(_translate("QSpectrumAnalyzerMainWindow", "Ctrl+Q", None)) self.action_About.setText(_translate("QSpectrumAnalyzerMainWindow", "&About", None))
class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(1118, 728) MainWindow.setMinimumSize(QtCore.QSize(256, 256)) MainWindow.setMaximumSize(QtCore.QSize(1118, 16777215)) self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.histogram_groupBox_2 = QtWidgets.QGroupBox(self.centralwidget) self.histogram_groupBox_2.setGeometry(QtCore.QRect(440, 520, 671, 171)) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.histogram_groupBox_2.sizePolicy().hasHeightForWidth()) self.histogram_groupBox_2.setSizePolicy(sizePolicy) self.histogram_groupBox_2.setMinimumSize(QtCore.QSize(100, 100)) self.histogram_groupBox_2.setMaximumSize(QtCore.QSize(700, 283)) self.histogram_groupBox_2.setObjectName("histogram_groupBox_2") self.logOutput = QtWidgets.QTextEdit(self.histogram_groupBox_2) self.logOutput.setGeometry(QtCore.QRect(10, 30, 651, 131)) font = QtGui.QFont() font.setFamily("Courier") self.logOutput.setFont(font) self.logOutput.setObjectName("logOutput") self.imageData_groupBox = QtWidgets.QGroupBox(self.centralwidget) self.imageData_groupBox.setGeometry(QtCore.QRect(10, 0, 1100, 312)) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.imageData_groupBox.sizePolicy().hasHeightForWidth()) self.imageData_groupBox.setSizePolicy(sizePolicy) self.imageData_groupBox.setMinimumSize(QtCore.QSize(1100, 100)) self.imageData_groupBox.setMaximumSize(QtCore.QSize(1100, 312)) self.imageData_groupBox.setObjectName("imageData_groupBox") self.label = QtWidgets.QLabel(self.imageData_groupBox) self.label.setGeometry(QtCore.QRect(10, 520, 521, 16)) self.label.setWordWrap(True) self.label.setObjectName("label") self.layoutWidget = QtWidgets.QWidget(self.imageData_groupBox) self.layoutWidget.setGeometry(QtCore.QRect(10, 20, 1091, 291)) self.layoutWidget.setObjectName("layoutWidget") self.largeimage_horizontalLayout = QtWidgets.QHBoxLayout(self.layoutWidget) self.largeimage_horizontalLayout.setSizeConstraint(QtWidgets.QLayout.SetMinAndMaxSize) self.largeimage_horizontalLayout.setContentsMargins(0, 0, 0, 0) self.largeimage_horizontalLayout.setObjectName("largeimage_horizontalLayout") self.main_graphicsView = GraphicsLayoutWidget(self.layoutWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.MinimumExpanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.main_graphicsView.sizePolicy().hasHeightForWidth()) self.main_graphicsView.setSizePolicy(sizePolicy) self.main_graphicsView.setMinimumSize(QtCore.QSize(778, 256)) self.main_graphicsView.setMaximumSize(QtCore.QSize(778, 256)) self.main_graphicsView.setSizeIncrement(QtCore.QSize(1, 1)) self.main_graphicsView.setFrameShape(QtWidgets.QFrame.NoFrame) self.main_graphicsView.setAlignment(QtCore.Qt.AlignCenter) self.main_graphicsView.setObjectName("main_graphicsView") self.largeimage_horizontalLayout.addWidget(self.main_graphicsView) self.graphicsView_colorbar = GraphicsView(self.layoutWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.MinimumExpanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.graphicsView_colorbar.sizePolicy().hasHeightForWidth()) self.graphicsView_colorbar.setSizePolicy(sizePolicy) self.graphicsView_colorbar.setMinimumSize(QtCore.QSize(30, 128)) self.graphicsView_colorbar.setMaximumSize(QtCore.QSize(25, 256)) self.graphicsView_colorbar.setSizeIncrement(QtCore.QSize(1, 1)) self.graphicsView_colorbar.setObjectName("graphicsView_colorbar") self.largeimage_horizontalLayout.addWidget(self.graphicsView_colorbar) self.verticalLayout_3 = QtWidgets.QVBoxLayout() self.verticalLayout_3.setSizeConstraint(QtWidgets.QLayout.SetMaximumSize) self.verticalLayout_3.setContentsMargins(-1, 5, -1, 5) self.verticalLayout_3.setSpacing(0) self.verticalLayout_3.setObjectName("verticalLayout_3") self.dispmax_doubleSpinBox = QtWidgets.QDoubleSpinBox(self.layoutWidget) self.dispmax_doubleSpinBox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.dispmax_doubleSpinBox.setDecimals(3) self.dispmax_doubleSpinBox.setObjectName("dispmax_doubleSpinBox") self.verticalLayout_3.addWidget(self.dispmax_doubleSpinBox) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout_3.addItem(spacerItem) self.resetDispLimits_Button = QtWidgets.QPushButton(self.layoutWidget) self.resetDispLimits_Button.setObjectName("resetDispLimits_Button") self.verticalLayout_3.addWidget(self.resetDispLimits_Button) self.resetDispSmart_Button = QtWidgets.QPushButton(self.layoutWidget) self.resetDispSmart_Button.setObjectName("resetDispSmart_Button") self.verticalLayout_3.addWidget(self.resetDispSmart_Button) self.saveDisp_Button = QtWidgets.QPushButton(self.layoutWidget) self.saveDisp_Button.setObjectName("saveDisp_Button") self.verticalLayout_3.addWidget(self.saveDisp_Button) self.setMask_Button = QtWidgets.QPushButton(self.layoutWidget) self.setMask_Button.setObjectName("setMask_Button") self.verticalLayout_3.addWidget(self.setMask_Button) spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout_3.addItem(spacerItem1) self.dispmin_doubleSpinBox = QtWidgets.QDoubleSpinBox(self.layoutWidget) self.dispmin_doubleSpinBox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.dispmin_doubleSpinBox.setDecimals(3) self.dispmin_doubleSpinBox.setObjectName("dispmin_doubleSpinBox") self.verticalLayout_3.addWidget(self.dispmin_doubleSpinBox) self.largeimage_horizontalLayout.addLayout(self.verticalLayout_3) self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setSpacing(0) self.verticalLayout_2.setObjectName("verticalLayout_2") self.colormap_verticalLayout = QtWidgets.QVBoxLayout() self.colormap_verticalLayout.setObjectName("colormap_verticalLayout") self.label_2 = QtWidgets.QLabel(self.layoutWidget) self.label_2.setMaximumSize(QtCore.QSize(16777215, 14)) self.label_2.setObjectName("label_2") self.colormap_verticalLayout.addWidget(self.label_2) self.gray_radioButton = QtWidgets.QRadioButton(self.layoutWidget) font = QtGui.QFont() font.setPointSize(10) self.gray_radioButton.setFont(font) self.gray_radioButton.setObjectName("gray_radioButton") self.colormap_buttonGroup = QtWidgets.QButtonGroup(MainWindow) self.colormap_buttonGroup.setObjectName("colormap_buttonGroup") self.colormap_buttonGroup.addButton(self.gray_radioButton) self.colormap_verticalLayout.addWidget(self.gray_radioButton) self.thermal_radioButton = QtWidgets.QRadioButton(self.layoutWidget) font = QtGui.QFont() font.setPointSize(10) self.thermal_radioButton.setFont(font) self.thermal_radioButton.setObjectName("thermal_radioButton") self.colormap_buttonGroup.addButton(self.thermal_radioButton) self.colormap_verticalLayout.addWidget(self.thermal_radioButton) self.GYR_radioButton = QtWidgets.QRadioButton(self.layoutWidget) font = QtGui.QFont() font.setPointSize(10) self.GYR_radioButton.setFont(font) self.GYR_radioButton.setObjectName("GYR_radioButton") self.colormap_buttonGroup.addButton(self.GYR_radioButton) self.colormap_verticalLayout.addWidget(self.GYR_radioButton) self.rainbow_radioButton = QtWidgets.QRadioButton(self.layoutWidget) font = QtGui.QFont() font.setPointSize(10) self.rainbow_radioButton.setFont(font) self.rainbow_radioButton.setObjectName("rainbow_radioButton") self.colormap_buttonGroup.addButton(self.rainbow_radioButton) self.colormap_verticalLayout.addWidget(self.rainbow_radioButton) self.viridis_radioButton = QtWidgets.QRadioButton(self.layoutWidget) font = QtGui.QFont() font.setPointSize(10) self.viridis_radioButton.setFont(font) self.viridis_radioButton.setObjectName("viridis_radioButton") self.colormap_buttonGroup.addButton(self.viridis_radioButton) self.colormap_verticalLayout.addWidget(self.viridis_radioButton) self.jet_radioButton = QtWidgets.QRadioButton(self.layoutWidget) font = QtGui.QFont() font.setPointSize(10) self.jet_radioButton.setFont(font) self.jet_radioButton.setObjectName("jet_radioButton") self.colormap_buttonGroup.addButton(self.jet_radioButton) self.colormap_verticalLayout.addWidget(self.jet_radioButton) self.aspects_verticalLayout = QtWidgets.QVBoxLayout() self.aspects_verticalLayout.setSpacing(0) self.aspects_verticalLayout.setObjectName("aspects_verticalLayout") self.summary_Label = QtWidgets.QLabel(self.layoutWidget) self.summary_Label.setMaximumSize(QtCore.QSize(16777215, 14)) self.summary_Label.setObjectName("summary_Label") self.aspects_verticalLayout.addWidget(self.summary_Label) self.raw_radioButton = QtWidgets.QRadioButton(self.layoutWidget) font = QtGui.QFont() font.setPointSize(10) self.raw_radioButton.setFont(font) self.raw_radioButton.setChecked(True) self.raw_radioButton.setObjectName("raw_radioButton") self.stats_buttonGroup = QtWidgets.QButtonGroup(MainWindow) self.stats_buttonGroup.setObjectName("stats_buttonGroup") self.stats_buttonGroup.addButton(self.raw_radioButton) self.aspects_verticalLayout.addWidget(self.raw_radioButton) self.mean_radioButton = QtWidgets.QRadioButton(self.layoutWidget) font = QtGui.QFont() font.setPointSize(10) self.mean_radioButton.setFont(font) self.mean_radioButton.setChecked(False) self.mean_radioButton.setObjectName("mean_radioButton") self.stats_buttonGroup.addButton(self.mean_radioButton) self.aspects_verticalLayout.addWidget(self.mean_radioButton) self.median_radioButton = QtWidgets.QRadioButton(self.layoutWidget) font = QtGui.QFont() font.setPointSize(10) self.median_radioButton.setFont(font) self.median_radioButton.setObjectName("median_radioButton") self.stats_buttonGroup.addButton(self.median_radioButton) self.aspects_verticalLayout.addWidget(self.median_radioButton) self.robustmean_radioButton = QtWidgets.QRadioButton(self.layoutWidget) font = QtGui.QFont() font.setPointSize(10) self.robustmean_radioButton.setFont(font) self.robustmean_radioButton.setObjectName("robustmean_radioButton") self.stats_buttonGroup.addButton(self.robustmean_radioButton) self.aspects_verticalLayout.addWidget(self.robustmean_radioButton) self.std_radioButton = QtWidgets.QRadioButton(self.layoutWidget) font = QtGui.QFont() font.setPointSize(10) self.std_radioButton.setFont(font) self.std_radioButton.setObjectName("std_radioButton") self.stats_buttonGroup.addButton(self.std_radioButton) self.aspects_verticalLayout.addWidget(self.std_radioButton) self.MAD_radioButton = QtWidgets.QRadioButton(self.layoutWidget) font = QtGui.QFont() font.setPointSize(10) self.MAD_radioButton.setFont(font) self.MAD_radioButton.setObjectName("MAD_radioButton") self.stats_buttonGroup.addButton(self.MAD_radioButton) self.aspects_verticalLayout.addWidget(self.MAD_radioButton) self.colormap_verticalLayout.addLayout(self.aspects_verticalLayout) self.verticalLayout_2.addLayout(self.colormap_verticalLayout) self.largeimage_horizontalLayout.addLayout(self.verticalLayout_2) self.overlays_groupBox = QtWidgets.QGroupBox(self.centralwidget) self.overlays_groupBox.setGeometry(QtCore.QRect(10, 315, 421, 376)) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.overlays_groupBox.sizePolicy().hasHeightForWidth()) self.overlays_groupBox.setSizePolicy(sizePolicy) self.overlays_groupBox.setMinimumSize(QtCore.QSize(230, 0)) self.overlays_groupBox.setMaximumSize(QtCore.QSize(16777215, 683)) self.overlays_groupBox.setObjectName("overlays_groupBox") self.overlay_radioButton_05 = QtWidgets.QRadioButton(self.overlays_groupBox) self.overlay_radioButton_05.setGeometry(QtCore.QRect(10, 260, 151, 20)) font = QtGui.QFont() font.setPointSize(10) self.overlay_radioButton_05.setFont(font) self.overlay_radioButton_05.setObjectName("overlay_radioButton_05") self.overlay_graphicsView_01 = GraphicsLayoutWidget(self.overlays_groupBox) self.overlay_graphicsView_01.setGeometry(QtCore.QRect(10, 30, 198, 64)) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.overlay_graphicsView_01.sizePolicy().hasHeightForWidth()) self.overlay_graphicsView_01.setSizePolicy(sizePolicy) self.overlay_graphicsView_01.setMinimumSize(QtCore.QSize(198, 64)) self.overlay_graphicsView_01.setMaximumSize(QtCore.QSize(198, 64)) self.overlay_graphicsView_01.setFrameShape(QtWidgets.QFrame.NoFrame) self.overlay_graphicsView_01.setAlignment(QtCore.Qt.AlignCenter) self.overlay_graphicsView_01.setObjectName("overlay_graphicsView_01") self.overlay_radioButton_01 = QtWidgets.QRadioButton(self.overlays_groupBox) self.overlay_radioButton_01.setGeometry(QtCore.QRect(10, 90, 151, 20)) font = QtGui.QFont() font.setPointSize(10) self.overlay_radioButton_01.setFont(font) self.overlay_radioButton_01.setObjectName("overlay_radioButton_01") self.overlay_radioButton_02 = QtWidgets.QRadioButton(self.overlays_groupBox) self.overlay_radioButton_02.setGeometry(QtCore.QRect(220, 90, 151, 20)) font = QtGui.QFont() font.setPointSize(10) self.overlay_radioButton_02.setFont(font) self.overlay_radioButton_02.setObjectName("overlay_radioButton_02") self.overlay_radioButton_03 = QtWidgets.QRadioButton(self.overlays_groupBox) self.overlay_radioButton_03.setGeometry(QtCore.QRect(220, 175, 151, 20)) font = QtGui.QFont() font.setPointSize(10) self.overlay_radioButton_03.setFont(font) self.overlay_radioButton_03.setObjectName("overlay_radioButton_03") self.overlay_radioButton_04 = QtWidgets.QRadioButton(self.overlays_groupBox) self.overlay_radioButton_04.setGeometry(QtCore.QRect(10, 175, 151, 20)) font = QtGui.QFont() font.setPointSize(10) self.overlay_radioButton_04.setFont(font) self.overlay_radioButton_04.setObjectName("overlay_radioButton_04") self.corrout_radioButton = QtWidgets.QRadioButton(self.overlays_groupBox) self.corrout_radioButton.setGeometry(QtCore.QRect(10, 490, 151, 20)) self.corrout_radioButton.setChecked(True) self.corrout_radioButton.setObjectName("corrout_radioButton") self.overlay_radioButton_06 = QtWidgets.QRadioButton(self.overlays_groupBox) self.overlay_radioButton_06.setGeometry(QtCore.QRect(220, 260, 151, 20)) font = QtGui.QFont() font.setPointSize(10) self.overlay_radioButton_06.setFont(font) self.overlay_radioButton_06.setObjectName("overlay_radioButton_06") self.overlay_radioButton_07 = QtWidgets.QRadioButton(self.overlays_groupBox) self.overlay_radioButton_07.setGeometry(QtCore.QRect(10, 345, 151, 20)) font = QtGui.QFont() font.setPointSize(10) self.overlay_radioButton_07.setFont(font) self.overlay_radioButton_07.setObjectName("overlay_radioButton_07") self.overlay_radioButton_08 = QtWidgets.QRadioButton(self.overlays_groupBox) self.overlay_radioButton_08.setGeometry(QtCore.QRect(220, 345, 151, 20)) font = QtGui.QFont() font.setPointSize(10) self.overlay_radioButton_08.setFont(font) self.overlay_radioButton_08.setObjectName("overlay_radioButton_08") self.overlay_graphicsView_04 = GraphicsLayoutWidget(self.overlays_groupBox) self.overlay_graphicsView_04.setGeometry(QtCore.QRect(10, 115, 192, 64)) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.overlay_graphicsView_04.sizePolicy().hasHeightForWidth()) self.overlay_graphicsView_04.setSizePolicy(sizePolicy) self.overlay_graphicsView_04.setMinimumSize(QtCore.QSize(192, 64)) self.overlay_graphicsView_04.setMaximumSize(QtCore.QSize(192, 64)) self.overlay_graphicsView_04.setFrameShape(QtWidgets.QFrame.NoFrame) self.overlay_graphicsView_04.setAlignment(QtCore.Qt.AlignCenter) self.overlay_graphicsView_04.setObjectName("overlay_graphicsView_04") self.overlay_graphicsView_06 = GraphicsLayoutWidget(self.overlays_groupBox) self.overlay_graphicsView_06.setGeometry(QtCore.QRect(220, 200, 192, 64)) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.overlay_graphicsView_06.sizePolicy().hasHeightForWidth()) self.overlay_graphicsView_06.setSizePolicy(sizePolicy) self.overlay_graphicsView_06.setMinimumSize(QtCore.QSize(192, 64)) self.overlay_graphicsView_06.setMaximumSize(QtCore.QSize(192, 64)) self.overlay_graphicsView_06.setFrameShape(QtWidgets.QFrame.NoFrame) self.overlay_graphicsView_06.setAlignment(QtCore.Qt.AlignCenter) self.overlay_graphicsView_06.setObjectName("overlay_graphicsView_06") self.overlay_graphicsView_03 = GraphicsLayoutWidget(self.overlays_groupBox) self.overlay_graphicsView_03.setGeometry(QtCore.QRect(220, 115, 192, 64)) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.overlay_graphicsView_03.sizePolicy().hasHeightForWidth()) self.overlay_graphicsView_03.setSizePolicy(sizePolicy) self.overlay_graphicsView_03.setMinimumSize(QtCore.QSize(192, 64)) self.overlay_graphicsView_03.setMaximumSize(QtCore.QSize(192, 64)) self.overlay_graphicsView_03.setFrameShape(QtWidgets.QFrame.NoFrame) self.overlay_graphicsView_03.setAlignment(QtCore.Qt.AlignCenter) self.overlay_graphicsView_03.setObjectName("overlay_graphicsView_03") self.overlay_graphicsView_08 = GraphicsLayoutWidget(self.overlays_groupBox) self.overlay_graphicsView_08.setGeometry(QtCore.QRect(220, 285, 192, 64)) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.overlay_graphicsView_08.sizePolicy().hasHeightForWidth()) self.overlay_graphicsView_08.setSizePolicy(sizePolicy) self.overlay_graphicsView_08.setMinimumSize(QtCore.QSize(192, 64)) self.overlay_graphicsView_08.setMaximumSize(QtCore.QSize(192, 64)) self.overlay_graphicsView_08.setFrameShape(QtWidgets.QFrame.NoFrame) self.overlay_graphicsView_08.setAlignment(QtCore.Qt.AlignCenter) self.overlay_graphicsView_08.setObjectName("overlay_graphicsView_08") self.overlay_graphicsView_05 = GraphicsLayoutWidget(self.overlays_groupBox) self.overlay_graphicsView_05.setGeometry(QtCore.QRect(10, 200, 192, 64)) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.overlay_graphicsView_05.sizePolicy().hasHeightForWidth()) self.overlay_graphicsView_05.setSizePolicy(sizePolicy) self.overlay_graphicsView_05.setMinimumSize(QtCore.QSize(192, 64)) self.overlay_graphicsView_05.setMaximumSize(QtCore.QSize(192, 64)) self.overlay_graphicsView_05.setFrameShape(QtWidgets.QFrame.NoFrame) self.overlay_graphicsView_05.setAlignment(QtCore.Qt.AlignCenter) self.overlay_graphicsView_05.setObjectName("overlay_graphicsView_05") self.overlay_graphicsView_02 = GraphicsLayoutWidget(self.overlays_groupBox) self.overlay_graphicsView_02.setGeometry(QtCore.QRect(220, 30, 192, 64)) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.overlay_graphicsView_02.sizePolicy().hasHeightForWidth()) self.overlay_graphicsView_02.setSizePolicy(sizePolicy) self.overlay_graphicsView_02.setMinimumSize(QtCore.QSize(192, 64)) self.overlay_graphicsView_02.setMaximumSize(QtCore.QSize(192, 64)) self.overlay_graphicsView_02.setFrameShape(QtWidgets.QFrame.NoFrame) self.overlay_graphicsView_02.setAlignment(QtCore.Qt.AlignCenter) self.overlay_graphicsView_02.setObjectName("overlay_graphicsView_02") self.overlay_graphicsView_07 = GraphicsLayoutWidget(self.overlays_groupBox) self.overlay_graphicsView_07.setGeometry(QtCore.QRect(10, 285, 192, 64)) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.overlay_graphicsView_07.sizePolicy().hasHeightForWidth()) self.overlay_graphicsView_07.setSizePolicy(sizePolicy) self.overlay_graphicsView_07.setMinimumSize(QtCore.QSize(192, 64)) self.overlay_graphicsView_07.setMaximumSize(QtCore.QSize(192, 64)) self.overlay_graphicsView_07.setFrameShape(QtWidgets.QFrame.NoFrame) self.overlay_graphicsView_07.setAlignment(QtCore.Qt.AlignCenter) self.overlay_graphicsView_07.setObjectName("overlay_graphicsView_07") self.overlay_graphicsView_01.raise_() self.overlay_radioButton_01.raise_() self.overlay_radioButton_02.raise_() self.overlay_radioButton_03.raise_() self.overlay_radioButton_04.raise_() self.corrout_radioButton.raise_() self.overlay_radioButton_05.raise_() self.overlay_radioButton_06.raise_() self.overlay_radioButton_07.raise_() self.overlay_radioButton_08.raise_() self.overlay_graphicsView_04.raise_() self.overlay_graphicsView_06.raise_() self.overlay_graphicsView_03.raise_() self.overlay_graphicsView_08.raise_() self.overlay_graphicsView_05.raise_() self.overlay_graphicsView_02.raise_() self.overlay_graphicsView_07.raise_() self.histogram_groupBox = QtWidgets.QGroupBox(self.centralwidget) self.histogram_groupBox.setGeometry(QtCore.QRect(440, 315, 381, 201)) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.histogram_groupBox.sizePolicy().hasHeightForWidth()) self.histogram_groupBox.setSizePolicy(sizePolicy) self.histogram_groupBox.setMinimumSize(QtCore.QSize(100, 100)) self.histogram_groupBox.setMaximumSize(QtCore.QSize(500, 1000)) self.histogram_groupBox.setObjectName("histogram_groupBox") self.histogram_graphicsView = GraphicsLayoutWidget(self.histogram_groupBox) self.histogram_graphicsView.setGeometry(QtCore.QRect(10, 30, 361, 161)) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.MinimumExpanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.histogram_graphicsView.sizePolicy().hasHeightForWidth()) self.histogram_graphicsView.setSizePolicy(sizePolicy) self.histogram_graphicsView.setMinimumSize(QtCore.QSize(0, 100)) self.histogram_graphicsView.setMaximumSize(QtCore.QSize(1000, 1000)) self.histogram_graphicsView.setObjectName("histogram_graphicsView") self.groupBox = QtWidgets.QGroupBox(self.centralwidget) self.groupBox.setGeometry(QtCore.QRect(830, 315, 281, 201)) self.groupBox.setObjectName("groupBox") self.label_4 = QtWidgets.QLabel(self.groupBox) self.label_4.setGeometry(QtCore.QRect(10, 35, 16, 16)) self.label_4.setObjectName("label_4") self.pixnumX_doubleSpinBox = QtWidgets.QDoubleSpinBox(self.groupBox) self.pixnumX_doubleSpinBox.setGeometry(QtCore.QRect(30, 30, 67, 24)) self.pixnumX_doubleSpinBox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.pixnumX_doubleSpinBox.setDecimals(0) self.pixnumX_doubleSpinBox.setObjectName("pixnumX_doubleSpinBox") self.label_7 = QtWidgets.QLabel(self.groupBox) self.label_7.setGeometry(QtCore.QRect(30, 20, 56, 13)) font = QtGui.QFont() font.setPointSize(11) self.label_7.setFont(font) self.label_7.setObjectName("label_7") self.coordX_doubleSpinBox = QtWidgets.QDoubleSpinBox(self.groupBox) self.coordX_doubleSpinBox.setGeometry(QtCore.QRect(100, 30, 67, 24)) self.coordX_doubleSpinBox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.coordX_doubleSpinBox.setDecimals(3) self.coordX_doubleSpinBox.setObjectName("coordX_doubleSpinBox") self.label_9 = QtWidgets.QLabel(self.groupBox) self.label_9.setGeometry(QtCore.QRect(100, 20, 56, 13)) font = QtGui.QFont() font.setPointSize(11) self.label_9.setFont(font) self.label_9.setObjectName("label_9") self.pixnumY_doubleSpinBox = QtWidgets.QDoubleSpinBox(self.groupBox) self.pixnumY_doubleSpinBox.setGeometry(QtCore.QRect(30, 55, 67, 24)) self.pixnumY_doubleSpinBox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.pixnumY_doubleSpinBox.setDecimals(0) self.pixnumY_doubleSpinBox.setObjectName("pixnumY_doubleSpinBox") self.coordY_doubleSpinBox = QtWidgets.QDoubleSpinBox(self.groupBox) self.coordY_doubleSpinBox.setGeometry(QtCore.QRect(100, 55, 67, 24)) self.coordY_doubleSpinBox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.coordY_doubleSpinBox.setDecimals(3) self.coordY_doubleSpinBox.setObjectName("coordY_doubleSpinBox") self.pixnumZ_doubleSpinBox = QtWidgets.QDoubleSpinBox(self.groupBox) self.pixnumZ_doubleSpinBox.setGeometry(QtCore.QRect(30, 80, 67, 24)) self.pixnumZ_doubleSpinBox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.pixnumZ_doubleSpinBox.setDecimals(0) self.pixnumZ_doubleSpinBox.setObjectName("pixnumZ_doubleSpinBox") self.coordZ_doubleSpinBox = QtWidgets.QDoubleSpinBox(self.groupBox) self.coordZ_doubleSpinBox.setGeometry(QtCore.QRect(100, 80, 67, 24)) self.coordZ_doubleSpinBox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.coordZ_doubleSpinBox.setDecimals(3) self.coordZ_doubleSpinBox.setObjectName("coordZ_doubleSpinBox") self.label_6 = QtWidgets.QLabel(self.groupBox) self.label_6.setGeometry(QtCore.QRect(10, 60, 16, 16)) self.label_6.setObjectName("label_6") self.label_8 = QtWidgets.QLabel(self.groupBox) self.label_8.setGeometry(QtCore.QRect(10, 85, 16, 16)) self.label_8.setObjectName("label_8") self.coordT_doubleSpinBox = QtWidgets.QDoubleSpinBox(self.groupBox) self.coordT_doubleSpinBox.setGeometry(QtCore.QRect(100, 130, 67, 24)) self.coordT_doubleSpinBox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.coordT_doubleSpinBox.setDecimals(3) self.coordT_doubleSpinBox.setObjectName("coordT_doubleSpinBox") self.pixnumT_doubleSpinBox = QtWidgets.QDoubleSpinBox(self.groupBox) self.pixnumT_doubleSpinBox.setGeometry(QtCore.QRect(30, 130, 67, 24)) self.pixnumT_doubleSpinBox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.pixnumT_doubleSpinBox.setDecimals(0) self.pixnumT_doubleSpinBox.setObjectName("pixnumT_doubleSpinBox") self.label_3 = QtWidgets.QLabel(self.groupBox) self.label_3.setGeometry(QtCore.QRect(10, 135, 16, 16)) self.label_3.setObjectName("label_3") self.TimeSlider = QtWidgets.QSlider(self.groupBox) self.TimeSlider.setGeometry(QtCore.QRect(10, 165, 261, 22)) self.TimeSlider.setOrientation(QtCore.Qt.Horizontal) self.TimeSlider.setObjectName("TimeSlider") self.label_10 = QtWidgets.QLabel(self.groupBox) self.label_10.setGeometry(QtCore.QRect(30, 120, 56, 13)) font = QtGui.QFont() font.setPointSize(11) self.label_10.setFont(font) self.label_10.setObjectName("label_10") self.label_11 = QtWidgets.QLabel(self.groupBox) self.label_11.setGeometry(QtCore.QRect(100, 120, 56, 13)) font = QtGui.QFont() font.setPointSize(11) self.label_11.setFont(font) self.label_11.setObjectName("label_11") self.runMovieButton = QtWidgets.QPushButton(self.groupBox) self.runMovieButton.setGeometry(QtCore.QRect(170, 127, 110, 32)) self.runMovieButton.setObjectName("runMovieButton") MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtWidgets.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 1118, 22)) self.menubar.setObjectName("menubar") MainWindow.setMenuBar(self.menubar) self.statusbar = QtWidgets.QStatusBar(MainWindow) self.statusbar.setObjectName("statusbar") MainWindow.setStatusBar(self.statusbar) self.actionQuit = QtWidgets.QAction(MainWindow) self.actionQuit.setObjectName("actionQuit") self.retranslateUi(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): _translate = QtCore.QCoreApplication.translate MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow")) self.histogram_groupBox_2.setTitle(_translate("MainWindow", "Information")) self.imageData_groupBox.setTitle(_translate("MainWindow", "Image Data")) self.label.setText(_translate("MainWindow", "Click in image to position ROI. Drag right or left to increase or decrease the ROI size")) self.resetDispLimits_Button.setText(_translate("MainWindow", "Full Range")) self.resetDispSmart_Button.setText(_translate("MainWindow", "Smart")) self.saveDisp_Button.setText(_translate("MainWindow", "Save")) self.setMask_Button.setText(_translate("MainWindow", "No mask")) self.label_2.setText(_translate("MainWindow", "Colormap")) self.gray_radioButton.setText(_translate("MainWindow", "Gray")) self.thermal_radioButton.setText(_translate("MainWindow", "Thermal")) self.GYR_radioButton.setText(_translate("MainWindow", "GYR")) self.rainbow_radioButton.setText(_translate("MainWindow", "Rainbow")) self.viridis_radioButton.setText(_translate("MainWindow", "Viridis")) self.jet_radioButton.setText(_translate("MainWindow", "Jet")) self.summary_Label.setText(_translate("MainWindow", "Region summaries")) self.raw_radioButton.setText(_translate("MainWindow", "Raw data")) self.mean_radioButton.setText(_translate("MainWindow", "Mean")) self.median_radioButton.setText(_translate("MainWindow", "Median")) self.robustmean_radioButton.setText(_translate("MainWindow", "Robust mean")) self.std_radioButton.setText(_translate("MainWindow", "Std dev")) self.MAD_radioButton.setText(_translate("MainWindow", "MAD")) self.overlays_groupBox.setTitle(_translate("MainWindow", "Overlays")) self.overlay_radioButton_05.setText(_translate("MainWindow", "Mask")) self.overlay_radioButton_01.setText(_translate("MainWindow", "Lag times")) self.overlay_radioButton_02.setText(_translate("MainWindow", "Correlation strength")) self.overlay_radioButton_03.setText(_translate("MainWindow", "MTT")) self.overlay_radioButton_04.setText(_translate("MainWindow", "R2")) self.corrout_radioButton.setText(_translate("MainWindow", "Correlation function")) self.overlay_radioButton_06.setText(_translate("MainWindow", "Mask")) self.overlay_radioButton_07.setText(_translate("MainWindow", "Mask")) self.overlay_radioButton_08.setText(_translate("MainWindow", "Mask")) self.histogram_groupBox.setTitle(_translate("MainWindow", "Overlay Histogram")) self.groupBox.setTitle(_translate("MainWindow", "Location")) self.label_4.setText(_translate("MainWindow", "X")) self.label_7.setText(_translate("MainWindow", "Voxel")) self.label_9.setText(_translate("MainWindow", "mm")) self.label_6.setText(_translate("MainWindow", "Y")) self.label_8.setText(_translate("MainWindow", "Z")) self.label_3.setText(_translate("MainWindow", "T")) self.label_10.setText(_translate("MainWindow", "Timepoint")) self.label_11.setText(_translate("MainWindow", "seconds")) self.runMovieButton.setText(_translate("MainWindow", "Start Movie")) self.actionQuit.setText(_translate("MainWindow", "Quit"))
class Ui_SliceWidget(object): def setupUi(self, SliceWidget): SliceWidget.setObjectName("SliceWidget") SliceWidget.resize(554, 642) self.gridLayout = QtWidgets.QGridLayout(SliceWidget) self.gridLayout.setContentsMargins(0, 0, 0, 0) self.gridLayout.setSpacing(0) self.gridLayout.setObjectName("gridLayout") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setSpacing(0) self.horizontalLayout.setObjectName("horizontalLayout") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.graphicsView = GraphicsLayoutWidget(SliceWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(1) sizePolicy.setVerticalStretch(1) sizePolicy.setHeightForWidth(self.graphicsView.sizePolicy().hasHeightForWidth()) self.graphicsView.setSizePolicy(sizePolicy) self.graphicsView.setObjectName("graphicsView") self.verticalLayout.addWidget(self.graphicsView) self.controlsWidget = QtWidgets.QWidget(SliceWidget) self.controlsWidget.setMaximumSize(QtCore.QSize(16777215, 25)) self.controlsWidget.setObjectName("controlsWidget") self.layout_index_slider = QtWidgets.QHBoxLayout(self.controlsWidget) self.layout_index_slider.setContentsMargins(20, 2, 15, 2) self.layout_index_slider.setObjectName("layout_index_slider") self.labelImageSeriesNumber = QtWidgets.QLabel(self.controlsWidget) self.labelImageSeriesNumber.setText("") self.labelImageSeriesNumber.setObjectName("labelImageSeriesNumber") self.layout_index_slider.addWidget(self.labelImageSeriesNumber) self.seriesSlider = QtWidgets.QSlider(self.controlsWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.seriesSlider.sizePolicy().hasHeightForWidth()) self.seriesSlider.setSizePolicy(sizePolicy) self.seriesSlider.setMinimumSize(QtCore.QSize(200, 0)) self.seriesSlider.setOrientation(QtCore.Qt.Horizontal) self.seriesSlider.setInvertedAppearance(False) self.seriesSlider.setInvertedControls(False) self.seriesSlider.setTickPosition(QtWidgets.QSlider.TicksAbove) self.seriesSlider.setTickInterval(1) self.seriesSlider.setObjectName("seriesSlider") self.layout_index_slider.addWidget(self.seriesSlider) self.labelSliceNumber = QtWidgets.QLabel(self.controlsWidget) self.labelSliceNumber.setText("") self.labelSliceNumber.setObjectName("labelSliceNumber") self.layout_index_slider.addWidget(self.labelSliceNumber) self.sliderSlice = QtWidgets.QSlider(self.controlsWidget) self.sliderSlice.setMaximumSize(QtCore.QSize(16777215, 10)) self.sliderSlice.setOrientation(QtCore.Qt.Horizontal) self.sliderSlice.setTickInterval(0) self.sliderSlice.setObjectName("sliderSlice") self.layout_index_slider.addWidget(self.sliderSlice) self.pushButtonScrollLeft = QtWidgets.QPushButton(self.controlsWidget) self.pushButtonScrollLeft.setStyleSheet("border:none") self.pushButtonScrollLeft.setText("") icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/icons/scroll_arrow_left.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.pushButtonScrollLeft.setIcon(icon) self.pushButtonScrollLeft.setIconSize(QtCore.QSize(15, 15)) self.pushButtonScrollLeft.setObjectName("pushButtonScrollLeft") self.layout_index_slider.addWidget(self.pushButtonScrollLeft) self.pushButtonScrollRight = QtWidgets.QPushButton(self.controlsWidget) self.pushButtonScrollRight.setStyleSheet("border:none") self.pushButtonScrollRight.setText("") icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(":/icons/scroll_arrow_right.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) icon1.addPixmap(QtGui.QPixmap(":/icons/scroll_arrow_right_active.png"), QtGui.QIcon.Active, QtGui.QIcon.On) self.pushButtonScrollRight.setIcon(icon1) self.pushButtonScrollRight.setIconSize(QtCore.QSize(15, 15)) self.pushButtonScrollRight.setObjectName("pushButtonScrollRight") self.layout_index_slider.addWidget(self.pushButtonScrollRight) self.pushButtonManageVolumes = QtWidgets.QPushButton(self.controlsWidget) self.pushButtonManageVolumes.setStyleSheet("border:none") self.pushButtonManageVolumes.setText("") icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap(":/icons/settings.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.pushButtonManageVolumes.setIcon(icon2) self.pushButtonManageVolumes.setIconSize(QtCore.QSize(15, 15)) self.pushButtonManageVolumes.setFlat(False) self.pushButtonManageVolumes.setObjectName("pushButtonManageVolumes") self.layout_index_slider.addWidget(self.pushButtonManageVolumes) self.verticalLayout.addWidget(self.controlsWidget) self.horizontalLayout.addLayout(self.verticalLayout) self.gridLayout.addLayout(self.horizontalLayout, 0, 0, 1, 1) self.retranslateUi(SliceWidget) QtCore.QMetaObject.connectSlotsByName(SliceWidget) def retranslateUi(self, SliceWidget): _translate = QtCore.QCoreApplication.translate SliceWidget.setWindowTitle(_translate("SliceWidget", "Form")) self.labelSliceNumber.setAccessibleName(_translate("SliceWidget", "sliceNumber"))
class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName(_fromUtf8("MainWindow")) MainWindow.resize(1472, 964) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth()) MainWindow.setSizePolicy(sizePolicy) self.centralwidget = QtGui.QWidget(MainWindow) self.centralwidget.setObjectName(_fromUtf8("centralwidget")) self.gridLayout_10 = QtGui.QGridLayout(self.centralwidget) self.gridLayout_10.setObjectName(_fromUtf8("gridLayout_10")) self.horizontalLayout_8 = QtGui.QHBoxLayout() self.horizontalLayout_8.setObjectName(_fromUtf8("horizontalLayout_8")) self.widget_2 = QtGui.QWidget(self.centralwidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(1) sizePolicy.setVerticalStretch(1) sizePolicy.setHeightForWidth(self.widget_2.sizePolicy().hasHeightForWidth()) self.widget_2.setSizePolicy(sizePolicy) self.widget_2.setMinimumSize(QtCore.QSize(0, 845)) self.widget_2.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.widget_2.setObjectName(_fromUtf8("widget_2")) self.gridLayout_12 = QtGui.QGridLayout(self.widget_2) self.gridLayout_12.setSizeConstraint(QtGui.QLayout.SetFixedSize) self.gridLayout_12.setObjectName(_fromUtf8("gridLayout_12")) self.groupBox = QtGui.QGroupBox(self.widget_2) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.groupBox.sizePolicy().hasHeightForWidth()) self.groupBox.setSizePolicy(sizePolicy) self.groupBox.setMinimumSize(QtCore.QSize(300, 0)) self.groupBox.setMaximumSize(QtCore.QSize(300, 461)) self.groupBox.setFlat(False) self.groupBox.setCheckable(False) self.groupBox.setObjectName(_fromUtf8("groupBox")) self.verticalLayout_2 = QtGui.QVBoxLayout(self.groupBox) self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.ExperimentTabWidget = QtGui.QTabWidget(self.groupBox) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.ExperimentTabWidget.sizePolicy().hasHeightForWidth()) self.ExperimentTabWidget.setSizePolicy(sizePolicy) self.ExperimentTabWidget.setObjectName(_fromUtf8("ExperimentTabWidget")) self.SSX = QtGui.QWidget() self.SSX.setObjectName(_fromUtf8("SSX")) self.gridLayout = QtGui.QGridLayout(self.SSX) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.label = QtGui.QLabel(self.SSX) self.label.setObjectName(_fromUtf8("label")) self.gridLayout.addWidget(self.label, 0, 0, 1, 1) self.RootSSX = QtGui.QLineEdit(self.SSX) self.RootSSX.setObjectName(_fromUtf8("RootSSX")) self.gridLayout.addWidget(self.RootSSX, 0, 1, 1, 1) self.label_2 = QtGui.QLabel(self.SSX) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1) self.FileExtensionSSX = QtGui.QLineEdit(self.SSX) self.FileExtensionSSX.setObjectName(_fromUtf8("FileExtensionSSX")) self.gridLayout.addWidget(self.FileExtensionSSX, 1, 1, 1, 1) self.ExperimentTabWidget.addTab(self.SSX, _fromUtf8("")) self.verticalLayout_2.addWidget(self.ExperimentTabWidget) self.gridLayout_2 = QtGui.QGridLayout() self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.DataPathBut = QtGui.QPushButton(self.groupBox) self.DataPathBut.setObjectName(_fromUtf8("DataPathBut")) self.gridLayout_2.addWidget(self.DataPathBut, 0, 0, 1, 1) self.DataPath = QtGui.QLineEdit(self.groupBox) self.DataPath.setObjectName(_fromUtf8("DataPath")) self.gridLayout_2.addWidget(self.DataPath, 0, 1, 1, 1) self.ResPathBut = QtGui.QPushButton(self.groupBox) self.ResPathBut.setObjectName(_fromUtf8("ResPathBut")) self.gridLayout_2.addWidget(self.ResPathBut, 1, 0, 1, 1) self.ResultsPath = QtGui.QLineEdit(self.groupBox) self.ResultsPath.setText(_fromUtf8("")) self.ResultsPath.setObjectName(_fromUtf8("ResultsPath")) self.gridLayout_2.addWidget(self.ResultsPath, 1, 1, 1, 1) self.DarkPathBut = QtGui.QPushButton(self.groupBox) self.DarkPathBut.setObjectName(_fromUtf8("DarkPathBut")) self.gridLayout_2.addWidget(self.DarkPathBut, 2, 0, 1, 1) self.DarkPath = QtGui.QLineEdit(self.groupBox) self.DarkPath.setObjectName(_fromUtf8("DarkPath")) self.gridLayout_2.addWidget(self.DarkPath, 2, 1, 1, 1) self.MaskPathBut = QtGui.QPushButton(self.groupBox) self.MaskPathBut.setObjectName(_fromUtf8("MaskPathBut")) self.gridLayout_2.addWidget(self.MaskPathBut, 3, 0, 1, 1) self.MaskPath = QtGui.QLineEdit(self.groupBox) self.MaskPath.setObjectName(_fromUtf8("MaskPath")) self.gridLayout_2.addWidget(self.MaskPath, 3, 1, 1, 1) self.label_8 = QtGui.QLabel(self.groupBox) self.label_8.setAlignment(QtCore.Qt.AlignCenter) self.label_8.setObjectName(_fromUtf8("label_8")) self.gridLayout_2.addWidget(self.label_8, 4, 0, 1, 1) self.cpus = QtGui.QLineEdit(self.groupBox) self.cpus.setObjectName(_fromUtf8("cpus")) self.gridLayout_2.addWidget(self.cpus, 4, 1, 1, 1) self.verticalLayout_2.addLayout(self.gridLayout_2) self.line_2 = QtGui.QFrame(self.groupBox) self.line_2.setFrameShape(QtGui.QFrame.HLine) self.line_2.setFrameShadow(QtGui.QFrame.Sunken) self.line_2.setObjectName(_fromUtf8("line_2")) self.verticalLayout_2.addWidget(self.line_2) self.verticalLayout = QtGui.QVBoxLayout() self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.label_18 = QtGui.QLabel(self.groupBox) self.label_18.setAlignment(QtCore.Qt.AlignBottom|QtCore.Qt.AlignHCenter) self.label_18.setObjectName(_fromUtf8("label_18")) self.verticalLayout.addWidget(self.label_18) self.line = QtGui.QFrame(self.groupBox) self.line.setFrameShape(QtGui.QFrame.HLine) self.line.setFrameShadow(QtGui.QFrame.Sunken) self.line.setObjectName(_fromUtf8("line")) self.verticalLayout.addWidget(self.line) self.hdf5out = QtGui.QCheckBox(self.groupBox) self.hdf5out.setObjectName(_fromUtf8("hdf5out")) self.verticalLayout.addWidget(self.hdf5out) self.cctbxout = QtGui.QCheckBox(self.groupBox) self.cctbxout.setObjectName(_fromUtf8("cctbxout")) self.verticalLayout.addWidget(self.cctbxout) self.cbfout = QtGui.QCheckBox(self.groupBox) self.cbfout.setObjectName(_fromUtf8("cbfout")) self.verticalLayout.addWidget(self.cbfout) self.verticalLayout_2.addLayout(self.verticalLayout) self.verticalLayout_2.setStretch(0, 1) self.verticalLayout_2.setStretch(1, 1) self.verticalLayout_2.setStretch(2, 1) self.verticalLayout_2.setStretch(3, 1) self.gridLayout_12.addWidget(self.groupBox, 0, 0, 1, 1) self.groupBox_2 = QtGui.QGroupBox(self.widget_2) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.groupBox_2.sizePolicy().hasHeightForWidth()) self.groupBox_2.setSizePolicy(sizePolicy) self.groupBox_2.setMinimumSize(QtCore.QSize(300, 0)) self.groupBox_2.setMaximumSize(QtCore.QSize(300, 16777215)) self.groupBox_2.setObjectName(_fromUtf8("groupBox_2")) self.verticalLayout_4 = QtGui.QVBoxLayout(self.groupBox_2) self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4")) self.gridLayout_3 = QtGui.QGridLayout() self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) self.label_4 = QtGui.QLabel(self.groupBox_2) self.label_4.setObjectName(_fromUtf8("label_4")) self.gridLayout_3.addWidget(self.label_4, 1, 0, 1, 1) self.label_3 = QtGui.QLabel(self.groupBox_2) self.label_3.setObjectName(_fromUtf8("label_3")) self.gridLayout_3.addWidget(self.label_3, 0, 0, 1, 1) self.Threshold = QtGui.QLineEdit(self.groupBox_2) self.Threshold.setObjectName(_fromUtf8("Threshold")) self.gridLayout_3.addWidget(self.Threshold, 0, 1, 1, 1) self.Npixels = QtGui.QLineEdit(self.groupBox_2) self.Npixels.setObjectName(_fromUtf8("Npixels")) self.gridLayout_3.addWidget(self.Npixels, 1, 1, 1, 1) self.BraggThreshold = QtGui.QLineEdit(self.groupBox_2) self.BraggThreshold.setObjectName(_fromUtf8("BraggThreshold")) self.gridLayout_3.addWidget(self.BraggThreshold, 3, 1, 1, 1) self.label_6 = QtGui.QLabel(self.groupBox_2) self.label_6.setObjectName(_fromUtf8("label_6")) self.gridLayout_3.addWidget(self.label_6, 3, 0, 1, 1) self.FindBragg = QtGui.QComboBox(self.groupBox_2) self.FindBragg.setObjectName(_fromUtf8("FindBragg")) self.FindBragg.addItem(_fromUtf8("")) self.FindBragg.addItem(_fromUtf8("")) self.gridLayout_3.addWidget(self.FindBragg, 2, 1, 1, 1) self.label_5 = QtGui.QLabel(self.groupBox_2) self.label_5.setObjectName(_fromUtf8("label_5")) self.gridLayout_3.addWidget(self.label_5, 2, 0, 1, 1) self.verticalLayout_4.addLayout(self.gridLayout_3) self.gridLayout_12.addWidget(self.groupBox_2, 1, 0, 1, 1) self.groupBox_3 = QtGui.QGroupBox(self.widget_2) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.groupBox_3.sizePolicy().hasHeightForWidth()) self.groupBox_3.setSizePolicy(sizePolicy) self.groupBox_3.setMinimumSize(QtCore.QSize(300, 0)) self.groupBox_3.setMaximumSize(QtCore.QSize(300, 16777215)) self.groupBox_3.setObjectName(_fromUtf8("groupBox_3")) self.verticalLayout_5 = QtGui.QVBoxLayout(self.groupBox_3) self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5")) self.gridLayout_6 = QtGui.QGridLayout() self.gridLayout_6.setObjectName(_fromUtf8("gridLayout_6")) self.label_13 = QtGui.QLabel(self.groupBox_3) self.label_13.setObjectName(_fromUtf8("label_13")) self.gridLayout_6.addWidget(self.label_13, 0, 0, 1, 1) self.Detector = QtGui.QComboBox(self.groupBox_3) self.Detector.setObjectName(_fromUtf8("Detector")) self.Detector.addItem(_fromUtf8("")) self.Detector.addItem(_fromUtf8("")) self.Detector.addItem(_fromUtf8("")) self.Detector.addItem(_fromUtf8("")) self.Detector.addItem(_fromUtf8("")) self.Detector.addItem(_fromUtf8("")) self.Detector.addItem(_fromUtf8("")) self.gridLayout_6.addWidget(self.Detector, 0, 1, 1, 1) self.label_14 = QtGui.QLabel(self.groupBox_3) self.label_14.setObjectName(_fromUtf8("label_14")) self.gridLayout_6.addWidget(self.label_14, 1, 0, 1, 1) self.Wavelength = QtGui.QLineEdit(self.groupBox_3) self.Wavelength.setObjectName(_fromUtf8("Wavelength")) self.gridLayout_6.addWidget(self.Wavelength, 1, 1, 1, 1) self.label_15 = QtGui.QLabel(self.groupBox_3) self.label_15.setObjectName(_fromUtf8("label_15")) self.gridLayout_6.addWidget(self.label_15, 2, 0, 1, 1) self.distance = QtGui.QLineEdit(self.groupBox_3) self.distance.setObjectName(_fromUtf8("distance")) self.gridLayout_6.addWidget(self.distance, 2, 1, 1, 1) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.label_16 = QtGui.QLabel(self.groupBox_3) self.label_16.setObjectName(_fromUtf8("label_16")) self.horizontalLayout.addWidget(self.label_16) self.beamX = QtGui.QLineEdit(self.groupBox_3) self.beamX.setObjectName(_fromUtf8("beamX")) self.horizontalLayout.addWidget(self.beamX) self.label_17 = QtGui.QLabel(self.groupBox_3) self.label_17.setObjectName(_fromUtf8("label_17")) self.horizontalLayout.addWidget(self.label_17) self.beamY = QtGui.QLineEdit(self.groupBox_3) self.beamY.setText(_fromUtf8("")) self.beamY.setObjectName(_fromUtf8("beamY")) self.horizontalLayout.addWidget(self.beamY) self.gridLayout_6.addLayout(self.horizontalLayout, 3, 0, 1, 2) self.verticalLayout_5.addLayout(self.gridLayout_6) self.widget = QtGui.QWidget(self.groupBox_3) self.widget.setEnabled(True) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.widget.sizePolicy().hasHeightForWidth()) self.widget.setSizePolicy(sizePolicy) self.widget.setMinimumSize(QtCore.QSize(300, 0)) self.widget.setObjectName(_fromUtf8("widget")) self.horizontalLayout_2 = QtGui.QHBoxLayout(self.widget) self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.PlayButton_2 = QtGui.QPushButton(self.widget) self.PlayButton_2.setEnabled(False) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.PlayButton_2.sizePolicy().hasHeightForWidth()) self.PlayButton_2.setSizePolicy(sizePolicy) self.PlayButton_2.setMinimumSize(QtCore.QSize(100, 32)) self.PlayButton_2.setMaximumSize(QtCore.QSize(100, 32)) self.PlayButton_2.setObjectName(_fromUtf8("PlayButton_2")) self.horizontalLayout_2.addWidget(self.PlayButton_2) self.FindBraggsButton = QtGui.QPushButton(self.widget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.FindBraggsButton.sizePolicy().hasHeightForWidth()) self.FindBraggsButton.setSizePolicy(sizePolicy) self.FindBraggsButton.setMinimumSize(QtCore.QSize(100, 32)) self.FindBraggsButton.setMaximumSize(QtCore.QSize(100, 32)) self.FindBraggsButton.setObjectName(_fromUtf8("FindBraggsButton")) self.horizontalLayout_2.addWidget(self.FindBraggsButton) self.FindBraggsButton.raise_() self.PlayButton_2.raise_() self.verticalLayout_5.addWidget(self.widget) self.gridLayout_12.addWidget(self.groupBox_3, 2, 0, 1, 1) self.horizontalLayout_8.addWidget(self.widget_2) self.graphicsView = GraphicsLayoutWidget(self.centralwidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(1) sizePolicy.setVerticalStretch(1) sizePolicy.setHeightForWidth(self.graphicsView.sizePolicy().hasHeightForWidth()) self.graphicsView.setSizePolicy(sizePolicy) self.graphicsView.setMinimumSize(QtCore.QSize(800, 800)) self.graphicsView.setSizeIncrement(QtCore.QSize(1, 1)) self.graphicsView.setAcceptDrops(False) self.graphicsView.setObjectName(_fromUtf8("graphicsView")) self.horizontalLayout_8.addWidget(self.graphicsView) self.verticalLayout_8 = QtGui.QVBoxLayout() self.verticalLayout_8.setObjectName(_fromUtf8("verticalLayout_8")) self.groupBox_4 = QtGui.QGroupBox(self.centralwidget) self.groupBox_4.setObjectName(_fromUtf8("groupBox_4")) self.horizontalLayout_6 = QtGui.QHBoxLayout(self.groupBox_4) self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6")) self.gridLayout_4 = QtGui.QGridLayout() self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4")) self.Boost = QtGui.QLineEdit(self.groupBox_4) self.Boost.setObjectName(_fromUtf8("Boost")) self.gridLayout_4.addWidget(self.Boost, 0, 1, 1, 1) self.ColorMap = QtGui.QComboBox(self.groupBox_4) self.ColorMap.setObjectName(_fromUtf8("ColorMap")) self.ColorMap.addItem(_fromUtf8("")) self.ColorMap.addItem(_fromUtf8("")) self.ColorMap.addItem(_fromUtf8("")) self.ColorMap.addItem(_fromUtf8("")) self.ColorMap.addItem(_fromUtf8("")) self.ColorMap.addItem(_fromUtf8("")) self.ColorMap.addItem(_fromUtf8("")) self.ColorMap.addItem(_fromUtf8("")) self.ColorMap.addItem(_fromUtf8("")) self.ColorMap.addItem(_fromUtf8("")) self.ColorMap.addItem(_fromUtf8("")) self.gridLayout_4.addWidget(self.ColorMap, 3, 1, 1, 1) self.Min = QtGui.QLineEdit(self.groupBox_4) self.Min.setObjectName(_fromUtf8("Min")) self.gridLayout_4.addWidget(self.Min, 1, 1, 1, 1) self.label_9 = QtGui.QLabel(self.groupBox_4) self.label_9.setAlignment(QtCore.Qt.AlignCenter) self.label_9.setObjectName(_fromUtf8("label_9")) self.gridLayout_4.addWidget(self.label_9, 2, 0, 1, 1) self.label_11 = QtGui.QLabel(self.groupBox_4) self.label_11.setAlignment(QtCore.Qt.AlignCenter) self.label_11.setObjectName(_fromUtf8("label_11")) self.gridLayout_4.addWidget(self.label_11, 1, 0, 1, 1) self.label_12 = QtGui.QLabel(self.groupBox_4) self.label_12.setAlignment(QtCore.Qt.AlignCenter) self.label_12.setObjectName(_fromUtf8("label_12")) self.gridLayout_4.addWidget(self.label_12, 3, 0, 1, 1) self.Max = QtGui.QLineEdit(self.groupBox_4) self.Max.setObjectName(_fromUtf8("Max")) self.gridLayout_4.addWidget(self.Max, 2, 1, 1, 1) self.label_10 = QtGui.QLabel(self.groupBox_4) self.label_10.setAlignment(QtCore.Qt.AlignCenter) self.label_10.setObjectName(_fromUtf8("label_10")) self.gridLayout_4.addWidget(self.label_10, 0, 0, 1, 1) self.horizontalLayout_6.addLayout(self.gridLayout_4) self.verticalLayout_8.addWidget(self.groupBox_4) self.groupBox_5 = QtGui.QGroupBox(self.centralwidget) self.groupBox_5.setMinimumSize(QtCore.QSize(300, 0)) self.groupBox_5.setMaximumSize(QtCore.QSize(300, 16777215)) self.groupBox_5.setObjectName(_fromUtf8("groupBox_5")) self.verticalLayout_7 = QtGui.QVBoxLayout(self.groupBox_5) self.verticalLayout_7.setObjectName(_fromUtf8("verticalLayout_7")) self.treeWidget = TestListView(self.groupBox_5) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(1) sizePolicy.setHeightForWidth(self.treeWidget.sizePolicy().hasHeightForWidth()) self.treeWidget.setSizePolicy(sizePolicy) self.treeWidget.setMinimumSize(QtCore.QSize(274, 587)) self.treeWidget.setMaximumSize(QtCore.QSize(274, 16777215)) self.treeWidget.setAcceptDrops(True) self.treeWidget.setDragDropMode(QtGui.QAbstractItemView.DragDrop) self.treeWidget.setDefaultDropAction(QtCore.Qt.CopyAction) self.treeWidget.setAlternatingRowColors(False) self.treeWidget.setIndentation(20) self.treeWidget.setUniformRowHeights(True) self.treeWidget.setObjectName(_fromUtf8("treeWidget")) self.verticalLayout_7.addWidget(self.treeWidget) self.horizontalLayout_7 = QtGui.QHBoxLayout() self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7")) self.LoadResultsBut = QtGui.QPushButton(self.groupBox_5) self.LoadResultsBut.setObjectName(_fromUtf8("LoadResultsBut")) self.horizontalLayout_7.addWidget(self.LoadResultsBut) self.PlayButton = QtGui.QPushButton(self.groupBox_5) self.PlayButton.setObjectName(_fromUtf8("PlayButton")) self.horizontalLayout_7.addWidget(self.PlayButton) self.StopButton = QtGui.QPushButton(self.groupBox_5) self.StopButton.setObjectName(_fromUtf8("StopButton")) self.horizontalLayout_7.addWidget(self.StopButton) self.verticalLayout_7.addLayout(self.horizontalLayout_7) self.verticalLayout_8.addWidget(self.groupBox_5) self.horizontalLayout_8.addLayout(self.verticalLayout_8) self.gridLayout_10.addLayout(self.horizontalLayout_8, 0, 0, 1, 1) self.Log = QtGui.QPlainTextEdit(self.centralwidget) self.Log.setMaximumSize(QtCore.QSize(1500, 40)) self.Log.setObjectName(_fromUtf8("Log")) self.gridLayout_10.addWidget(self.Log, 1, 0, 1, 1) self.Log.raise_() MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtGui.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 1472, 22)) 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")) self.menuOptions = QtGui.QMenu(self.menubar) self.menuOptions.setObjectName(_fromUtf8("menuOptions")) self.menuBragg_Peaks_Form = QtGui.QMenu(self.menuOptions) self.menuBragg_Peaks_Form.setObjectName(_fromUtf8("menuBragg_Peaks_Form")) MainWindow.setMenuBar(self.menubar) self.statusbar = QtGui.QStatusBar(MainWindow) self.statusbar.setObjectName(_fromUtf8("statusbar")) MainWindow.setStatusBar(self.statusbar) self.actionLoad_Images = QtGui.QAction(MainWindow) self.actionLoad_Images.setObjectName(_fromUtf8("actionLoad_Images")) self.actionLoad_Geometry = QtGui.QAction(MainWindow) self.actionLoad_Geometry.setObjectName(_fromUtf8("actionLoad_Geometry")) self.actionClose = QtGui.QAction(MainWindow) self.actionClose.setObjectName(_fromUtf8("actionClose")) self.actionShow_Beam_Center = QtGui.QAction(MainWindow) self.actionShow_Beam_Center.setObjectName(_fromUtf8("actionShow_Beam_Center")) self.actionShow_resolution_rings = QtGui.QAction(MainWindow) self.actionShow_resolution_rings.setObjectName(_fromUtf8("actionShow_resolution_rings")) self.actionShow_Bragg_Peaks = QtGui.QAction(MainWindow) self.actionShow_Bragg_Peaks.setObjectName(_fromUtf8("actionShow_Bragg_Peaks")) self.actionBragg_Peaks_Size = QtGui.QAction(MainWindow) self.actionBragg_Peaks_Size.setObjectName(_fromUtf8("actionBragg_Peaks_Size")) self.actionRings = QtGui.QAction(MainWindow) self.actionRings.setObjectName(_fromUtf8("actionRings")) self.actionSquare = QtGui.QAction(MainWindow) self.actionSquare.setObjectName(_fromUtf8("actionSquare")) self.menuFile.addAction(self.actionLoad_Images) self.menuFile.addAction(self.actionLoad_Geometry) self.menuFile.addAction(self.actionClose) self.menuBragg_Peaks_Form.addAction(self.actionRings) self.menuBragg_Peaks_Form.addAction(self.actionSquare) self.menuOptions.addAction(self.actionShow_Beam_Center) self.menuOptions.addAction(self.actionShow_resolution_rings) self.menuOptions.addAction(self.actionShow_Bragg_Peaks) self.menuOptions.addAction(self.actionBragg_Peaks_Size) self.menuOptions.addAction(self.menuBragg_Peaks_Form.menuAction()) self.menubar.addAction(self.menuFile.menuAction()) self.menubar.addAction(self.menuEdit.menuAction()) self.menubar.addAction(self.menuOptions.menuAction()) self.retranslateUi(MainWindow) self.ExperimentTabWidget.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow", None)) self.groupBox.setTitle(_translate("MainWindow", "General Parameters", None)) self.label.setText(_translate("MainWindow", "Filename root", None)) self.label_2.setText(_translate("MainWindow", "File extension", None)) self.ExperimentTabWidget.setTabText(self.ExperimentTabWidget.indexOf(self.SSX), _translate("MainWindow", "SSX", None)) self.DataPathBut.setText(_translate("MainWindow", "Data", None)) self.ResPathBut.setText(_translate("MainWindow", "Results", None)) self.DarkPathBut.setText(_translate("MainWindow", "Dark", None)) self.MaskPathBut.setText(_translate("MainWindow", "Mask", None)) self.label_8.setText(_translate("MainWindow", "# Cpus", None)) self.label_18.setText(_translate("MainWindow", "Output Formats", None)) self.hdf5out.setText(_translate("MainWindow", "h5 crystFEL format", None)) self.cctbxout.setText(_translate("MainWindow", "cctbx.xfel pickle format", None)) self.cbfout.setText(_translate("MainWindow", "nXDS cbf format", None)) self.groupBox_2.setTitle(_translate("MainWindow", "HitFinder Parameters", None)) self.label_4.setText(_translate("MainWindow", "Min Number of pixels", None)) self.label_3.setText(_translate("MainWindow", "Threshold", None)) self.label_6.setText(_translate("MainWindow", "Bragg Threshold", None)) self.FindBragg.setItemText(0, _translate("MainWindow", "True", None)) self.FindBragg.setItemText(1, _translate("MainWindow", "False", None)) self.label_5.setText(_translate("MainWindow", "Find Bragg Peaks", None)) self.groupBox_3.setTitle(_translate("MainWindow", "Experimental Parameters", None)) self.label_13.setText(_translate("MainWindow", "Detector", None)) self.Detector.setItemText(0, _translate("MainWindow", "Pilatus1M", None)) self.Detector.setItemText(1, _translate("MainWindow", "Pilatus2M", None)) self.Detector.setItemText(2, _translate("MainWindow", "Pilatus6M", None)) self.Detector.setItemText(3, _translate("MainWindow", "EIger1M", None)) self.Detector.setItemText(4, _translate("MainWindow", "Eiger4M", None)) self.Detector.setItemText(5, _translate("MainWindow", "MPCCD", None)) self.Detector.setItemText(6, _translate("MainWindow", "CSPAD", None)) self.label_14.setText(_translate("MainWindow", "Wavelength (A)", None)) self.label_15.setText(_translate("MainWindow", "Detector distance (mm)", None)) self.label_16.setText(_translate("MainWindow", "Beam Center X", None)) self.label_17.setText(_translate("MainWindow", "Y", None)) self.PlayButton_2.setText(_translate("MainWindow", "Find Hits", None)) self.FindBraggsButton.setText(_translate("MainWindow", "Find Braggs", None)) self.groupBox_4.setTitle(_translate("MainWindow", "Viewer Settings", None)) self.Boost.setText(_translate("MainWindow", "1", None)) self.ColorMap.setItemText(0, _translate("MainWindow", "Hot", None)) self.ColorMap.setItemText(1, _translate("MainWindow", "Gray", None)) self.ColorMap.setItemText(2, _translate("MainWindow", "Gray_r", None)) self.ColorMap.setItemText(3, _translate("MainWindow", "YGB_r", None)) self.ColorMap.setItemText(4, _translate("MainWindow", "Blues", None)) self.ColorMap.setItemText(5, _translate("MainWindow", "Blues_r", None)) self.ColorMap.setItemText(6, _translate("MainWindow", "Reds", None)) self.ColorMap.setItemText(7, _translate("MainWindow", "Reds_r", None)) self.ColorMap.setItemText(8, _translate("MainWindow", "Jet", None)) self.ColorMap.setItemText(9, _translate("MainWindow", "Spectral", None)) self.ColorMap.setItemText(10, _translate("MainWindow", "Spectral_r", None)) self.Min.setText(_translate("MainWindow", "0", None)) self.label_9.setText(_translate("MainWindow", "Max Value", None)) self.label_11.setText(_translate("MainWindow", "Min Value", None)) self.label_12.setText(_translate("MainWindow", "Color maps", None)) self.Max.setText(_translate("MainWindow", "10", None)) self.label_10.setText(_translate("MainWindow", "Intensity Boost", None)) self.groupBox_5.setTitle(_translate("MainWindow", "Results", None)) self.treeWidget.headerItem().setText(0, _translate("MainWindow", "Filename", None)) self.treeWidget.headerItem().setText(1, _translate("MainWindow", "# Frames", None)) self.LoadResultsBut.setText(_translate("MainWindow", "Load Images...", None)) self.PlayButton.setText(_translate("MainWindow", "Play", None)) self.StopButton.setText(_translate("MainWindow", "Stop", None)) self.menuFile.setTitle(_translate("MainWindow", "File", None)) self.menuEdit.setTitle(_translate("MainWindow", "Edit", None)) self.menuOptions.setTitle(_translate("MainWindow", "Options", None)) self.menuBragg_Peaks_Form.setTitle(_translate("MainWindow", "Bragg Peaks Form", None)) self.actionLoad_Images.setText(_translate("MainWindow", "Load Images", None)) self.actionLoad_Geometry.setText(_translate("MainWindow", "Load geometry", None)) self.actionClose.setText(_translate("MainWindow", "Close", None)) self.actionShow_Beam_Center.setText(_translate("MainWindow", "Show Beam Center", None)) self.actionShow_resolution_rings.setText(_translate("MainWindow", "Show resolution rings", None)) self.actionShow_Bragg_Peaks.setText(_translate("MainWindow", "Show Bragg Peaks", None)) self.actionBragg_Peaks_Size.setText(_translate("MainWindow", "Bragg Peaks Size", None)) self.actionRings.setText(_translate("MainWindow", "Rings", None)) self.actionSquare.setText(_translate("MainWindow", "Square", None))
class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(555, 273) MainWindow.setMinimumSize(QtCore.QSize(0, 0)) MainWindow.setMaximumSize(QtCore.QSize(16777215, 16777215)) MainWindow.setStyleSheet("background-color: qlineargradient(spread:pad, x1:0.502975, y1:0, x2:0.473, y2:1, stop:0 rgba(2, 11, 16, 255), stop:1 rgba(4, 26, 37, 255));") self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.gridLayout_16 = QtWidgets.QGridLayout(self.centralwidget) self.gridLayout_16.setObjectName("gridLayout_16") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.regProfileView = GraphicsLayoutWidget(self.centralwidget) self.regProfileView.setMinimumSize(QtCore.QSize(0, 0)) self.regProfileView.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.regProfileView.setStyleSheet("color: white;\n" "border: 1px solid #4589b2;") self.regProfileView.setFrameShape(QtWidgets.QFrame.StyledPanel) self.regProfileView.setFrameShadow(QtWidgets.QFrame.Plain) self.regProfileView.setLineWidth(0) self.regProfileView.setMidLineWidth(0) self.regProfileView.setObjectName("regProfileView") self.horizontalLayout.addWidget(self.regProfileView) self.widget_5 = QtWidgets.QWidget(self.centralwidget) self.widget_5.setMinimumSize(QtCore.QSize(0, 0)) self.widget_5.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.widget_5.setStyleSheet("background: transparent;") self.widget_5.setObjectName("widget_5") self.gridLayout_7 = QtWidgets.QGridLayout(self.widget_5) self.gridLayout_7.setContentsMargins(0, 0, 0, 0) self.gridLayout_7.setObjectName("gridLayout_7") self.label_16 = QtWidgets.QLabel(self.widget_5) font = QtGui.QFont() font.setFamily("Futura BQ") font.setPointSize(11) self.label_16.setFont(font) self.label_16.setStyleSheet("color: white;background-color: transparent;") self.label_16.setAlignment(QtCore.Qt.AlignCenter) self.label_16.setObjectName("label_16") self.gridLayout_7.addWidget(self.label_16, 0, 1, 1, 1) self.textEdit = QtWidgets.QTextEdit(self.widget_5) font = QtGui.QFont() font.setFamily("Courier New") font.setPointSize(9) self.textEdit.setFont(font) self.textEdit.setStyleSheet("color: white;\n" "background: rgba(255,255,255,.2);\n" "padding: 5px;") self.textEdit.setFrameShape(QtWidgets.QFrame.NoFrame) self.textEdit.setObjectName("textEdit") self.gridLayout_7.addWidget(self.textEdit, 2, 1, 1, 1) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.set = QtWidgets.QPushButton(self.widget_5) font = QtGui.QFont() font.setFamily("Futura BQ") font.setPointSize(9) self.set.setFont(font) self.set.setStyleSheet("QPushButton{\n" " color: white;\n" " background-color: transparent;\n" " border: 1px solid #4589b2;\n" " padding: 5px;\n" "}\n" "\n" "QPushButton::hover{\n" " background-color: rgba(255,255,255,.2);\n" "}\n" "\n" "QPushButton::pressed{\n" " border: 1px solid #00ce35;\n" " background-color: rgba(0,0,0,.3);\n" "}") self.set.setObjectName("set") self.horizontalLayout_2.addWidget(self.set) self.syntaxState = QtWidgets.QLabel(self.widget_5) self.syntaxState.setMaximumSize(QtCore.QSize(30, 16777215)) font = QtGui.QFont() font.setFamily("Arial") font.setPointSize(10) self.syntaxState.setFont(font) self.syntaxState.setStyleSheet("background-color: #00ce35;\n" "border-radius: 15px;") self.syntaxState.setText("") self.syntaxState.setAlignment(QtCore.Qt.AlignCenter) self.syntaxState.setObjectName("syntaxState") self.horizontalLayout_2.addWidget(self.syntaxState) self.gridLayout_7.addLayout(self.horizontalLayout_2, 4, 1, 1, 1) self.horizontalLayout.addWidget(self.widget_5) self.gridLayout_16.addLayout(self.horizontalLayout, 1, 0, 1, 1) MainWindow.setCentralWidget(self.centralwidget) self.retranslateUi(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): _translate = QtCore.QCoreApplication.translate MainWindow.setWindowTitle(_translate("MainWindow", "Test Definition Dialog")) self.label_16.setText(_translate("MainWindow", "REGULATOR SCRIPT")) self.textEdit.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" "p, li { white-space: pre-wrap; }\n" "</style></head><body style=\" font-family:\'Courier New\'; font-size:9pt; font-weight:400; font-style:normal;\">\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" color:#ffffff;\">import math</span></p>\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" color:#ffffff;\">end=5</span></p>\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'MS Shell Dlg 2\'; font-size:8pt; color:#ffffff;\">if t >= 0 and t<end:</span></p>\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'MS Shell Dlg 2\'; font-size:8pt; color:#ffffff;\"> return math.exp(-t)</span></p>\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'MS Shell Dlg 2\'; font-size:8pt; color:#ffffff;\">if t >= 5:</span></p>\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'MS Shell Dlg 2\'; font-size:8pt; color:#ffffff;\"> return 0</span></p></body></html>")) self.set.setText(_translate("MainWindow", "SET"))
class Ui_Qt_CV_MainWindow(object): def setupUi(self, Qt_CV_MainWindow): Qt_CV_MainWindow.setObjectName("Qt_CV_MainWindow") Qt_CV_MainWindow.resize(1158, 834) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(Qt_CV_MainWindow.sizePolicy().hasHeightForWidth()) Qt_CV_MainWindow.setSizePolicy(sizePolicy) Qt_CV_MainWindow.setMouseTracking(True) Qt_CV_MainWindow.setAcceptDrops(False) self.centralwidget = QtGui.QWidget(Qt_CV_MainWindow) self.centralwidget.setObjectName("centralwidget") self.layoutWidget = QtGui.QWidget(self.centralwidget) self.layoutWidget.setGeometry(QtCore.QRect(480, 50, 671, 41)) self.layoutWidget.setObjectName("layoutWidget") self.horizontalLayout = QtGui.QHBoxLayout(self.layoutWidget) self.horizontalLayout.setContentsMargins(0, 0, 0, 0) self.horizontalLayout.setObjectName("horizontalLayout") self.file_edit = QtGui.QLineEdit(self.layoutWidget) self.file_edit.setObjectName("file_edit") self.horizontalLayout.addWidget(self.file_edit) self.file_button = QtGui.QPushButton(self.layoutWidget) self.file_button.setObjectName("file_button") self.horizontalLayout.addWidget(self.file_button) self.pic_view = GraphicsLayoutWidget(self.centralwidget) self.pic_view.setGeometry(QtCore.QRect(599, 210, 551, 561)) self.pic_view.setViewportUpdateMode(QtGui.QGraphicsView.FullViewportUpdate) self.pic_view.setObjectName("pic_view") self.exec_button = QtGui.QPushButton(self.centralwidget) self.exec_button.setGeometry(QtCore.QRect(840, 10, 81, 31)) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.exec_button.sizePolicy().hasHeightForWidth()) self.exec_button.setSizePolicy(sizePolicy) self.exec_button.setObjectName("exec_button") self.file_scrollbar = QtGui.QScrollBar(self.centralwidget) self.file_scrollbar.setGeometry(QtCore.QRect(480, 190, 431, 20)) self.file_scrollbar.setProperty("value", 50) self.file_scrollbar.setOrientation(QtCore.Qt.Horizontal) self.file_scrollbar.setObjectName("file_scrollbar") self.layoutWidget1 = QtGui.QWidget(self.centralwidget) self.layoutWidget1.setGeometry(QtCore.QRect(20, 354, 120, 71)) self.layoutWidget1.setObjectName("layoutWidget1") self.verticalLayout = QtGui.QVBoxLayout(self.layoutWidget1) self.verticalLayout.setContentsMargins(0, 0, 0, 0) self.verticalLayout.setObjectName("verticalLayout") self.label = QtGui.QLabel(self.layoutWidget1) font = QtGui.QFont() font.setPointSize(10) self.label.setFont(font) self.label.setObjectName("label") self.verticalLayout.addWidget(self.label) self.label_2 = QtGui.QLabel(self.layoutWidget1) font = QtGui.QFont() font.setPointSize(10) self.label_2.setFont(font) self.label_2.setObjectName("label_2") self.verticalLayout.addWidget(self.label_2) self.hist_view = PlotWidget(self.centralwidget) self.hist_view.setGeometry(QtCore.QRect(477, 210, 121, 561)) self.hist_view.setObjectName("hist_view") self.line = QtGui.QFrame(self.centralwidget) self.line.setGeometry(QtCore.QRect(0, 300, 471, 16)) self.line.setFrameShape(QtGui.QFrame.HLine) self.line.setFrameShadow(QtGui.QFrame.Sunken) self.line.setObjectName("line") self.color_combo = QtGui.QComboBox(self.centralwidget) self.color_combo.setGeometry(QtCore.QRect(170, 200, 271, 22)) self.color_combo.setObjectName("color_combo") self.color_combo.addItem("") self.color_combo.addItem("") self.color_combo.addItem("") self.color_combo.addItem("") self.color_combo.addItem("") self.eject_edge_or_not = QtGui.QCheckBox(self.centralwidget) self.eject_edge_or_not.setGeometry(QtCore.QRect(20, 620, 171, 19)) self.eject_edge_or_not.setObjectName("eject_edge_or_not") self.label_5 = QtGui.QLabel(self.centralwidget) self.label_5.setGeometry(QtCore.QRect(20, 200, 81, 16)) font = QtGui.QFont() font.setPointSize(10) self.label_5.setFont(font) self.label_5.setObjectName("label_5") self.label_6 = QtGui.QLabel(self.centralwidget) self.label_6.setGeometry(QtCore.QRect(20, 170, 81, 21)) font = QtGui.QFont() font.setPointSize(10) self.label_6.setFont(font) self.label_6.setObjectName("label_6") self.smooth_combo = QtGui.QComboBox(self.centralwidget) self.smooth_combo.setGeometry(QtCore.QRect(170, 170, 271, 22)) self.smooth_combo.setObjectName("smooth_combo") self.smooth_combo.addItem("") self.smooth_combo.addItem("") self.smooth_combo.addItem("") self.smooth_combo.addItem("") self.smooth_combo.addItem("") self.line_2 = QtGui.QFrame(self.centralwidget) self.line_2.setGeometry(QtCore.QRect(0, 440, 471, 16)) self.line_2.setFrameShape(QtGui.QFrame.HLine) self.line_2.setFrameShadow(QtGui.QFrame.Sunken) self.line_2.setObjectName("line_2") self.label_7 = QtGui.QLabel(self.centralwidget) self.label_7.setGeometry(QtCore.QRect(10, 440, 321, 46)) font = QtGui.QFont() font.setFamily("Arial") font.setPointSize(12) font.setWeight(75) font.setUnderline(True) font.setBold(True) self.label_7.setFont(font) self.label_7.setTextFormat(QtCore.Qt.RichText) self.label_7.setObjectName("label_7") self.label_8 = QtGui.QLabel(self.centralwidget) self.label_8.setGeometry(QtCore.QRect(10, 320, 131, 31)) font = QtGui.QFont() font.setFamily("Arial") font.setPointSize(12) font.setWeight(75) font.setUnderline(True) font.setBold(True) self.label_8.setFont(font) self.label_8.setTextFormat(QtCore.Qt.RichText) self.label_8.setObjectName("label_8") self.label_9 = QtGui.QLabel(self.centralwidget) self.label_9.setGeometry(QtCore.QRect(10, 120, 221, 46)) font = QtGui.QFont() font.setFamily("Arial") font.setPointSize(12) font.setWeight(75) font.setUnderline(True) font.setBold(True) self.label_9.setFont(font) self.label_9.setTextFormat(QtCore.Qt.RichText) self.label_9.setObjectName("label_9") self.line_3 = QtGui.QFrame(self.centralwidget) self.line_3.setGeometry(QtCore.QRect(0, 110, 471, 16)) self.line_3.setFrameShape(QtGui.QFrame.HLine) self.line_3.setFrameShadow(QtGui.QFrame.Sunken) self.line_3.setObjectName("line_3") self.label_10 = QtGui.QLabel(self.centralwidget) self.label_10.setGeometry(QtCore.QRect(10, 0, 221, 46)) font = QtGui.QFont() font.setFamily("Arial") font.setPointSize(12) font.setWeight(75) font.setUnderline(True) font.setBold(True) self.label_10.setFont(font) self.label_10.setTextFormat(QtCore.Qt.RichText) self.label_10.setObjectName("label_10") self.line_4 = QtGui.QFrame(self.centralwidget) self.line_4.setGeometry(QtCore.QRect(0, 560, 471, 16)) self.line_4.setFrameShape(QtGui.QFrame.HLine) self.line_4.setFrameShadow(QtGui.QFrame.Sunken) self.line_4.setObjectName("line_4") self.label_12 = QtGui.QLabel(self.centralwidget) self.label_12.setGeometry(QtCore.QRect(10, 570, 171, 46)) font = QtGui.QFont() font.setFamily("Arial") font.setPointSize(12) font.setWeight(75) font.setUnderline(True) font.setBold(True) self.label_12.setFont(font) self.label_12.setTextFormat(QtCore.Qt.RichText) self.label_12.setObjectName("label_12") self.layoutWidget2 = QtGui.QWidget(self.centralwidget) self.layoutWidget2.setGeometry(QtCore.QRect(20, 483, 143, 71)) self.layoutWidget2.setObjectName("layoutWidget2") self.verticalLayout_6 = QtGui.QVBoxLayout(self.layoutWidget2) self.verticalLayout_6.setContentsMargins(0, 0, 0, 0) self.verticalLayout_6.setObjectName("verticalLayout_6") self.label_3 = QtGui.QLabel(self.layoutWidget2) font = QtGui.QFont() font.setPointSize(10) self.label_3.setFont(font) self.label_3.setObjectName("label_3") self.verticalLayout_6.addWidget(self.label_3) self.label_4 = QtGui.QLabel(self.layoutWidget2) font = QtGui.QFont() font.setPointSize(10) self.label_4.setFont(font) self.label_4.setObjectName("label_4") self.verticalLayout_6.addWidget(self.label_4) self.threshold1_edit = QtGui.QLineEdit(self.centralwidget) self.threshold1_edit.setGeometry(QtCore.QRect(190, 354, 61, 31)) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.threshold1_edit.sizePolicy().hasHeightForWidth()) self.threshold1_edit.setSizePolicy(sizePolicy) self.threshold1_edit.setMaxLength(255) self.threshold1_edit.setAlignment(QtCore.Qt.AlignCenter) self.threshold1_edit.setObjectName("threshold1_edit") self.threshold2_edit = QtGui.QLineEdit(self.centralwidget) self.threshold2_edit.setGeometry(QtCore.QRect(190, 394, 61, 31)) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.threshold2_edit.sizePolicy().hasHeightForWidth()) self.threshold2_edit.setSizePolicy(sizePolicy) self.threshold2_edit.setMaxLength(254) self.threshold2_edit.setAlignment(QtCore.Qt.AlignCenter) self.threshold2_edit.setObjectName("threshold2_edit") self.threshold1_slider = QtGui.QSlider(self.centralwidget) self.threshold1_slider.setGeometry(QtCore.QRect(260, 359, 179, 19)) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.threshold1_slider.sizePolicy().hasHeightForWidth()) self.threshold1_slider.setSizePolicy(sizePolicy) self.threshold1_slider.setMaximum(255) self.threshold1_slider.setProperty("value", 160) self.threshold1_slider.setOrientation(QtCore.Qt.Horizontal) self.threshold1_slider.setObjectName("threshold1_slider") self.threshold2_slider = QtGui.QSlider(self.centralwidget) self.threshold2_slider.setGeometry(QtCore.QRect(260, 400, 179, 19)) self.threshold2_slider.setMaximum(254) self.threshold2_slider.setProperty("value", 80) self.threshold2_slider.setOrientation(QtCore.Qt.Horizontal) self.threshold2_slider.setObjectName("threshold2_slider") self.min_area_edit = QtGui.QLineEdit(self.centralwidget) self.min_area_edit.setGeometry(QtCore.QRect(190, 523, 59, 31)) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.min_area_edit.sizePolicy().hasHeightForWidth()) self.min_area_edit.setSizePolicy(sizePolicy) self.min_area_edit.setMaxLength(1000) self.min_area_edit.setAlignment(QtCore.Qt.AlignCenter) self.min_area_edit.setObjectName("min_area_edit") self.max_area_edit = QtGui.QLineEdit(self.centralwidget) self.max_area_edit.setGeometry(QtCore.QRect(190, 483, 61, 31)) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.max_area_edit.sizePolicy().hasHeightForWidth()) self.max_area_edit.setSizePolicy(sizePolicy) self.max_area_edit.setAlignment(QtCore.Qt.AlignCenter) self.max_area_edit.setObjectName("max_area_edit") self.max_area_slider = QtGui.QSlider(self.centralwidget) self.max_area_slider.setGeometry(QtCore.QRect(260, 488, 179, 19)) self.max_area_slider.setMaximum(90000) self.max_area_slider.setProperty("value", 5000) self.max_area_slider.setOrientation(QtCore.Qt.Horizontal) self.max_area_slider.setObjectName("max_area_slider") self.min_area_slider = QtGui.QSlider(self.centralwidget) self.min_area_slider.setGeometry(QtCore.QRect(260, 530, 179, 19)) self.min_area_slider.setMaximum(90000) self.min_area_slider.setProperty("value", 120) self.min_area_slider.setOrientation(QtCore.Qt.Horizontal) self.min_area_slider.setObjectName("min_area_slider") self.form_view_or_image = QtGui.QCheckBox(self.centralwidget) self.form_view_or_image.setGeometry(QtCore.QRect(20, 660, 181, 19)) self.form_view_or_image.setObjectName("form_view_or_image") self.size_edit = QtGui.QLineEdit(self.centralwidget) self.size_edit.setGeometry(QtCore.QRect(500, 11, 131, 31)) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.size_edit.sizePolicy().hasHeightForWidth()) self.size_edit.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setPointSize(12) self.size_edit.setFont(font) self.size_edit.setMaxLength(1000) self.size_edit.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.size_edit.setObjectName("size_edit") self.label_13 = QtGui.QLabel(self.centralwidget) self.label_13.setGeometry(QtCore.QRect(640, 0, 71, 31)) font = QtGui.QFont() font.setPointSize(10) self.label_13.setFont(font) self.label_13.setObjectName("label_13") self.sub_view = GraphicsLayoutWidget(self.centralwidget) self.sub_view.setGeometry(QtCore.QRect(246, 570, 231, 201)) self.sub_view.setObjectName("sub_view") self.EBA_button = QtGui.QPushButton(self.centralwidget) self.EBA_button.setGeometry(QtCore.QRect(930, 10, 81, 31)) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.EBA_button.sizePolicy().hasHeightForWidth()) self.EBA_button.setSizePolicy(sizePolicy) self.EBA_button.setObjectName("EBA_button") self.label_14 = QtGui.QLabel(self.centralwidget) self.label_14.setGeometry(QtCore.QRect(20, 730, 81, 21)) font = QtGui.QFont() font.setPointSize(10) self.label_14.setFont(font) self.label_14.setObjectName("label_14") self.extention_combo = QtGui.QComboBox(self.centralwidget) self.extention_combo.setGeometry(QtCore.QRect(100, 730, 61, 22)) self.extention_combo.setObjectName("extention_combo") self.extention_combo.addItem("") self.extention_combo.addItem("") self.extention_combo.addItem("") self.label_15 = QtGui.QLabel(self.centralwidget) self.label_15.setGeometry(QtCore.QRect(20, 230, 81, 21)) font = QtGui.QFont() font.setPointSize(10) self.label_15.setFont(font) self.label_15.setObjectName("label_15") self.smooth_combo_3 = QtGui.QComboBox(self.centralwidget) self.smooth_combo_3.setGeometry(QtCore.QRect(170, 230, 271, 22)) self.smooth_combo_3.setObjectName("smooth_combo_3") self.smooth_combo_3.addItem("") self.smooth_combo_3.addItem("") self.label_16 = QtGui.QLabel(self.centralwidget) self.label_16.setGeometry(QtCore.QRect(20, 260, 81, 21)) font = QtGui.QFont() font.setPointSize(10) self.label_16.setFont(font) self.label_16.setObjectName("label_16") self.layoutWidget_2 = QtGui.QWidget(self.centralwidget) self.layoutWidget_2.setGeometry(QtCore.QRect(170, 250, 271, 41)) self.layoutWidget_2.setObjectName("layoutWidget_2") self.horizontalLayout_2 = QtGui.QHBoxLayout(self.layoutWidget_2) self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0) self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.file_edit_2 = QtGui.QLineEdit(self.layoutWidget_2) self.file_edit_2.setObjectName("file_edit_2") self.horizontalLayout_2.addWidget(self.file_edit_2) self.file_button_2 = QtGui.QPushButton(self.layoutWidget_2) self.file_button_2.setObjectName("file_button_2") self.horizontalLayout_2.addWidget(self.file_button_2) self.label_17 = QtGui.QLabel(self.centralwidget) self.label_17.setGeometry(QtCore.QRect(640, 30, 141, 20)) self.label_17.setObjectName("label_17") self.tableWidget = QtGui.QTableWidget(self.centralwidget) self.tableWidget.setGeometry(QtCore.QRect(480, 100, 671, 81)) self.tableWidget.setTextElideMode(QtCore.Qt.ElideMiddle) self.tableWidget.setRowCount(2) self.tableWidget.setColumnCount(15) self.tableWidget.setObjectName("tableWidget") self.tableWidget.setColumnCount(15) self.tableWidget.setRowCount(2) 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.setItem(0, 8, item) item = QtGui.QTableWidgetItem() self.tableWidget.setItem(0, 9, item) item = QtGui.QTableWidgetItem() self.tableWidget.setItem(0, 10, item) item = QtGui.QTableWidgetItem() self.tableWidget.setItem(1, 8, item) item = QtGui.QTableWidgetItem() self.tableWidget.setItem(1, 9, item) item = QtGui.QTableWidgetItem() self.tableWidget.setItem(1, 10, item) self.tableWidget.horizontalHeader().setDefaultSectionSize(100) self.tableWidget.horizontalHeader().setMinimumSectionSize(21) self.tableWidget.verticalHeader().setDefaultSectionSize(29) self.tableWidget.verticalHeader().setMinimumSectionSize(13) self.label_18 = QtGui.QLabel(self.centralwidget) self.label_18.setGeometry(QtCore.QRect(20, 44, 101, 16)) font = QtGui.QFont() font.setPointSize(10) self.label_18.setFont(font) self.label_18.setObjectName("label_18") self.save_mode_combo = QtGui.QComboBox(self.centralwidget) self.save_mode_combo.setGeometry(QtCore.QRect(170, 40, 271, 22)) self.save_mode_combo.setObjectName("save_mode_combo") self.save_mode_combo.addItem("") self.save_mode_combo.addItem("") self.form_view_or_image_2 = QtGui.QCheckBox(self.centralwidget) self.form_view_or_image_2.setGeometry(QtCore.QRect(20, 700, 141, 19)) self.form_view_or_image_2.setObjectName("form_view_or_image_2") self.label_19 = QtGui.QLabel(self.centralwidget) self.label_19.setGeometry(QtCore.QRect(20, 70, 101, 16)) font = QtGui.QFont() font.setPointSize(10) self.label_19.setFont(font) self.label_19.setObjectName("label_19") self.save_picture_combo = QtGui.QComboBox(self.centralwidget) self.save_picture_combo.setGeometry(QtCore.QRect(170, 70, 271, 22)) self.save_picture_combo.setObjectName("save_picture_combo") self.save_picture_combo.addItem("") self.save_picture_combo.addItem("") self.save_picture_combo.addItem("") Qt_CV_MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtGui.QMenuBar(Qt_CV_MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 1158, 24)) self.menubar.setObjectName("menubar") self.menuFile = QtGui.QMenu(self.menubar) self.menuFile.setObjectName("menuFile") self.menuTool = QtGui.QMenu(self.menubar) self.menuTool.setObjectName("menuTool") Qt_CV_MainWindow.setMenuBar(self.menubar) self.statusbar = QtGui.QStatusBar(Qt_CV_MainWindow) self.statusbar.setObjectName("statusbar") Qt_CV_MainWindow.setStatusBar(self.statusbar) self.actionQuit = QtGui.QAction(Qt_CV_MainWindow) self.actionQuit.setObjectName("actionQuit") self.actionSeparate_picture = QtGui.QAction(Qt_CV_MainWindow) self.actionSeparate_picture.setObjectName("actionSeparate_picture") self.menuFile.addAction(self.actionQuit) self.menuTool.addAction(self.actionSeparate_picture) self.menubar.addAction(self.menuFile.menuAction()) self.menubar.addAction(self.menuTool.menuAction()) self.retranslateUi(Qt_CV_MainWindow) QtCore.QObject.connect(self.actionQuit, QtCore.SIGNAL("triggered()"), Qt_CV_MainWindow.close) QtCore.QMetaObject.connectSlotsByName(Qt_CV_MainWindow) def retranslateUi(self, Qt_CV_MainWindow): Qt_CV_MainWindow.setWindowTitle(QtGui.QApplication.translate("Qt_CV_MainWindow", "Qt_OpenCV", None, QtGui.QApplication.UnicodeUTF8)) self.file_button.setText(QtGui.QApplication.translate("Qt_CV_MainWindow", "File", None, QtGui.QApplication.UnicodeUTF8)) self.exec_button.setText(QtGui.QApplication.translate("Qt_CV_MainWindow", "Execute", None, QtGui.QApplication.UnicodeUTF8)) self.label.setText(QtGui.QApplication.translate("Qt_CV_MainWindow", "High Threshold", None, QtGui.QApplication.UnicodeUTF8)) self.label_2.setText(QtGui.QApplication.translate("Qt_CV_MainWindow", "Low Threshold", None, QtGui.QApplication.UnicodeUTF8)) self.color_combo.setItemText(0, QtGui.QApplication.translate("Qt_CV_MainWindow", "None (Gray Scale)", None, QtGui.QApplication.UnicodeUTF8)) self.color_combo.setItemText(1, QtGui.QApplication.translate("Qt_CV_MainWindow", "Red (Extract Red Color)", None, QtGui.QApplication.UnicodeUTF8)) self.color_combo.setItemText(2, QtGui.QApplication.translate("Qt_CV_MainWindow", "Green(Extract Green Color)", None, QtGui.QApplication.UnicodeUTF8)) self.color_combo.setItemText(3, QtGui.QApplication.translate("Qt_CV_MainWindow", "Blue (Extract Blue Color)", None, QtGui.QApplication.UnicodeUTF8)) self.color_combo.setItemText(4, QtGui.QApplication.translate("Qt_CV_MainWindow", "Yellow (Extract Yellow Color)", None, QtGui.QApplication.UnicodeUTF8)) self.eject_edge_or_not.setText(QtGui.QApplication.translate("Qt_CV_MainWindow", "Eject Edge Contours", None, QtGui.QApplication.UnicodeUTF8)) self.label_5.setText(QtGui.QApplication.translate("Qt_CV_MainWindow", "Color filter", None, QtGui.QApplication.UnicodeUTF8)) self.label_6.setText(QtGui.QApplication.translate("Qt_CV_MainWindow", "Smoothing", None, QtGui.QApplication.UnicodeUTF8)) self.smooth_combo.setItemText(0, QtGui.QApplication.translate("Qt_CV_MainWindow", "None", None, QtGui.QApplication.UnicodeUTF8)) self.smooth_combo.setItemText(1, QtGui.QApplication.translate("Qt_CV_MainWindow", "Bilateral", None, QtGui.QApplication.UnicodeUTF8)) self.smooth_combo.setItemText(2, QtGui.QApplication.translate("Qt_CV_MainWindow", "GaussianBlur", None, QtGui.QApplication.UnicodeUTF8)) self.smooth_combo.setItemText(3, QtGui.QApplication.translate("Qt_CV_MainWindow", "medianBlur ", None, QtGui.QApplication.UnicodeUTF8)) self.smooth_combo.setItemText(4, QtGui.QApplication.translate("Qt_CV_MainWindow", "Blur", None, QtGui.QApplication.UnicodeUTF8)) self.label_7.setText(QtGui.QApplication.translate("Qt_CV_MainWindow", "Range of Contour Areas", None, QtGui.QApplication.UnicodeUTF8)) self.label_8.setText(QtGui.QApplication.translate("Qt_CV_MainWindow", "Threshold", None, QtGui.QApplication.UnicodeUTF8)) self.label_9.setText(QtGui.QApplication.translate("Qt_CV_MainWindow", "Filter & Smoothig", None, QtGui.QApplication.UnicodeUTF8)) self.label_10.setText(QtGui.QApplication.translate("Qt_CV_MainWindow", "Execute Mode", None, QtGui.QApplication.UnicodeUTF8)) self.label_12.setText(QtGui.QApplication.translate("Qt_CV_MainWindow", "Other Settings", None, QtGui.QApplication.UnicodeUTF8)) self.label_3.setText(QtGui.QApplication.translate("Qt_CV_MainWindow", "Max Area Size [pix]", None, QtGui.QApplication.UnicodeUTF8)) self.label_4.setText(QtGui.QApplication.translate("Qt_CV_MainWindow", "Min Area Size [pix]", None, QtGui.QApplication.UnicodeUTF8)) self.threshold1_edit.setText(QtGui.QApplication.translate("Qt_CV_MainWindow", "160", None, QtGui.QApplication.UnicodeUTF8)) self.threshold2_edit.setText(QtGui.QApplication.translate("Qt_CV_MainWindow", "80", None, QtGui.QApplication.UnicodeUTF8)) self.min_area_edit.setText(QtGui.QApplication.translate("Qt_CV_MainWindow", "120", None, QtGui.QApplication.UnicodeUTF8)) self.max_area_edit.setText(QtGui.QApplication.translate("Qt_CV_MainWindow", "5000", None, QtGui.QApplication.UnicodeUTF8)) self.form_view_or_image.setText(QtGui.QApplication.translate("Qt_CV_MainWindow", "Adjust View from Image", None, QtGui.QApplication.UnicodeUTF8)) self.size_edit.setText(QtGui.QApplication.translate("Qt_CV_MainWindow", "9", None, QtGui.QApplication.UnicodeUTF8)) self.label_13.setText(QtGui.QApplication.translate("Qt_CV_MainWindow", "μm ", None, QtGui.QApplication.UnicodeUTF8)) self.EBA_button.setText(QtGui.QApplication.translate("Qt_CV_MainWindow", "EBA", None, QtGui.QApplication.UnicodeUTF8)) self.label_14.setText(QtGui.QApplication.translate("Qt_CV_MainWindow", "Extention", None, QtGui.QApplication.UnicodeUTF8)) self.extention_combo.setItemText(0, QtGui.QApplication.translate("Qt_CV_MainWindow", "*.jpg", None, QtGui.QApplication.UnicodeUTF8)) self.extention_combo.setItemText(1, QtGui.QApplication.translate("Qt_CV_MainWindow", "*.bmp", None, QtGui.QApplication.UnicodeUTF8)) self.extention_combo.setItemText(2, QtGui.QApplication.translate("Qt_CV_MainWindow", "*.tiff", None, QtGui.QApplication.UnicodeUTF8)) self.label_15.setText(QtGui.QApplication.translate("Qt_CV_MainWindow", "Edge", None, QtGui.QApplication.UnicodeUTF8)) self.smooth_combo_3.setItemText(0, QtGui.QApplication.translate("Qt_CV_MainWindow", "None", None, QtGui.QApplication.UnicodeUTF8)) self.smooth_combo_3.setItemText(1, QtGui.QApplication.translate("Qt_CV_MainWindow", "Canny", None, QtGui.QApplication.UnicodeUTF8)) self.label_16.setText(QtGui.QApplication.translate("Qt_CV_MainWindow", "Shading", None, QtGui.QApplication.UnicodeUTF8)) self.file_button_2.setText(QtGui.QApplication.translate("Qt_CV_MainWindow", "File", None, QtGui.QApplication.UnicodeUTF8)) self.label_17.setText(QtGui.QApplication.translate("Qt_CV_MainWindow", "[One side of a pixcel]", None, QtGui.QApplication.UnicodeUTF8)) self.tableWidget.horizontalHeaderItem(0).setText(QtGui.QApplication.translate("Qt_CV_MainWindow", "File Name", None, QtGui.QApplication.UnicodeUTF8)) self.tableWidget.horizontalHeaderItem(1).setText(QtGui.QApplication.translate("Qt_CV_MainWindow", "Sum", None, QtGui.QApplication.UnicodeUTF8)) self.tableWidget.horizontalHeaderItem(2).setText(QtGui.QApplication.translate("Qt_CV_MainWindow", "Average", None, QtGui.QApplication.UnicodeUTF8)) self.tableWidget.horizontalHeaderItem(3).setText(QtGui.QApplication.translate("Qt_CV_MainWindow", "Var", None, QtGui.QApplication.UnicodeUTF8)) self.tableWidget.horizontalHeaderItem(4).setText(QtGui.QApplication.translate("Qt_CV_MainWindow", "Std", None, QtGui.QApplication.UnicodeUTF8)) self.tableWidget.horizontalHeaderItem(5).setText(QtGui.QApplication.translate("Qt_CV_MainWindow", "Counts", None, QtGui.QApplication.UnicodeUTF8)) self.tableWidget.horizontalHeaderItem(6).setText(QtGui.QApplication.translate("Qt_CV_MainWindow", "ppm", None, QtGui.QApplication.UnicodeUTF8)) self.tableWidget.horizontalHeaderItem(7).setText(QtGui.QApplication.translate("Qt_CV_MainWindow", "μ㎡/㎡", None, QtGui.QApplication.UnicodeUTF8)) __sortingEnabled = self.tableWidget.isSortingEnabled() self.tableWidget.setSortingEnabled(False) self.tableWidget.setSortingEnabled(__sortingEnabled) self.label_18.setText(QtGui.QApplication.translate("Qt_CV_MainWindow", "Save as CSV", None, QtGui.QApplication.UnicodeUTF8)) self.save_mode_combo.setItemText(0, QtGui.QApplication.translate("Qt_CV_MainWindow", "CSV:Distribution(Histogram)", None, QtGui.QApplication.UnicodeUTF8)) self.save_mode_combo.setItemText(1, QtGui.QApplication.translate("Qt_CV_MainWindow", "CSV:Count & Size", None, QtGui.QApplication.UnicodeUTF8)) self.form_view_or_image_2.setText(QtGui.QApplication.translate("Qt_CV_MainWindow", "Watershed", None, QtGui.QApplication.UnicodeUTF8)) self.label_19.setText(QtGui.QApplication.translate("Qt_CV_MainWindow", "Save Pictures", None, QtGui.QApplication.UnicodeUTF8)) self.save_picture_combo.setItemText(0, QtGui.QApplication.translate("Qt_CV_MainWindow", "None", None, QtGui.QApplication.UnicodeUTF8)) self.save_picture_combo.setItemText(1, QtGui.QApplication.translate("Qt_CV_MainWindow", "Contours Only", None, QtGui.QApplication.UnicodeUTF8)) self.save_picture_combo.setItemText(2, QtGui.QApplication.translate("Qt_CV_MainWindow", "Contours and raw picture", None, QtGui.QApplication.UnicodeUTF8)) self.menuFile.setTitle(QtGui.QApplication.translate("Qt_CV_MainWindow", "File", None, QtGui.QApplication.UnicodeUTF8)) self.menuTool.setTitle(QtGui.QApplication.translate("Qt_CV_MainWindow", "Tool", None, QtGui.QApplication.UnicodeUTF8)) self.actionQuit.setText(QtGui.QApplication.translate("Qt_CV_MainWindow", "Quit", None, QtGui.QApplication.UnicodeUTF8)) self.actionSeparate_picture.setText(QtGui.QApplication.translate("Qt_CV_MainWindow", "separate picture", None, QtGui.QApplication.UnicodeUTF8))
class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName(_fromUtf8("MainWindow")) MainWindow.resize(1348, 946) MainWindow.setMinimumSize(QtCore.QSize(0, 0)) MainWindow.setStyleSheet(_fromUtf8("\n" "/*\n" " Android Material Dark\n" " COLOR_DARK = #212121 Grey 900\n" " COLOR_MEDIUM = #424242 Grey 800\n" " COLOR_MEDLIGHT = #757575 Grey 600\n" " COLOR_LIGHT = #DDDDDD White\n" " COLOR_ACCENT = #3F51B5 Indigo 500\n" "*/\n" "\n" "* {\n" " background:qlineargradient(spread:pad, x1:0.517, y1:0.25, x2:1, y2:1, stop:0.211207 rgba(0, 0, 0, 255), stop:0.456897 rgba(39, 103, 106, 255), stop:1 rgba(255, 255, 255, 255));\n" " color: #DDDDDD;\n" " border: 1px solid #757575;\n" "}\n" "\n" "QWidget::item:selected {\n" " background: #3F51B5;\n" "}\n" "\n" "QCheckBox, QRadioButton {\n" " border: none;\n" "}\n" "\n" "QRadioButton::indicator, QCheckBox::indicator {\n" " width: 13px;\n" " height: 13px;\n" "}\n" "\n" "QRadioButton::indicator::unchecked, QCheckBox::indicator::unchecked {\n" " border: 1px solid #757575;\n" " background: none;\n" "}\n" "\n" "QRadioButton::indicator:unchecked:hover, QCheckBox::indicator:unchecked:hover {\n" " border: 1px solid #DDDDDD;\n" "}\n" "\n" "QRadioButton::indicator::checked, QCheckBox::indicator::checked {\n" " border: 1px solid #757575;\n" " background: #757575;\n" "}\n" "\n" "QRadioButton::indicator:checked:hover, QCheckBox::indicator:checked:hover {\n" " border: 1px solid #DDDDDD;\n" " background: #DDDDDD;\n" "}\n" "\n" "QGroupBox {\n" " margin-top: 6px;\n" "}\n" "\n" "QGroupBox::title {\n" " top: -7px;\n" " left: 7px;\n" "}\n" "\n" "QScrollBar {\n" " border: 1px solid #757575;\n" " background: #212121;\n" "}\n" "\n" "QScrollBar:horizontal {\n" " height: 15px;\n" " margin: 0px 0px 0px 32px;\n" "}\n" "\n" "QScrollBar:vertical {\n" " width: 15px;\n" " margin: 32px 0px 0px 0px;\n" "}\n" "\n" "QScrollBar::handle {\n" " background: #424242;\n" " border: 1px solid #757575;\n" "}\n" "\n" "QScrollBar::handle:horizontal {\n" " border-width: 0px 1px 0px 1px;\n" "}\n" "\n" "QScrollBar::handle:vertical {\n" " border-width: 1px 0px 1px 0px;\n" "}\n" "\n" "QScrollBar::handle:horizontal {\n" " min-width: 20px;\n" "}\n" "\n" "QScrollBar::handle:vertical {\n" " min-height: 20px;\n" "}\n" "\n" "QScrollBar::add-line, QScrollBar::sub-line {\n" " background:#424242;\n" " border: 1px solid #757575;\n" " subcontrol-origin: margin;\n" "}\n" "\n" "QScrollBar::add-line {\n" " position: absolute;\n" "}\n" "\n" "QScrollBar::add-line:horizontal {\n" " width: 15px;\n" " subcontrol-position: left;\n" " left: 15px;\n" "}\n" "\n" "QScrollBar::add-line:vertical {\n" " height: 15px;\n" " subcontrol-position: top;\n" " top: 15px;\n" "}\n" "\n" "QScrollBar::sub-line:horizontal {\n" " width: 15px;\n" " subcontrol-position: top left;\n" "}\n" "\n" "QScrollBar::sub-line:vertical {\n" " height: 15px;\n" " subcontrol-position: top;\n" "}\n" "\n" "QScrollBar:left-arrow, QScrollBar::right-arrow, QScrollBar::up-arrow, QScrollBar::down-arrow {\n" " border: 1px solid #757575;\n" " width: 3px;\n" " height: 3px;\n" "}\n" "\n" "QScrollBar::add-page, QScrollBar::sub-page {\n" " background: none;\n" "}\n" "\n" "QAbstractButton:hover {\n" " background: #424242;\n" "}\n" "\n" "QAbstractButton:pressed {\n" " background: #757575;\n" "}\n" "\n" "QAbstractItemView {\n" " show-decoration-selected: 1;\n" " selection-background-color: #3F51B5;\n" " selection-color: #DDDDDD;\n" " alternate-background-color: #424242;\n" "}\n" "\n" "QHeaderView {\n" " border: 1px solid #757575;\n" "}\n" "\n" "QHeaderView::section {\n" " background: #212121;\n" " border: 1px solid #757575;\n" " padding: 4px;\n" "}\n" "\n" "QHeaderView::section:selected, QHeaderView::section::checked {\n" " background: #424242;\n" "}\n" "\n" "QTableView {\n" " gridline-color: #757575;\n" "}\n" "\n" "QTabBar {\n" " margin-left: 2px;\n" "}\n" "\n" "QTabBar::tab {\n" " border-radius: 0px;\n" " padding: 4px;\n" " margin: 4px;\n" "}\n" "\n" "QTabBar::tab:selected {\n" " background: #424242;\n" "}\n" "\n" "QComboBox::down-arrow {\n" " border: 1px solid #757575;\n" " background: #424242;\n" "}\n" "\n" "QComboBox::drop-down {\n" " border: 1px solid #757575;\n" " background: #424242;\n" "}\n" "\n" "QComboBox::down-arrow {\n" " width: 3px;\n" " height: 3px;\n" " border: 1px solid #757575;\n" "}\n" "\n" "QAbstractSpinBox {\n" " padding-right: 15px;\n" "}\n" "\n" "QAbstractSpinBox::up-button, QAbstractSpinBox::down-button {\n" " border: 1px solid #757575;\n" " background: #424242;\n" " subcontrol-origin: border;\n" "}\n" "\n" "QAbstractSpinBox::up-arrow, QAbstractSpinBox::down-arrow {\n" " width: 3px;\n" " height: 3px;\n" " border: 1px solid #757575;\n" "}\n" "\n" "QSlider {\n" " border: none;\n" "}\n" "\n" "QSlider::groove:horizontal {\n" " height: 5px;\n" " margin: 4px 0px 4px 0px;\n" "}\n" "\n" "QSlider::groove:vertical {\n" " width: 5px;\n" " margin: 0px 4px 0px 4px;\n" "}\n" "\n" "QSlider::handle {\n" " border: 1px solid #757575;\n" " background: #424242;\n" "}\n" "\n" "QSlider::handle:horizontal {\n" " width: 15px;\n" " margin: -4px 0px -4px 0px;\n" "}\n" "\n" "QSlider::handle:vertical {\n" " height: 15px;\n" " margin: 0px -4px 0px -4px;\n" "}\n" "\n" "QSlider::add-page:vertical, QSlider::sub-page:horizontal {\n" " background: #3F51B5;\n" "}\n" "\n" "QSlider::sub-page:vertical, QSlider::add-page:horizontal {\n" " background: #424242;\n" "}\n" "\n" "QLabel {\n" " border: none;\n" "}\n" "\n" "QProgressBar {\n" " text-align: center;\n" "}\n" "\n" "QProgressBar::chunk {\n" " width: 1px;\n" " background-color: #3F51B5;\n" "}\n" "\n" "QMenu::separator {\n" " background: #424242;\n" "}\n" "\n" "QStatusBar {\n" " border: 1px;\n" " color: #3F51B5;\n" "}")) MainWindow.setTabShape(QtGui.QTabWidget.Rounded) self.centralwidget = QtGui.QWidget(MainWindow) self.centralwidget.setAutoFillBackground(False) self.centralwidget.setObjectName(_fromUtf8("centralwidget")) self.gridLayout = QtGui.QGridLayout(self.centralwidget) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.gridLayout_2 = QtGui.QGridLayout() self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.EnergieDep = QtGui.QLabel(self.centralwidget) font = QtGui.QFont() font.setFamily(_fromUtf8("URW Bookman L")) font.setPointSize(20) font.setBold(True) font.setItalic(False) font.setWeight(75) self.EnergieDep.setFont(font) self.EnergieDep.setObjectName(_fromUtf8("EnergieDep")) self.gridLayout_2.addWidget(self.EnergieDep, 0, 1, 1, 1) self.label = QtGui.QLabel(self.centralwidget) font = QtGui.QFont() font.setFamily(_fromUtf8("URW Bookman L")) font.setPointSize(20) font.setBold(True) font.setItalic(True) font.setWeight(75) self.label.setFont(font) self.label.setStyleSheet(_fromUtf8("background:qlineargradient(spread:repeat, x1:1, y1:0, x2:0, y2:1, stop:0.310345 rgba(156, 143, 137, 133), stop:0.378572 rgba(104, 117, 126, 145), stop:0.392241 rgba(135, 143, 88, 130), stop:0.479796 rgba(136, 129, 116, 208), stop:0.537455 rgba(185, 214, 223, 69), stop:0.543862 rgba(51, 38, 12, 69), stop:0.592552 rgba(52, 52, 52, 130), stop:0.597677 rgba(17, 42, 49, 255), stop:0.74569 rgba(48, 48, 48, 69), stop:0.891088 rgba(101, 95, 60, 69));\n" "")) self.label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label.setObjectName(_fromUtf8("label")) self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1) self.label_2 = QtGui.QLabel(self.centralwidget) font = QtGui.QFont() font.setFamily(_fromUtf8("URW Bookman L")) font.setPointSize(20) font.setBold(True) font.setItalic(True) font.setWeight(75) self.label_2.setFont(font) self.label_2.setLayoutDirection(QtCore.Qt.LeftToRight) self.label_2.setStyleSheet(_fromUtf8("background:qlineargradient(spread:repeat, x1:1, y1:0, x2:0, y2:1, stop:0.310345 rgba(156, 143, 137, 133), stop:0.378572 rgba(104, 117, 126, 145), stop:0.392241 rgba(135, 143, 88, 130), stop:0.479796 rgba(136, 129, 116, 208), stop:0.537455 rgba(185, 214, 223, 69), stop:0.543862 rgba(51, 38, 12, 69), stop:0.592552 rgba(52, 52, 52, 130), stop:0.597677 rgba(17, 42, 49, 255), stop:0.74569 rgba(48, 48, 48, 69), stop:0.891088 rgba(101, 95, 60, 69));\n" "")) self.label_2.setTextFormat(QtCore.Qt.AutoText) self.label_2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout_2.addWidget(self.label_2, 0, 2, 1, 1) self.EventType = QtGui.QLabel(self.centralwidget) font = QtGui.QFont() font.setFamily(_fromUtf8("URW Bookman L")) font.setPointSize(20) font.setBold(True) font.setItalic(False) font.setWeight(75) self.EventType.setFont(font) self.EventType.setObjectName(_fromUtf8("EventType")) self.gridLayout_2.addWidget(self.EventType, 0, 3, 1, 1) self.gridLayout.addLayout(self.gridLayout_2, 0, 2, 1, 1) self.display = QtGui.QTabWidget(self.centralwidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.display.sizePolicy().hasHeightForWidth()) self.display.setSizePolicy(sizePolicy) self.display.setMinimumSize(QtCore.QSize(1330, 0)) self.display.setMaximumSize(QtCore.QSize(16777215, 16777215)) font = QtGui.QFont() font.setFamily(_fromUtf8("URW Bookman L")) font.setPointSize(20) font.setBold(True) font.setItalic(True) font.setWeight(75) self.display.setFont(font) self.display.setStyleSheet(_fromUtf8("QTabWidget::tab-bar {\n" "left:0px;\n" "}\n" "/* Style the tab using the tab sub-control. Note that it reads QTabBar _not_ QTabWidget */\n" "\n" "QTabBar::tab:selected {\n" "border-color: rgb(77, 77, 77);\n" "}\n" "\n" "QTabWidget::pane { /* The tab widget frame */\n" "border-top: 5px solid qlineargradient(spread:pad, x1:0.176, y1:1, x2:0.797, y2:1, stop:0 rgba(136, 106, 22, 255), stop:0.225 rgba(166, 140, 41, 255), stop:0.285 rgba(204, 181, 74, 255), stop:0.345 rgba(235, 219, 102, 255), stop:0.415 rgba(245, 236, 112, 255), stop:0.52 rgba(209, 190, 76, 255), stop:0.57 rgba(187, 156, 51, 255), stop:0.635 rgba(168, 142, 42, 255), stop:0.695 rgba(202, 174, 68, 255), stop:0.75 rgba(218, 202, 86, 255), stop:0.815 rgba(208, 187, 73, 255), stop:0.88 rgba(187, 156, 51, 255), stop:1 rgba(137, 108, 26, 255));\n" "border-bottom:5px solid qlineargradient(spread:pad, x1:0.176, y1:1, x2:0.797, y2:1, stop:0 rgba(136, 106, 22, 255), stop:0.225 rgba(166, 140, 41, 255), stop:0.285 rgba(204, 181, 74, 255), stop:0.345 rgba(235, 219, 102, 255), stop:0.415 rgba(245, 236, 112, 255), stop:0.52 rgba(209, 190, 76, 255), stop:0.57 rgba(187, 156, 51, 255), stop:0.635 rgba(168, 142, 42, 255), stop:0.695 rgba(202, 174, 68, 255), stop:0.75 rgba(218, 202, 86, 255), stop:0.815 rgba(208, 187, 73, 255), stop:0.88 rgba(187, 156, 51, 255), stop:1 rgba(137, 108, 26, 255));\n" "border-left:5px solid qlineargradient(spread:pad, x1:1, y1:0, x2:1, y2:1, stop:0 rgba(136, 106, 22, 255), stop:0.225 rgba(166, 140, 41, 255), stop:0.285 rgba(204, 181, 74, 255), stop:0.345 rgba(235, 219, 102, 255), stop:0.415 rgba(245, 236, 112, 255), stop:0.52 rgba(209, 190, 76, 255), stop:0.57 rgba(187, 156, 51, 255), stop:0.635 rgba(168, 142, 42, 255), stop:0.695 rgba(202, 174, 68, 255), stop:0.75 rgba(218, 202, 86, 255), stop:0.815 rgba(208, 187, 73, 255), stop:0.88 rgba(187, 156, 51, 255), stop:1 rgba(137, 108, 26, 255));\n" "border-right:5px solid qlineargradient(spread:pad, x1:1, y1:0, x2:1, y2:1, stop:0 rgba(136, 106, 22, 255), stop:0.225 rgba(166, 140, 41, 255), stop:0.285 rgba(204, 181, 74, 255), stop:0.345 rgba(235, 219, 102, 255), stop:0.415 rgba(245, 236, 112, 255), stop:0.52 rgba(209, 190, 76, 255), stop:0.57 rgba(187, 156, 51, 255), stop:0.635 rgba(168, 142, 42, 255), stop:0.695 rgba(202, 174, 68, 255), stop:0.75 rgba(218, 202, 86, 255), stop:0.815 rgba(208, 187, 73, 255), stop:0.88 rgba(187, 156, 51, 255), stop:1 rgba(137, 108, 26, 255)) ;\n" "}\n" "\n" "\n" "QTabBar::tab {\n" "background:qconicalgradient(cx:0, cy:0, angle:135, stop:0 rgba(0, 148, 114, 69), stop:0.375 rgba(0, 0, 0, 255), stop:0.452889 rgba(71, 72, 0, 145), stop:0.466983 rgba(1, 128, 99, 228), stop:0.503158 rgba(72, 69, 20, 130), stop:0.505423 rgba(72, 61, 20, 130), stop:0.55 rgba(72, 72, 0, 255), stop:0.668103 rgba(0, 0, 0, 255), stop:0.685345 rgba(72, 72, 0, 69), stop:0.905172 rgba(72, 57, 0, 130));\n" "border: 3px solid #C4C4C3;\n" "border-bottom-color: #C2C7CB; /* same as the pane color */\n" "border-top-right-radius: 40px;\n" "min-width: 33ex;\n" "padding: 10px;\n" "color:rgb(0, 0, 0);\n" "}")) self.display.setIconSize(QtCore.QSize(16, 16)) self.display.setUsesScrollButtons(True) self.display.setDocumentMode(False) self.display.setTabsClosable(False) self.display.setMovable(False) self.display.setObjectName(_fromUtf8("display")) self.tracker = QtGui.QWidget() sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.tracker.sizePolicy().hasHeightForWidth()) self.tracker.setSizePolicy(sizePolicy) self.tracker.setMinimumSize(QtCore.QSize(1318, 0)) self.tracker.setObjectName(_fromUtf8("tracker")) self.gridLayout_6 = QtGui.QGridLayout(self.tracker) self.gridLayout_6.setObjectName(_fromUtf8("gridLayout_6")) self.gridLayout_5 = QtGui.QGridLayout() self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5")) self.plttracker = GraphicsLayoutWidget(self.tracker) self.plttracker.setMinimumSize(QtCore.QSize(1040, 0)) self.plttracker.setObjectName(_fromUtf8("plttracker")) self.gridLayout_5.addWidget(self.plttracker, 0, 0, 1, 1) self.gridLayout_6.addLayout(self.gridLayout_5, 0, 0, 1, 1) self.display.addTab(self.tracker, _fromUtf8("")) self.histogram = QtGui.QWidget() sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.histogram.sizePolicy().hasHeightForWidth()) self.histogram.setSizePolicy(sizePolicy) self.histogram.setObjectName(_fromUtf8("histogram")) self.gridLayout_8 = QtGui.QGridLayout(self.histogram) self.gridLayout_8.setObjectName(_fromUtf8("gridLayout_8")) self.gridLayout_7 = QtGui.QGridLayout() self.gridLayout_7.setObjectName(_fromUtf8("gridLayout_7")) self.plthistogram = GraphicsLayoutWidget(self.histogram) self.plthistogram.setObjectName(_fromUtf8("plthistogram")) self.gridLayout_7.addWidget(self.plthistogram, 0, 0, 1, 1) self.gridLayout_8.addLayout(self.gridLayout_7, 0, 0, 1, 1) self.display.addTab(self.histogram, _fromUtf8("")) self.frequency = QtGui.QWidget() sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.frequency.sizePolicy().hasHeightForWidth()) self.frequency.setSizePolicy(sizePolicy) self.frequency.setObjectName(_fromUtf8("frequency")) self.gridLayout_10 = QtGui.QGridLayout(self.frequency) self.gridLayout_10.setObjectName(_fromUtf8("gridLayout_10")) self.gridLayout_9 = QtGui.QGridLayout() self.gridLayout_9.setObjectName(_fromUtf8("gridLayout_9")) self.pltfrequency = GraphicsLayoutWidget(self.frequency) self.pltfrequency.setObjectName(_fromUtf8("pltfrequency")) self.gridLayout_9.addWidget(self.pltfrequency, 0, 0, 1, 1) self.gridLayout_10.addLayout(self.gridLayout_9, 0, 0, 1, 1) self.display.addTab(self.frequency, _fromUtf8("")) self.Integration_tab = QtGui.QWidget() sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.Integration_tab.sizePolicy().hasHeightForWidth()) self.Integration_tab.setSizePolicy(sizePolicy) self.Integration_tab.setObjectName(_fromUtf8("Integration_tab")) self.gridLayout_13 = QtGui.QGridLayout(self.Integration_tab) self.gridLayout_13.setObjectName(_fromUtf8("gridLayout_13")) self.gridLayout_3 = QtGui.QGridLayout() self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) self.integview = GraphicsLayoutWidget(self.Integration_tab) self.integview.setObjectName(_fromUtf8("integview")) self.gridLayout_3.addWidget(self.integview, 0, 0, 1, 1) self.gridLayout_13.addLayout(self.gridLayout_3, 0, 0, 1, 1) self.display.addTab(self.Integration_tab, _fromUtf8("")) self.gridLayout.addWidget(self.display, 1, 2, 1, 1) MainWindow.setCentralWidget(self.centralwidget) self.actionAll_pannel = QtGui.QAction(MainWindow) self.actionAll_pannel.setCheckable(False) self.actionAll_pannel.setEnabled(True) self.actionAll_pannel.setObjectName(_fromUtf8("actionAll_pannel")) self.actionHistogram = QtGui.QAction(MainWindow) self.actionHistogram.setObjectName(_fromUtf8("actionHistogram")) self.actionTracker = QtGui.QAction(MainWindow) self.actionTracker.setObjectName(_fromUtf8("actionTracker")) self.actionChannels = QtGui.QAction(MainWindow) font = QtGui.QFont() font.setFamily(_fromUtf8("URW Bookman L")) font.setPointSize(12) font.setBold(True) font.setWeight(75) self.actionChannels.setFont(font) self.actionChannels.setObjectName(_fromUtf8("actionChannels")) self.actionAll = QtGui.QAction(MainWindow) self.actionAll.setObjectName(_fromUtf8("actionAll")) self.retranslateUi(MainWindow) self.display.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): MainWindow.setWindowTitle(_translate("MainWindow", "Graph Window", None)) self.EnergieDep.setText(_translate("MainWindow", " 0", None)) self.label.setText(_translate("MainWindow", "Energy deposit: ", None)) self.label_2.setText(_translate("MainWindow", "Event type: ", None)) self.EventType.setText(_translate("MainWindow", " NotClassified", None)) self.display.setTabText(self.display.indexOf(self.tracker), _translate("MainWindow", "Event display", None)) self.display.setTabText(self.display.indexOf(self.histogram), _translate("MainWindow", "Angle", None)) self.display.setTabText(self.display.indexOf(self.frequency), _translate("MainWindow", "Frequency", None)) self.display.setTabText(self.display.indexOf(self.Integration_tab), _translate("MainWindow", "Integration", None)) self.actionAll_pannel.setText(_translate("MainWindow", "All pannel", None)) self.actionHistogram.setText(_translate("MainWindow", "Histogram", None)) self.actionTracker.setText(_translate("MainWindow", "Tracker", None)) self.actionChannels.setText(_translate("MainWindow", "Channels", None)) self.actionAll.setText(_translate("MainWindow", "All", None))
class Ui_xrs_mask_widget(object): def setupUi(self, xrs_mask_widget): xrs_mask_widget.setObjectName(_fromUtf8("xrs_mask_widget")) xrs_mask_widget.resize(712, 530) xrs_mask_widget.setStyleSheet(_fromUtf8("")) self.horizontalLayout_2 = QtGui.QHBoxLayout(xrs_mask_widget) self.horizontalLayout_2.setSpacing(0) self.horizontalLayout_2.setMargin(8) self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.splitter = QtGui.QSplitter(xrs_mask_widget) self.splitter.setOrientation(QtCore.Qt.Horizontal) self.splitter.setObjectName(_fromUtf8("splitter")) self.layoutWidget = QtGui.QWidget(self.splitter) self.layoutWidget.setObjectName(_fromUtf8("layoutWidget")) self.verticalLayout = QtGui.QVBoxLayout(self.layoutWidget) self.verticalLayout.setMargin(0) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.img_pg_layout = GraphicsLayoutWidget(self.layoutWidget) self.img_pg_layout.setObjectName(_fromUtf8("img_pg_layout")) self.verticalLayout.addWidget(self.img_pg_layout) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) spacerItem = QtGui.QSpacerItem(118, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.pos_lbl = QtGui.QLabel(self.layoutWidget) self.pos_lbl.setObjectName(_fromUtf8("pos_lbl")) self.horizontalLayout.addWidget(self.pos_lbl) self.verticalLayout.addLayout(self.horizontalLayout) self.widget = QtGui.QWidget(self.splitter) self.widget.setMaximumSize(QtCore.QSize(200, 16777215)) self.widget.setObjectName(_fromUtf8("widget")) self.verticalLayout_2 = QtGui.QVBoxLayout(self.widget) self.verticalLayout_2.setSpacing(8) self.verticalLayout_2.setMargin(0) self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.horizontalLayout_3 = QtGui.QHBoxLayout() self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3")) self.mask_rb = QtGui.QRadioButton(self.widget) self.mask_rb.setChecked(True) self.mask_rb.setObjectName(_fromUtf8("mask_rb")) self.horizontalLayout_3.addWidget(self.mask_rb) self.unmask_rb = QtGui.QRadioButton(self.widget) self.unmask_rb.setChecked(False) self.unmask_rb.setObjectName(_fromUtf8("unmask_rb")) self.horizontalLayout_3.addWidget(self.unmask_rb) self.verticalLayout_2.addLayout(self.horizontalLayout_3) self.line_2 = QtGui.QFrame(self.widget) self.line_2.setFrameShadow(QtGui.QFrame.Raised) self.line_2.setFrameShape(QtGui.QFrame.HLine) self.line_2.setFrameShadow(QtGui.QFrame.Sunken) self.line_2.setObjectName(_fromUtf8("line_2")) self.verticalLayout_2.addWidget(self.line_2) self.gridLayout = QtGui.QGridLayout() self.gridLayout.setSpacing(8) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.circle_btn = QtGui.QPushButton(self.widget) self.circle_btn.setCheckable(True) self.circle_btn.setChecked(False) self.circle_btn.setFlat(True) self.circle_btn.setObjectName(_fromUtf8("circle_btn")) self.gridLayout.addWidget(self.circle_btn, 0, 0, 1, 1) self.rectangle_btn = QtGui.QPushButton(self.widget) self.rectangle_btn.setCheckable(True) self.rectangle_btn.setFlat(True) self.rectangle_btn.setObjectName(_fromUtf8("rectangle_btn")) self.gridLayout.addWidget(self.rectangle_btn, 0, 1, 1, 1) self.point_btn = QtGui.QPushButton(self.widget) self.point_btn.setCheckable(True) self.point_btn.setFlat(True) self.point_btn.setObjectName(_fromUtf8("point_btn")) self.gridLayout.addWidget(self.point_btn, 1, 0, 1, 1) self.point_size_sb = QtGui.QSpinBox(self.widget) self.point_size_sb.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.point_size_sb.setMaximum(4000) self.point_size_sb.setProperty("value", 20) self.point_size_sb.setObjectName(_fromUtf8("point_size_sb")) self.gridLayout.addWidget(self.point_size_sb, 1, 1, 1, 1) self.polygon_btn = QtGui.QPushButton(self.widget) self.polygon_btn.setCheckable(True) self.polygon_btn.setFlat(True) self.polygon_btn.setObjectName(_fromUtf8("polygon_btn")) self.gridLayout.addWidget(self.polygon_btn, 2, 0, 1, 2) self.verticalLayout_2.addLayout(self.gridLayout) self.line = QtGui.QFrame(self.widget) self.line.setFrameShadow(QtGui.QFrame.Raised) self.line.setFrameShape(QtGui.QFrame.HLine) self.line.setFrameShadow(QtGui.QFrame.Sunken) self.line.setObjectName(_fromUtf8("line")) self.verticalLayout_2.addWidget(self.line) self.gridLayout_2 = QtGui.QGridLayout() self.gridLayout_2.setSpacing(8) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.below_thresh_txt = QtGui.QLineEdit(self.widget) self.below_thresh_txt.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.below_thresh_txt.setObjectName(_fromUtf8("below_thresh_txt")) self.gridLayout_2.addWidget(self.below_thresh_txt, 1, 1, 1, 1) self.below_thresh_btn = QtGui.QPushButton(self.widget) self.below_thresh_btn.setFlat(True) self.below_thresh_btn.setObjectName(_fromUtf8("below_thresh_btn")) self.gridLayout_2.addWidget(self.below_thresh_btn, 1, 0, 1, 1) self.cosmic_btn = QtGui.QPushButton(self.widget) self.cosmic_btn.setFlat(True) self.cosmic_btn.setObjectName(_fromUtf8("cosmic_btn")) self.gridLayout_2.addWidget(self.cosmic_btn, 2, 0, 1, 2) self.above_thresh_txt = QtGui.QLineEdit(self.widget) self.above_thresh_txt.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.above_thresh_txt.setObjectName(_fromUtf8("above_thresh_txt")) self.gridLayout_2.addWidget(self.above_thresh_txt, 0, 1, 1, 1) self.above_thresh_btn = QtGui.QPushButton(self.widget) self.above_thresh_btn.setFlat(True) self.above_thresh_btn.setObjectName(_fromUtf8("above_thresh_btn")) self.gridLayout_2.addWidget(self.above_thresh_btn, 0, 0, 1, 1) self.verticalLayout_2.addLayout(self.gridLayout_2) self.line_5 = QtGui.QFrame(self.widget) self.line_5.setFrameShape(QtGui.QFrame.HLine) self.line_5.setFrameShadow(QtGui.QFrame.Sunken) self.line_5.setObjectName(_fromUtf8("line_5")) self.verticalLayout_2.addWidget(self.line_5) self.gridLayout_4 = QtGui.QGridLayout() self.gridLayout_4.setSpacing(8) self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4")) self.invert_mask_btn = QtGui.QPushButton(self.widget) self.invert_mask_btn.setFlat(True) self.invert_mask_btn.setObjectName(_fromUtf8("invert_mask_btn")) self.gridLayout_4.addWidget(self.invert_mask_btn, 0, 0, 1, 1) self.clear_mask_btn = QtGui.QPushButton(self.widget) self.clear_mask_btn.setFlat(True) self.clear_mask_btn.setObjectName(_fromUtf8("clear_mask_btn")) self.gridLayout_4.addWidget(self.clear_mask_btn, 0, 1, 1, 1) self.undo_btn = QtGui.QPushButton(self.widget) self.undo_btn.setFlat(True) self.undo_btn.setObjectName(_fromUtf8("undo_btn")) self.gridLayout_4.addWidget(self.undo_btn, 1, 0, 1, 1) self.redo_btn = QtGui.QPushButton(self.widget) self.redo_btn.setFlat(True) self.redo_btn.setObjectName(_fromUtf8("redo_btn")) self.gridLayout_4.addWidget(self.redo_btn, 1, 1, 1, 1) self.verticalLayout_2.addLayout(self.gridLayout_4) self.line_3 = QtGui.QFrame(self.widget) self.line_3.setFrameShape(QtGui.QFrame.HLine) self.line_3.setFrameShadow(QtGui.QFrame.Sunken) self.line_3.setObjectName(_fromUtf8("line_3")) self.verticalLayout_2.addWidget(self.line_3) self.widget1 = QtGui.QWidget(self.widget) self.widget1.setObjectName(_fromUtf8("widget1")) self.horizontalLayout_4 = QtGui.QHBoxLayout(self.widget1) self.horizontalLayout_4.setMargin(0) self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4")) self.fill_rb = QtGui.QRadioButton(self.widget1) self.fill_rb.setChecked(True) self.fill_rb.setObjectName(_fromUtf8("fill_rb")) self.horizontalLayout_4.addWidget(self.fill_rb) self.transparent_rb = QtGui.QRadioButton(self.widget1) self.transparent_rb.setObjectName(_fromUtf8("transparent_rb")) self.horizontalLayout_4.addWidget(self.transparent_rb) self.verticalLayout_2.addWidget(self.widget1) spacerItem1 = QtGui.QSpacerItem(228, 224, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.verticalLayout_2.addItem(spacerItem1) self.gridLayout_3 = QtGui.QGridLayout() self.gridLayout_3.setVerticalSpacing(8) self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) self.save_mask_btn = QtGui.QPushButton(self.widget) self.save_mask_btn.setFlat(True) self.save_mask_btn.setObjectName(_fromUtf8("save_mask_btn")) self.gridLayout_3.addWidget(self.save_mask_btn, 0, 0, 1, 2) self.load_mask_btn = QtGui.QPushButton(self.widget) self.load_mask_btn.setFlat(True) self.load_mask_btn.setObjectName(_fromUtf8("load_mask_btn")) self.gridLayout_3.addWidget(self.load_mask_btn, 1, 0, 1, 1) self.add_mask_btn = QtGui.QPushButton(self.widget) self.add_mask_btn.setFlat(True) self.add_mask_btn.setObjectName(_fromUtf8("add_mask_btn")) self.gridLayout_3.addWidget(self.add_mask_btn, 1, 1, 1, 1) self.verticalLayout_2.addLayout(self.gridLayout_3) self.horizontalLayout_2.addWidget(self.splitter) self.retranslateUi(xrs_mask_widget) QtCore.QMetaObject.connectSlotsByName(xrs_mask_widget) def retranslateUi(self, xrs_mask_widget): xrs_mask_widget.setWindowTitle(_translate("xrs_mask_widget", "XRS - Suite Mask creation", None)) self.pos_lbl.setText(_translate("xrs_mask_widget", "TextLabel", None)) self.mask_rb.setText(_translate("xrs_mask_widget", "mask", None)) self.unmask_rb.setText(_translate("xrs_mask_widget", "unmask", None)) self.circle_btn.setText(_translate("xrs_mask_widget", "Circle", None)) self.rectangle_btn.setText(_translate("xrs_mask_widget", "Rectangle", None)) self.point_btn.setText(_translate("xrs_mask_widget", "Point", None)) self.polygon_btn.setText(_translate("xrs_mask_widget", "Polygon", None)) self.below_thresh_btn.setText(_translate("xrs_mask_widget", "Below Thresh", None)) self.cosmic_btn.setText(_translate("xrs_mask_widget", "Cosmic Removal", None)) self.above_thresh_btn.setText(_translate("xrs_mask_widget", "Above Thresh", None)) self.invert_mask_btn.setText(_translate("xrs_mask_widget", "Invert", None)) self.clear_mask_btn.setText(_translate("xrs_mask_widget", "Clear", None)) self.undo_btn.setText(_translate("xrs_mask_widget", "undo", None)) self.redo_btn.setText(_translate("xrs_mask_widget", "redo", None)) self.fill_rb.setText(_translate("xrs_mask_widget", "Fill", None)) self.transparent_rb.setText(_translate("xrs_mask_widget", "Transparent", None)) self.save_mask_btn.setText(_translate("xrs_mask_widget", "Save Mask", None)) self.load_mask_btn.setText(_translate("xrs_mask_widget", "Load Mask", None)) self.add_mask_btn.setText(_translate("xrs_mask_widget", "Add Mask", None))
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName("Form") Form.resize(733, 584) icon = QtGui.QIcon() icon.addPixmap( QtGui.QPixmap("C:/Users/Administrator/Pictures/gjg.jpg"), QtGui.QIcon.Normal, QtGui.QIcon.Off) Form.setWindowIcon(icon) self.widget = QtWidgets.QWidget(Form) self.widget.setGeometry(QtCore.QRect(10, 0, 141, 581)) self.widget.setObjectName("widget") self.pushButton = QtWidgets.QPushButton(self.widget) self.pushButton.setGeometry(QtCore.QRect(30, 160, 75, 23)) icon1 = QtGui.QIcon() icon1.addPixmap( QtGui.QPixmap("C:/Users/Administrator/Pictures/huanjing.jpg"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.pushButton.setIcon(icon1) self.pushButton.setObjectName("pushButton") self.pushButton_2 = QtWidgets.QPushButton(self.widget) self.pushButton_2.setGeometry(QtCore.QRect(30, 240, 75, 23)) icon2 = QtGui.QIcon() icon2.addPixmap( QtGui.QPixmap("C:/Users/Administrator/Pictures/kongzhi.jpg"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.pushButton_2.setIcon(icon2) self.pushButton_2.setObjectName("pushButton_2") self.pushButton_3 = QtWidgets.QPushButton(self.widget) self.pushButton_3.setGeometry(QtCore.QRect(30, 310, 75, 23)) icon3 = QtGui.QIcon() icon3.addPixmap( QtGui.QPixmap("C:/Users/Administrator/Pictures/shebei.jpg"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.pushButton_3.setIcon(icon3) self.pushButton_3.setObjectName("pushButton_3") self.pushButton_4 = QtWidgets.QPushButton(self.widget) self.pushButton_4.setGeometry(QtCore.QRect(30, 390, 75, 23)) icon4 = QtGui.QIcon() icon4.addPixmap( QtGui.QPixmap("C:/Users/Administrator/Pictures/geren.jpg"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.pushButton_4.setIcon(icon4) self.pushButton_4.setObjectName("pushButton_4") self.label_3 = QtWidgets.QLabel(self.widget) self.label_3.setGeometry(QtCore.QRect(0, 0, 141, 101)) self.label_3.setText("") self.label_3.setObjectName("label_3") self.line_4 = QtWidgets.QFrame(self.widget) self.line_4.setGeometry(QtCore.QRect(10, 210, 118, 3)) self.line_4.setFrameShape(QtWidgets.QFrame.HLine) self.line_4.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_4.setObjectName("line_4") self.line_5 = QtWidgets.QFrame(self.widget) self.line_5.setGeometry(QtCore.QRect(10, 290, 118, 3)) self.line_5.setFrameShape(QtWidgets.QFrame.HLine) self.line_5.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_5.setObjectName("line_5") self.line_6 = QtWidgets.QFrame(self.widget) self.line_6.setGeometry(QtCore.QRect(10, 360, 118, 3)) self.line_6.setFrameShape(QtWidgets.QFrame.HLine) self.line_6.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_6.setObjectName("line_6") self.line_7 = QtWidgets.QFrame(self.widget) self.line_7.setGeometry(QtCore.QRect(10, 440, 118, 3)) self.line_7.setFrameShape(QtWidgets.QFrame.HLine) self.line_7.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_7.setObjectName("line_7") self.line_8 = QtWidgets.QFrame(self.widget) self.line_8.setGeometry(QtCore.QRect(10, 140, 118, 3)) self.line_8.setFrameShape(QtWidgets.QFrame.HLine) self.line_8.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_8.setObjectName("line_8") self.stackedWidget = QtWidgets.QStackedWidget(Form) self.stackedWidget.setGeometry(QtCore.QRect(150, 110, 581, 471)) self.stackedWidget.setObjectName("stackedWidget") self.page = QtWidgets.QWidget() self.page.setObjectName("page") self.widget_6 = QtWidgets.QWidget(self.page) self.widget_6.setGeometry(QtCore.QRect(40, 60, 491, 281)) self.widget_6.setObjectName("widget_6") self.line_9 = QtWidgets.QFrame(self.widget_6) self.line_9.setGeometry(QtCore.QRect(37, 80, 421, 20)) self.line_9.setFrameShape(QtWidgets.QFrame.HLine) self.line_9.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_9.setObjectName("line_9") self.line_16 = QtWidgets.QFrame(self.widget_6) self.line_16.setGeometry(QtCore.QRect(37, 170, 421, 20)) self.line_16.setFrameShape(QtWidgets.QFrame.HLine) self.line_16.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_16.setObjectName("line_16") self.line_15 = QtWidgets.QFrame(self.widget_6) self.line_15.setGeometry(QtCore.QRect(37, 120, 421, 20)) self.line_15.setFrameShape(QtWidgets.QFrame.HLine) self.line_15.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_15.setObjectName("line_15") self.line_14 = QtWidgets.QFrame(self.widget_6) self.line_14.setGeometry(QtCore.QRect(167, 90, 20, 131)) self.line_14.setFrameShape(QtWidgets.QFrame.VLine) self.line_14.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_14.setObjectName("line_14") self.line_10 = QtWidgets.QFrame(self.widget_6) self.line_10.setGeometry(QtCore.QRect(30, 90, 20, 131)) self.line_10.setFrameShape(QtWidgets.QFrame.VLine) self.line_10.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_10.setObjectName("line_10") self.label_2 = QtWidgets.QLabel(self.widget_6) self.label_2.setGeometry(QtCore.QRect(47, 190, 111, 16)) self.label_2.setObjectName("label_2") self.label_19 = QtWidgets.QLabel(self.widget_6) self.label_19.setGeometry(QtCore.QRect(357, 190, 101, 16)) self.label_19.setObjectName("label_19") self.line_11 = QtWidgets.QFrame(self.widget_6) self.line_11.setGeometry(QtCore.QRect(37, 210, 421, 20)) self.line_11.setFrameShape(QtWidgets.QFrame.HLine) self.line_11.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_11.setObjectName("line_11") self.label_16 = QtWidgets.QLabel(self.widget_6) self.label_16.setGeometry(QtCore.QRect(77, 100, 54, 12)) self.label_16.setObjectName("label_16") self.line_13 = QtWidgets.QFrame(self.widget_6) self.line_13.setGeometry(QtCore.QRect(307, 90, 20, 131)) self.line_13.setFrameShape(QtWidgets.QFrame.VLine) self.line_13.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_13.setObjectName("line_13") self.label = QtWidgets.QLabel(self.widget_6) self.label.setGeometry(QtCore.QRect(47, 150, 111, 16)) self.label.setObjectName("label") self.label_18 = QtWidgets.QLabel(self.widget_6) self.label_18.setGeometry(QtCore.QRect(357, 100, 101, 16)) self.label_18.setObjectName("label_18") self.label_15 = QtWidgets.QLabel(self.widget_6) self.label_15.setGeometry(QtCore.QRect(357, 150, 101, 16)) self.label_15.setObjectName("label_15") self.label_17 = QtWidgets.QLabel(self.widget_6) self.label_17.setGeometry(QtCore.QRect(227, 100, 54, 12)) self.label_17.setObjectName("label_17") self.line_12 = QtWidgets.QFrame(self.widget_6) self.line_12.setGeometry(QtCore.QRect(450, 90, 20, 131)) self.line_12.setFrameShape(QtWidgets.QFrame.VLine) self.line_12.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_12.setObjectName("line_12") self.layoutWidget_6 = QtWidgets.QWidget(self.widget_6) self.layoutWidget_6.setGeometry(QtCore.QRect(40, 30, 130, 22)) self.layoutWidget_6.setObjectName("layoutWidget_6") self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.layoutWidget_6) self.horizontalLayout_7.setContentsMargins(0, 0, 0, 0) self.horizontalLayout_7.setObjectName("horizontalLayout_7") self.label_20 = QtWidgets.QLabel(self.layoutWidget_6) self.label_20.setObjectName("label_20") self.horizontalLayout_7.addWidget(self.label_20) self.comboBox_3 = QtWidgets.QComboBox(self.layoutWidget_6) self.comboBox_3.setObjectName("comboBox_3") self.comboBox_3.addItem("") self.comboBox_3.addItem("") self.comboBox_3.addItem("") self.horizontalLayout_7.addWidget(self.comboBox_3) self.pushButton_7 = QtWidgets.QPushButton(self.widget_6) self.pushButton_7.setGeometry(QtCore.QRect(220, 140, 61, 23)) self.pushButton_7.setAutoFillBackground(False) self.pushButton_7.setStyleSheet("") self.pushButton_7.setText("") self.pushButton_7.setObjectName("pushButton_7") self.pushButton_8 = QtWidgets.QPushButton(self.widget_6) self.pushButton_8.setGeometry(QtCore.QRect(220, 190, 61, 23)) self.pushButton_8.setAutoFillBackground(False) self.pushButton_8.setStyleSheet("") self.pushButton_8.setText("") self.pushButton_8.setObjectName("pushButton_8") self.stackedWidget.addWidget(self.page) self.page_2 = QtWidgets.QWidget() self.page_2.setObjectName("page_2") self.widget_3 = GraphicsLayoutWidget(self.page_2) self.widget_3.setGeometry(QtCore.QRect(10, 110, 561, 261)) self.widget_3.setObjectName("widget_3") self.layoutWidget_2 = QtWidgets.QWidget(self.page_2) self.layoutWidget_2.setGeometry(QtCore.QRect(20, 50, 130, 22)) self.layoutWidget_2.setObjectName("layoutWidget_2") self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.layoutWidget_2) self.horizontalLayout_3.setContentsMargins(0, 0, 0, 0) self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.label_5 = QtWidgets.QLabel(self.layoutWidget_2) self.label_5.setObjectName("label_5") self.horizontalLayout_3.addWidget(self.label_5) self.comboBox = QtWidgets.QComboBox(self.layoutWidget_2) self.comboBox.setObjectName("comboBox") self.comboBox.addItem("") self.comboBox.addItem("") self.comboBox.addItem("") self.horizontalLayout_3.addWidget(self.comboBox) self.layoutWidget_3 = QtWidgets.QWidget(self.page_2) self.layoutWidget_3.setGeometry(QtCore.QRect(270, 50, 111, 22)) self.layoutWidget_3.setObjectName("layoutWidget_3") self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.layoutWidget_3) self.horizontalLayout_4.setContentsMargins(0, 0, 0, 0) self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.label_6 = QtWidgets.QLabel(self.layoutWidget_3) self.label_6.setObjectName("label_6") self.horizontalLayout_4.addWidget(self.label_6) self.label_24 = QtWidgets.QLabel(self.layoutWidget_3) self.label_24.setObjectName("label_24") self.horizontalLayout_4.addWidget(self.label_24) self.pushButton_5 = QtWidgets.QPushButton(self.page_2) self.pushButton_5.setGeometry(QtCore.QRect(50, 410, 101, 23)) self.pushButton_5.setObjectName("pushButton_5") self.layoutWidget_4 = QtWidgets.QWidget(self.page_2) self.layoutWidget_4.setGeometry(QtCore.QRect(160, 50, 111, 22)) self.layoutWidget_4.setObjectName("layoutWidget_4") self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.layoutWidget_4) self.horizontalLayout_5.setContentsMargins(0, 0, 0, 0) self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.label_7 = QtWidgets.QLabel(self.layoutWidget_4) self.label_7.setObjectName("label_7") self.horizontalLayout_5.addWidget(self.label_7) self.label_23 = QtWidgets.QLabel(self.layoutWidget_4) self.label_23.setObjectName("label_23") self.horizontalLayout_5.addWidget(self.label_23) self.layoutWidget_7 = QtWidgets.QWidget(self.page_2) self.layoutWidget_7.setGeometry(QtCore.QRect(380, 50, 152, 22)) self.layoutWidget_7.setObjectName("layoutWidget_7") self.horizontalLayout_8 = QtWidgets.QHBoxLayout(self.layoutWidget_7) self.horizontalLayout_8.setContentsMargins(0, 0, 0, 0) self.horizontalLayout_8.setObjectName("horizontalLayout_8") self.label_13 = QtWidgets.QLabel(self.layoutWidget_7) self.label_13.setObjectName("label_13") self.horizontalLayout_8.addWidget(self.label_13) self.label_25 = QtWidgets.QLabel(self.layoutWidget_7) self.label_25.setObjectName("label_25") self.horizontalLayout_8.addWidget(self.label_25) self.stackedWidget.addWidget(self.page_2) self.page_3 = QtWidgets.QWidget() self.page_3.setObjectName("page_3") self.tableWidget = QtWidgets.QTableWidget(self.page_3) self.tableWidget.setGeometry(QtCore.QRect(40, 100, 447, 268)) self.tableWidget.setObjectName("tableWidget") self.tableWidget.setColumnCount(4) self.tableWidget.setRowCount(8) item = QtWidgets.QTableWidgetItem() self.tableWidget.setVerticalHeaderItem(0, item) item = QtWidgets.QTableWidgetItem() self.tableWidget.setVerticalHeaderItem(1, item) item = QtWidgets.QTableWidgetItem() self.tableWidget.setVerticalHeaderItem(2, item) item = QtWidgets.QTableWidgetItem() self.tableWidget.setVerticalHeaderItem(3, item) item = QtWidgets.QTableWidgetItem() self.tableWidget.setVerticalHeaderItem(4, item) item = QtWidgets.QTableWidgetItem() self.tableWidget.setVerticalHeaderItem(5, item) item = QtWidgets.QTableWidgetItem() self.tableWidget.setVerticalHeaderItem(6, item) item = QtWidgets.QTableWidgetItem() self.tableWidget.setVerticalHeaderItem(7, item) item = QtWidgets.QTableWidgetItem() self.tableWidget.setHorizontalHeaderItem(0, item) item = QtWidgets.QTableWidgetItem() self.tableWidget.setHorizontalHeaderItem(1, item) item = QtWidgets.QTableWidgetItem() self.tableWidget.setHorizontalHeaderItem(2, item) item = QtWidgets.QTableWidgetItem() self.tableWidget.setHorizontalHeaderItem(3, item) item = QtWidgets.QTableWidgetItem() item.setTextAlignment(QtCore.Qt.AlignCenter) self.tableWidget.setItem(0, 0, item) item = QtWidgets.QTableWidgetItem() item.setTextAlignment(QtCore.Qt.AlignCenter) self.tableWidget.setItem(0, 1, item) item = QtWidgets.QTableWidgetItem() item.setTextAlignment(QtCore.Qt.AlignCenter) self.tableWidget.setItem(0, 2, item) item = QtWidgets.QTableWidgetItem() self.tableWidget.setItem(0, 3, item) self.layoutWidget_5 = QtWidgets.QWidget(self.page_3) self.layoutWidget_5.setGeometry(QtCore.QRect(40, 60, 130, 22)) self.layoutWidget_5.setObjectName("layoutWidget_5") self.horizontalLayout_6 = QtWidgets.QHBoxLayout(self.layoutWidget_5) self.horizontalLayout_6.setContentsMargins(0, 0, 0, 0) self.horizontalLayout_6.setObjectName("horizontalLayout_6") self.label_12 = QtWidgets.QLabel(self.layoutWidget_5) self.label_12.setObjectName("label_12") self.horizontalLayout_6.addWidget(self.label_12) self.comboBox_2 = QtWidgets.QComboBox(self.layoutWidget_5) self.comboBox_2.setObjectName("comboBox_2") self.comboBox_2.addItem("") self.comboBox_2.addItem("") self.comboBox_2.addItem("") self.horizontalLayout_6.addWidget(self.comboBox_2) self.stackedWidget.addWidget(self.page_3) self.page_4 = QtWidgets.QWidget() self.page_4.setObjectName("page_4") self.label_8 = QtWidgets.QLabel(self.page_4) self.label_8.setGeometry(QtCore.QRect(60, 100, 41, 16)) self.label_8.setObjectName("label_8") self.label_10 = QtWidgets.QLabel(self.page_4) self.label_10.setGeometry(QtCore.QRect(60, 140, 54, 12)) self.label_10.setObjectName("label_10") self.line = QtWidgets.QFrame(self.page_4) self.line.setGeometry(QtCore.QRect(60, 120, 171, 16)) self.line.setFrameShape(QtWidgets.QFrame.HLine) self.line.setFrameShadow(QtWidgets.QFrame.Sunken) self.line.setObjectName("line") self.line_2 = QtWidgets.QFrame(self.page_4) self.line_2.setGeometry(QtCore.QRect(60, 170, 171, 16)) self.line_2.setFrameShape(QtWidgets.QFrame.HLine) self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_2.setObjectName("line_2") self.line_3 = QtWidgets.QFrame(self.page_4) self.line_3.setGeometry(QtCore.QRect(60, 220, 171, 16)) self.line_3.setFrameShape(QtWidgets.QFrame.HLine) self.line_3.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_3.setObjectName("line_3") self.label_9 = QtWidgets.QLabel(self.page_4) self.label_9.setGeometry(QtCore.QRect(120, 100, 101, 16)) self.label_9.setObjectName("label_9") self.label_11 = QtWidgets.QLabel(self.page_4) self.label_11.setGeometry(QtCore.QRect(120, 140, 101, 16)) self.label_11.setObjectName("label_11") self.pushButton_6 = QtWidgets.QPushButton(self.page_4) self.pushButton_6.setGeometry(QtCore.QRect(60, 190, 75, 23)) icon5 = QtGui.QIcon() icon5.addPixmap( QtGui.QPixmap("C:/Users/Administrator/Pictures/xiugai.jpg"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.pushButton_6.setIcon(icon5) self.pushButton_6.setObjectName("pushButton_6") self.stackedWidget.addWidget(self.page_4) self.widget_4 = QtWidgets.QWidget(Form) self.widget_4.setGeometry(QtCore.QRect(169, 0, 551, 101)) self.widget_4.setObjectName("widget_4") self.widget_2 = QtWebEngineWidgets.QWebEngineView(self.widget_4) self.widget_2.setGeometry(QtCore.QRect(0, 0, 290, 101)) self.widget_2.setObjectName("widget_2") self.label_4 = QtWidgets.QLabel(self.widget_4) self.label_4.setGeometry(QtCore.QRect(450, 0, 101, 101)) self.label_4.setText("") self.label_4.setAlignment(QtCore.Qt.AlignCenter) self.label_4.setObjectName("label_4") self.label_21 = QtWidgets.QLabel(self.widget_4) self.label_21.setGeometry(QtCore.QRect(293, 1, 151, 41)) self.label_21.setText("") self.label_21.setObjectName("label_21") self.label_22 = QtWidgets.QLabel(self.widget_4) self.label_22.setGeometry(QtCore.QRect(290, 60, 151, 41)) self.label_22.setText("") self.label_22.setObjectName("label_22") self.retranslateUi(Form) self.stackedWidget.setCurrentIndex(1) QtCore.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): _translate = QtCore.QCoreApplication.translate Form.setWindowTitle(_translate("Form", "Lora系统")) self.pushButton.setText(_translate("Form", "环境检测")) self.pushButton_2.setText(_translate("Form", "灌溉控制")) self.pushButton_3.setText(_translate("Form", "设备工况")) self.pushButton_4.setText(_translate("Form", "个人中心")) self.label_2.setText(_translate("Form", "灌溉控制:手动控制")) self.label_19.setText(_translate("Form", "2020/02/12 19:21")) self.label_16.setText(_translate("Form", "控制状态")) self.label.setText(_translate("Form", "灌溉控制:自动控制")) self.label_18.setText(_translate("Form", "最近一次操作时间")) self.label_15.setText(_translate("Form", "2019/12/12 09:21")) self.label_17.setText(_translate("Form", "开关操作")) self.label_20.setText(_translate("Form", "地块位置:")) self.comboBox_3.setItemText(0, _translate("Form", "大棚一")) self.comboBox_3.setItemText(1, _translate("Form", "大棚二")) self.comboBox_3.setItemText(2, _translate("Form", "大棚三")) self.label_5.setText(_translate("Form", "地块位置:")) self.comboBox.setItemText(0, _translate("Form", "大棚一")) self.comboBox.setItemText(1, _translate("Form", "大棚二")) self.comboBox.setItemText(2, _translate("Form", "大棚三")) self.label_6.setText(_translate("Form", "当前湿度:")) self.label_24.setText(_translate("Form", "50%")) self.pushButton_5.setText(_translate("Form", "数据导出为Excel")) self.label_7.setText(_translate("Form", "当前温度:")) self.label_23.setText(_translate("Form", "25°C")) self.label_13.setText(_translate("Form", "当前二氧化碳浓度:")) self.label_25.setText(_translate("Form", "800ppm")) item = self.tableWidget.verticalHeaderItem(0) item.setText(_translate("Form", "1")) item = self.tableWidget.verticalHeaderItem(1) item.setText(_translate("Form", "2")) item = self.tableWidget.verticalHeaderItem(2) item.setText(_translate("Form", "3")) item = self.tableWidget.verticalHeaderItem(3) item.setText(_translate("Form", "4")) item = self.tableWidget.verticalHeaderItem(4) item.setText(_translate("Form", "5")) item = self.tableWidget.verticalHeaderItem(5) item.setText(_translate("Form", "6")) item = self.tableWidget.verticalHeaderItem(6) item.setText(_translate("Form", "7")) item = self.tableWidget.verticalHeaderItem(7) item.setText(_translate("Form", "8")) item = self.tableWidget.horizontalHeaderItem(0) item.setText(_translate("Form", "传感器名称")) item = self.tableWidget.horizontalHeaderItem(1) item.setText(_translate("Form", "监测名称")) item = self.tableWidget.horizontalHeaderItem(2) item.setText(_translate("Form", "最近检测值")) item = self.tableWidget.horizontalHeaderItem(3) item.setText(_translate("Form", "时间")) __sortingEnabled = self.tableWidget.isSortingEnabled() self.tableWidget.setSortingEnabled(False) self.tableWidget.setSortingEnabled(__sortingEnabled) self.label_12.setText(_translate("Form", "地块位置:")) self.comboBox_2.setItemText(0, _translate("Form", "大棚一")) self.comboBox_2.setItemText(1, _translate("Form", "大棚二")) self.comboBox_2.setItemText(2, _translate("Form", "大棚三")) self.label_8.setText(_translate("Form", "用户名:")) self.label_10.setText(_translate("Form", "密码:")) self.label_9.setText(_translate("Form", "TextLabel")) self.label_11.setText(_translate("Form", "TextLabel")) self.pushButton_6.setText(_translate("Form", "资料修改"))
class Ui_MainWindow(QMainWindow): def __init__(self): super(Ui_MainWindow, self).__init__() self.traindata = [] self.traindata4 = [] self.traindata3 = [] self.numberofclasses = 0 self.trueTestDataLabels = [] self.labeltestdata = [] self.testData = [] self.trueTestDataLabels4 = [] self.labeltestdata4 = [] self.testData4 = [] self.trueTestDataLabels3 = [] self.labeltestdata3 = [] self.testData3 = [] def setupUi(self): self.centralwidget = QtWidgets.QWidget() self.setMinimumSize(QtCore.QSize(1288, 696)) self.setMaximumSize(QtCore.QSize(1288, 696)) self.centralwidget.setObjectName("centralwidget") self.graphicsView = GraphicsLayoutWidget(self.centralwidget) self.graphicsView.setGeometry(QtCore.QRect(10, 80, 751, 321)) self.graphicsView.setObjectName("graphicsView") self.pushButtonExplore = QtWidgets.QPushButton(self.centralwidget) self.pushButtonExplore.setGeometry(QtCore.QRect(12, 402, 337, 27)) self.pushButtonExplore.setObjectName("pushButtonExplore") self.graphicsView_2 = GraphicsLayoutWidget(self.centralwidget) self.graphicsView_2.setGeometry(QtCore.QRect(10, 440, 751, 221)) self.graphicsView_2.setObjectName("graphicsView_2") self.layoutWidget = QtWidgets.QWidget(self.centralwidget) self.layoutWidget.setGeometry(QtCore.QRect(11, 11, 750, 62)) self.layoutWidget.setObjectName("layoutWidget") self.gridLayout = QtWidgets.QGridLayout(self.layoutWidget) self.gridLayout.setContentsMargins(0, 0, 0, 0) self.gridLayout.setObjectName("gridLayout") self.pushButtotLoadIris = QtWidgets.QPushButton(self.layoutWidget) self.pushButtotLoadIris.setObjectName("pushButtotLoadIris") self.gridLayout.addWidget(self.pushButtotLoadIris, 0, 0, 1, 2) self.checkBoxSuspended = QtWidgets.QCheckBox(self.layoutWidget) self.checkBoxSuspended.setObjectName("checkBoxSuspended") self.gridLayout.addWidget(self.checkBoxSuspended, 0, 2, 1, 3) self.pushButtonCheckTest = QtWidgets.QPushButton(self.layoutWidget) self.pushButtonCheckTest.setObjectName("pushButtonCheckTest") self.gridLayout.addWidget(self.pushButtonCheckTest, 0, 5, 1, 3) self.pushButtonGenerate = QtWidgets.QPushButton(self.layoutWidget) self.pushButtonGenerate.setObjectName("pushButtonGenerate") self.gridLayout.addWidget(self.pushButtonGenerate, 1, 0, 1, 1) self.label_3 = QtWidgets.QLabel(self.layoutWidget) self.label_3.setObjectName("label_3") self.gridLayout.addWidget(self.label_3, 1, 1, 1, 2) self.spinBoxClasses = QtWidgets.QSpinBox(self.layoutWidget) self.spinBoxClasses.setMinimum(1) self.spinBoxClasses.setMaximum(10) self.spinBoxClasses.setObjectName("spinBoxClasses") self.gridLayout.addWidget(self.spinBoxClasses, 1, 3, 1, 1) self.label_2 = QtWidgets.QLabel(self.layoutWidget) self.label_2.setObjectName("label_2") self.gridLayout.addWidget(self.label_2, 1, 4, 1, 1) self.spinBoxElements = QtWidgets.QSpinBox(self.layoutWidget) self.spinBoxElements.setMinimum(1) self.spinBoxElements.setProperty("value", 20) self.spinBoxElements.setObjectName("spinBoxElements") self.gridLayout.addWidget(self.spinBoxElements, 1, 5, 1, 1) self.label = QtWidgets.QLabel(self.layoutWidget) self.label.setObjectName("label") self.gridLayout.addWidget(self.label, 1, 6, 1, 1) self.spinBoxK = QtWidgets.QSpinBox(self.layoutWidget) self.spinBoxK.setMinimum(3) self.spinBoxK.setSingleStep(2) self.spinBoxK.setObjectName("spinBoxK") self.gridLayout.addWidget(self.spinBoxK, 1, 7, 1, 1) self.graphicsView_3 = GraphicsLayoutWidget(self.centralwidget) self.graphicsView_3.setGeometry(QtCore.QRect(790, 80, 441, 311)) self.graphicsView_3.setObjectName("graphicsView_3") self.pushButtonCompare = QtWidgets.QPushButton(self.centralwidget) self.pushButtonCompare.setGeometry(QtCore.QRect(790, 40, 361, 31)) self.pushButtonCompare.setObjectName("pushButtonCompare") self.retranslateUi() QtCore.QMetaObject.connectSlotsByName(self) self.w1 = self.graphicsView.addPlot() self.w2 = self.graphicsView_2.addPlot() self.w3 = self.graphicsView_3.addPlot() self.legend = self.w2.addLegend() self.legend1 = self.w3.addLegend() self.w1.scene().sigMouseClicked.connect(self.onClick) self.pushButtonGenerate.clicked.connect(self.generateDate) self.pushButtotLoadIris.clicked.connect(self.loadIris) self.pushButtonCheckTest.clicked.connect(self.checkTest) self.pushButtonExplore.clicked.connect(self.explore) self.pushButtonCompare.clicked.connect(self.compareOptions) self.setCentralWidget(self.centralwidget) def retranslateUi(self): _translate = QtCore.QCoreApplication.translate self.pushButtonExplore.setText( _translate("MainWindow", "Исследование влияния k для разных метрик")) self.pushButtotLoadIris.setText( _translate("MainWindow", "Загрузить данные с ирисом")) self.checkBoxSuspended.setText( _translate("MainWindow", "Использовать взвешенный kNN")) self.pushButtonCheckTest.setText( _translate("MainWindow", "Проверить тестовую выборку")) self.pushButtonGenerate.setText( _translate("MainWindow", "Сгенерировать выборку")) self.label_3.setText(_translate("MainWindow", "Кол-во классов")) self.label_2.setText(_translate("MainWindow", "Кол-во элементов")) self.label.setText(_translate("MainWindow", "Кол-во соседей(K)")) self.pushButtonCompare.setText( _translate("MainWindow", "Сравнить точность от 2,3,4 признаков для ириса")) def keyPressEvent(self, e): if e.key() == Qt.Key_Escape: self.close() if e.key() == Qt.Key_Delete: self.w1.clear() classes = [] i = 0 while i < 20: classes.append([]) i += 1 for i in self.traindata: classes[i[1]].append(np.asarray(i[0])) i = 0 for j in classes: myS = pg.ScatterPlotItem(size=10, pen=pg.mkPen(colors[i]), brush=pg.mkBrush(255, 255, 255, 120)) myspots = [] if (len(j)): for k in j: myspots.append({'pos': k, 'data': i}) i += 1 myS.addPoints(myspots) self.w1.addItem(myS) def onClick(self, event): if len(self.traindata) == 0: return 1 vb = self.w1.vb mousePoint = vb.mapSceneToView(event.scenePos()) testdata = [[mousePoint.x(), mousePoint.y()]] testDataLabels = classifyKNN(self.traindata, testdata, self.spinBoxK.value(), self.numberofclasses, self.checkBoxSuspended.isChecked(), 0) myS = pg.ScatterPlotItem(size=10, pen=pg.mkPen(colors[testDataLabels[0]]), brush=pg.mkBrush(255, 255, 255, 120)) myspots = [] myspots.append({ 'pos': np.asarray([mousePoint.x(), mousePoint.y()]), 'data': testDataLabels[0] }) myS.addPoints(myspots) self.w1.addItem(myS) self.traindata.append([[mousePoint.x(), mousePoint.y()], testDataLabels[0]]) print(self.traindata) def loadIris(self): self.w1.clear() self.traindata = [] self.traindata4 = [] self.traindata3 = [] self.trueTestDataLabels = [] self.labeltestdata = [] self.testData = [] self.trueTestDataLabels4 = [] self.labeltestdata4 = [] self.testData4 = [] self.trueTestDataLabels3 = [] self.labeltestdata3 = [] self.testData3 = [] from sklearn.datasets import load_iris train = load_iris().data labels = load_iris().target self.traindata4 = [] n = 0 for i in train: self.traindata4.append([]) self.traindata4[n].append(i.tolist()) self.traindata4[n].append(labels[n]) n += 1 # testDataLabels = classifyKNN(trainData, testData, 5, 2) trainData4, self.trueTestDataLabels4 = splitTrainTest( self.traindata4, 0.33) self.traindata4 = trainData4 self.testData4 = [ self.trueTestDataLabels4[i][0] for i in range(len(self.trueTestDataLabels4)) ] # self.labeltestdata = classifyKNN(trainData, self.testData, self.spinBoxK.value(), self.numberofclasses,self.checkBoxSuspended.isChecked()) for i in trainData4: self.traindata3.append([i[0][:-1], i[1]]) print(self.traindata3) # self.labeltestdata = classifyKNN(trainData, self.testData, self.spinBoxK.value(), self.numberofclasses,self.checkBoxSuspended.isChecked()) for i in self.testData4: self.testData3.append(i[:-1]) print(i[:-1]) for i in self.trueTestDataLabels4: self.trueTestDataLabels3.append([i[0][:-1], i[1]]) classes = [] i = 0 for i in trainData4: self.traindata.append([i[0][:-2], i[1]]) print(self.traindata3) # self.labeltestdata = classifyKNN(trainData, self.testData, self.spinBoxK.value(), self.numberofclasses,self.checkBoxSuspended.isChecked()) for i in self.testData4: self.testData.append(i[:-2]) print(i[:-1]) for i in self.trueTestDataLabels4: self.trueTestDataLabels.append([i[0][:-2], i[1]]) i = 0 while i < 20: classes.append([]) i += 1 for i in self.traindata: classes[i[1]].append(np.asarray(i[0])) i = 0 for j in classes: myS = pg.ScatterPlotItem(size=10, pen=pg.mkPen(colors[i]), brush=pg.mkBrush(255, 255, 255, 120)) myspots = [] if (len(j)): for k in j: myspots.append({'pos': k, 'data': i}) i += 1 myS.addPoints(myspots) self.w1.addItem(myS) self.spinBoxClasses.setValue(3) self.spinBoxK.setValue(4) self.spinBoxK.setSingleStep(3) self.spinBoxElements.setValue(75) self.spinBoxClasses.setValue(3) self.numberofclasses = 3 def checkTest(self): if len(self.traindata) == 0: return 1 print(self.testData) self.labeltestdata = classifyKNN(self.traindata, self.testData, self.spinBoxK.value(), self.numberofclasses, self.checkBoxSuspended.isChecked(), 0) x = sum([ int(self.labeltestdata[i] == self.trueTestDataLabels[i][1]) for i in range(len(self.trueTestDataLabels)) ]) / float(len(self.trueTestDataLabels)) classes = [] i = 0 while i < 20: classes.append([]) i += 1 for i in self.trueTestDataLabels: classes[i[1]].append(np.asarray(i[0])) i = 0 for j in classes: myS = pg.ScatterPlotItem(size=10, pen=pg.mkPen(colors[i]), brush=pg.mkBrush(255, 255, 255, 120)) myspots = [] if (len(j)): for k in j: myspots.append({'pos': k, 'data': i}) i += 1 myS.addPoints(myspots) self.w1.addItem(myS) dialog = QtWidgets.QMessageBox(QtWidgets.QMessageBox.Information, "Точность классификации ", str(x), buttons=QtWidgets.QMessageBox.Ok, parent=None) result = dialog.exec_() def changeK(self, i): self.spinBoxK.setSingleStep(i) self.spinBoxK.setMinimum(i + 1) self.spinBoxK.setProperty("value", i + 1) def generateDate(self): self.w1.clear() data = generateData(self.spinBoxElements.value(), self.spinBoxClasses.value()) self.numberofclasses = self.spinBoxClasses.value() trainData, self.trueTestDataLabels = splitTrainTest(data, 0.33) self.traindata = trainData self.testData = [ self.trueTestDataLabels[i][0] for i in range(len(self.trueTestDataLabels)) ] # self.labeltestdata = classifyKNN(trainData, self.testData, self.spinBoxK.value(), self.numberofclasses,self.checkBoxSuspended.isChecked()) classes = [] i = 0 while i < 20: classes.append([]) i += 1 for i in trainData: classes[i[1]].append(np.asarray(i[0])) i = 0 for j in classes: myS = pg.ScatterPlotItem(size=10, pen=pg.mkPen(colors[i]), brush=pg.mkBrush(255, 255, 255, 120)) myspots = [] if (len(j)): for k in j: myspots.append({'pos': k, 'data': i}) i += 1 myS.addPoints(myspots) self.w1.addItem(myS) def explore(self): if not (self.traindata): return trainData = [] testData = [] trueTestDataLabels = [] msg = QMessageBox() msg.setIcon(QMessageBox.Information) msg.setWindowTitle("Выбор количества признаков") msg.setText("Privet") twoOptions = msg.addButton('2 признака', QMessageBox.AcceptRole) threeOptions = msg.addButton('3 признака', QMessageBox.AcceptRole) fourOptions = msg.addButton('4 признака', QMessageBox.AcceptRole) msg.exec() if msg.clickedButton() == twoOptions: trainData = self.traindata testData = self.testData trueTestDataLabels = self.trueTestDataLabels elif msg.clickedButton() == threeOptions: trainData = self.traindata3 testData = self.testData3 trueTestDataLabels = self.trueTestDataLabels3 elif msg.clickedButton() == fourOptions: trainData = self.traindata4 testData = self.testData4 trueTestDataLabels = self.trueTestDataLabels4 self.w2.clear() self.legend.scene().removeItem(self.legend) self.legend = self.w2.addLegend((20, 20), (420, 20)) myspots = [] i = self.spinBoxK.value() while i < self.spinBoxElements.value(): labeltestdata = classifyKNN(trainData, testData, i, self.numberofclasses, self.checkBoxSuspended.isChecked(), 0) myspots.append([ i, sum([ int(labeltestdata[i] == trueTestDataLabels[i][1]) for i in range(len(trueTestDataLabels)) ]) / float(len(trueTestDataLabels)) ]) i += self.spinBoxK.singleStep() self.w2.plot( x=[x[0] for x in myspots], y=[y[1] for y in myspots], symbol='o', name="Евклидово расстояние", pen=(0, 0, 255), ) myspots = [] i = self.spinBoxK.value() while i < self.spinBoxElements.value(): labeltestdata = classifyKNN(trainData, testData, i, self.numberofclasses, self.checkBoxSuspended.isChecked(), 1) myspots.append([ i, sum([ int(labeltestdata[i] == trueTestDataLabels[i][1]) for i in range(len(trueTestDataLabels)) ]) / float(len(trueTestDataLabels)) ]) i += self.spinBoxK.singleStep() self.w2.plot(x=[x[0] for x in myspots], y=[y[1] for y in myspots], pen=(255, 0, 0), symbolBrush=(255, 0, 0), symbolPen='w', name="Манхэттенское расстояние") myspots = [] i = self.spinBoxK.value() while i < self.spinBoxElements.value(): labeltestdata = classifyKNN(trainData, testData, i, self.numberofclasses, self.checkBoxSuspended.isChecked(), 2) myspots.append([ i, sum([ int(labeltestdata[i] == trueTestDataLabels[i][1]) for i in range(len(trueTestDataLabels)) ]) / float(len(trueTestDataLabels)) ]) i += self.spinBoxK.singleStep() self.w2.plot(x=[x[0] for x in myspots], y=[y[1] for y in myspots], pen=(0, 255, 0), symbolBrush=(0, 255, 0), symbolPen='g', name="Расстояние Чебышева") self.w2.setLabels(title='Сравнение метрик', left="Точность", bottom="K") self.setMinimumSize(QtCore.QSize(1288, 717)) self.setMaximumSize(QtCore.QSize(1288, 717)) #self.w2.plot(myspots, pen=(200, 200, 200), symbolBrush=(255, 0, 0), symbolPen='w') def compareOptions(self): if not (self.traindata): return self.w3.clear() self.legend1.scene().removeItem(self.legend1) self.legend1 = self.w3.addLegend((20, 20), (20, 0)) msg = QMessageBox() msg.setIcon(QMessageBox.Information) msg.setWindowTitle("Выбор метрики") msg.setText("Privet") twoOptions = msg.addButton('Евклидово расстояние', QMessageBox.AcceptRole) threeOptions = msg.addButton('Манхэттенское расстояние', QMessageBox.AcceptRole) fourOptions = msg.addButton('Расстояние Чебышева', QMessageBox.AcceptRole) msg.exec() if msg.clickedButton() == twoOptions: metrick = 0 elif msg.clickedButton() == threeOptions: metrick = 1 elif msg.clickedButton() == fourOptions: metrick = 2 myspots = [] i = self.spinBoxK.value() while i < self.spinBoxElements.value(): self.labeltestdata4 = classifyKNN( self.traindata4, self.testData4, i, self.numberofclasses, self.checkBoxSuspended.isChecked(), metrick) myspots.append([ i, sum([ int(self.labeltestdata4[i] == self.trueTestDataLabels4[i] [1]) for i in range(len(self.trueTestDataLabels4)) ]) / float(len(self.trueTestDataLabels4)) ]) i += self.spinBoxK.singleStep() self.w3.plot(x=[x[0] for x in myspots], y=[y[1] for y in myspots], pen=(0, 255, 0), symbolBrush=(0, 255, 0), symbolPen='g', name="Четыре признака") self.w3.setLabels(title='Сравнение точности в зависимости от признака', left="Точность", bottom="K") myspots = [] i = self.spinBoxK.value() while i < self.spinBoxElements.value(): self.labeltestdata3 = classifyKNN( self.traindata3, self.testData3, i, self.numberofclasses, self.checkBoxSuspended.isChecked(), metrick) myspots.append([ i, sum([ int(self.labeltestdata3[i] == self.trueTestDataLabels3[i] [1]) for i in range(len(self.trueTestDataLabels3)) ]) / float(len(self.trueTestDataLabels3)) ]) i += self.spinBoxK.singleStep() self.w3.plot(x=[x[0] for x in myspots], y=[y[1] for y in myspots], pen=(0, 255, 0), symbolBrush=(0, 0, 255), symbol='o', name="Три признака") self.w3.setLabels(title='Сравнение точности в зависимости от признака', left="Точность", bottom="K") myspots = [] i = self.spinBoxK.value() while i < self.spinBoxElements.value(): self.labeltestdata = classifyKNN( self.traindata, self.testData, i, self.numberofclasses, self.checkBoxSuspended.isChecked(), metrick) myspots.append([ i, sum([ int(self.labeltestdata[i] == self.trueTestDataLabels[i][1]) for i in range(len(self.trueTestDataLabels)) ]) / float(len(self.trueTestDataLabels)) ]) i += self.spinBoxK.singleStep() self.w3.plot(x=[x[0] for x in myspots], y=[y[1] for y in myspots], pen=(255, 0, 0), symbolBrush=(255, 0, 0), symbolPen='w', name="Два признака") self.w3.setLabels(title='Сравнение точности в зависимости от признака', left="Точность", bottom="K")
class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName(_fromUtf8("MainWindow")) MainWindow.resize(1062, 897) self.centralwidget = QtGui.QWidget(MainWindow) self.centralwidget.setObjectName(_fromUtf8("centralwidget")) self.gridLayout = QtGui.QGridLayout(self.centralwidget) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.graphicsView = GraphicsLayoutWidget(self.centralwidget) self.graphicsView.setObjectName(_fromUtf8("graphicsView")) self.gridLayout.addWidget(self.graphicsView, 0, 0, 1, 1) MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtGui.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 1062, 21)) self.menubar.setObjectName(_fromUtf8("menubar")) self.menuFile = QtGui.QMenu(self.menubar) self.menuFile.setObjectName(_fromUtf8("menuFile")) self.menuSave = QtGui.QMenu(self.menuFile) self.menuSave.setObjectName(_fromUtf8("menuSave")) self.menuActions = QtGui.QMenu(self.menubar) self.menuActions.setObjectName(_fromUtf8("menuActions")) MainWindow.setMenuBar(self.menubar) self.statusbar = QtGui.QStatusBar(MainWindow) self.statusbar.setObjectName(_fromUtf8("statusbar")) MainWindow.setStatusBar(self.statusbar) self.toolBar = QtGui.QToolBar(MainWindow) self.toolBar.setObjectName(_fromUtf8("toolBar")) MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar) self.dockWidget = QtGui.QDockWidget(MainWindow) self.dockWidget.setObjectName(_fromUtf8("dockWidget")) self.dockWidgetContents = QtGui.QWidget() self.dockWidgetContents.setObjectName(_fromUtf8("dockWidgetContents")) self.gridLayout_3 = QtGui.QGridLayout(self.dockWidgetContents) self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) self.groupBox_3 = QtGui.QGroupBox(self.dockWidgetContents) self.groupBox_3.setObjectName(_fromUtf8("groupBox_3")) self.gridLayout_7 = QtGui.QGridLayout(self.groupBox_3) self.gridLayout_7.setObjectName(_fromUtf8("gridLayout_7")) self.rc_response_window_spinbox = QtGui.QDoubleSpinBox(self.groupBox_3) self.rc_response_window_spinbox.setSingleStep(0.01) self.rc_response_window_spinbox.setProperty("value", 0.08) self.rc_response_window_spinbox.setObjectName(_fromUtf8("rc_response_window_spinbox")) self.gridLayout_7.addWidget(self.rc_response_window_spinbox, 2, 1, 1, 1) self.label_8 = QtGui.QLabel(self.groupBox_3) self.label_8.setObjectName(_fromUtf8("label_8")) self.gridLayout_7.addWidget(self.label_8, 0, 0, 1, 1) self.label_9 = QtGui.QLabel(self.groupBox_3) self.label_9.setObjectName(_fromUtf8("label_9")) self.gridLayout_7.addWidget(self.label_9, 1, 0, 1, 1) self.rc_response_delay_spinbox = QtGui.QDoubleSpinBox(self.groupBox_3) self.rc_response_delay_spinbox.setSingleStep(0.01) self.rc_response_delay_spinbox.setProperty("value", 0.02) self.rc_response_delay_spinbox.setObjectName(_fromUtf8("rc_response_delay_spinbox")) self.gridLayout_7.addWidget(self.rc_response_delay_spinbox, 1, 1, 1, 1) self.rc_trigger_threshold_spinbox = QtGui.QDoubleSpinBox(self.groupBox_3) self.rc_trigger_threshold_spinbox.setSingleStep(0.1) self.rc_trigger_threshold_spinbox.setProperty("value", 1.0) self.rc_trigger_threshold_spinbox.setObjectName(_fromUtf8("rc_trigger_threshold_spinbox")) self.gridLayout_7.addWidget(self.rc_trigger_threshold_spinbox, 0, 1, 1, 1) self.label_10 = QtGui.QLabel(self.groupBox_3) self.label_10.setObjectName(_fromUtf8("label_10")) self.gridLayout_7.addWidget(self.label_10, 2, 0, 1, 1) self.rc_show_rc_checkbox = QtGui.QCheckBox(self.groupBox_3) self.rc_show_rc_checkbox.setObjectName(_fromUtf8("rc_show_rc_checkbox")) self.gridLayout_7.addWidget(self.rc_show_rc_checkbox, 3, 0, 1, 1) self.gridLayout_3.addWidget(self.groupBox_3, 3, 0, 1, 1) self.file_mode_layout = QtGui.QGridLayout() self.file_mode_layout.setObjectName(_fromUtf8("file_mode_layout")) self.fileLineEdit1 = QtGui.QLineEdit(self.dockWidgetContents) self.fileLineEdit1.setReadOnly(True) self.fileLineEdit1.setObjectName(_fromUtf8("fileLineEdit1")) self.file_mode_layout.addWidget(self.fileLineEdit1, 2, 1, 1, 1) self.comboBox = QtGui.QComboBox(self.dockWidgetContents) self.comboBox.setObjectName(_fromUtf8("comboBox")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.file_mode_layout.addWidget(self.comboBox, 0, 1, 1, 1) self.fileLabel1 = QtGui.QLabel(self.dockWidgetContents) self.fileLabel1.setObjectName(_fromUtf8("fileLabel1")) self.file_mode_layout.addWidget(self.fileLabel1, 2, 0, 1, 1) self.label_15 = QtGui.QLabel(self.dockWidgetContents) self.label_15.setObjectName(_fromUtf8("label_15")) self.file_mode_layout.addWidget(self.label_15, 1, 0, 1, 1) self.label_11 = QtGui.QLabel(self.dockWidgetContents) self.label_11.setObjectName(_fromUtf8("label_11")) self.file_mode_layout.addWidget(self.label_11, 0, 0, 1, 1) self.visibility_label = QtGui.QLabel(self.dockWidgetContents) self.visibility_label.setText(_fromUtf8("")) self.visibility_label.setPixmap(QtGui.QPixmap(_fromUtf8(":/Resources/images/VisibleOn.png"))) self.visibility_label.setObjectName(_fromUtf8("visibility_label")) self.file_mode_layout.addWidget(self.visibility_label, 1, 2, 1, 1) self.fileCheckbox1 = QtGui.QCheckBox(self.dockWidgetContents) self.fileCheckbox1.setText(_fromUtf8("")) self.fileCheckbox1.setChecked(True) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/Resources/images/VisibleOn.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/Resources/images/VisibleOff.png")), QtGui.QIcon.Normal, QtGui.QIcon.On) self.fileCheckbox1.setProperty("indicatorIcon", icon) self.fileCheckbox1.setProperty("indicatorIconSize", QtCore.QSize(21, 21)) self.fileCheckbox1.setObjectName(_fromUtf8("fileCheckbox1")) self.file_mode_layout.addWidget(self.fileCheckbox1, 2, 2, 1, 1) self.gridLayout_3.addLayout(self.file_mode_layout, 0, 0, 1, 1) self.command_annotate_button = QtGui.QCommandLinkButton(self.dockWidgetContents) self.command_annotate_button.setObjectName(_fromUtf8("command_annotate_button")) self.gridLayout_3.addWidget(self.command_annotate_button, 4, 0, 1, 1) spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout_3.addItem(spacerItem, 5, 0, 1, 1) self.groupBox = QtGui.QGroupBox(self.dockWidgetContents) self.groupBox.setObjectName(_fromUtf8("groupBox")) self.gridLayout_6 = QtGui.QGridLayout(self.groupBox) self.gridLayout_6.setObjectName(_fromUtf8("gridLayout_6")) self.pas_response_window_spinbox = QtGui.QDoubleSpinBox(self.groupBox) self.pas_response_window_spinbox.setSingleStep(0.01) self.pas_response_window_spinbox.setProperty("value", 0.08) self.pas_response_window_spinbox.setObjectName(_fromUtf8("pas_response_window_spinbox")) self.gridLayout_6.addWidget(self.pas_response_window_spinbox, 2, 1, 1, 1) self.label_6 = QtGui.QLabel(self.groupBox) self.label_6.setObjectName(_fromUtf8("label_6")) self.gridLayout_6.addWidget(self.label_6, 0, 0, 1, 1) self.label_5 = QtGui.QLabel(self.groupBox) self.label_5.setObjectName(_fromUtf8("label_5")) self.gridLayout_6.addWidget(self.label_5, 1, 0, 1, 1) self.pas_response_delay_spinbox = QtGui.QDoubleSpinBox(self.groupBox) self.pas_response_delay_spinbox.setSingleStep(0.01) self.pas_response_delay_spinbox.setProperty("value", 0.02) self.pas_response_delay_spinbox.setObjectName(_fromUtf8("pas_response_delay_spinbox")) self.gridLayout_6.addWidget(self.pas_response_delay_spinbox, 1, 1, 1, 1) self.pas_trigger_threshold_spinbox = QtGui.QDoubleSpinBox(self.groupBox) self.pas_trigger_threshold_spinbox.setSingleStep(0.1) self.pas_trigger_threshold_spinbox.setProperty("value", 1.0) self.pas_trigger_threshold_spinbox.setObjectName(_fromUtf8("pas_trigger_threshold_spinbox")) self.gridLayout_6.addWidget(self.pas_trigger_threshold_spinbox, 0, 1, 1, 1) self.label_7 = QtGui.QLabel(self.groupBox) self.label_7.setObjectName(_fromUtf8("label_7")) self.gridLayout_6.addWidget(self.label_7, 2, 0, 1, 1) self.pas_show_mep_amplitude_checkbox = QtGui.QCheckBox(self.groupBox) self.pas_show_mep_amplitude_checkbox.setObjectName(_fromUtf8("pas_show_mep_amplitude_checkbox")) self.gridLayout_6.addWidget(self.pas_show_mep_amplitude_checkbox, 3, 0, 1, 1) self.gridLayout_3.addWidget(self.groupBox, 1, 0, 1, 1) self.groupBox_2 = QtGui.QGroupBox(self.dockWidgetContents) self.groupBox_2.setObjectName(_fromUtf8("groupBox_2")) self.gridLayout_4 = QtGui.QGridLayout(self.groupBox_2) self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4")) self.csp_duration_vs_time_checkbox = QtGui.QCheckBox(self.groupBox_2) self.csp_duration_vs_time_checkbox.setObjectName(_fromUtf8("csp_duration_vs_time_checkbox")) self.gridLayout_4.addWidget(self.csp_duration_vs_time_checkbox, 5, 0, 1, 2) self.csp_csp_threshold_spinbox = QtGui.QDoubleSpinBox(self.groupBox_2) self.csp_csp_threshold_spinbox.setSingleStep(0.01) self.csp_csp_threshold_spinbox.setProperty("value", 0.1) self.csp_csp_threshold_spinbox.setObjectName(_fromUtf8("csp_csp_threshold_spinbox")) self.gridLayout_4.addWidget(self.csp_csp_threshold_spinbox, 1, 1, 1, 1) self.csp_response_delay_spinbox = QtGui.QDoubleSpinBox(self.groupBox_2) self.csp_response_delay_spinbox.setSingleStep(0.1) self.csp_response_delay_spinbox.setObjectName(_fromUtf8("csp_response_delay_spinbox")) self.gridLayout_4.addWidget(self.csp_response_delay_spinbox, 3, 1, 1, 1) self.csp_trigger_threshold_spinbox = QtGui.QDoubleSpinBox(self.groupBox_2) self.csp_trigger_threshold_spinbox.setSingleStep(0.1) self.csp_trigger_threshold_spinbox.setProperty("value", 1.0) self.csp_trigger_threshold_spinbox.setObjectName(_fromUtf8("csp_trigger_threshold_spinbox")) self.gridLayout_4.addWidget(self.csp_trigger_threshold_spinbox, 2, 1, 1, 1) self.label_14 = QtGui.QLabel(self.groupBox_2) self.label_14.setObjectName(_fromUtf8("label_14")) self.gridLayout_4.addWidget(self.label_14, 1, 0, 1, 1) self.csp_response_window_spinbox = QtGui.QDoubleSpinBox(self.groupBox_2) self.csp_response_window_spinbox.setSingleStep(0.1) self.csp_response_window_spinbox.setProperty("value", 1.0) self.csp_response_window_spinbox.setObjectName(_fromUtf8("csp_response_window_spinbox")) self.gridLayout_4.addWidget(self.csp_response_window_spinbox, 4, 1, 1, 1) self.label_4 = QtGui.QLabel(self.groupBox_2) self.label_4.setObjectName(_fromUtf8("label_4")) self.gridLayout_4.addWidget(self.label_4, 3, 0, 1, 1) self.label_13 = QtGui.QLabel(self.groupBox_2) self.label_13.setObjectName(_fromUtf8("label_13")) self.gridLayout_4.addWidget(self.label_13, 4, 0, 1, 1) self.label_12 = QtGui.QLabel(self.groupBox_2) self.label_12.setObjectName(_fromUtf8("label_12")) self.gridLayout_4.addWidget(self.label_12, 2, 0, 1, 1) self.csp_show_csp_window_checkbox = QtGui.QCheckBox(self.groupBox_2) self.csp_show_csp_window_checkbox.setObjectName(_fromUtf8("csp_show_csp_window_checkbox")) self.gridLayout_4.addWidget(self.csp_show_csp_window_checkbox, 0, 0, 1, 1) self.gridLayout_3.addWidget(self.groupBox_2, 2, 0, 1, 1) self.dockWidget_2 = QtGui.QDockWidget(self.dockWidgetContents) self.dockWidget_2.setObjectName(_fromUtf8("dockWidget_2")) self.dockWidgetContents_2 = QtGui.QWidget() self.dockWidgetContents_2.setObjectName(_fromUtf8("dockWidgetContents_2")) self.gridLayout_2 = QtGui.QGridLayout(self.dockWidgetContents_2) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.plainTextEdit = QtGui.QPlainTextEdit(self.dockWidgetContents_2) self.plainTextEdit.setReadOnly(True) self.plainTextEdit.setObjectName(_fromUtf8("plainTextEdit")) self.gridLayout_2.addWidget(self.plainTextEdit, 0, 0, 1, 1) self.dockWidget_2.setWidget(self.dockWidgetContents_2) self.gridLayout_3.addWidget(self.dockWidget_2, 6, 0, 1, 1) self.dockWidget.setWidget(self.dockWidgetContents) MainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(1), self.dockWidget) self.actionLoad = QtGui.QAction(MainWindow) self.actionLoad.setObjectName(_fromUtf8("actionLoad")) self.actionCSV = QtGui.QAction(MainWindow) self.actionCSV.setObjectName(_fromUtf8("actionCSV")) self.actionExit = QtGui.QAction(MainWindow) self.actionExit.setObjectName(_fromUtf8("actionExit")) self.actionAnnotate_Min_Max = QtGui.QAction(MainWindow) self.actionAnnotate_Min_Max.setObjectName(_fromUtf8("actionAnnotate_Min_Max")) self.actionClear_Scene = QtGui.QAction(MainWindow) self.actionClear_Scene.setObjectName(_fromUtf8("actionClear_Scene")) self.actionManually_Add_Trigger = QtGui.QAction(MainWindow) self.actionManually_Add_Trigger.setObjectName(_fromUtf8("actionManually_Add_Trigger")) self.menuSave.addAction(self.actionCSV) self.menuFile.addAction(self.actionLoad) self.menuFile.addAction(self.menuSave.menuAction()) self.menuFile.addSeparator() self.menuFile.addAction(self.actionExit) self.menuActions.addAction(self.actionAnnotate_Min_Max) self.menuActions.addAction(self.actionClear_Scene) self.menuActions.addSeparator() self.menuActions.addAction(self.actionManually_Add_Trigger) self.menubar.addAction(self.menuFile.menuAction()) self.menubar.addAction(self.menuActions.menuAction()) self.retranslateUi(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow", None)) self.menuFile.setTitle(_translate("MainWindow", "File", None)) self.menuSave.setTitle(_translate("MainWindow", "Save", None)) self.menuActions.setTitle(_translate("MainWindow", "Actions", None)) self.toolBar.setWindowTitle(_translate("MainWindow", "toolBar", None)) self.groupBox_3.setTitle(_translate("MainWindow", "Recruitment Curve Parameters", None)) self.label_8.setText(_translate("MainWindow", "Trigger Threshold:", None)) self.label_9.setText(_translate("MainWindow", "Response Delay (s):", None)) self.label_10.setText(_translate("MainWindow", "Response Window (s):", None)) self.rc_show_rc_checkbox.setText(_translate("MainWindow", "Recruitment Curve vs Intensity Plot", None)) self.fileLineEdit1.setPlaceholderText(_translate("MainWindow", "Load a .smr file.", None)) self.comboBox.setItemText(0, _translate("MainWindow", "PAS", None)) self.comboBox.setItemText(1, _translate("MainWindow", "Recruitment Curve", None)) self.comboBox.setItemText(2, _translate("MainWindow", "Paired Pulse", None)) self.comboBox.setItemText(3, _translate("MainWindow", "Cortical Silent Period", None)) self.fileLabel1.setText(_translate("MainWindow", "File 1:", None)) self.label_15.setText(_translate("MainWindow", "Current Files:", None)) self.label_11.setText(_translate("MainWindow", "Mode: ", None)) self.command_annotate_button.setText(_translate("MainWindow", "Annotate", None)) self.groupBox.setTitle(_translate("MainWindow", "PAS/Paired Pulse Parameters", None)) self.label_6.setText(_translate("MainWindow", "Trigger Threshold:", None)) self.label_5.setText(_translate("MainWindow", "Response Delay (s):", None)) self.label_7.setText(_translate("MainWindow", "Response Window (s):", None)) self.pas_show_mep_amplitude_checkbox.setText(_translate("MainWindow", "Show MEP Amplitude vs Time Plot", None)) self.groupBox_2.setTitle(_translate("MainWindow", "Cortical Silent Period Parameters", None)) self.csp_duration_vs_time_checkbox.setText(_translate("MainWindow", "Show CSP Duration vs Time Plot", None)) self.label_14.setText(_translate("MainWindow", "CSP Threshold", None)) self.label_4.setText(_translate("MainWindow", "Response Delay (s):", None)) self.label_13.setText(_translate("MainWindow", "Response Window (s):", None)) self.label_12.setText(_translate("MainWindow", "Trigger Threshold:", None)) self.csp_show_csp_window_checkbox.setText(_translate("MainWindow", "Show CSP Window", None)) self.dockWidget_2.setWindowTitle(_translate("MainWindow", "Log Console", None)) self.actionLoad.setText(_translate("MainWindow", "Load", None)) self.actionCSV.setText(_translate("MainWindow", "CSV", None)) self.actionExit.setText(_translate("MainWindow", "Exit", None)) self.actionAnnotate_Min_Max.setText(_translate("MainWindow", "Annotate Min/Max", None)) self.actionClear_Scene.setText(_translate("MainWindow", "Clear Scene", None)) self.actionManually_Add_Trigger.setText(_translate("MainWindow", "Manually Add Trigger", None))
class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName(_fromUtf8("MainWindow")) MainWindow.resize(1112, 586) self.centralwidget = QtGui.QWidget(MainWindow) self.centralwidget.setObjectName(_fromUtf8("centralwidget")) self.gridLayout_10 = QtGui.QGridLayout(self.centralwidget) self.gridLayout_10.setObjectName(_fromUtf8("gridLayout_10")) self.groupBox_2 = QtGui.QGroupBox(self.centralwidget) self.groupBox_2.setTitle(_fromUtf8("")) self.groupBox_2.setObjectName(_fromUtf8("groupBox_2")) self.gridLayout_5 = QtGui.QGridLayout(self.groupBox_2) self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5")) self.push_Iniciar = QtGui.QPushButton(self.groupBox_2) self.push_Iniciar.setObjectName(_fromUtf8("push_Iniciar")) self.gridLayout_5.addWidget(self.push_Iniciar, 0, 0, 1, 1) self.push_Finalizar = QtGui.QPushButton(self.groupBox_2) self.push_Finalizar.setObjectName(_fromUtf8("push_Finalizar")) self.gridLayout_5.addWidget(self.push_Finalizar, 1, 0, 1, 1) self.push_Salir = QtGui.QPushButton(self.groupBox_2) self.push_Salir.setObjectName(_fromUtf8("push_Salir")) self.gridLayout_5.addWidget(self.push_Salir, 2, 0, 1, 1) self.gridLayout_10.addWidget(self.groupBox_2, 0, 0, 1, 1) self.gridLayout_14 = QtGui.QGridLayout() self.gridLayout_14.setObjectName(_fromUtf8("gridLayout_14")) spacerItem = QtGui.QSpacerItem(900, 1, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum) self.gridLayout_14.addItem(spacerItem, 1, 0, 1, 1) self.tabWidget = QtGui.QTabWidget(self.centralwidget) self.tabWidget.setObjectName(_fromUtf8("tabWidget")) self.tab_2 = QtGui.QWidget() self.tab_2.setObjectName(_fromUtf8("tab_2")) self.gridLayoutWidget_6 = QtGui.QWidget(self.tab_2) self.gridLayoutWidget_6.setGeometry(QtCore.QRect(280, 10, 591, 431)) self.gridLayoutWidget_6.setObjectName(_fromUtf8("gridLayoutWidget_6")) self.gridLayout_25 = QtGui.QGridLayout(self.gridLayoutWidget_6) self.gridLayout_25.setMargin(0) self.gridLayout_25.setObjectName(_fromUtf8("gridLayout_25")) self.graphicsView_eeg = GraphicsLayoutWidget(self.gridLayoutWidget_6) self.graphicsView_eeg.setObjectName(_fromUtf8("graphicsView_eeg")) self.gridLayout_25.addWidget(self.graphicsView_eeg, 0, 0, 1, 1) self.push_eegini = QtGui.QPushButton(self.tab_2) self.push_eegini.setGeometry(QtCore.QRect(700, 470, 93, 29)) self.push_eegini.setObjectName(_fromUtf8("push_eegini")) self.push_eegend = QtGui.QPushButton(self.tab_2) self.push_eegend.setGeometry(QtCore.QRect(800, 470, 93, 29)) self.push_eegend.setObjectName(_fromUtf8("push_eegend")) self.gridLayoutWidget_4 = QtGui.QWidget(self.tab_2) self.gridLayoutWidget_4.setGeometry(QtCore.QRect(10, 10, 261, 91)) self.gridLayoutWidget_4.setObjectName(_fromUtf8("gridLayoutWidget_4")) self.gridLayout_4 = QtGui.QGridLayout(self.gridLayoutWidget_4) self.gridLayout_4.setMargin(0) self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4")) self.treeWidget_eeg = QtGui.QTreeWidget(self.gridLayoutWidget_4) self.treeWidget_eeg.setObjectName(_fromUtf8("treeWidget_eeg")) self.treeWidget_eeg.headerItem().setText(0, _fromUtf8("1")) self.treeWidget_eeg.header().setVisible(False) self.gridLayout_4.addWidget(self.treeWidget_eeg, 0, 0, 1, 1) self.tabWidget.addTab(self.tab_2, _fromUtf8("")) self.tab = QtGui.QWidget() self.tab.setObjectName(_fromUtf8("tab")) self.gridLayoutWidget_5 = QtGui.QWidget(self.tab) self.gridLayoutWidget_5.setGeometry(QtCore.QRect(280, 10, 591, 431)) self.gridLayoutWidget_5.setObjectName(_fromUtf8("gridLayoutWidget_5")) self.gridLayout_21 = QtGui.QGridLayout(self.gridLayoutWidget_5) self.gridLayout_21.setMargin(0) self.gridLayout_21.setObjectName(_fromUtf8("gridLayout_21")) self.graphicsView_emg = GraphicsLayoutWidget(self.gridLayoutWidget_5) self.graphicsView_emg.setObjectName(_fromUtf8("graphicsView_emg")) self.gridLayout_21.addWidget(self.graphicsView_emg, 0, 0, 1, 1) self.push_emgend = QtGui.QPushButton(self.tab) self.push_emgend.setGeometry(QtCore.QRect(800, 470, 93, 29)) self.push_emgend.setObjectName(_fromUtf8("push_emgend")) self.push_emgini = QtGui.QPushButton(self.tab) self.push_emgini.setGeometry(QtCore.QRect(700, 470, 93, 29)) self.push_emgini.setObjectName(_fromUtf8("push_emgini")) self.gridLayoutWidget_3 = QtGui.QWidget(self.tab) self.gridLayoutWidget_3.setGeometry(QtCore.QRect(10, 10, 261, 91)) self.gridLayoutWidget_3.setObjectName(_fromUtf8("gridLayoutWidget_3")) self.gridLayout_3 = QtGui.QGridLayout(self.gridLayoutWidget_3) self.gridLayout_3.setMargin(0) self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) self.treeWidget_emg = QtGui.QTreeWidget(self.gridLayoutWidget_3) self.treeWidget_emg.setObjectName(_fromUtf8("treeWidget_emg")) self.treeWidget_emg.headerItem().setText(0, _fromUtf8("1")) self.treeWidget_emg.header().setVisible(False) self.gridLayout_3.addWidget(self.treeWidget_emg, 0, 0, 1, 1) self.tabWidget.addTab(self.tab, _fromUtf8("")) self.tab_3 = QtGui.QWidget() self.tab_3.setObjectName(_fromUtf8("tab_3")) self.gridLayoutWidget_13 = QtGui.QWidget(self.tab_3) self.gridLayoutWidget_13.setGeometry(QtCore.QRect(280, 10, 591, 431)) self.gridLayoutWidget_13.setObjectName(_fromUtf8("gridLayoutWidget_13")) self.gridLayout_29 = QtGui.QGridLayout(self.gridLayoutWidget_13) self.gridLayout_29.setMargin(0) self.gridLayout_29.setObjectName(_fromUtf8("gridLayout_29")) self.graphicsView_gyro = GraphicsLayoutWidget(self.gridLayoutWidget_13) self.graphicsView_gyro.setObjectName(_fromUtf8("graphicsView_gyro")) self.gridLayout_29.addWidget(self.graphicsView_gyro, 0, 1, 1, 1) self.push_Gyroini = QtGui.QPushButton(self.tab_3) self.push_Gyroini.setGeometry(QtCore.QRect(700, 470, 93, 29)) self.push_Gyroini.setObjectName(_fromUtf8("push_Gyroini")) self.push_Gyroend = QtGui.QPushButton(self.tab_3) self.push_Gyroend.setGeometry(QtCore.QRect(800, 470, 93, 29)) self.push_Gyroend.setObjectName(_fromUtf8("push_Gyroend")) self.gridLayoutWidget_2 = QtGui.QWidget(self.tab_3) self.gridLayoutWidget_2.setGeometry(QtCore.QRect(10, 10, 261, 91)) self.gridLayoutWidget_2.setObjectName(_fromUtf8("gridLayoutWidget_2")) self.gridLayout_2 = QtGui.QGridLayout(self.gridLayoutWidget_2) self.gridLayout_2.setMargin(0) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.treeWidget_gyro = QtGui.QTreeWidget(self.gridLayoutWidget_2) self.treeWidget_gyro.setProperty("showDropIndicator", True) self.treeWidget_gyro.setExpandsOnDoubleClick(True) self.treeWidget_gyro.setColumnCount(1) self.treeWidget_gyro.setObjectName(_fromUtf8("treeWidget_gyro")) self.treeWidget_gyro.headerItem().setText(0, _fromUtf8("1")) self.treeWidget_gyro.header().setVisible(False) self.treeWidget_gyro.header().setStretchLastSection(True) self.gridLayout_2.addWidget(self.treeWidget_gyro, 0, 0, 1, 1) self.tabWidget.addTab(self.tab_3, _fromUtf8("")) self.gridLayout_14.addWidget(self.tabWidget, 0, 0, 1, 1) self.gridLayout_10.addLayout(self.gridLayout_14, 0, 1, 5, 1) self.gridLayout_6 = QtGui.QGridLayout() self.gridLayout_6.setObjectName(_fromUtf8("gridLayout_6")) self.gB_bateria = QtGui.QGroupBox(self.centralwidget) self.gB_bateria.setMaximumSize(QtCore.QSize(184, 117)) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.gB_bateria.setFont(font) self.gB_bateria.setObjectName(_fromUtf8("gB_bateria")) self.gridLayout_13 = QtGui.QGridLayout(self.gB_bateria) self.gridLayout_13.setObjectName(_fromUtf8("gridLayout_13")) self.progressBar_Bat = QtGui.QProgressBar(self.gB_bateria) self.progressBar_Bat.setProperty("value", 0) self.progressBar_Bat.setObjectName(_fromUtf8("progressBar_Bat")) self.gridLayout_13.addWidget(self.progressBar_Bat, 0, 0, 1, 1) self.gridLayout_6.addWidget(self.gB_bateria, 0, 0, 1, 1) self.gridLayout_10.addLayout(self.gridLayout_6, 1, 0, 1, 1) self.gL_calidad = QtGui.QGridLayout() self.gL_calidad.setObjectName(_fromUtf8("gL_calidad")) self.gB_calidad = QtGui.QGroupBox(self.centralwidget) self.gB_calidad.setMaximumSize(QtCore.QSize(184, 312)) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.gB_calidad.setFont(font) self.gB_calidad.setObjectName(_fromUtf8("gB_calidad")) self.gridLayout_12 = QtGui.QGridLayout(self.gB_calidad) self.gridLayout_12.setObjectName(_fromUtf8("gridLayout_12")) self.gridLayout_11 = QtGui.QGridLayout() self.gridLayout_11.setObjectName(_fromUtf8("gridLayout_11")) spacerItem1 = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum) self.gridLayout_11.addItem(spacerItem1, 1, 0, 1, 1) self.progressBar_CH3 = QtGui.QProgressBar(self.gB_calidad) self.progressBar_CH3.setProperty("value", 100) self.progressBar_CH3.setTextVisible(False) self.progressBar_CH3.setObjectName(_fromUtf8("progressBar_CH3")) self.gridLayout_11.addWidget(self.progressBar_CH3, 2, 1, 1, 1) self.progressBar_CH4 = QtGui.QProgressBar(self.gB_calidad) self.progressBar_CH4.setProperty("value", 100) self.progressBar_CH4.setTextVisible(False) self.progressBar_CH4.setObjectName(_fromUtf8("progressBar_CH4")) self.gridLayout_11.addWidget(self.progressBar_CH4, 3, 1, 1, 1) self.progressBar_CH5 = QtGui.QProgressBar(self.gB_calidad) self.progressBar_CH5.setProperty("value", 100) self.progressBar_CH5.setTextVisible(False) self.progressBar_CH5.setObjectName(_fromUtf8("progressBar_CH5")) self.gridLayout_11.addWidget(self.progressBar_CH5, 4, 1, 1, 1) self.progressBar_CH1 = QtGui.QProgressBar(self.gB_calidad) self.progressBar_CH1.setProperty("value", 100) self.progressBar_CH1.setTextVisible(False) self.progressBar_CH1.setObjectName(_fromUtf8("progressBar_CH1")) self.gridLayout_11.addWidget(self.progressBar_CH1, 0, 1, 1, 1) self.progressBar_CH2 = QtGui.QProgressBar(self.gB_calidad) self.progressBar_CH2.setProperty("value", 100) self.progressBar_CH2.setTextVisible(False) self.progressBar_CH2.setObjectName(_fromUtf8("progressBar_CH2")) self.gridLayout_11.addWidget(self.progressBar_CH2, 1, 1, 1, 1) spacerItem2 = QtGui.QSpacerItem(120, 20, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum) self.gridLayout_11.addItem(spacerItem2, 2, 2, 1, 1) self.gridLayout_12.addLayout(self.gridLayout_11, 0, 1, 1, 1) self.vL_epoc = QtGui.QVBoxLayout() self.vL_epoc.setObjectName(_fromUtf8("vL_epoc")) self.label_3 = QtGui.QLabel(self.gB_calidad) self.label_3.setObjectName(_fromUtf8("label_3")) self.vL_epoc.addWidget(self.label_3) self.label_4 = QtGui.QLabel(self.gB_calidad) self.label_4.setObjectName(_fromUtf8("label_4")) self.vL_epoc.addWidget(self.label_4) self.label_5 = QtGui.QLabel(self.gB_calidad) self.label_5.setObjectName(_fromUtf8("label_5")) self.vL_epoc.addWidget(self.label_5) self.label_6 = QtGui.QLabel(self.gB_calidad) self.label_6.setObjectName(_fromUtf8("label_6")) self.vL_epoc.addWidget(self.label_6) self.label_7 = QtGui.QLabel(self.gB_calidad) self.label_7.setObjectName(_fromUtf8("label_7")) self.vL_epoc.addWidget(self.label_7) self.gridLayout_12.addLayout(self.vL_epoc, 0, 0, 1, 1) self.gL_calidad.addWidget(self.gB_calidad, 0, 0, 1, 1) self.gridLayout_10.addLayout(self.gL_calidad, 2, 0, 1, 1) MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtGui.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 1112, 27)) 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.tabWidget.setCurrentIndex(2) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): MainWindow.setWindowTitle(_translate("MainWindow", "EPOC Visualizer", None)) self.push_Iniciar.setText(_translate("MainWindow", "Iniciar", None)) self.push_Finalizar.setText(_translate("MainWindow", "Pausar", None)) self.push_Salir.setText(_translate("MainWindow", "Salir", None)) self.push_eegini.setText(_translate("MainWindow", "Iniciar", None)) self.push_eegend.setText(_translate("MainWindow", "Pausar", None)) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("MainWindow", "EEG", None)) self.push_emgend.setText(_translate("MainWindow", "Pausar", None)) self.push_emgini.setText(_translate("MainWindow", "Iniciar", None)) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("MainWindow", "EMG", None)) self.push_Gyroini.setText(_translate("MainWindow", "Iniciar", None)) self.push_Gyroend.setText(_translate("MainWindow", "Pausar", None)) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_3), _translate("MainWindow", "Gyro", None)) self.gB_bateria.setTitle(_translate("MainWindow", "Nivel de Bateria", None)) self.gB_calidad.setTitle(_translate("MainWindow", "Calidad de Canales", None)) self.label_3.setText(_translate("MainWindow", "CH1 O2", None)) self.label_4.setText(_translate("MainWindow", "CH2 AF3", None)) self.label_5.setText(_translate("MainWindow", "CH3 F8", None)) self.label_6.setText(_translate("MainWindow", "CH4 F3", None)) self.label_7.setText(_translate("MainWindow", "CH5 F4", None))
class Ui_Form(object): def setupUi(self, Form): '''Defines the general properties of the window''' Form.setObjectName(_fromUtf8("Form")) Form.resize(1500, 1000) self.gridLayout = QtGui.QGridLayout(Form) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) '''Defines the text label for reference beam properties''' self.refbeamlabel = QtGui.QLabel(Form) self.refbeamlabel.setObjectName(_fromUtf8("refbeamlabel")) self.gridLayout.addWidget(self.refbeamlabel, 1, 0, 1, 1) '''Defines the spin box for x0''' self.x0Spin = QtGui.QDoubleSpinBox(Form) self.x0Spin.setRange(0.,754.) self.x0Spin.setProperty("value", 350) self.x0Spin.setObjectName(_fromUtf8("x0Spin")) self.gridLayout.addWidget(self.x0Spin, 2, 0, 1, 1) '''Defines the label for the x0 spin box''' self.x0label = QtGui.QLabel(Form) self.x0label.setObjectName(_fromUtf8("x0label")) self.gridLayout.addWidget(self.x0label, 2, 1, 1, 1) '''Defines the spin box for y0''' self.y0Spin = QtGui.QDoubleSpinBox(Form) self.y0Spin.setRange(0.,480.) self.y0Spin.setProperty("value", 240) self.y0Spin.setObjectName(_fromUtf8("y0Spin")) self.gridLayout.addWidget(self.y0Spin, 3, 0, 1, 1) '''Defines the label for the y0 spin box''' self.y0label = QtGui.QLabel(Form) self.y0label.setObjectName(_fromUtf8("y0label")) self.gridLayout.addWidget(self.y0label, 3, 1, 1, 1) '''Defines the spin box for the horizontal waist''' self.sigmaxSpin = QtGui.QDoubleSpinBox(Form) self.sigmaxSpin.setRange(0.,500.) self.sigmaxSpin.setProperty("value", 30.) self.sigmaxSpin.setObjectName(_fromUtf8("sigmaxSpin")) self.gridLayout.addWidget(self.sigmaxSpin, 4, 0, 1, 1) '''Defines the label for the horizontal waist spin box''' self.sigmaxlabel = QtGui.QLabel(Form) self.sigmaxlabel.setObjectName(_fromUtf8("sigmaxlabel")) self.gridLayout.addWidget(self.sigmaxlabel, 4, 1, 1, 1) '''Defines the spin box for the vertical waist''' self.sigmaySpin = QtGui.QDoubleSpinBox(Form) self.sigmaySpin.setRange(0.,500.) self.sigmaySpin.setProperty("value", 50.) self.sigmaySpin.setObjectName(_fromUtf8("sigmaySpin")) self.gridLayout.addWidget(self.sigmaySpin, 5, 0, 1, 1) '''Defines the label for the vertical waist spin box''' self.sigmaylabel = QtGui.QLabel(Form) self.sigmaylabel.setObjectName(_fromUtf8("sigmaylabel")) self.gridLayout.addWidget(self.sigmaylabel, 5, 1, 1, 1) # self.rotangleSpin = QtGui.QDoubleSpinBox(Form) # self.rotangleSpin.setProperty("value", 200.) # self.rotangleSpin.setObjectName(_fromUtf8("rotangleSpin")) # self.gridLayout.addWidget(self.rotangleSpin, 5, 0, 1, 1) # self.rotanglelabel = QtGui.QLabel(Form) # self.rotanglelabel.setObjectName(_fromUtf8("rotanglelabel")) # self.gridLayout.addWidget(self.rotanglelabel, 5, 1, 1, 1) '''Defines the label for the camera''' self.camlabel = QtGui.QLabel(Form) self.camlabel.setObjectName(_fromUtf8("camlabel")) self.gridLayout.addWidget(self.camlabel, 1, 2, 1, 1) '''Defines the field to choose a camera''' self.choosecam = QtGui.QComboBox() self.choosecam.setObjectName(_fromUtf8("choosecam")) self.gridLayout.addWidget(self.choosecam, 2, 2, 1, 1) # self.choosecam.addItem("Test 1") # self.choosecam.addItem("Test 2") '''Defines the text label for camera settings''' self.camsettingslabel = QtGui.QLabel(Form) self.camsettingslabel.setObjectName(_fromUtf8("camsettingslabel")) self.gridLayout.addWidget(self.camsettingslabel, 4, 2, 1, 2) '''Defines the spin box for the exposure time''' self.exposureSpin = QtGui.QDoubleSpinBox(Form) self.exposureSpin.setRange(0.,100.) self.exposureSpin.setProperty("value", 1.) self.exposureSpin.setDecimals(4) self.exposureSpin.setSingleStep(0.1) self.exposureSpin.setObjectName(_fromUtf8("exposureSpin")) self.gridLayout.addWidget(self.exposureSpin, 5, 2, 1, 1) '''Defines the label for the exposure time spin box''' self.exposurelabel = QtGui.QLabel(Form) self.exposurelabel.setObjectName(_fromUtf8("exposurelabel")) self.gridLayout.addWidget(self.exposurelabel, 5, 3, 1, 1) '''Defines the spin box for the gain value''' self.gainSpin = QtGui.QSpinBox(Form) self.gainSpin.setRange(16,64) self.gainSpin.setProperty("value", 16) self.gainSpin.setObjectName(_fromUtf8("gainSpin")) self.gridLayout.addWidget(self.gainSpin, 6, 2, 1, 1) '''Defines the label for the gain value spin box''' self.gainlabel = QtGui.QLabel(Form) self.gainlabel.setObjectName(_fromUtf8("gainlabel")) self.gridLayout.addWidget(self.gainlabel, 6, 3, 1, 1) '''Defines the 'Connect ROI' push button''' self.connect = QtGui.QPushButton('Connect ROI') self.connect.setObjectName(_fromUtf8("connect")) self.gridLayout.addWidget(self.connect, 1, 4, 1, 1) self.connect.setCheckable(True) self.connect.setToolTip('Connect position of ROI<br>with the position of the peak') '''Defines the 'Hold' push button''' self.hold = QtGui.QPushButton('Hold') self.hold.setObjectName(_fromUtf8("hold")) self.gridLayout.addWidget(self.hold, 2, 4, 1, 1) self.hold.setCheckable(True) self.hold.setToolTip('Pause the live view') # self.hold.setChecked(False) '''Defins the text box for the 'orientation' heading''' self.orientationlabel = QtGui.QLabel(Form) self.orientationlabel.setObjectName(_fromUtf8("orientationlabel")) self.gridLayout.addWidget(self.orientationlabel, 4, 4, 1, 1) # '''Defines the buttons for choosing the orientation''' # self.OrientationGroup = QtGui.QButtonGroup(Form) # self.horRadio = QtGui.QRadioButton(Form) # self.horRadio.setChecked(True) # self.horRadio.setObjectName(_fromUtf8("horRadio")) # self.gridLayout.addWidget(self.horRadio, 4, 4, 1, 1) # self.vertRadio = QtGui.QRadioButton(Form) # # self.vertRadio.setChecked(True) # self.vertRadio.setObjectName(_fromUtf8("vertRadio")) # self.gridLayout.addWidget(self.vertRadio, 5, 4, 1, 1) # # self.stack = QtGui.QStackedWidget(Form) # # self.stack.setObjectName(_fromUtf8("stack")) # self.OrientationGroup.addButton(self.horRadio) # self.OrientationGroup.addButton(self.vertRadio) '''Defines the 'Rotate counterclockwise' push button''' self.rotccw = QtGui.QPushButton('Rotate counterclockwise') self.rotccw.setObjectName(_fromUtf8("rotccw")) self.gridLayout.addWidget(self.rotccw, 5, 4, 1, 1) self.rotccw.setToolTip('Rotate the image 90 degrees counterclockwise') # self.hold.setChecked(False) '''Defines the 'Rotate clockwise' push button''' self.rotcw = QtGui.QPushButton('Rotate clockwise') self.rotcw.setObjectName(_fromUtf8("rotcw")) self.gridLayout.addWidget(self.rotcw, 6, 4, 1, 1) self.rotcw.setToolTip('Rotate the image 90 degrees clockwise') '''Defines the heading for the 'options' column''' self.optionslabel = QtGui.QLabel(Form) self.optionslabel.setObjectName(_fromUtf8("optionslabel")) self.gridLayout.addWidget(self.optionslabel, 1, 5, 1, 1) '''Defines the check box for fitting''' self.fitCheck = QtGui.QCheckBox(Form) self.fitCheck.setObjectName(_fromUtf8("fitCheck")) self.gridLayout.addWidget(self.fitCheck, 2, 5, 1, 1) self.fitCheck.setChecked(True) '''Defines the check box for tracking''' self.trackCheck = QtGui.QCheckBox(Form) self.trackCheck.setObjectName(_fromUtf8("trackCheck")) self.gridLayout.addWidget(self.trackCheck, 3, 5, 1, 1) self.trackCheck.setChecked(True) '''Defines the check box for the reference beam''' self.refCheck = QtGui.QCheckBox(Form) self.refCheck.setObjectName(_fromUtf8("refCheck")) self.gridLayout.addWidget(self.refCheck, 4, 5, 1, 1) self.refCheck.setChecked(True) '''Defines the heading for the 'time evolution plot' column''' self.evplotlabel = QtGui.QLabel(Form) self.evplotlabel.setObjectName(_fromUtf8("evplotlabel")) self.gridLayout.addWidget(self.evplotlabel, 1, 6, 1, 1) '''Defines the buttons for the time evolution plot''' self.TimeEvGroup = QtGui.QButtonGroup(Form) self.ampRadio = QtGui.QRadioButton(Form) self.ampRadio.setChecked(True) self.ampRadio.setObjectName(_fromUtf8("ampRadio")) self.gridLayout.addWidget(self.ampRadio, 2, 6, 1, 1) self.poshorRadio = QtGui.QRadioButton(Form) # self.poshorRadio.setChecked(True) self.poshorRadio.setObjectName(_fromUtf8("poshorRadio")) self.gridLayout.addWidget(self.poshorRadio, 3, 6, 1, 1) self.posvertRadio = QtGui.QRadioButton(Form) self.posvertRadio.setObjectName(_fromUtf8("posvertRadio")) self.gridLayout.addWidget(self.posvertRadio, 4, 6, 1, 1) self.waisthorRadio = QtGui.QRadioButton(Form) self.waisthorRadio.setObjectName(_fromUtf8("waisthorRadio")) self.gridLayout.addWidget(self.waisthorRadio, 5, 6, 1, 1) self.waistvertRadio = QtGui.QRadioButton(Form) self.waistvertRadio.setObjectName(_fromUtf8("waistvertRadio")) self.gridLayout.addWidget(self.waistvertRadio, 6, 6, 1, 1) self.distRadio = QtGui.QRadioButton(Form) self.distRadio.setObjectName(_fromUtf8("distRadio")) self.gridLayout.addWidget(self.distRadio, 7, 6, 1, 1) self.TimeEvGroup.addButton(self.ampRadio) self.TimeEvGroup.addButton(self.poshorRadio) self.TimeEvGroup.addButton(self.posvertRadio) self.TimeEvGroup.addButton(self.waisthorRadio) self.TimeEvGroup.addButton(self.waistvertRadio) self.TimeEvGroup.addButton(self.distRadio) '''Defines the plot widget''' self.plot = GraphicsLayoutWidget(Form) self.plot.setObjectName(_fromUtf8("plot")) self.gridLayout.addWidget(self.plot, 0, 0, 1, 7) '''Puts everything together''' self.retranslateUi(Form) # self.stack.setCurrentIndex(2) QtCore.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): '''Sets the right names to the objects''' Form.setWindowTitle(QtGui.QApplication.translate("Form", "VRmagic USB Cam Live View", None, QtGui.QApplication.UnicodeUTF8)) # self.pixelModeCheck.setText(QtGui.QApplication.translate("Form", "pixel mode", None, QtGui.QApplication.UnicodeUTF8)) self.refbeamlabel.setText(QtGui.QApplication.translate("Form", "Reference Beam", None, QtGui.QApplication.UnicodeUTF8)) self.x0label.setText(QtGui.QApplication.translate("Form", "x(0)", None, QtGui.QApplication.UnicodeUTF8)) self.y0label.setText(QtGui.QApplication.translate("Form", "y(0)", None, QtGui.QApplication.UnicodeUTF8)) self.sigmaxlabel.setText(QtGui.QApplication.translate("Form", "Waist horizontal", None, QtGui.QApplication.UnicodeUTF8)) self.sigmaylabel.setText(QtGui.QApplication.translate("Form", "Waist vertical", None, QtGui.QApplication.UnicodeUTF8)) # self.rotanglelabel.setText(QtGui.QApplication.translate("Form", "Rotation angle", None, QtGui.QApplication.UnicodeUTF8)) self.camlabel.setText(QtGui.QApplication.translate("Form", "Camera", None, QtGui.QApplication.UnicodeUTF8)) self.camsettingslabel.setText(QtGui.QApplication.translate("Form", "Camera settings", None, QtGui.QApplication.UnicodeUTF8)) self.exposurelabel.setText(QtGui.QApplication.translate("Form", "Exposure time [ms]", None, QtGui.QApplication.UnicodeUTF8)) self.gainlabel.setText(QtGui.QApplication.translate("Form", "Gain", None, QtGui.QApplication.UnicodeUTF8)) self.orientationlabel.setText(QtGui.QApplication.translate("Form", "Orientation", None, QtGui.QApplication.UnicodeUTF8)) # self.horRadio.setText(QtGui.QApplication.translate("Form", "horizontal", None)) # self.vertRadio.setText(QtGui.QApplication.translate("Form", "vertical", None)) self.optionslabel.setText(QtGui.QApplication.translate("Form", "Options", None, QtGui.QApplication.UnicodeUTF8)) self.fitCheck.setText(QtGui.QApplication.translate("Form", "Show Fit", None, QtGui.QApplication.UnicodeUTF8)) self.trackCheck.setText(QtGui.QApplication.translate("Form", "Track Beam", None, QtGui.QApplication.UnicodeUTF8)) self.refCheck.setText(QtGui.QApplication.translate("Form", "Show Reference Beam", None, QtGui.QApplication.UnicodeUTF8)) self.evplotlabel.setText(QtGui.QApplication.translate("Form", "Time Evolution Plot", None, QtGui.QApplication.UnicodeUTF8)) self.ampRadio.setText(QtGui.QApplication.translate("Form", "Amplitude", None)) self.poshorRadio.setText(QtGui.QApplication.translate("Form", "Horizontal position", None)) self.posvertRadio.setText(QtGui.QApplication.translate("Form", "Vertical position", None)) self.waisthorRadio.setText(QtGui.QApplication.translate("Form", "Horizontal waist", None)) self.waistvertRadio.setText(QtGui.QApplication.translate("Form", "Vertical waist", None)) self.distRadio.setText(QtGui.QApplication.translate("Form", "Distance", None))
class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName(_fromUtf8("MainWindow")) MainWindow.resize(1348, 946) MainWindow.setMinimumSize(QtCore.QSize(0, 0)) MainWindow.setStyleSheet( _fromUtf8( "\n" "/*\n" " Android Material Dark\n" " COLOR_DARK = #212121 Grey 900\n" " COLOR_MEDIUM = #424242 Grey 800\n" " COLOR_MEDLIGHT = #757575 Grey 600\n" " COLOR_LIGHT = #DDDDDD White\n" " COLOR_ACCENT = #3F51B5 Indigo 500\n" "*/\n" "\n" "* {\n" " background:qlineargradient(spread:pad, x1:0.517, y1:0.25, x2:1, y2:1, stop:0.211207 rgba(0, 0, 0, 255), stop:0.456897 rgba(39, 103, 106, 255), stop:1 rgba(255, 255, 255, 255));\n" " color: #DDDDDD;\n" " border: 1px solid #757575;\n" "}\n" "\n" "QWidget::item:selected {\n" " background: #3F51B5;\n" "}\n" "\n" "QCheckBox, QRadioButton {\n" " border: none;\n" "}\n" "\n" "QRadioButton::indicator, QCheckBox::indicator {\n" " width: 13px;\n" " height: 13px;\n" "}\n" "\n" "QRadioButton::indicator::unchecked, QCheckBox::indicator::unchecked {\n" " border: 1px solid #757575;\n" " background: none;\n" "}\n" "\n" "QRadioButton::indicator:unchecked:hover, QCheckBox::indicator:unchecked:hover {\n" " border: 1px solid #DDDDDD;\n" "}\n" "\n" "QRadioButton::indicator::checked, QCheckBox::indicator::checked {\n" " border: 1px solid #757575;\n" " background: #757575;\n" "}\n" "\n" "QRadioButton::indicator:checked:hover, QCheckBox::indicator:checked:hover {\n" " border: 1px solid #DDDDDD;\n" " background: #DDDDDD;\n" "}\n" "\n" "QGroupBox {\n" " margin-top: 6px;\n" "}\n" "\n" "QGroupBox::title {\n" " top: -7px;\n" " left: 7px;\n" "}\n" "\n" "QScrollBar {\n" " border: 1px solid #757575;\n" " background: #212121;\n" "}\n" "\n" "QScrollBar:horizontal {\n" " height: 15px;\n" " margin: 0px 0px 0px 32px;\n" "}\n" "\n" "QScrollBar:vertical {\n" " width: 15px;\n" " margin: 32px 0px 0px 0px;\n" "}\n" "\n" "QScrollBar::handle {\n" " background: #424242;\n" " border: 1px solid #757575;\n" "}\n" "\n" "QScrollBar::handle:horizontal {\n" " border-width: 0px 1px 0px 1px;\n" "}\n" "\n" "QScrollBar::handle:vertical {\n" " border-width: 1px 0px 1px 0px;\n" "}\n" "\n" "QScrollBar::handle:horizontal {\n" " min-width: 20px;\n" "}\n" "\n" "QScrollBar::handle:vertical {\n" " min-height: 20px;\n" "}\n" "\n" "QScrollBar::add-line, QScrollBar::sub-line {\n" " background:#424242;\n" " border: 1px solid #757575;\n" " subcontrol-origin: margin;\n" "}\n" "\n" "QScrollBar::add-line {\n" " position: absolute;\n" "}\n" "\n" "QScrollBar::add-line:horizontal {\n" " width: 15px;\n" " subcontrol-position: left;\n" " left: 15px;\n" "}\n" "\n" "QScrollBar::add-line:vertical {\n" " height: 15px;\n" " subcontrol-position: top;\n" " top: 15px;\n" "}\n" "\n" "QScrollBar::sub-line:horizontal {\n" " width: 15px;\n" " subcontrol-position: top left;\n" "}\n" "\n" "QScrollBar::sub-line:vertical {\n" " height: 15px;\n" " subcontrol-position: top;\n" "}\n" "\n" "QScrollBar:left-arrow, QScrollBar::right-arrow, QScrollBar::up-arrow, QScrollBar::down-arrow {\n" " border: 1px solid #757575;\n" " width: 3px;\n" " height: 3px;\n" "}\n" "\n" "QScrollBar::add-page, QScrollBar::sub-page {\n" " background: none;\n" "}\n" "\n" "QAbstractButton:hover {\n" " background: #424242;\n" "}\n" "\n" "QAbstractButton:pressed {\n" " background: #757575;\n" "}\n" "\n" "QAbstractItemView {\n" " show-decoration-selected: 1;\n" " selection-background-color: #3F51B5;\n" " selection-color: #DDDDDD;\n" " alternate-background-color: #424242;\n" "}\n" "\n" "QHeaderView {\n" " border: 1px solid #757575;\n" "}\n" "\n" "QHeaderView::section {\n" " background: #212121;\n" " border: 1px solid #757575;\n" " padding: 4px;\n" "}\n" "\n" "QHeaderView::section:selected, QHeaderView::section::checked {\n" " background: #424242;\n" "}\n" "\n" "QTableView {\n" " gridline-color: #757575;\n" "}\n" "\n" "QTabBar {\n" " margin-left: 2px;\n" "}\n" "\n" "QTabBar::tab {\n" " border-radius: 0px;\n" " padding: 4px;\n" " margin: 4px;\n" "}\n" "\n" "QTabBar::tab:selected {\n" " background: #424242;\n" "}\n" "\n" "QComboBox::down-arrow {\n" " border: 1px solid #757575;\n" " background: #424242;\n" "}\n" "\n" "QComboBox::drop-down {\n" " border: 1px solid #757575;\n" " background: #424242;\n" "}\n" "\n" "QComboBox::down-arrow {\n" " width: 3px;\n" " height: 3px;\n" " border: 1px solid #757575;\n" "}\n" "\n" "QAbstractSpinBox {\n" " padding-right: 15px;\n" "}\n" "\n" "QAbstractSpinBox::up-button, QAbstractSpinBox::down-button {\n" " border: 1px solid #757575;\n" " background: #424242;\n" " subcontrol-origin: border;\n" "}\n" "\n" "QAbstractSpinBox::up-arrow, QAbstractSpinBox::down-arrow {\n" " width: 3px;\n" " height: 3px;\n" " border: 1px solid #757575;\n" "}\n" "\n" "QSlider {\n" " border: none;\n" "}\n" "\n" "QSlider::groove:horizontal {\n" " height: 5px;\n" " margin: 4px 0px 4px 0px;\n" "}\n" "\n" "QSlider::groove:vertical {\n" " width: 5px;\n" " margin: 0px 4px 0px 4px;\n" "}\n" "\n" "QSlider::handle {\n" " border: 1px solid #757575;\n" " background: #424242;\n" "}\n" "\n" "QSlider::handle:horizontal {\n" " width: 15px;\n" " margin: -4px 0px -4px 0px;\n" "}\n" "\n" "QSlider::handle:vertical {\n" " height: 15px;\n" " margin: 0px -4px 0px -4px;\n" "}\n" "\n" "QSlider::add-page:vertical, QSlider::sub-page:horizontal {\n" " background: #3F51B5;\n" "}\n" "\n" "QSlider::sub-page:vertical, QSlider::add-page:horizontal {\n" " background: #424242;\n" "}\n" "\n" "QLabel {\n" " border: none;\n" "}\n" "\n" "QProgressBar {\n" " text-align: center;\n" "}\n" "\n" "QProgressBar::chunk {\n" " width: 1px;\n" " background-color: #3F51B5;\n" "}\n" "\n" "QMenu::separator {\n" " background: #424242;\n" "}\n" "\n" "QStatusBar {\n" " border: 1px;\n" " color: #3F51B5;\n" "}")) MainWindow.setTabShape(QtGui.QTabWidget.Rounded) self.centralwidget = QtGui.QWidget(MainWindow) self.centralwidget.setAutoFillBackground(False) self.centralwidget.setObjectName(_fromUtf8("centralwidget")) self.gridLayout = QtGui.QGridLayout(self.centralwidget) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.gridLayout_2 = QtGui.QGridLayout() self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.EnergieDep = QtGui.QLabel(self.centralwidget) font = QtGui.QFont() font.setFamily(_fromUtf8("URW Bookman L")) font.setPointSize(20) font.setBold(True) font.setItalic(False) font.setWeight(75) self.EnergieDep.setFont(font) self.EnergieDep.setObjectName(_fromUtf8("EnergieDep")) self.gridLayout_2.addWidget(self.EnergieDep, 0, 1, 1, 1) self.label = QtGui.QLabel(self.centralwidget) font = QtGui.QFont() font.setFamily(_fromUtf8("URW Bookman L")) font.setPointSize(20) font.setBold(True) font.setItalic(True) font.setWeight(75) self.label.setFont(font) self.label.setStyleSheet( _fromUtf8( "background:qlineargradient(spread:repeat, x1:1, y1:0, x2:0, y2:1, stop:0.310345 rgba(156, 143, 137, 133), stop:0.378572 rgba(104, 117, 126, 145), stop:0.392241 rgba(135, 143, 88, 130), stop:0.479796 rgba(136, 129, 116, 208), stop:0.537455 rgba(185, 214, 223, 69), stop:0.543862 rgba(51, 38, 12, 69), stop:0.592552 rgba(52, 52, 52, 130), stop:0.597677 rgba(17, 42, 49, 255), stop:0.74569 rgba(48, 48, 48, 69), stop:0.891088 rgba(101, 95, 60, 69));\n" "")) self.label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label.setObjectName(_fromUtf8("label")) self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1) self.label_2 = QtGui.QLabel(self.centralwidget) font = QtGui.QFont() font.setFamily(_fromUtf8("URW Bookman L")) font.setPointSize(20) font.setBold(True) font.setItalic(True) font.setWeight(75) self.label_2.setFont(font) self.label_2.setLayoutDirection(QtCore.Qt.LeftToRight) self.label_2.setStyleSheet( _fromUtf8( "background:qlineargradient(spread:repeat, x1:1, y1:0, x2:0, y2:1, stop:0.310345 rgba(156, 143, 137, 133), stop:0.378572 rgba(104, 117, 126, 145), stop:0.392241 rgba(135, 143, 88, 130), stop:0.479796 rgba(136, 129, 116, 208), stop:0.537455 rgba(185, 214, 223, 69), stop:0.543862 rgba(51, 38, 12, 69), stop:0.592552 rgba(52, 52, 52, 130), stop:0.597677 rgba(17, 42, 49, 255), stop:0.74569 rgba(48, 48, 48, 69), stop:0.891088 rgba(101, 95, 60, 69));\n" "")) self.label_2.setTextFormat(QtCore.Qt.AutoText) self.label_2.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout_2.addWidget(self.label_2, 0, 2, 1, 1) self.EventType = QtGui.QLabel(self.centralwidget) font = QtGui.QFont() font.setFamily(_fromUtf8("URW Bookman L")) font.setPointSize(20) font.setBold(True) font.setItalic(False) font.setWeight(75) self.EventType.setFont(font) self.EventType.setObjectName(_fromUtf8("EventType")) self.gridLayout_2.addWidget(self.EventType, 0, 3, 1, 1) self.gridLayout.addLayout(self.gridLayout_2, 0, 2, 1, 1) self.display = QtGui.QTabWidget(self.centralwidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.display.sizePolicy().hasHeightForWidth()) self.display.setSizePolicy(sizePolicy) self.display.setMinimumSize(QtCore.QSize(1330, 0)) self.display.setMaximumSize(QtCore.QSize(16777215, 16777215)) font = QtGui.QFont() font.setFamily(_fromUtf8("URW Bookman L")) font.setPointSize(20) font.setBold(True) font.setItalic(True) font.setWeight(75) self.display.setFont(font) self.display.setStyleSheet( _fromUtf8( "QTabWidget::tab-bar {\n" "left:0px;\n" "}\n" "/* Style the tab using the tab sub-control. Note that it reads QTabBar _not_ QTabWidget */\n" "\n" "QTabBar::tab:selected {\n" "border-color: rgb(77, 77, 77);\n" "}\n" "\n" "QTabWidget::pane { /* The tab widget frame */\n" "border-top: 5px solid qlineargradient(spread:pad, x1:0.176, y1:1, x2:0.797, y2:1, stop:0 rgba(136, 106, 22, 255), stop:0.225 rgba(166, 140, 41, 255), stop:0.285 rgba(204, 181, 74, 255), stop:0.345 rgba(235, 219, 102, 255), stop:0.415 rgba(245, 236, 112, 255), stop:0.52 rgba(209, 190, 76, 255), stop:0.57 rgba(187, 156, 51, 255), stop:0.635 rgba(168, 142, 42, 255), stop:0.695 rgba(202, 174, 68, 255), stop:0.75 rgba(218, 202, 86, 255), stop:0.815 rgba(208, 187, 73, 255), stop:0.88 rgba(187, 156, 51, 255), stop:1 rgba(137, 108, 26, 255));\n" "border-bottom:5px solid qlineargradient(spread:pad, x1:0.176, y1:1, x2:0.797, y2:1, stop:0 rgba(136, 106, 22, 255), stop:0.225 rgba(166, 140, 41, 255), stop:0.285 rgba(204, 181, 74, 255), stop:0.345 rgba(235, 219, 102, 255), stop:0.415 rgba(245, 236, 112, 255), stop:0.52 rgba(209, 190, 76, 255), stop:0.57 rgba(187, 156, 51, 255), stop:0.635 rgba(168, 142, 42, 255), stop:0.695 rgba(202, 174, 68, 255), stop:0.75 rgba(218, 202, 86, 255), stop:0.815 rgba(208, 187, 73, 255), stop:0.88 rgba(187, 156, 51, 255), stop:1 rgba(137, 108, 26, 255));\n" "border-left:5px solid qlineargradient(spread:pad, x1:1, y1:0, x2:1, y2:1, stop:0 rgba(136, 106, 22, 255), stop:0.225 rgba(166, 140, 41, 255), stop:0.285 rgba(204, 181, 74, 255), stop:0.345 rgba(235, 219, 102, 255), stop:0.415 rgba(245, 236, 112, 255), stop:0.52 rgba(209, 190, 76, 255), stop:0.57 rgba(187, 156, 51, 255), stop:0.635 rgba(168, 142, 42, 255), stop:0.695 rgba(202, 174, 68, 255), stop:0.75 rgba(218, 202, 86, 255), stop:0.815 rgba(208, 187, 73, 255), stop:0.88 rgba(187, 156, 51, 255), stop:1 rgba(137, 108, 26, 255));\n" "border-right:5px solid qlineargradient(spread:pad, x1:1, y1:0, x2:1, y2:1, stop:0 rgba(136, 106, 22, 255), stop:0.225 rgba(166, 140, 41, 255), stop:0.285 rgba(204, 181, 74, 255), stop:0.345 rgba(235, 219, 102, 255), stop:0.415 rgba(245, 236, 112, 255), stop:0.52 rgba(209, 190, 76, 255), stop:0.57 rgba(187, 156, 51, 255), stop:0.635 rgba(168, 142, 42, 255), stop:0.695 rgba(202, 174, 68, 255), stop:0.75 rgba(218, 202, 86, 255), stop:0.815 rgba(208, 187, 73, 255), stop:0.88 rgba(187, 156, 51, 255), stop:1 rgba(137, 108, 26, 255)) ;\n" "}\n" "\n" "\n" "QTabBar::tab {\n" "background:qconicalgradient(cx:0, cy:0, angle:135, stop:0 rgba(0, 148, 114, 69), stop:0.375 rgba(0, 0, 0, 255), stop:0.452889 rgba(71, 72, 0, 145), stop:0.466983 rgba(1, 128, 99, 228), stop:0.503158 rgba(72, 69, 20, 130), stop:0.505423 rgba(72, 61, 20, 130), stop:0.55 rgba(72, 72, 0, 255), stop:0.668103 rgba(0, 0, 0, 255), stop:0.685345 rgba(72, 72, 0, 69), stop:0.905172 rgba(72, 57, 0, 130));\n" "border: 3px solid #C4C4C3;\n" "border-bottom-color: #C2C7CB; /* same as the pane color */\n" "border-top-right-radius: 40px;\n" "min-width: 33ex;\n" "padding: 10px;\n" "color:rgb(0, 0, 0);\n" "}")) self.display.setIconSize(QtCore.QSize(16, 16)) self.display.setUsesScrollButtons(True) self.display.setDocumentMode(False) self.display.setTabsClosable(False) self.display.setMovable(False) self.display.setObjectName(_fromUtf8("display")) self.tracker = QtGui.QWidget() sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.tracker.sizePolicy().hasHeightForWidth()) self.tracker.setSizePolicy(sizePolicy) self.tracker.setMinimumSize(QtCore.QSize(1318, 0)) self.tracker.setObjectName(_fromUtf8("tracker")) self.gridLayout_6 = QtGui.QGridLayout(self.tracker) self.gridLayout_6.setObjectName(_fromUtf8("gridLayout_6")) self.gridLayout_5 = QtGui.QGridLayout() self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5")) self.plttracker = GraphicsLayoutWidget(self.tracker) self.plttracker.setMinimumSize(QtCore.QSize(1040, 0)) self.plttracker.setObjectName(_fromUtf8("plttracker")) self.gridLayout_5.addWidget(self.plttracker, 0, 0, 1, 1) self.gridLayout_6.addLayout(self.gridLayout_5, 0, 0, 1, 1) self.display.addTab(self.tracker, _fromUtf8("")) self.histogram = QtGui.QWidget() sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.histogram.sizePolicy().hasHeightForWidth()) self.histogram.setSizePolicy(sizePolicy) self.histogram.setObjectName(_fromUtf8("histogram")) self.gridLayout_8 = QtGui.QGridLayout(self.histogram) self.gridLayout_8.setObjectName(_fromUtf8("gridLayout_8")) self.gridLayout_7 = QtGui.QGridLayout() self.gridLayout_7.setObjectName(_fromUtf8("gridLayout_7")) self.plthistogram = GraphicsLayoutWidget(self.histogram) self.plthistogram.setObjectName(_fromUtf8("plthistogram")) self.gridLayout_7.addWidget(self.plthistogram, 0, 0, 1, 1) self.gridLayout_8.addLayout(self.gridLayout_7, 0, 0, 1, 1) self.display.addTab(self.histogram, _fromUtf8("")) self.frequency = QtGui.QWidget() sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.frequency.sizePolicy().hasHeightForWidth()) self.frequency.setSizePolicy(sizePolicy) self.frequency.setObjectName(_fromUtf8("frequency")) self.gridLayout_10 = QtGui.QGridLayout(self.frequency) self.gridLayout_10.setObjectName(_fromUtf8("gridLayout_10")) self.gridLayout_9 = QtGui.QGridLayout() self.gridLayout_9.setObjectName(_fromUtf8("gridLayout_9")) self.pltfrequency = GraphicsLayoutWidget(self.frequency) self.pltfrequency.setObjectName(_fromUtf8("pltfrequency")) self.gridLayout_9.addWidget(self.pltfrequency, 0, 0, 1, 1) self.gridLayout_10.addLayout(self.gridLayout_9, 0, 0, 1, 1) self.display.addTab(self.frequency, _fromUtf8("")) self.Integration_tab = QtGui.QWidget() sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.Integration_tab.sizePolicy().hasHeightForWidth()) self.Integration_tab.setSizePolicy(sizePolicy) self.Integration_tab.setObjectName(_fromUtf8("Integration_tab")) self.gridLayout_13 = QtGui.QGridLayout(self.Integration_tab) self.gridLayout_13.setObjectName(_fromUtf8("gridLayout_13")) self.gridLayout_3 = QtGui.QGridLayout() self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) self.integview = GraphicsLayoutWidget(self.Integration_tab) self.integview.setObjectName(_fromUtf8("integview")) self.gridLayout_3.addWidget(self.integview, 0, 0, 1, 1) self.gridLayout_13.addLayout(self.gridLayout_3, 0, 0, 1, 1) self.display.addTab(self.Integration_tab, _fromUtf8("")) self.gridLayout.addWidget(self.display, 1, 2, 1, 1) MainWindow.setCentralWidget(self.centralwidget) self.actionAll_pannel = QtGui.QAction(MainWindow) self.actionAll_pannel.setCheckable(False) self.actionAll_pannel.setEnabled(True) self.actionAll_pannel.setObjectName(_fromUtf8("actionAll_pannel")) self.actionHistogram = QtGui.QAction(MainWindow) self.actionHistogram.setObjectName(_fromUtf8("actionHistogram")) self.actionTracker = QtGui.QAction(MainWindow) self.actionTracker.setObjectName(_fromUtf8("actionTracker")) self.actionChannels = QtGui.QAction(MainWindow) font = QtGui.QFont() font.setFamily(_fromUtf8("URW Bookman L")) font.setPointSize(12) font.setBold(True) font.setWeight(75) self.actionChannels.setFont(font) self.actionChannels.setObjectName(_fromUtf8("actionChannels")) self.actionAll = QtGui.QAction(MainWindow) self.actionAll.setObjectName(_fromUtf8("actionAll")) self.retranslateUi(MainWindow) self.display.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): MainWindow.setWindowTitle( _translate("MainWindow", "Saved Window", None)) self.EnergieDep.setText(_translate("MainWindow", " 0", None)) self.label.setText(_translate("MainWindow", "Energy deposit: ", None)) self.label_2.setText(_translate("MainWindow", "Event type: ", None)) self.EventType.setText( _translate("MainWindow", " NotClassified", None)) self.display.setTabText( self.display.indexOf(self.tracker), _translate("MainWindow", "Event display", None)) self.display.setTabText(self.display.indexOf(self.histogram), _translate("MainWindow", "Angle", None)) self.display.setTabText(self.display.indexOf(self.frequency), _translate("MainWindow", "Frequency", None)) self.display.setTabText(self.display.indexOf(self.Integration_tab), _translate("MainWindow", "Integration", None)) self.actionAll_pannel.setText( _translate("MainWindow", "All pannel", None)) self.actionHistogram.setText( _translate("MainWindow", "Histogram", None)) self.actionTracker.setText(_translate("MainWindow", "Tracker", None)) self.actionChannels.setText(_translate("MainWindow", "Channels", None)) self.actionAll.setText(_translate("MainWindow", "All", None))
class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName(_fromUtf8("MainWindow")) MainWindow.resize(877, 839) self.centralwidget = QtGui.QWidget(MainWindow) self.centralwidget.setObjectName(_fromUtf8("centralwidget")) self.gridLayout = QtGui.QGridLayout(self.centralwidget) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.tabWidget = QtGui.QTabWidget(self.centralwidget) self.tabWidget.setObjectName(_fromUtf8("tabWidget")) self.tab = QtGui.QWidget() self.tab.setObjectName(_fromUtf8("tab")) self.gridLayout_3 = QtGui.QGridLayout(self.tab) self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) self.graphicsView = GraphicsLayoutWidget(self.tab) self.graphicsView.setObjectName(_fromUtf8("graphicsView")) self.gridLayout_3.addWidget(self.graphicsView, 0, 0, 1, 1) self.tabWidget.addTab(self.tab, _fromUtf8("")) self.tab_2 = QtGui.QWidget() self.tab_2.setObjectName(_fromUtf8("tab_2")) self.gridLayout_8 = QtGui.QGridLayout(self.tab_2) self.gridLayout_8.setObjectName(_fromUtf8("gridLayout_8")) self.graphicsView_2 = GraphicsLayoutWidget(self.tab_2) self.graphicsView_2.setObjectName(_fromUtf8("graphicsView_2")) self.gridLayout_8.addWidget(self.graphicsView_2, 0, 0, 1, 1) self.tabWidget.addTab(self.tab_2, _fromUtf8("")) self.tab_3 = QtGui.QWidget() self.tab_3.setObjectName(_fromUtf8("tab_3")) self.gridLayout_9 = QtGui.QGridLayout(self.tab_3) self.gridLayout_9.setObjectName(_fromUtf8("gridLayout_9")) self.graphicsView_3 = GraphicsLayoutWidget(self.tab_3) self.graphicsView_3.setObjectName(_fromUtf8("graphicsView_3")) self.gridLayout_9.addWidget(self.graphicsView_3, 0, 0, 1, 1) self.tabWidget.addTab(self.tab_3, _fromUtf8("")) self.gridLayout.addWidget(self.tabWidget, 0, 0, 1, 1) MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtGui.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 877, 19)) 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.dockWidget = QtGui.QDockWidget(MainWindow) self.dockWidget.setObjectName(_fromUtf8("dockWidget")) self.dockWidgetContents = QtGui.QWidget() self.dockWidgetContents.setObjectName(_fromUtf8("dockWidgetContents")) self.gridLayout_4 = QtGui.QGridLayout(self.dockWidgetContents) self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4")) spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout_4.addItem(spacerItem, 3, 0, 1, 1) self.groupBox_2 = QtGui.QGroupBox(self.dockWidgetContents) self.groupBox_2.setObjectName(_fromUtf8("groupBox_2")) self.gridLayout_2 = QtGui.QGridLayout(self.groupBox_2) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.gridLayout_6 = QtGui.QGridLayout() self.gridLayout_6.setObjectName(_fromUtf8("gridLayout_6")) self.fileLineEdit1_3 = QtGui.QLineEdit(self.groupBox_2) self.fileLineEdit1_3.setReadOnly(True) self.fileLineEdit1_3.setObjectName(_fromUtf8("fileLineEdit1_3")) self.gridLayout_6.addWidget(self.fileLineEdit1_3, 0, 2, 1, 1) self.fileLabel1_3 = QtGui.QLabel(self.groupBox_2) self.fileLabel1_3.setObjectName(_fromUtf8("fileLabel1_3")) self.gridLayout_6.addWidget(self.fileLabel1_3, 0, 0, 1, 1) self.eeg_channel_combo_box = QtGui.QComboBox(self.groupBox_2) self.eeg_channel_combo_box.setObjectName(_fromUtf8("eeg_channel_combo_box")) self.gridLayout_6.addWidget(self.eeg_channel_combo_box, 1, 2, 1, 1) self.label_3 = QtGui.QLabel(self.groupBox_2) self.label_3.setObjectName(_fromUtf8("label_3")) self.gridLayout_6.addWidget(self.label_3, 1, 0, 1, 1) self.gridLayout_2.addLayout(self.gridLayout_6, 0, 0, 1, 1) self.gridLayout_4.addWidget(self.groupBox_2, 0, 0, 1, 1) self.groupBox_3 = QtGui.QGroupBox(self.dockWidgetContents) self.groupBox_3.setObjectName(_fromUtf8("groupBox_3")) self.gridLayout_5 = QtGui.QGridLayout(self.groupBox_3) self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5")) self.gridLayout_7 = QtGui.QGridLayout() self.gridLayout_7.setObjectName(_fromUtf8("gridLayout_7")) self.label_5 = QtGui.QLabel(self.groupBox_3) self.label_5.setObjectName(_fromUtf8("label_5")) self.gridLayout_7.addWidget(self.label_5, 2, 0, 1, 1) self.label_6 = QtGui.QLabel(self.groupBox_3) self.label_6.setObjectName(_fromUtf8("label_6")) self.gridLayout_7.addWidget(self.label_6, 1, 0, 1, 1) self.fileLineEdit1_4 = QtGui.QLineEdit(self.groupBox_3) self.fileLineEdit1_4.setReadOnly(True) self.fileLineEdit1_4.setObjectName(_fromUtf8("fileLineEdit1_4")) self.gridLayout_7.addWidget(self.fileLineEdit1_4, 0, 2, 1, 1) self.fileLabel1_4 = QtGui.QLabel(self.groupBox_3) self.fileLabel1_4.setObjectName(_fromUtf8("fileLabel1_4")) self.gridLayout_7.addWidget(self.fileLabel1_4, 0, 0, 1, 1) self.epoch_tmin_spinbox = QtGui.QDoubleSpinBox(self.groupBox_3) self.epoch_tmin_spinbox.setMinimum(-1.0) self.epoch_tmin_spinbox.setMaximum(1.0) self.epoch_tmin_spinbox.setSingleStep(0.01) self.epoch_tmin_spinbox.setProperty("value", -0.2) self.epoch_tmin_spinbox.setObjectName(_fromUtf8("epoch_tmin_spinbox")) self.gridLayout_7.addWidget(self.epoch_tmin_spinbox, 2, 2, 1, 1) self.label_7 = QtGui.QLabel(self.groupBox_3) self.label_7.setObjectName(_fromUtf8("label_7")) self.gridLayout_7.addWidget(self.label_7, 3, 0, 1, 1) self.epoch_tmax_spinbox = QtGui.QDoubleSpinBox(self.groupBox_3) self.epoch_tmax_spinbox.setMinimum(-1.0) self.epoch_tmax_spinbox.setMaximum(5.0) self.epoch_tmax_spinbox.setSingleStep(0.01) self.epoch_tmax_spinbox.setProperty("value", 0.5) self.epoch_tmax_spinbox.setObjectName(_fromUtf8("epoch_tmax_spinbox")) self.gridLayout_7.addWidget(self.epoch_tmax_spinbox, 3, 2, 1, 1) self.epoch_channel_combo_box = QtGui.QComboBox(self.groupBox_3) self.epoch_channel_combo_box.setObjectName(_fromUtf8("epoch_channel_combo_box")) self.gridLayout_7.addWidget(self.epoch_channel_combo_box, 1, 2, 1, 1) self.epoch_number_spinbox = QtGui.QSpinBox(self.groupBox_3) self.epoch_number_spinbox.setObjectName(_fromUtf8("epoch_number_spinbox")) self.gridLayout_7.addWidget(self.epoch_number_spinbox, 4, 2, 1, 1) self.label = QtGui.QLabel(self.groupBox_3) self.label.setObjectName(_fromUtf8("label")) self.gridLayout_7.addWidget(self.label, 4, 0, 1, 1) self.gridLayout_5.addLayout(self.gridLayout_7, 0, 0, 1, 1) self.create_epochs_button = QtGui.QPushButton(self.groupBox_3) self.create_epochs_button.setObjectName(_fromUtf8("create_epochs_button")) self.gridLayout_5.addWidget(self.create_epochs_button, 1, 0, 1, 1) self.gridLayout_4.addWidget(self.groupBox_3, 1, 0, 1, 1) self.groupBox = QtGui.QGroupBox(self.dockWidgetContents) self.groupBox.setObjectName(_fromUtf8("groupBox")) self.gridLayout_10 = QtGui.QGridLayout(self.groupBox) self.gridLayout_10.setObjectName(_fromUtf8("gridLayout_10")) self.label_2 = QtGui.QLabel(self.groupBox) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout_10.addWidget(self.label_2, 0, 0, 1, 1) self.lineEdit = QtGui.QLineEdit(self.groupBox) self.lineEdit.setObjectName(_fromUtf8("lineEdit")) self.gridLayout_10.addWidget(self.lineEdit, 0, 1, 1, 1) self.label_4 = QtGui.QLabel(self.groupBox) self.label_4.setObjectName(_fromUtf8("label_4")) self.gridLayout_10.addWidget(self.label_4, 1, 0, 1, 1) self.evoked_channel_combo_box = QtGui.QComboBox(self.groupBox) self.evoked_channel_combo_box.setObjectName(_fromUtf8("evoked_channel_combo_box")) self.gridLayout_10.addWidget(self.evoked_channel_combo_box, 1, 1, 1, 1) self.create_evoked_button = QtGui.QPushButton(self.groupBox) self.create_evoked_button.setObjectName(_fromUtf8("create_evoked_button")) self.gridLayout_10.addWidget(self.create_evoked_button, 2, 0, 1, 2) self.gridLayout_4.addWidget(self.groupBox, 2, 0, 1, 1) self.dockWidget.setWidget(self.dockWidgetContents) MainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(1), self.dockWidget) self.actionLoad_File = QtGui.QAction(MainWindow) self.actionLoad_File.setObjectName(_fromUtf8("actionLoad_File")) self.actionExit = QtGui.QAction(MainWindow) self.actionExit.setObjectName(_fromUtf8("actionExit")) self.menuFile.addAction(self.actionLoad_File) self.menuFile.addAction(self.actionExit) self.menubar.addAction(self.menuFile.menuAction()) self.retranslateUi(MainWindow) self.tabWidget.setCurrentIndex(2) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow", None)) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("MainWindow", "Raw", None)) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("MainWindow", "Epoch", None)) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_3), _translate("MainWindow", "Evoked", None)) self.menuFile.setTitle(_translate("MainWindow", "File", None)) self.groupBox_2.setTitle(_translate("MainWindow", "Raw EEG Data", None)) self.fileLineEdit1_3.setText(_translate("MainWindow", "Load a raw EEG file", None)) self.fileLineEdit1_3.setPlaceholderText(_translate("MainWindow", "Load a .smr file.", None)) self.fileLabel1_3.setText(_translate("MainWindow", "File 1:", None)) self.label_3.setText(_translate("MainWindow", "EEG Channel", None)) self.groupBox_3.setTitle(_translate("MainWindow", "Epochs", None)) self.label_5.setText(_translate("MainWindow", "Epoch TMin: ", None)) self.label_6.setText(_translate("MainWindow", "EEG Channel", None)) self.fileLineEdit1_4.setText(_translate("MainWindow", "Load epochs data", None)) self.fileLineEdit1_4.setPlaceholderText(_translate("MainWindow", "Load a .smr file.", None)) self.fileLabel1_4.setText(_translate("MainWindow", "File 2:", None)) self.label_7.setText(_translate("MainWindow", "Epoch TMax: ", None)) self.label.setText(_translate("MainWindow", "Epoch #:", None)) self.create_epochs_button.setText(_translate("MainWindow", "Create Epochs", None)) self.groupBox.setTitle(_translate("MainWindow", "Evoked", None)) self.label_2.setText(_translate("MainWindow", "Evoked file:", None)) self.label_4.setText(_translate("MainWindow", "EEG Channel:", None)) self.create_evoked_button.setText(_translate("MainWindow", "Create Evoked", None)) self.actionLoad_File.setText(_translate("MainWindow", "Load File", None)) self.actionExit.setText(_translate("MainWindow", "Exit", None))
class Ui_MainWindow(object): def setupUi(self, MainWindow): windowWidth = 1360 windowHeight = 545 MainWindow.setObjectName("MainWindow") MainWindow.resize(windowWidth, windowHeight) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( MainWindow.sizePolicy().hasHeightForWidth()) MainWindow.setSizePolicy(sizePolicy) MainWindow.setAutoFillBackground(False) MainWindow.setMinimumHeight(windowHeight) MainWindow.setMinimumWidth(windowWidth) MainWindow.setMaximumHeight(windowHeight) MainWindow.setMaximumWidth(windowWidth) spinboxWidth = 70 spinboxHeight = 26 # MainWindow.setDockOptions(QtWidgets.QMainWindow.AllowTabbedDocks|QtWidgets.QMainWindow.AnimatedDocks) self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") # self.graphicsView = GraphicsLayoutWidget(self.centralwidget) # self.graphicsView = GraphicsView(self.centralwidget) self.graphicsView = GraphicsLayoutWidget(self.centralwidget) self.graphicsView.setGeometry(QtCore.QRect(10, 10, 925, 525)) self.graphicsView.setObjectName("graphicsView") self.comboBox = QtWidgets.QComboBox(self.centralwidget) self.comboBox.setGeometry(QtCore.QRect(1150, 30, 80, 35)) font = QtGui.QFont() font.setPointSize(16) self.comboBox.setFont(font) self.comboBox.setObjectName("comboBox") font = QtGui.QFont() font.setPointSize(10) self.pushButton = QtWidgets.QPushButton(self.centralwidget) self.pushButton.setGeometry(QtCore.QRect(1260, 30, 70, 35)) self.pushButton.setFont(font) self.pushButton.setObjectName("pushButton") self.pushButton.setText("Start") self.GroupParameterScale = QtWidgets.QGroupBox(self.centralwidget) self.GroupParameterScale.setGeometry(QtCore.QRect(945, 90, 406, 446)) font = QtGui.QFont() font.setPointSize(12) self.GroupParameterScale.setFont(font) self.GroupParameterScale.setAlignment(QtCore.Qt.AlignCenter) self.GroupParameterScale.setFlat(False) self.GroupParameterScale.setCheckable(False) self.GroupParameterScale.setObjectName("GroupParameterScale") self.progressBar_posx = QtWidgets.QProgressBar( self.GroupParameterScale) self.progressBar_posx.setGeometry(QtCore.QRect(20, 80, 40, 260)) font = QtGui.QFont() font.setPointSize(8) self.progressBar_posx.setFont(font) self.progressBar_posx.setProperty("value", 0) self.progressBar_posx.setAlignment(QtCore.Qt.AlignCenter) self.progressBar_posx.setTextVisible(True) self.progressBar_posx.setOrientation(QtCore.Qt.Vertical) self.progressBar_posx.setInvertedAppearance(False) self.progressBar_posx.setTextDirection( QtWidgets.QProgressBar.TopToBottom) self.progressBar_posx.setObjectName("progressBar_posx") self.label_posx = QtWidgets.QLabel(self.GroupParameterScale) self.label_posx.setGeometry(QtCore.QRect(10, 380, 60, 20)) self.label_posx.setAlignment(QtCore.Qt.AlignCenter) self.label_posx.setObjectName("label_posx") self.label_posy = QtWidgets.QLabel(self.GroupParameterScale) self.label_posy.setGeometry(QtCore.QRect(90, 380, 60, 20)) self.label_posy.setAlignment(QtCore.Qt.AlignCenter) self.label_posy.setObjectName("label_posy") self.progressBar_posy = QtWidgets.QProgressBar( self.GroupParameterScale) self.progressBar_posy.setGeometry(QtCore.QRect(100, 80, 40, 260)) font = QtGui.QFont() font.setPointSize(8) self.progressBar_posy.setFont(font) self.progressBar_posy.setProperty("value", 0) self.progressBar_posy.setAlignment(QtCore.Qt.AlignCenter) self.progressBar_posy.setTextVisible(True) self.progressBar_posy.setOrientation(QtCore.Qt.Vertical) self.progressBar_posy.setInvertedAppearance(False) self.progressBar_posy.setTextDirection( QtWidgets.QProgressBar.TopToBottom) self.progressBar_posy.setObjectName("progressBar_posy") self.label_force = QtWidgets.QLabel(self.GroupParameterScale) self.label_force.setGeometry(QtCore.QRect(170, 380, 60, 20)) self.label_force.setAlignment(QtCore.Qt.AlignCenter) self.label_force.setObjectName("label_force") self.progressBar_force = QtWidgets.QProgressBar( self.GroupParameterScale) self.progressBar_force.setGeometry(QtCore.QRect(180, 80, 40, 260)) font = QtGui.QFont() font.setPointSize(8) self.progressBar_force.setFont(font) self.progressBar_force.setProperty("value", 0) self.progressBar_force.setAlignment(QtCore.Qt.AlignCenter) self.progressBar_force.setTextVisible(True) self.progressBar_force.setOrientation(QtCore.Qt.Vertical) self.progressBar_force.setInvertedAppearance(False) self.progressBar_force.setTextDirection( QtWidgets.QProgressBar.TopToBottom) self.progressBar_force.setObjectName("progressBar_force") self.label_cof_x = QtWidgets.QLabel(self.GroupParameterScale) self.label_cof_x.setGeometry(QtCore.QRect(250, 380, 60, 20)) self.label_cof_x.setAlignment(QtCore.Qt.AlignCenter) self.label_cof_x.setObjectName("label_cof_x") self.progressBar_cof_x = QtWidgets.QProgressBar( self.GroupParameterScale) self.progressBar_cof_x.setGeometry(QtCore.QRect(260, 80, 40, 260)) font = QtGui.QFont() font.setPointSize(8) self.progressBar_cof_x.setFont(font) self.progressBar_cof_x.setProperty("value", 0) self.progressBar_cof_x.setAlignment(QtCore.Qt.AlignCenter) self.progressBar_cof_x.setTextVisible(True) self.progressBar_cof_x.setOrientation(QtCore.Qt.Vertical) self.progressBar_cof_x.setInvertedAppearance(False) self.progressBar_cof_x.setTextDirection( QtWidgets.QProgressBar.TopToBottom) self.progressBar_cof_x.setObjectName("progressBar_cof_x") self.label_cof_y = QtWidgets.QLabel(self.GroupParameterScale) self.label_cof_y.setGeometry(QtCore.QRect(330, 380, 60, 20)) self.label_cof_y.setAlignment(QtCore.Qt.AlignCenter) self.label_cof_y.setObjectName("label_cof_y") self.progressBar_cof_y = QtWidgets.QProgressBar( self.GroupParameterScale) self.progressBar_cof_y.setGeometry(QtCore.QRect(340, 80, 40, 260)) font = QtGui.QFont() font.setPointSize(8) self.progressBar_cof_y.setFont(font) self.progressBar_cof_y.setProperty("value", 0) self.progressBar_cof_y.setAlignment(QtCore.Qt.AlignCenter) self.progressBar_cof_y.setTextVisible(True) self.progressBar_cof_y.setOrientation(QtCore.Qt.Vertical) self.progressBar_cof_y.setInvertedAppearance(False) self.progressBar_cof_y.setTextDirection( QtWidgets.QProgressBar.TopToBottom) self.progressBar_cof_y.setObjectName("progressBar_cof_y") font = QtGui.QFont() font.setPointSize(8) self.value_posx = QtWidgets.QLabel(self.GroupParameterScale) self.value_posx.setGeometry(QtCore.QRect(10, 405, 60, 20)) self.value_posx.setAlignment(QtCore.Qt.AlignCenter) self.value_posx.setObjectName("value_posx") self.value_posy = QtWidgets.QLabel(self.GroupParameterScale) self.value_posy.setGeometry(QtCore.QRect(90, 405, 60, 20)) self.value_posy.setAlignment(QtCore.Qt.AlignCenter) self.value_posy.setObjectName("value_posy") self.value_force = QtWidgets.QLabel(self.GroupParameterScale) self.value_force.setGeometry(QtCore.QRect(170, 405, 60, 20)) self.value_force.setAlignment(QtCore.Qt.AlignCenter) self.value_force.setObjectName("value_force") self.value_cof_x = QtWidgets.QLabel(self.GroupParameterScale) self.value_cof_x.setGeometry(QtCore.QRect(250, 405, 60, 20)) self.value_cof_x.setAlignment(QtCore.Qt.AlignCenter) self.value_cof_x.setObjectName("value_vex") self.value_cof_y = QtWidgets.QLabel(self.GroupParameterScale) self.value_cof_y.setGeometry(QtCore.QRect(330, 405, 60, 20)) self.value_cof_y.setAlignment(QtCore.Qt.AlignCenter) self.value_cof_y.setObjectName("value_cof_y") font = QtGui.QFont() font.setPointSize(16) self.doubleSpinBox_posx_max = QtWidgets.QDoubleSpinBox( self.GroupParameterScale) self.doubleSpinBox_posx_max.setGeometry( QtCore.QRect(10, 40, spinboxWidth, spinboxHeight)) self.doubleSpinBox_posx_max.setObjectName("doubleSpinBox_posx_max") self.doubleSpinBox_posx_min = QtWidgets.QDoubleSpinBox( self.GroupParameterScale) self.doubleSpinBox_posx_min.setGeometry( QtCore.QRect(10, 350, spinboxWidth, spinboxHeight)) self.doubleSpinBox_posx_min.setObjectName("doubleSpinBox_posx_min") self.doubleSpinBox_posy_min = QtWidgets.QDoubleSpinBox( self.GroupParameterScale) self.doubleSpinBox_posy_min.setGeometry( QtCore.QRect(90, 350, spinboxWidth, spinboxHeight)) self.doubleSpinBox_posy_min.setObjectName("doubleSpinBox_posy_min") self.doubleSpinBox_posy_max = QtWidgets.QDoubleSpinBox( self.GroupParameterScale) self.doubleSpinBox_posy_max.setGeometry( QtCore.QRect(90, 40, spinboxWidth, spinboxHeight)) self.doubleSpinBox_posy_max.setObjectName("doubleSpinBox_posy_max") self.doubleSpinBox_force_max = QtWidgets.QDoubleSpinBox( self.GroupParameterScale) self.doubleSpinBox_force_max.setGeometry( QtCore.QRect(170, 40, spinboxWidth, spinboxHeight)) self.doubleSpinBox_force_max.setObjectName("doubleSpinBox_force_max") self.doubleSpinBox_force_min = QtWidgets.QDoubleSpinBox( self.GroupParameterScale) self.doubleSpinBox_force_min.setGeometry( QtCore.QRect(170, 350, spinboxWidth, spinboxHeight)) self.doubleSpinBox_force_min.setObjectName("doubleSpinBox_force_min") self.doubleSpinBox_cof_x_max = QtWidgets.QDoubleSpinBox( self.GroupParameterScale) self.doubleSpinBox_cof_x_max.setGeometry( QtCore.QRect(250, 40, spinboxWidth, spinboxHeight)) self.doubleSpinBox_cof_x_max.setObjectName("doubleSpinBox_cof_x_max") self.doubleSpinBox_cof_x_min = QtWidgets.QDoubleSpinBox( self.GroupParameterScale) self.doubleSpinBox_cof_x_min.setGeometry( QtCore.QRect(250, 350, spinboxWidth, spinboxHeight)) self.doubleSpinBox_cof_x_min.setObjectName("doubleSpinBox_cof_x_min") self.doubleSpinBox_cof_y_max = QtWidgets.QDoubleSpinBox( self.GroupParameterScale) self.doubleSpinBox_cof_y_max.setGeometry( QtCore.QRect(330, 40, spinboxWidth, spinboxHeight)) self.doubleSpinBox_cof_y_max.setObjectName("doubleSpinBox_cof_y_max") self.doubleSpinBox_cof_y_min = QtWidgets.QDoubleSpinBox( self.GroupParameterScale) self.doubleSpinBox_cof_y_min.setGeometry( QtCore.QRect(330, 350, spinboxWidth, spinboxHeight)) self.doubleSpinBox_cof_y_min.setObjectName("doubleSpinBox_cof_y_min") self.doubleSpinBox_force_sens = QtWidgets.QDoubleSpinBox( self.centralwidget) self.doubleSpinBox_force_sens.setGeometry( QtCore.QRect(1050, 25, spinboxWidth, spinboxHeight)) self.doubleSpinBox_force_sens.setObjectName( "doubleSpinBox_force_sense") self.doubleSpinBox_cof_sens = QtWidgets.QDoubleSpinBox( self.centralwidget) self.doubleSpinBox_cof_sens.setGeometry( QtCore.QRect(1050, 55, spinboxWidth, spinboxHeight)) self.doubleSpinBox_cof_sens.setObjectName("doubleSpinBox_cof_sense") font = QtGui.QFont() font.setPointSize(12) self.label_force_sens = QtWidgets.QLabel(self.centralwidget) self.label_force_sens.setGeometry(QtCore.QRect(950, 15, 100, 40)) self.label_force_sens.setFont(font) self.label_force_sens.setObjectName("label_force_sens") self.label_cof_sens = QtWidgets.QLabel(self.centralwidget) self.label_cof_sens.setGeometry(QtCore.QRect(950, 45, 100, 40)) self.label_cof_sens.setFont(font) self.label_cof_sens.setObjectName("label_cof_sens") # MainWindow.setCentralWidget(self.centralwidget) # self.statusbar = QtWidgets.QStatusBar(MainWindow) # self.statusbar.setObjectName("statusbar") # MainWindow.setStatusBar(self.statusbar) MainWindow.setTabOrder(self.doubleSpinBox_posx_max, self.doubleSpinBox_posx_min) MainWindow.setTabOrder(self.doubleSpinBox_posx_min, self.doubleSpinBox_posy_max) MainWindow.setTabOrder(self.doubleSpinBox_posy_max, self.doubleSpinBox_posy_min) MainWindow.setTabOrder(self.doubleSpinBox_posy_min, self.doubleSpinBox_force_max) MainWindow.setTabOrder(self.doubleSpinBox_force_max, self.doubleSpinBox_force_min) MainWindow.setTabOrder(self.doubleSpinBox_force_min, self.doubleSpinBox_cof_x_max) MainWindow.setTabOrder(self.doubleSpinBox_cof_x_max, self.doubleSpinBox_cof_x_min) MainWindow.setTabOrder(self.doubleSpinBox_cof_x_min, self.doubleSpinBox_cof_y_max) MainWindow.setTabOrder(self.doubleSpinBox_cof_y_max, self.doubleSpinBox_cof_y_min) self.retranslateUi(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): _translate = QtCore.QCoreApplication.translate MainWindow.setWindowTitle(_translate("MainWindow", "ForceStamps")) self.GroupParameterScale.setTitle( _translate("MainWindow", "Parameter Scale")) self.label_posx.setText(_translate("MainWindow", "pos_x")) self.label_posy.setText(_translate("MainWindow", "pos_y")) self.label_force.setText(_translate("MainWindow", "force")) self.label_cof_x.setText(_translate("MainWindow", "cof_x")) self.label_cof_y.setText(_translate("MainWindow", "cof_y")) self.label_force_sens.setText(_translate("MainWindow", "Force sens.")) self.label_cof_sens.setText(_translate("MainWindow", "CoF sens.")) self.value_posx.setText(_translate("MainWindow", "0.0")) self.value_posy.setText(_translate("MainWindow", "0.0")) self.value_force.setText(_translate("MainWindow", "0.0")) self.value_cof_x.setText(_translate("MainWindow", "0.0")) self.value_cof_y.setText(_translate("MainWindow", "0.0")) self.progressBar_posx.setFormat(_translate("MainWindow", "%.02f")) self.progressBar_posy.setFormat(_translate("MainWindow", "%.02f")) self.progressBar_force.setFormat(_translate("MainWindow", "%.02f")) self.progressBar_cof_x.setFormat(_translate("MainWindow", "%.02f")) self.progressBar_cof_y.setFormat(_translate("MainWindow", "%.02f"))
class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(1746, 839) self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.gridLayout = QtWidgets.QGridLayout(self.centralwidget) self.gridLayout.setObjectName("gridLayout") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setSizeConstraint( QtWidgets.QLayout.SetNoConstraint) self.horizontalLayout.setObjectName("horizontalLayout") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.translation_graphicsView = GraphicsLayoutWidget( self.centralwidget) self.translation_graphicsView.setEnabled(True) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.translation_graphicsView.sizePolicy().hasHeightForWidth()) self.translation_graphicsView.setSizePolicy(sizePolicy) self.translation_graphicsView.setMinimumSize(QtCore.QSize(400, 100)) self.translation_graphicsView.setMaximumSize(QtCore.QSize(610, 1000)) self.translation_graphicsView.setSizeIncrement(QtCore.QSize(1, 1)) self.translation_graphicsView.setObjectName("translation_graphicsView") self.verticalLayout.addWidget(self.translation_graphicsView) self.rotation_graphicsView = GraphicsLayoutWidget(self.centralwidget) self.rotation_graphicsView.setEnabled(True) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.rotation_graphicsView.sizePolicy().hasHeightForWidth()) self.rotation_graphicsView.setSizePolicy(sizePolicy) self.rotation_graphicsView.setMinimumSize(QtCore.QSize(400, 100)) self.rotation_graphicsView.setMaximumSize(QtCore.QSize(610, 1000)) self.rotation_graphicsView.setSizeIncrement(QtCore.QSize(1, 1)) self.rotation_graphicsView.setObjectName("rotation_graphicsView") self.verticalLayout.addWidget(self.rotation_graphicsView) self.timecourse_graphicsView = GraphicsLayoutWidget(self.centralwidget) self.timecourse_graphicsView.setEnabled(True) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.timecourse_graphicsView.sizePolicy().hasHeightForWidth()) self.timecourse_graphicsView.setSizePolicy(sizePolicy) self.timecourse_graphicsView.setMinimumSize(QtCore.QSize(400, 100)) self.timecourse_graphicsView.setMaximumSize(QtCore.QSize(610, 1000)) self.timecourse_graphicsView.setSizeIncrement(QtCore.QSize(1, 1)) self.timecourse_graphicsView.setObjectName("timecourse_graphicsView") self.verticalLayout.addWidget(self.timecourse_graphicsView) self.spectrum_graphicsView = GraphicsLayoutWidget(self.centralwidget) self.spectrum_graphicsView.setEnabled(True) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.spectrum_graphicsView.sizePolicy().hasHeightForWidth()) self.spectrum_graphicsView.setSizePolicy(sizePolicy) self.spectrum_graphicsView.setMinimumSize(QtCore.QSize(400, 100)) self.spectrum_graphicsView.setMaximumSize(QtCore.QSize(610, 1000)) self.spectrum_graphicsView.setSizeIncrement(QtCore.QSize(1, 1)) self.spectrum_graphicsView.setObjectName("spectrum_graphicsView") self.verticalLayout.addWidget(self.spectrum_graphicsView) self.horizontalLayout.addLayout(self.verticalLayout) self.image_graphicsView = GraphicsLayoutWidget(self.centralwidget) self.image_graphicsView.setEnabled(True) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.image_graphicsView.sizePolicy().hasHeightForWidth()) self.image_graphicsView.setSizePolicy(sizePolicy) self.image_graphicsView.setMinimumSize(QtCore.QSize(600, 100)) self.image_graphicsView.setMaximumSize(QtCore.QSize(2000, 1200)) self.image_graphicsView.setSizeIncrement(QtCore.QSize(1, 1)) self.image_graphicsView.setObjectName("image_graphicsView") self.horizontalLayout.addWidget(self.image_graphicsView) self.gridLayout.addLayout(self.horizontalLayout, 0, 0, 1, 1) self.label = QtWidgets.QLabel(self.centralwidget) self.label.setObjectName("label") self.gridLayout.addWidget(self.label, 1, 0, 1, 1) MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtWidgets.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 1746, 24)) self.menubar.setObjectName("menubar") MainWindow.setMenuBar(self.menubar) self.statusbar = QtWidgets.QStatusBar(MainWindow) self.statusbar.setObjectName("statusbar") MainWindow.setStatusBar(self.statusbar) self.retranslateUi(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): _translate = QtCore.QCoreApplication.translate MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow")) self.label.setText( _translate( "MainWindow", 'Right and left arrows step through components. Up and down arrows toggle component retention. "r" to reset component. "a", "c", and "s" select axial, coronal, or sagittal views. ESC to write component file.', ))
class Ui_QSpectrumAnalyzerMainWindow(object): def setupUi(self, QSpectrumAnalyzerMainWindow): QSpectrumAnalyzerMainWindow.setObjectName(_fromUtf8("QSpectrumAnalyzerMainWindow")) QSpectrumAnalyzerMainWindow.resize(1200, 810) self.centralwidget = QtGui.QWidget(QSpectrumAnalyzerMainWindow) self.centralwidget.setObjectName(_fromUtf8("centralwidget")) self.horizontalLayout = QtGui.QHBoxLayout(self.centralwidget) self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.plotSplitter = QtGui.QSplitter(self.centralwidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.plotSplitter.sizePolicy().hasHeightForWidth()) self.plotSplitter.setSizePolicy(sizePolicy) self.plotSplitter.setOrientation(QtCore.Qt.Vertical) self.plotSplitter.setObjectName(_fromUtf8("plotSplitter")) self.mainPlotLayout = GraphicsLayoutWidget(self.plotSplitter) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.mainPlotLayout.sizePolicy().hasHeightForWidth()) self.mainPlotLayout.setSizePolicy(sizePolicy) self.mainPlotLayout.setObjectName(_fromUtf8("mainPlotLayout")) self.waterfallPlotLayout = GraphicsLayoutWidget(self.plotSplitter) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.waterfallPlotLayout.sizePolicy().hasHeightForWidth()) self.waterfallPlotLayout.setSizePolicy(sizePolicy) self.waterfallPlotLayout.setObjectName(_fromUtf8("waterfallPlotLayout")) self.horizontalLayout.addWidget(self.plotSplitter) QSpectrumAnalyzerMainWindow.setCentralWidget(self.centralwidget) self.menubar = QtGui.QMenuBar(QSpectrumAnalyzerMainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 1200, 30)) self.menubar.setObjectName(_fromUtf8("menubar")) self.menu_File = QtGui.QMenu(self.menubar) self.menu_File.setObjectName(_fromUtf8("menu_File")) self.menu_Help = QtGui.QMenu(self.menubar) self.menu_Help.setObjectName(_fromUtf8("menu_Help")) QSpectrumAnalyzerMainWindow.setMenuBar(self.menubar) self.statusbar = QtGui.QStatusBar(QSpectrumAnalyzerMainWindow) self.statusbar.setObjectName(_fromUtf8("statusbar")) QSpectrumAnalyzerMainWindow.setStatusBar(self.statusbar) self.controlsDockWidget = QtGui.QDockWidget(QSpectrumAnalyzerMainWindow) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.controlsDockWidget.sizePolicy().hasHeightForWidth()) self.controlsDockWidget.setSizePolicy(sizePolicy) self.controlsDockWidget.setMinimumSize(QtCore.QSize(190, 10)) self.controlsDockWidget.setFeatures(QtGui.QDockWidget.DockWidgetFloatable|QtGui.QDockWidget.DockWidgetMovable) self.controlsDockWidget.setObjectName(_fromUtf8("controlsDockWidget")) self.controlsDockWidgetContents = QtGui.QWidget() self.controlsDockWidgetContents.setObjectName(_fromUtf8("controlsDockWidgetContents")) self.gridLayout_2 = QtGui.QGridLayout(self.controlsDockWidgetContents) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.startButton = QtGui.QPushButton(self.controlsDockWidgetContents) self.startButton.setObjectName(_fromUtf8("startButton")) self.gridLayout_2.addWidget(self.startButton, 0, 0, 1, 1) self.stopButton = QtGui.QPushButton(self.controlsDockWidgetContents) self.stopButton.setObjectName(_fromUtf8("stopButton")) self.gridLayout_2.addWidget(self.stopButton, 0, 1, 1, 1) self.singleShotButton = QtGui.QPushButton(self.controlsDockWidgetContents) self.singleShotButton.setObjectName(_fromUtf8("singleShotButton")) self.gridLayout_2.addWidget(self.singleShotButton, 1, 0, 1, 2) spacerItem = QtGui.QSpacerItem(20, 561, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout_2.addItem(spacerItem, 2, 0, 1, 1) self.controlsDockWidget.setWidget(self.controlsDockWidgetContents) QSpectrumAnalyzerMainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(2), self.controlsDockWidget) self.frequencyDockWidget = QtGui.QDockWidget(QSpectrumAnalyzerMainWindow) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.frequencyDockWidget.sizePolicy().hasHeightForWidth()) self.frequencyDockWidget.setSizePolicy(sizePolicy) self.frequencyDockWidget.setMinimumSize(QtCore.QSize(225, 10)) self.frequencyDockWidget.setFeatures(QtGui.QDockWidget.DockWidgetFloatable|QtGui.QDockWidget.DockWidgetMovable) self.frequencyDockWidget.setObjectName(_fromUtf8("frequencyDockWidget")) self.frequencyDockWidgetContents = QtGui.QWidget() self.frequencyDockWidgetContents.setObjectName(_fromUtf8("frequencyDockWidgetContents")) self.formLayout = QtGui.QFormLayout(self.frequencyDockWidgetContents) self.formLayout.setFieldGrowthPolicy(QtGui.QFormLayout.ExpandingFieldsGrow) self.formLayout.setObjectName(_fromUtf8("formLayout")) self.label_2 = QtGui.QLabel(self.frequencyDockWidgetContents) self.label_2.setObjectName(_fromUtf8("label_2")) self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_2) self.startFreqSpinBox = QtGui.QDoubleSpinBox(self.frequencyDockWidgetContents) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.startFreqSpinBox.sizePolicy().hasHeightForWidth()) self.startFreqSpinBox.setSizePolicy(sizePolicy) self.startFreqSpinBox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.startFreqSpinBox.setDecimals(3) self.startFreqSpinBox.setMinimum(24.0) self.startFreqSpinBox.setMaximum(1766.0) self.startFreqSpinBox.setProperty("value", 87.0) self.startFreqSpinBox.setObjectName(_fromUtf8("startFreqSpinBox")) self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.startFreqSpinBox) self.label_3 = QtGui.QLabel(self.frequencyDockWidgetContents) self.label_3.setObjectName(_fromUtf8("label_3")) self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_3) self.stopFreqSpinBox = QtGui.QDoubleSpinBox(self.frequencyDockWidgetContents) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.stopFreqSpinBox.sizePolicy().hasHeightForWidth()) self.stopFreqSpinBox.setSizePolicy(sizePolicy) self.stopFreqSpinBox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.stopFreqSpinBox.setDecimals(3) self.stopFreqSpinBox.setMinimum(24.0) self.stopFreqSpinBox.setMaximum(1766.0) self.stopFreqSpinBox.setProperty("value", 108.0) self.stopFreqSpinBox.setObjectName(_fromUtf8("stopFreqSpinBox")) self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.stopFreqSpinBox) self.label = QtGui.QLabel(self.frequencyDockWidgetContents) self.label.setObjectName(_fromUtf8("label")) self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.label) self.binSizeSpinBox = QtGui.QDoubleSpinBox(self.frequencyDockWidgetContents) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.binSizeSpinBox.sizePolicy().hasHeightForWidth()) self.binSizeSpinBox.setSizePolicy(sizePolicy) self.binSizeSpinBox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.binSizeSpinBox.setDecimals(3) self.binSizeSpinBox.setMaximum(2800.0) self.binSizeSpinBox.setProperty("value", 10.0) self.binSizeSpinBox.setObjectName(_fromUtf8("binSizeSpinBox")) self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.binSizeSpinBox) spacerItem1 = QtGui.QSpacerItem(20, 0, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.formLayout.setItem(3, QtGui.QFormLayout.SpanningRole, spacerItem1) self.frequencyDockWidget.setWidget(self.frequencyDockWidgetContents) QSpectrumAnalyzerMainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(2), self.frequencyDockWidget) self.settingsDockWidget = QtGui.QDockWidget(QSpectrumAnalyzerMainWindow) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.settingsDockWidget.sizePolicy().hasHeightForWidth()) self.settingsDockWidget.setSizePolicy(sizePolicy) self.settingsDockWidget.setFeatures(QtGui.QDockWidget.DockWidgetFloatable|QtGui.QDockWidget.DockWidgetMovable) self.settingsDockWidget.setObjectName(_fromUtf8("settingsDockWidget")) self.settingsDockWidgetContents = QtGui.QWidget() self.settingsDockWidgetContents.setObjectName(_fromUtf8("settingsDockWidgetContents")) self.gridLayout = QtGui.QGridLayout(self.settingsDockWidgetContents) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.label_4 = QtGui.QLabel(self.settingsDockWidgetContents) self.label_4.setObjectName(_fromUtf8("label_4")) self.gridLayout.addWidget(self.label_4, 0, 0, 1, 1) self.label_6 = QtGui.QLabel(self.settingsDockWidgetContents) self.label_6.setObjectName(_fromUtf8("label_6")) self.gridLayout.addWidget(self.label_6, 0, 1, 1, 1) self.intervalSpinBox = QtGui.QDoubleSpinBox(self.settingsDockWidgetContents) self.intervalSpinBox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.intervalSpinBox.setMaximum(999.0) self.intervalSpinBox.setProperty("value", 1.0) self.intervalSpinBox.setObjectName(_fromUtf8("intervalSpinBox")) self.gridLayout.addWidget(self.intervalSpinBox, 1, 0, 1, 1) self.label_5 = QtGui.QLabel(self.settingsDockWidgetContents) self.label_5.setObjectName(_fromUtf8("label_5")) self.gridLayout.addWidget(self.label_5, 2, 0, 1, 1) self.label_7 = QtGui.QLabel(self.settingsDockWidgetContents) self.label_7.setObjectName(_fromUtf8("label_7")) self.gridLayout.addWidget(self.label_7, 2, 1, 1, 1) spacerItem2 = QtGui.QSpacerItem(20, 1, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem2, 9, 0, 1, 1) self.ppmSpinBox = QtGui.QSpinBox(self.settingsDockWidgetContents) self.ppmSpinBox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.ppmSpinBox.setMinimum(-999) self.ppmSpinBox.setMaximum(999) self.ppmSpinBox.setObjectName(_fromUtf8("ppmSpinBox")) self.gridLayout.addWidget(self.ppmSpinBox, 3, 0, 1, 1) self.mainCurveCheckBox = QtGui.QCheckBox(self.settingsDockWidgetContents) self.mainCurveCheckBox.setChecked(True) self.mainCurveCheckBox.setObjectName(_fromUtf8("mainCurveCheckBox")) self.gridLayout.addWidget(self.mainCurveCheckBox, 4, 0, 1, 1) self.peakHoldCheckBox = QtGui.QCheckBox(self.settingsDockWidgetContents) self.peakHoldCheckBox.setObjectName(_fromUtf8("peakHoldCheckBox")) self.gridLayout.addWidget(self.peakHoldCheckBox, 5, 0, 1, 1) self.smoothCheckBox = QtGui.QCheckBox(self.settingsDockWidgetContents) self.smoothCheckBox.setObjectName(_fromUtf8("smoothCheckBox")) self.gridLayout.addWidget(self.smoothCheckBox, 7, 0, 1, 1) self.persistenceCheckBox = QtGui.QCheckBox(self.settingsDockWidgetContents) self.persistenceCheckBox.setObjectName(_fromUtf8("persistenceCheckBox")) self.gridLayout.addWidget(self.persistenceCheckBox, 8, 0, 1, 1) self.gainSpinBox = QtGui.QSpinBox(self.settingsDockWidgetContents) self.gainSpinBox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.gainSpinBox.setMinimum(-1) self.gainSpinBox.setMaximum(49) self.gainSpinBox.setProperty("value", -1) self.gainSpinBox.setObjectName(_fromUtf8("gainSpinBox")) self.gridLayout.addWidget(self.gainSpinBox, 1, 1, 1, 2) self.cropSpinBox = QtGui.QSpinBox(self.settingsDockWidgetContents) self.cropSpinBox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.cropSpinBox.setObjectName(_fromUtf8("cropSpinBox")) self.gridLayout.addWidget(self.cropSpinBox, 3, 1, 1, 2) self.colorsButton = QtGui.QPushButton(self.settingsDockWidgetContents) self.colorsButton.setObjectName(_fromUtf8("colorsButton")) self.gridLayout.addWidget(self.colorsButton, 4, 1, 1, 2) self.smoothButton = QtGui.QToolButton(self.settingsDockWidgetContents) self.smoothButton.setAutoRaise(False) self.smoothButton.setObjectName(_fromUtf8("smoothButton")) self.gridLayout.addWidget(self.smoothButton, 7, 2, 1, 1) self.persistenceButton = QtGui.QToolButton(self.settingsDockWidgetContents) self.persistenceButton.setAutoRaise(False) self.persistenceButton.setObjectName(_fromUtf8("persistenceButton")) self.gridLayout.addWidget(self.persistenceButton, 8, 2, 1, 1) self.averageCheckBox = QtGui.QCheckBox(self.settingsDockWidgetContents) self.averageCheckBox.setObjectName(_fromUtf8("averageCheckBox")) self.gridLayout.addWidget(self.averageCheckBox, 6, 0, 1, 1) self.settingsDockWidget.setWidget(self.settingsDockWidgetContents) QSpectrumAnalyzerMainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(2), self.settingsDockWidget) self.levelsDockWidget = QtGui.QDockWidget(QSpectrumAnalyzerMainWindow) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.levelsDockWidget.sizePolicy().hasHeightForWidth()) self.levelsDockWidget.setSizePolicy(sizePolicy) self.levelsDockWidget.setFeatures(QtGui.QDockWidget.DockWidgetFloatable|QtGui.QDockWidget.DockWidgetMovable) self.levelsDockWidget.setObjectName(_fromUtf8("levelsDockWidget")) self.levelsDockWidgetContents = QtGui.QWidget() self.levelsDockWidgetContents.setObjectName(_fromUtf8("levelsDockWidgetContents")) self.verticalLayout_6 = QtGui.QVBoxLayout(self.levelsDockWidgetContents) self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6")) self.histogramPlotLayout = GraphicsLayoutWidget(self.levelsDockWidgetContents) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Ignored, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.histogramPlotLayout.sizePolicy().hasHeightForWidth()) self.histogramPlotLayout.setSizePolicy(sizePolicy) self.histogramPlotLayout.setObjectName(_fromUtf8("histogramPlotLayout")) self.verticalLayout_6.addWidget(self.histogramPlotLayout) self.levelsDockWidget.setWidget(self.levelsDockWidgetContents) QSpectrumAnalyzerMainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(2), self.levelsDockWidget) self.action_Settings = QtGui.QAction(QSpectrumAnalyzerMainWindow) self.action_Settings.setObjectName(_fromUtf8("action_Settings")) self.action_Quit = QtGui.QAction(QSpectrumAnalyzerMainWindow) self.action_Quit.setObjectName(_fromUtf8("action_Quit")) self.action_About = QtGui.QAction(QSpectrumAnalyzerMainWindow) self.action_About.setObjectName(_fromUtf8("action_About")) self.menu_File.addAction(self.action_Settings) self.menu_File.addSeparator() self.menu_File.addAction(self.action_Quit) self.menu_Help.addAction(self.action_About) self.menubar.addAction(self.menu_File.menuAction()) self.menubar.addAction(self.menu_Help.menuAction()) self.label_2.setBuddy(self.startFreqSpinBox) self.label_3.setBuddy(self.stopFreqSpinBox) self.label.setBuddy(self.binSizeSpinBox) self.label_4.setBuddy(self.intervalSpinBox) self.label_6.setBuddy(self.gainSpinBox) self.label_5.setBuddy(self.ppmSpinBox) self.label_7.setBuddy(self.cropSpinBox) self.retranslateUi(QSpectrumAnalyzerMainWindow) QtCore.QMetaObject.connectSlotsByName(QSpectrumAnalyzerMainWindow) QSpectrumAnalyzerMainWindow.setTabOrder(self.startButton, self.stopButton) QSpectrumAnalyzerMainWindow.setTabOrder(self.stopButton, self.singleShotButton) QSpectrumAnalyzerMainWindow.setTabOrder(self.singleShotButton, self.startFreqSpinBox) QSpectrumAnalyzerMainWindow.setTabOrder(self.startFreqSpinBox, self.stopFreqSpinBox) QSpectrumAnalyzerMainWindow.setTabOrder(self.stopFreqSpinBox, self.binSizeSpinBox) QSpectrumAnalyzerMainWindow.setTabOrder(self.binSizeSpinBox, self.intervalSpinBox) QSpectrumAnalyzerMainWindow.setTabOrder(self.intervalSpinBox, self.gainSpinBox) QSpectrumAnalyzerMainWindow.setTabOrder(self.gainSpinBox, self.ppmSpinBox) QSpectrumAnalyzerMainWindow.setTabOrder(self.ppmSpinBox, self.cropSpinBox) QSpectrumAnalyzerMainWindow.setTabOrder(self.cropSpinBox, self.mainCurveCheckBox) QSpectrumAnalyzerMainWindow.setTabOrder(self.mainCurveCheckBox, self.colorsButton) QSpectrumAnalyzerMainWindow.setTabOrder(self.colorsButton, self.peakHoldCheckBox) QSpectrumAnalyzerMainWindow.setTabOrder(self.peakHoldCheckBox, self.averageCheckBox) QSpectrumAnalyzerMainWindow.setTabOrder(self.averageCheckBox, self.smoothCheckBox) QSpectrumAnalyzerMainWindow.setTabOrder(self.smoothCheckBox, self.smoothButton) QSpectrumAnalyzerMainWindow.setTabOrder(self.smoothButton, self.persistenceCheckBox) QSpectrumAnalyzerMainWindow.setTabOrder(self.persistenceCheckBox, self.persistenceButton) QSpectrumAnalyzerMainWindow.setTabOrder(self.persistenceButton, self.histogramPlotLayout) QSpectrumAnalyzerMainWindow.setTabOrder(self.histogramPlotLayout, self.mainPlotLayout) QSpectrumAnalyzerMainWindow.setTabOrder(self.mainPlotLayout, self.waterfallPlotLayout) def retranslateUi(self, QSpectrumAnalyzerMainWindow): QSpectrumAnalyzerMainWindow.setWindowTitle(_translate("QSpectrumAnalyzerMainWindow", "QSpectrumAnalyzer", None)) self.menu_File.setTitle(_translate("QSpectrumAnalyzerMainWindow", "&File", None)) self.menu_Help.setTitle(_translate("QSpectrumAnalyzerMainWindow", "&Help", None)) self.controlsDockWidget.setWindowTitle(_translate("QSpectrumAnalyzerMainWindow", "Controls", None)) self.startButton.setText(_translate("QSpectrumAnalyzerMainWindow", "&Start", None)) self.stopButton.setText(_translate("QSpectrumAnalyzerMainWindow", "S&top", None)) self.singleShotButton.setText(_translate("QSpectrumAnalyzerMainWindow", "Si&ngle shot", None)) self.frequencyDockWidget.setWindowTitle(_translate("QSpectrumAnalyzerMainWindow", "Frequency", None)) self.label_2.setText(_translate("QSpectrumAnalyzerMainWindow", "Start:", None)) self.startFreqSpinBox.setSuffix(_translate("QSpectrumAnalyzerMainWindow", " MHz", None)) self.label_3.setText(_translate("QSpectrumAnalyzerMainWindow", "Stop:", None)) self.stopFreqSpinBox.setSuffix(_translate("QSpectrumAnalyzerMainWindow", " MHz", None)) self.label.setText(_translate("QSpectrumAnalyzerMainWindow", "Bin size:", None)) self.binSizeSpinBox.setSuffix(_translate("QSpectrumAnalyzerMainWindow", " kHz", None)) self.settingsDockWidget.setWindowTitle(_translate("QSpectrumAnalyzerMainWindow", "Settings", None)) self.label_4.setText(_translate("QSpectrumAnalyzerMainWindow", "Interval [s]:", None)) self.label_6.setText(_translate("QSpectrumAnalyzerMainWindow", "Gain [dB]:", None)) self.label_5.setText(_translate("QSpectrumAnalyzerMainWindow", "Corr. [ppm]:", None)) self.label_7.setText(_translate("QSpectrumAnalyzerMainWindow", "Crop [%]:", None)) self.mainCurveCheckBox.setText(_translate("QSpectrumAnalyzerMainWindow", "Main curve", None)) self.peakHoldCheckBox.setText(_translate("QSpectrumAnalyzerMainWindow", "Peak hold", None)) self.smoothCheckBox.setText(_translate("QSpectrumAnalyzerMainWindow", "Smoothing", None)) self.persistenceCheckBox.setText(_translate("QSpectrumAnalyzerMainWindow", "Persistence", None)) self.gainSpinBox.setSpecialValueText(_translate("QSpectrumAnalyzerMainWindow", "auto", None)) self.colorsButton.setText(_translate("QSpectrumAnalyzerMainWindow", "Colors...", None)) self.smoothButton.setText(_translate("QSpectrumAnalyzerMainWindow", "...", None)) self.persistenceButton.setText(_translate("QSpectrumAnalyzerMainWindow", "...", None)) self.averageCheckBox.setText(_translate("QSpectrumAnalyzerMainWindow", "Average", None)) self.levelsDockWidget.setWindowTitle(_translate("QSpectrumAnalyzerMainWindow", "Levels", None)) self.action_Settings.setText(_translate("QSpectrumAnalyzerMainWindow", "&Settings...", None)) self.action_Quit.setText(_translate("QSpectrumAnalyzerMainWindow", "&Quit", None)) self.action_Quit.setShortcut(_translate("QSpectrumAnalyzerMainWindow", "Ctrl+Q", None)) self.action_About.setText(_translate("QSpectrumAnalyzerMainWindow", "&About", None))
class Ui_MainWindow(object): def variables(self): self.D1_='D1' self.D2_='D2' self.D3_='D3' self.AVF_='AVF' self.AVR_='AVR' self.AVL_='AVL' self.GENRAL_='GENRAL' def setupUi(self, MainWindow): try: base_path= sys._MEIPASS except Exception: base_path=os.path.abspath(".") path1 = os.path.join(base_path, "imagen1.jpeg") path2 = os.path.join(base_path, "imagen2.jpeg") MainWindow.setObjectName("MainWindow") MainWindow.resize(1350, 747) #MainWindow.setStyleSheet("background-color: blue;") self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.pushButtonAbrir = QtWidgets.QPushButton(self.centralwidget) self.pushButtonAbrir.setGeometry(QtCore.QRect(280, 10, 300, 32)) self.pushButtonAbrir.setObjectName("pushButtonAbrir") #self.pushButton_2 = QtWidgets.QPushButton(self.centralwidget) #self.pushButton_2.setGeometry(QtCore.QRect(510, 90, 151, 41)) #self.pushButton_2.setObjectName("pushButton_2") self.graphicsView = GraphicsLayoutWidget(self.centralwidget) self.graphicsView.setGeometry(QtCore.QRect(750, 230, 585, 370)) self.graphicsView.setObjectName("graphicsView") #self.graphicsView.setBackground(background=None) self.label_7 = QtWidgets.QLabel(self.centralwidget) self.label_7.setGeometry(QtCore.QRect(1050, 1, 300, 100)) self.label_7.setObjectName("label_7") pixmap = QPixmap(path1) self.label_7.setPixmap(pixmap) self.label_8 = QtWidgets.QLabel(self.centralwidget) self.label_8.setGeometry(QtCore.QRect(800, 1, 300, 100)) self.label_8.setObjectName("label_8") pixmap = QPixmap(path2) self.label_8.setPixmap(pixmap) #Persona que creo el programa self.label_9 = QtWidgets.QLabel(self.centralwidget) self.label_9.setGeometry(QtCore.QRect(1000, 630, 2000, 70)) self.label_9.setObjectName("label_9") #Nombre del proyecto self.label_10 = QtWidgets.QLabel(self.centralwidget) self.label_10.setGeometry(QtCore.QRect(1000, 595, 2000, 70)) self.label_10.setObjectName("label_10") #Parametros de la persona self.label_nom = QtWidgets.QLabel(self.centralwidget) self.label_nom.setGeometry(QtCore.QRect(800, 20, 800, 200)) self.label_nom.setObjectName("label_nom") self.label_edad = QtWidgets.QLabel(self.centralwidget) self.label_edad.setGeometry(QtCore.QRect(800, 60, 800, 200)) self.label_edad.setObjectName("label_edad") self.label_sexo = QtWidgets.QLabel(self.centralwidget) self.label_sexo.setGeometry(QtCore.QRect(800, 100, 800, 200)) self.label_sexo.setObjectName("label_sexo") self.groupBox = QtWidgets.QGroupBox(self.centralwidget) self.groupBox.setGeometry(QtCore.QRect(20, 40, 675, 841)) self.groupBox.setObjectName("groupBox") self.graphicD1 = GraphicsLayoutWidget(self.groupBox) self.graphicD1.setObjectName("graphicD1") self.graphicD1.setGeometry(QtCore.QRect(65, 30, 1000, 110)) self.graphicD1.setBackground(background=None) self.graphicD2 = GraphicsLayoutWidget(self.groupBox) self.graphicD2.setObjectName("graphicD2") self.graphicD2.setGeometry(QtCore.QRect(65, 130, 1000, 110)) self.graphicD2.setBackground(background=None) self.graphicD3 = GraphicsLayoutWidget(self.groupBox) self.graphicD3.setObjectName("graphicD3") self.graphicD3.setGeometry(QtCore.QRect(65, 230, 1000, 110)) self.graphicD3.setBackground(background=None) self.graphicD3_2 = GraphicsLayoutWidget(self.groupBox) self.graphicD3_2.setObjectName("graphicD3_2") self.graphicD3_2.setGeometry(QtCore.QRect(65, 330, 1000, 110)) self.graphicD3_2.setBackground(background=None) self.graphicD3_3 = GraphicsLayoutWidget(self.groupBox) self.graphicD3_3.setGeometry(QtCore.QRect(65, 430, 1000, 110)) self.graphicD3_3.setObjectName("graphicD3_3") self.graphicD3_3.setBackground(background=None) self.graphicD3_4 = GraphicsLayoutWidget(self.groupBox) self.graphicD3_4.setObjectName("graphicD3_4") self.graphicD3_4.setGeometry(QtCore.QRect(65, 530, 1000, 110)) self.graphicD3_4.setBackground(background=None) self.label = QtWidgets.QLabel(self.groupBox) self.label.setGeometry(QtCore.QRect(10, 65, 50, 24)) self.label.setObjectName("label") self.label_2 = QtWidgets.QLabel(self.groupBox) self.label_2.setGeometry(QtCore.QRect(10, 165, 50, 24)) self.label_2.setObjectName("label_2") self.label_3 = QtWidgets.QLabel(self.groupBox) self.label_3.setGeometry(QtCore.QRect(10, 265, 50, 24)) self.label_3.setObjectName("label_3") self.label_4 = QtWidgets.QLabel(self.groupBox) self.label_4.setGeometry(QtCore.QRect(10, 365, 60, 24)) self.label_4.setObjectName("label_4") self.label_5 = QtWidgets.QLabel(self.groupBox) self.label_5.setGeometry(QtCore.QRect(10, 465, 60, 24)) self.label_5.setObjectName("label_5") self.label_6 = QtWidgets.QLabel(self.groupBox) self.label_6.setGeometry(QtCore.QRect(10, 565, 60, 24)) self.label_6.setObjectName("label_6") MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtWidgets.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 863, 22)) self.menubar.setObjectName("menubar") MainWindow.setMenuBar(self.menubar) self.statusbar = QtWidgets.QStatusBar(MainWindow) self.statusbar.setObjectName("statusbar") MainWindow.setStatusBar(self.statusbar) self.retranslateUi(MainWindow) self.pushButtonAbrir.clicked.connect(self.mybutton_clicked) #self.pushButton_2.clicked.connect(self.generatedReport) #Cajas de texto self.line_nom = QtWidgets.QLineEdit(self.centralwidget) self.line_nom.resize(200, 32) self.line_nom.move(875, 100) self.line_edad = QtWidgets.QLineEdit(self.centralwidget) self.line_edad.resize(200, 32) self.line_edad.move(875, 140) #self.line_sexo = QtWidgets.QLineEdit(self.centralwidget) #self.line_sexo.resize(200, 32) #self.line_sexo.move(875, 180) self.combo_sexo = QtWidgets.QComboBox(self.centralwidget) self.combo_sexo.resize(200, 32) self.combo_sexo.move(875, 180) self.combo_sexo.addItems(["None","Male","Female" ]) QtCore.QMetaObject.connectSlotsByName(MainWindow) def mybutton_clicked(self): try: self.variables() #Nombre de encabezados del archivo CSV persona = {"Nombre":self.line_nom.text(),"Edad":self.line_edad.text(),"Genero":self.combo_sexo.currentText()} combo_textt =self.combo_sexo.currentText() #print(combo_textt) filename= QtWidgets.QFileDialog.getOpenFileName() df = pandas.read_csv(filename[0]) x_max=df['x'].max() a=(df["x"])/4 b= (df["x"]+x_max)/4 c= (df["x"]+(2*x_max))/4 d= (df["x"]+(3*x_max))/4 r = pandas.concat([a,b,c,d]) s= pandas.concat([df[self.D1_],df[self.D1_],df[self.D1_],df[self.D1_]]) t= pandas.concat([df[self.D2_],df[self.D2_],df[self.D2_],df[self.D2_]]) u= pandas.concat([df[self.D3_],df[self.D3_],df[self.D3_],df[self.D3_]]) v= pandas.concat([df[self.AVF_],df[self.AVF_],df[self.AVF_],df[self.AVF_]]) w= pandas.concat([df[self.AVR_],df[self.AVR_],df[self.AVR_],df[self.AVR_]]) x= pandas.concat([df[self.AVL_],df[self.AVL_],df[self.AVL_],df[self.AVL_]]) y= pandas.concat([df[self.GENRAL_],df[self.GENRAL_],df[self.GENRAL_],df[self.GENRAL_]]) df = pandas.DataFrame({"x":r, "D1":s,"D2":t,"D3":u,"AVF":v,"AVR":w,"AVL":x,"GENRAL":y}) self.d1_INTERVAL_1=df.query('x >= 3.03 & x <= 3.08')#st self.d1_INTERVAL_2=df.query('x >= 1.7 & x <= 1.9')#t self.d1_INTERVAL_3=df.query('x >= 4.2 & x <= 4.3')#p self.d1_INTERVAL_1_MAX= self.d1_INTERVAL_1[self.D1_].max() self.d1_INTERVAL_2_MAX= self.d1_INTERVAL_2[self.D1_].max() self.d1_INTERVAL_3_MAX= self.d1_INTERVAL_3[self.D1_].max() self.d2_INTERVAL_1=df.query('x >= 15.4 & x <= 15.44')#ST self.d2_INTERVAL_2=df.query('x >= 16.2 & x <= 16.4')#T self.d2_INTERVAL_3=df.query('x >= 16.6 & x <= 16.7')#P self.d2_INTERVAL_1_MAX= self.d2_INTERVAL_1[self.D2_].max() self.d2_INTERVAL_2_MAX= self.d2_INTERVAL_2[self.D2_].max() self.d2_INTERVAL_3_MAX= self.d2_INTERVAL_3[self.D2_].max() self.d3_INTERVAL_1=df.query('x >= 67.01 & x <= 67.05')#st self.d3_INTERVAL_2=df.query('x >= 49.85 & x <= 50')#t self.d3_INTERVAL_3=df.query('x >= 50.35 & x <= 50.45')#p self.d3_INTERVAL_1_MAX= self.d3_INTERVAL_1[self.D3_].max() self.d3_INTERVAL_2_MAX= self.d3_INTERVAL_2[self.D3_].max() self.d3_INTERVAL_3_MAX= self.d3_INTERVAL_3[self.D3_].max() self.avf_INTERVAL_1=df.query('x >= 111.635 & x <= 111.7')#st self.avf_INTERVAL_2=df.query('x >= 113.82 & x <= 114')#t self.avf_INTERVAL_3=df.query('x >= 153.4 & x <= 153.545')#p self.avf_INTERVAL_1_MAX= self.avf_INTERVAL_1[self.AVF_].max() self.avf_INTERVAL_2_MAX= self.avf_INTERVAL_2[self.AVF_].max() self.avf_INTERVAL_3_MAX= self.avf_INTERVAL_3[self.AVF_].max() self.avr_INTERVAL_1=df.query('x >= 99.27 & x <= 99.29')#st self.avr_INTERVAL_2=df.query('x >= 102.06& x <= 102.26')#t self.avr_INTERVAL_3=df.query('x >= 105.95 & x <= 106.09')#p self.avr_INTERVAL_1_MAX= self.avr_INTERVAL_1[self.AVR_].min() self.avr_INTERVAL_2_MAX= self.avr_INTERVAL_2[self.AVR_].min() self.avr_INTERVAL_3_MAX= self.avr_INTERVAL_3[self.AVR_].min() self.avl_INTERVAL_1=df.query('x >= 95.93 & x <= 96.12')#st self.avl_INTERVAL_2=df.query('x >= 104.75 & x <= 104.8')#t self.avl_INTERVAL_3=df.query('x >= 130.67 & x <= 130.81')#p self.avl_INTERVAL_1_MAX= self.avl_INTERVAL_1[self.AVL_].max() self.avl_INTERVAL_2_MAX= self.avl_INTERVAL_2[self.AVL_].max() self.avl_INTERVAL_3_MAX= self.avl_INTERVAL_3[self.AVL_].max() #VALORES ST Y T values_ST_T ={ self.D1_: { "d1_INTERVAL_1_MAX":self.d1_INTERVAL_1_MAX, "d1_INTERVAL_2_MAX":self.d1_INTERVAL_2_MAX, "d1_INTERVAL_3_MAX":self.d1_INTERVAL_3_MAX }, self.D2_: { "d2_INTERVAL_1_MAX":self.d2_INTERVAL_1_MAX, "d2_INTERVAL_2_MAX":self.d2_INTERVAL_2_MAX, "d2_INTERVAL_3_MAX":self.d2_INTERVAL_3_MAX }, self.D3_: { "d3_INTERVAL_1_MAX":self.d3_INTERVAL_1_MAX, "d3_INTERVAL_2_MAX":self.d3_INTERVAL_2_MAX, "d3_INTERVAL_3_MAX":self.d3_INTERVAL_3_MAX }, self.AVF_: { "avf_INTERVAL_1_MAX":self.avf_INTERVAL_1_MAX, "avf_INTERVAL_2_MAX":self.avf_INTERVAL_2_MAX, "avf_INTERVAL_3_MAX":self.avf_INTERVAL_3_MAX }, self.AVR_: { "avr_INTERVAL_1_MAX":self.avr_INTERVAL_1_MAX, "avr_INTERVAL_2_MAX":self.avr_INTERVAL_2_MAX, "avr_INTERVAL_3_MAX":self.avr_INTERVAL_3_MAX }, self.AVL_: { "avl_INTERVAL_1_MAX":self.avl_INTERVAL_1_MAX, "avl_INTERVAL_2_MAX":self.avl_INTERVAL_2_MAX, "avl_INTERVAL_3_MAX":self.avl_INTERVAL_3_MAX, } } #Intervalo general limit=16 GENER_INTERVAL=df.query('x >= 236 & x <= 243') print(GENER_INTERVAL) contPuls=0 bandera = True for index, row in GENER_INTERVAL.iterrows(): if int(row[self.GENRAL_]) >= limit and bandera==True: contPuls = contPuls + 1 bandera = False elif int(row[self.GENRAL_])<limit and bandera == False: contPuls = contPuls + 1 bandera = True #Graficar valores self.graphicD1.plot(x=df['x'], y=df[self.D1_], pen='#2196F3') self.graphicD2.plot(x=(df['x']), y=df[self.D2_], pen='#2196F3') self.graphicD3.plot(x=(df['x']), y=df[self.D3_], pen='#2196F3') self.graphicD3_2.plot(x=(df['x']), y=df[self.AVF_], pen='#2196F3') self.graphicD3_3.plot(x=(df['x']), y=df[self.AVR_], pen='#2196F3') self.graphicD3_4.plot(x=(df['x']), y=df[self.AVL_], pen='#2196F3') self.graphicsView.plot(x=(df['x']), y=df[self.GENRAL_], pen='#2196F3') self.graphicsView.setLabel("bottom", "Time / s") self.generatedReport(df,persona,values_ST_T,contPuls/2) except NameError: print("error: "+NameError) def retranslateUi(self, MainWindow): _translate = QtCore.QCoreApplication.translate MainWindow.setWindowTitle(_translate("MainWindow", "RECAHOLT")) MainWindow.setWindowIcon(QtGui.QIcon('ico.png')) self.pushButtonAbrir.setText(_translate("MainWindow", "Open file and report generator")) #self.pushButton_2.setText(_translate("MainWindow", "Generar Reporte")) self.label_9.setText(_translate("MainWindow", "by Jonathan Recalde")) self.label_9.setFont(QtGui.QFont('Times', 20)) self.label_10.setText(_translate("MainWindow", "RECAHOLT")) self.label_10.setFont(QtGui.QFont('Times', 20)) self.groupBox.setTitle(_translate("MainWindow", "Graphics")) self.groupBox.setFont(QtGui.QFont('Times', 20)) self.label.setText(_translate("MainWindow", "D1")) self.label_2.setText(_translate("MainWindow", "D2")) self.label_3.setText(_translate("MainWindow", "D3")) self.label_4.setText(_translate("MainWindow", "aVF")) self.label_5.setText(_translate("MainWindow", "aVR")) self.label_6.setText(_translate("MainWindow", "aVL")) self.label_nom.setText(_translate("MainWindow", "Name:")) self.label_edad.setText(_translate("MainWindow", "Age:")) self.label_sexo.setText(_translate("MainWindow", "Gender:")) self.graphicD1 = self.graphicD1.addPlot(row=1, col=1) self.graphicD2 = self.graphicD2.addPlot(row=1, col=1) self.graphicD3 = self.graphicD3.addPlot(row=1, col=1) self.graphicD3_2 = self.graphicD3_2.addPlot(row=1, col=1) self.graphicD3_3 = self.graphicD3_3.addPlot(row=1, col=1) self.graphicD3_4 = self.graphicD3_4.addPlot(row=1, col=1) self.graphicsView = self.graphicsView.addPlot(row=1, col=1) def generatedReport(self,df,persona,values_ST_T,contPuls): #Valores D1 D1_max= df[self.D1_].max() Time_D1=df.query("D1 == '{0}'".format(D1_max)) int_timeD1= float(Time_D1["x"].values[0]) ST_D1= values_ST_T[self.D1_]['d1_INTERVAL_1_MAX'] Time_ST_D1=self.d1_INTERVAL_1.query("D1 == '{0}'".format(ST_D1)) int_time_ST_D1= float(Time_ST_D1["x"].values[0]) T_D1= values_ST_T[self.D1_]['d1_INTERVAL_2_MAX'] Time_T_D1=self.d1_INTERVAL_2.query("D1 == '{0}'".format(T_D1)) int_time_T_D1= float(Time_T_D1["x"].values[0]) P_D1= values_ST_T[self.D1_]['d1_INTERVAL_3_MAX'] Time_P_D1=self.d1_INTERVAL_3.query("D1 == '{0}'".format(P_D1)) int_time_P_D1= float(Time_P_D1["x"].values[0]) #Valores D2 D2_max= df[self.D2_].max() Time_D2=df.query("D2 == '{0}'".format(D2_max)) int_timeD2= float(Time_D2["x"].values[0]) ST_D2= values_ST_T[self.D2_]['d2_INTERVAL_1_MAX'] Time_ST_D2=self.d2_INTERVAL_1.query("D2 == '{0}'".format(ST_D2)) int_time_ST_D2= float(Time_ST_D2["x"].values[0]) T_D2= values_ST_T[self.D2_]['d2_INTERVAL_2_MAX'] Time_T_D2=self.d2_INTERVAL_2.query("D2 == '{0}'".format(T_D2)) int_time_T_D2= float(Time_T_D2["x"].values[0]) P_D2= values_ST_T[self.D2_]['d2_INTERVAL_3_MAX'] Time_P_D2=self.d2_INTERVAL_3.query("D2 == '{0}'".format(P_D2)) int_time_P_D2= float(Time_P_D2["x"].values[0]) #Valores D3 D3_max= df[self.D3_].max() Time_D3=df.query("D3 == '{0}'".format(D3_max)) int_timeD3= float(Time_D3["x"].values[0]) ST_D3= values_ST_T[self.D3_]['d3_INTERVAL_1_MAX'] Time_ST_D3=self.d3_INTERVAL_1.query("D3 == '{0}'".format(ST_D3)) int_time_ST_D3= float(Time_ST_D3["x"].values[0]) T_D3= values_ST_T[self.D3_]['d3_INTERVAL_2_MAX'] Time_T_D3=self.d3_INTERVAL_2.query("D3 == '{0}'".format(T_D3)) int_time_T_D3= float(Time_T_D3["x"].values[0]) P_D3= values_ST_T[self.D3_]['d3_INTERVAL_3_MAX'] Time_P_D3=self.d3_INTERVAL_3.query("D3 == '{0}'".format(P_D3)) int_time_P_D3= float(Time_P_D3["x"].values[0]) #Valores AVF AVF_max= df[self.AVF_].max() Time_AVF=df.query("AVF == '{0}'".format(AVF_max)) int_timeAVF= float(Time_AVF["x"].values[0]) ST_AVF= values_ST_T[self.AVF_]['avf_INTERVAL_1_MAX'] Time_ST_AVF=self.avf_INTERVAL_1.query("AVF == '{0}'".format(ST_AVF)) int_time_ST_AVF= float(Time_ST_AVF["x"].values[0]) T_AVF= values_ST_T[self.AVF_]['avf_INTERVAL_2_MAX'] Time_T_AVF=self.avf_INTERVAL_2.query("AVF == '{0}'".format(T_AVF)) int_time_T_AVF= float(Time_T_AVF["x"].values[0]) P_AVF= values_ST_T[self.AVF_]['avf_INTERVAL_3_MAX'] Time_P_AVF=self.avf_INTERVAL_3.query("AVF == '{0}'".format(P_AVF)) int_time_P_AVF= float(Time_P_AVF["x"].values[0]) #Valores AVR AVR_max= df[self.AVR_].min() Time_AVR=df.query("AVR == '{0}'".format(AVR_max)) int_timeAVR= float(Time_AVR["x"].values[0]) ST_AVR= values_ST_T[self.AVR_]['avr_INTERVAL_1_MAX'] Time_ST_AVR=self.avr_INTERVAL_1.query("AVR == '{0}'".format(ST_AVR)) int_time_ST_AVR= float(Time_ST_AVR["x"].values[0]) T_AVR= values_ST_T[self.AVR_]['avr_INTERVAL_2_MAX'] Time_T_AVR=self.avr_INTERVAL_2.query("AVR == '{0}'".format(T_AVR)) int_time_T_AVR= float(Time_T_AVR["x"].values[0]) P_AVR= values_ST_T[self.AVR_]['avr_INTERVAL_3_MAX'] Time_P_AVR=self.avr_INTERVAL_3.query("AVR == '{0}'".format(P_AVR)) int_time_P_AVR= float(Time_P_AVR["x"].values[0]) #Valores AVL AVL_max= df[self.AVL_].max() Time_AVL=df.query("AVL == '{0}'".format(AVL_max)) int_timeAVL= float(Time_AVL["x"].values[0]) ST_AVL= values_ST_T[self.AVL_]['avl_INTERVAL_1_MAX'] Time_ST_AVL=self.avl_INTERVAL_1.query("AVL == '{0}'".format(ST_AVL)) int_time_ST_AVL= float(Time_ST_AVL["x"].values[0]) T_AVL= values_ST_T[self.AVL_]['avl_INTERVAL_2_MAX'] Time_T_AVL=self.avl_INTERVAL_2.query("AVL == '{0}'".format(T_AVL)) int_time_T_AVL= float(Time_T_AVL["x"].values[0]) P_AVL= values_ST_T[self.AVL_]['avl_INTERVAL_3_MAX'] Time_P_AVL=self.avl_INTERVAL_3.query("AVL == '{0}'".format(P_AVL)) int_time_P_AVL= float(Time_P_AVL["x"].values[0]) # ################################### # Content try: base_path= sys._MEIPASS except Exception: base_path=os.path.abspath(".") path5 = os.path.join(base_path, 'Report.pdf') fileName = path5 documentTitle = 'ECG REPORT' title = 'ECG REPORT' subTitle = 'Name:'+persona["Nombre"] +" Age:"+persona["Edad"] +" Gender:"+persona["Genero"] textLines = [ 'D1 / R:'+str(float(D1_max))+' ST: '+str(float(ST_D1))+' T: '+str(float(T_D1))+' P: '+str(float(P_D1)), 'Time: '+str(float(int_timeD1)) +' Time: '+str(float(int_time_ST_D1))+' Time: '+str(float(int_time_T_D1))+' Time: '+str(float(int_time_P_D1)), 'D2 / R:'+str(float(D2_max))+' ST: '+str(float(ST_D2))+' T: '+str(float(T_D2)) +' P: '+str(float(P_D2)), 'Time: '+str(float(int_timeD2)) +' Time: '+str(float(int_time_ST_D2))+' Time: '+str(float(int_time_T_D2))+' Time: '+str(float(int_time_P_D2)), 'D3 / R:'+str(float(D3_max))+' ST: '+str(float(ST_D3))+' T: '+str(float(T_D3))+' P: '+str(float(P_D3)), 'Time: '+str(float(int_timeD3)) +' Time: '+str(float(int_time_ST_D3))+' Time: '+str(float(int_time_T_D3))+' Time: '+str(float(int_time_P_D3)), 'aVF / R:'+str(float(AVF_max)) +' ST: '+str(float(ST_AVF))+' T: '+str(float(T_AVF))+' P: '+str(float(P_AVF)), 'Time: '+str(float(int_timeAVF)) +' Time: '+str(float(int_time_ST_AVF))+' Time: '+str(float(int_time_T_AVF))+' Time: '+str(float(int_time_P_AVF)), 'aVR / R:'+str(float(AVR_max)) +' ST: '+str(float(ST_AVR))+' T: '+str(float(T_AVR))+' P: '+str(float(P_AVR)), 'Time: '+str(float(int_timeAVR)) +' Time: '+str(float(int_time_ST_AVR))+' Time: '+str(float(int_time_T_AVR))+' Time: '+str(float(int_time_P_AVR)), 'aVL / R:'+str(float(AVL_max)) +' ST: '+str(float(T_AVL))+' T: '+str(float(ST_AVL))+' P: '+str(float(P_AVL)), 'Time: '+str(float(int_timeAVL)) +' Time: '+str(float(int_time_ST_AVL))+' Time: '+str(float(int_time_T_AVL))+' Time: '+str(float(int_time_P_AVL)), ] # ################################### # 0) Create document from reportlab.pdfgen import canvas pdf = canvas.Canvas(fileName) pdf.setTitle(documentTitle) #self.drawMyRuler#(pdf) # ################################### # 1) Title :: Set fonts # # Print available fonts # for font in pdf.getAvailableFonts(): # print(font) # Register a new font from reportlab.pdfbase.ttfonts import TTFont from reportlab.pdfbase import pdfmetrics try: base_path= sys._MEIPASS except Exception: base_path=os.path.abspath(".") path4 = os.path.join(base_path, 'SakBunderan.ttf') print(path4) pdfmetrics.registerFont( TTFont('abc', path4) ) pdf.setFont('abc', 36) pdf.drawCentredString(300, 770, title) # ################################### # 2) Sub Title # RGB - Red Green and Blue pdf.setFillColorRGB(0, 0, 255) pdf.setFont("Courier-Bold", 24) pdf.drawCentredString(290,720, subTitle) # ################################### # 3) Draw a line pdf.line(30, 710, 550, 710) # ################################### # 4) Text object :: for large amounts of text from reportlab.lib import colors text = pdf.beginText(40, 680) text.setFont("Courier", 13) text.setFillColor(colors.red) val=True for line in textLines: text.textLine(line) if val: text.setFillColor(colors.black) val=False else : text.setFillColor(colors.red) val=True text.textLine("") #Valor maximo de X value_max_X=float(df["x"].max())/3600 text.textLine("") text.textLine("") text.textLine("") text.textLine("") text.setFillColor(colors.blue) truncate = "%.6f" % value_max_X text.textLine('Connetion time: '+str(truncate) +" h") text.textLine("") text.textLine('Heart rate: '+str(round(contPuls)*10) +" bpm") pdf.drawText(text) pdf.save()
class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(980, 660) MainWindow.setMinimumSize(QtCore.QSize(980, 660)) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/icons/icon.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off) MainWindow.setWindowIcon(icon) self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.run_button = QtWidgets.QPushButton(self.centralwidget) self.run_button.setEnabled(False) self.run_button.setGeometry(QtCore.QRect(850, 390, 75, 23)) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.run_button.sizePolicy().hasHeightForWidth()) self.run_button.setSizePolicy(sizePolicy) self.run_button.setObjectName("run_button") self.stop_button = QtWidgets.QPushButton(self.centralwidget) self.stop_button.setEnabled(False) self.stop_button.setGeometry(QtCore.QRect(840, 420, 75, 23)) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.stop_button.sizePolicy().hasHeightForWidth()) self.stop_button.setSizePolicy(sizePolicy) self.stop_button.setObjectName("stop_button") self.label_fps = QtWidgets.QLabel(self.centralwidget) self.label_fps.setGeometry(QtCore.QRect(880, 480, 22, 13)) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_fps.sizePolicy().hasHeightForWidth()) self.label_fps.setSizePolicy(sizePolicy) self.label_fps.setObjectName("label_fps") self.frames_counter = QtWidgets.QLabel(self.centralwidget) self.frames_counter.setEnabled(False) self.frames_counter.setGeometry(QtCore.QRect(870, 580, 101, 20)) self.frames_counter.setAlignment(QtCore.Qt.AlignCenter) self.frames_counter.setObjectName("frames_counter") self.frames_slider = QtWidgets.QSlider(self.centralwidget) self.frames_slider.setEnabled(False) self.frames_slider.setGeometry(QtCore.QRect(10, 610, 960, 22)) self.frames_slider.setLayoutDirection(QtCore.Qt.LeftToRight) self.frames_slider.setMaximum(1) self.frames_slider.setPageStep(1) self.frames_slider.setSliderPosition(0) self.frames_slider.setOrientation(QtCore.Qt.Horizontal) self.frames_slider.setInvertedAppearance(False) self.frames_slider.setInvertedControls(False) self.frames_slider.setObjectName("frames_slider") self.fps_sb = QtWidgets.QSpinBox(self.centralwidget) self.fps_sb.setEnabled(False) self.fps_sb.setGeometry(QtCore.QRect(850, 520, 91, 22)) self.fps_sb.setMinimum(1) self.fps_sb.setMaximum(10000) self.fps_sb.setProperty("value", 25) self.fps_sb.setObjectName("fps_sb") self.open_cfg_file_button = QtWidgets.QPushButton(self.centralwidget) self.open_cfg_file_button.setGeometry(QtCore.QRect(810, 10, 75, 23)) self.open_cfg_file_button.setObjectName("open_cfg_file_button") self.load_data_button = QtWidgets.QPushButton(self.centralwidget) self.load_data_button.setEnabled(False) self.load_data_button.setGeometry(QtCore.QRect(890, 10, 75, 23)) self.load_data_button.setObjectName("load_data_button") self.status_label = QtWidgets.QLabel(self.centralwidget) self.status_label.setGeometry(QtCore.QRect(130, 750, 81, 20)) self.status_label.setText("") self.status_label.setObjectName("status_label") self.plot_widget = GraphicsLayoutWidget(self.centralwidget) self.plot_widget.setGeometry(QtCore.QRect(0, 0, 761, 601)) self.plot_widget.setObjectName("plot_widget") self.parameters_table = QtWidgets.QTableWidget(self.centralwidget) self.parameters_table.setEnabled(False) self.parameters_table.setGeometry(QtCore.QRect(770, 110, 201, 171)) self.parameters_table.setVerticalScrollBarPolicy( QtCore.Qt.ScrollBarAlwaysOn) self.parameters_table.setHorizontalScrollBarPolicy( QtCore.Qt.ScrollBarAlwaysOff) self.parameters_table.setSelectionMode( QtWidgets.QAbstractItemView.NoSelection) self.parameters_table.setObjectName("parameters_table") self.parameters_table.setColumnCount(2) self.parameters_table.setRowCount(0) item = QtWidgets.QTableWidgetItem() self.parameters_table.setHorizontalHeaderItem(0, item) item = QtWidgets.QTableWidgetItem() self.parameters_table.setHorizontalHeaderItem(1, item) self.parameters_table.horizontalHeader().setStretchLastSection(True) self.parameters_table.verticalHeader().setVisible(False) MainWindow.setCentralWidget(self.centralwidget) self.statusBar = QtWidgets.QStatusBar(MainWindow) self.statusBar.setObjectName("statusBar") MainWindow.setStatusBar(self.statusBar) self.retranslateUi(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): _translate = QtCore.QCoreApplication.translate MainWindow.setWindowTitle( _translate("MainWindow", "Python Science Plotter")) self.run_button.setText(_translate("MainWindow", "Run")) self.stop_button.setText(_translate("MainWindow", "Stop")) self.label_fps.setText(_translate("MainWindow", "FPS:")) self.frames_counter.setText(_translate("MainWindow", "0 / 0")) self.open_cfg_file_button.setText(_translate("MainWindow", "Open file")) self.load_data_button.setText(_translate("MainWindow", "Load data")) item = self.parameters_table.horizontalHeaderItem(0) item.setText(_translate("MainWindow", "Parameter")) item = self.parameters_table.horizontalHeaderItem(1) item.setText(_translate("MainWindow", "Value"))
class Ui_SignalWidget(object): def setupUi(self, SignalWidget): SignalWidget.setObjectName("SignalWidget") SignalWidget.resize(650, 511) self.gridLayout = QtWidgets.QGridLayout(SignalWidget) self.gridLayout.setObjectName("gridLayout") self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.plotWidget = GraphicsLayoutWidget(SignalWidget) self.plotWidget.setObjectName("plotWidget") self.horizontalLayout_2.addWidget(self.plotWidget) self.verticalLayout_2.addLayout(self.horizontalLayout_2) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setSpacing(0) self.horizontalLayout.setObjectName("horizontalLayout") self.hMinusButton = QtWidgets.QPushButton(SignalWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.hMinusButton.sizePolicy().hasHeightForWidth()) self.hMinusButton.setSizePolicy(sizePolicy) self.hMinusButton.setMinimumSize(QtCore.QSize(30, 30)) self.hMinusButton.setMaximumSize(QtCore.QSize(30, 30)) self.hMinusButton.setFlat(False) self.hMinusButton.setObjectName("hMinusButton") self.horizontalLayout.addWidget(self.hMinusButton) self.hPlusButton = QtWidgets.QPushButton(SignalWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.hPlusButton.sizePolicy().hasHeightForWidth()) self.hPlusButton.setSizePolicy(sizePolicy) self.hPlusButton.setMinimumSize(QtCore.QSize(30, 30)) self.hPlusButton.setMaximumSize(QtCore.QSize(30, 30)) self.hPlusButton.setObjectName("hPlusButton") self.horizontalLayout.addWidget(self.hPlusButton) self.verticalLayout_2.addLayout(self.horizontalLayout) self.gridLayout.addLayout(self.verticalLayout_2, 0, 0, 1, 1) self.groupBox = QtWidgets.QGroupBox(SignalWidget) self.groupBox.setMinimumSize(QtCore.QSize(250, 0)) self.groupBox.setObjectName("groupBox") self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.groupBox) self.verticalLayout_3.setObjectName("verticalLayout_3") self.probeButton = QtWidgets.QRadioButton(self.groupBox) self.probeButton.setChecked(True) self.probeButton.setObjectName("probeButton") self.buttonGroup = QtWidgets.QButtonGroup(SignalWidget) self.buttonGroup.setObjectName("buttonGroup") self.buttonGroup.addButton(self.probeButton) self.verticalLayout_3.addWidget(self.probeButton) self.signalButton = QtWidgets.QRadioButton(self.groupBox) self.signalButton.setObjectName("signalButton") self.buttonGroup.addButton(self.signalButton) self.verticalLayout_3.addWidget(self.signalButton) spacerItem = QtWidgets.QSpacerItem(20, 400, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout_3.addItem(spacerItem) self.gridLayout.addWidget(self.groupBox, 0, 1, 1, 1) self.retranslateUi(SignalWidget) QtCore.QMetaObject.connectSlotsByName(SignalWidget) def retranslateUi(self, SignalWidget): _translate = QtCore.QCoreApplication.translate SignalWidget.setWindowTitle(_translate("SignalWidget", "Form")) self.hMinusButton.setText(_translate("SignalWidget", "-")) self.hPlusButton.setText(_translate("SignalWidget", "+")) self.groupBox.setTitle(_translate("SignalWidget", "Control")) self.probeButton.setText(_translate("SignalWidget", "Probe")) self.signalButton.setText(_translate("SignalWidget", "Signals"))
class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(1280, 800) self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.gridLayout = QtWidgets.QGridLayout(self.centralwidget) self.gridLayout.setObjectName("gridLayout") self.splitter_3 = QtWidgets.QSplitter(self.centralwidget) self.splitter_3.setOrientation(QtCore.Qt.Horizontal) self.splitter_3.setObjectName("splitter_3") self.tabWidget = QtWidgets.QTabWidget(self.splitter_3) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(1) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.tabWidget.sizePolicy().hasHeightForWidth()) self.tabWidget.setSizePolicy(sizePolicy) self.tabWidget.setObjectName("tabWidget") self.widget = QtWidgets.QWidget() self.widget.setObjectName("widget") self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.widget) self.verticalLayout_2.setContentsMargins(0, 0, 0, 0) self.verticalLayout_2.setSpacing(0) self.verticalLayout_2.setObjectName("verticalLayout_2") self.treeWidget = QtWidgets.QTreeWidget(self.widget) self.treeWidget.setEnabled(True) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.treeWidget.sizePolicy().hasHeightForWidth()) self.treeWidget.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setFamily("Helvetica Neue") self.treeWidget.setFont(font) self.treeWidget.setAutoExpandDelay(-1) self.treeWidget.setColumnCount(8) self.treeWidget.setObjectName("treeWidget") self.treeWidget.headerItem().setText(0, "1") font = QtGui.QFont() font.setFamily("Helvetica Neue") font.setKerning(True) self.treeWidget.headerItem().setFont(0, font) self.treeWidget.headerItem().setText(1, "2") font = QtGui.QFont() font.setFamily("Helvetica Neue") self.treeWidget.headerItem().setFont(1, font) self.treeWidget.headerItem().setText(2, "3") font = QtGui.QFont() font.setFamily("Helvetica Neue") self.treeWidget.headerItem().setFont(2, font) self.treeWidget.headerItem().setText(3, "4") font = QtGui.QFont() font.setFamily("Helvetica Neue") self.treeWidget.headerItem().setFont(3, font) self.treeWidget.headerItem().setText(4, "5") self.treeWidget.headerItem().setText(5, "6") self.treeWidget.headerItem().setText(6, "7") self.treeWidget.headerItem().setText(7, "8") self.treeWidget.header().setDefaultSectionSize(50) self.treeWidget.header().setMinimumSectionSize(5) self.treeWidget.header().setSortIndicatorShown(True) self.verticalLayout_2.addWidget(self.treeWidget) self.tabWidget.addTab(self.widget, "") self.tabWidgetPage2 = QtWidgets.QWidget() self.tabWidgetPage2.setObjectName("tabWidgetPage2") self.verticalLayout = QtWidgets.QVBoxLayout(self.tabWidgetPage2) self.verticalLayout.setContentsMargins(0, 0, 0, 0) self.verticalLayout.setObjectName("verticalLayout") self.textBrowser_4 = QtWidgets.QTextBrowser(self.tabWidgetPage2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.textBrowser_4.sizePolicy().hasHeightForWidth()) self.textBrowser_4.setSizePolicy(sizePolicy) self.textBrowser_4.setBaseSize(QtCore.QSize(300, 0)) font = QtGui.QFont() font.setPointSize(10) self.textBrowser_4.setFont(font) self.textBrowser_4.setObjectName("textBrowser_4") self.verticalLayout.addWidget(self.textBrowser_4) self.tabWidget.addTab(self.tabWidgetPage2, "") self.splitter_2 = QtWidgets.QSplitter(self.splitter_3) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(100) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.splitter_2.sizePolicy().hasHeightForWidth()) self.splitter_2.setSizePolicy(sizePolicy) self.splitter_2.setOrientation(QtCore.Qt.Vertical) self.splitter_2.setObjectName("splitter_2") self.frame_5 = QtWidgets.QFrame(self.splitter_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(1) sizePolicy.setVerticalStretch(1) sizePolicy.setHeightForWidth( self.frame_5.sizePolicy().hasHeightForWidth()) self.frame_5.setSizePolicy(sizePolicy) self.frame_5.setMaximumSize(QtCore.QSize(16777215, 180)) self.frame_5.setFrameShape(QtWidgets.QFrame.StyledPanel) self.frame_5.setFrameShadow(QtWidgets.QFrame.Raised) self.frame_5.setObjectName("frame_5") self.horizontalLayout = QtWidgets.QHBoxLayout(self.frame_5) self.horizontalLayout.setSizeConstraint( QtWidgets.QLayout.SetMinimumSize) self.horizontalLayout.setContentsMargins(0, 0, 0, 0) self.horizontalLayout.setSpacing(0) self.horizontalLayout.setObjectName("horizontalLayout") self.frame_4 = QtWidgets.QFrame(self.frame_5) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(20) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.frame_4.sizePolicy().hasHeightForWidth()) self.frame_4.setSizePolicy(sizePolicy) self.frame_4.setFrameShape(QtWidgets.QFrame.Panel) self.frame_4.setFrameShadow(QtWidgets.QFrame.Raised) self.frame_4.setObjectName("frame_4") self.formLayout_3 = QtWidgets.QFormLayout(self.frame_4) self.formLayout_3.setFormAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignTop) self.formLayout_3.setContentsMargins(5, 44, 5, 5) self.formLayout_3.setObjectName("formLayout_3") self.label_6 = QtWidgets.QLabel(self.frame_4) self.label_6.setMaximumSize(QtCore.QSize(200, 16777215)) self.label_6.setLayoutDirection(QtCore.Qt.LeftToRight) self.label_6.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_6.setObjectName("label_6") self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_6) self.tid_spinBox = QtWidgets.QSpinBox(self.frame_4) self.tid_spinBox.setMaximumSize(QtCore.QSize(51, 16777215)) self.tid_spinBox.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignTop) self.tid_spinBox.setObjectName("tid_spinBox") self.tid_spinBox.setMaximum(500) self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.tid_spinBox) self.label_11 = QtWidgets.QLabel(self.frame_4) self.label_11.setLayoutDirection(QtCore.Qt.LeftToRight) self.label_11.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_11.setObjectName("label_11") self.formLayout_3.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_11) self.checkbox_hold_trace_position = QtWidgets.QCheckBox(self.frame_4) font = QtGui.QFont() font.setPointSize(8) self.checkbox_hold_trace_position.setFont(font) self.checkbox_hold_trace_position.setLayoutDirection( QtCore.Qt.LeftToRight) self.checkbox_hold_trace_position.setText("") self.checkbox_hold_trace_position.setObjectName( "checkbox_hold_trace_position") self.formLayout_3.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.checkbox_hold_trace_position) self.horizontalLayout.addWidget(self.frame_4) self.frame = QtWidgets.QFrame(self.frame_5) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(20) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.frame.sizePolicy().hasHeightForWidth()) self.frame.setSizePolicy(sizePolicy) self.frame.setLayoutDirection(QtCore.Qt.LeftToRight) self.frame.setFrameShape(QtWidgets.QFrame.Panel) self.frame.setFrameShadow(QtWidgets.QFrame.Raised) self.frame.setObjectName("frame") self.formLayout_2 = QtWidgets.QFormLayout(self.frame) self.formLayout_2.setFieldGrowthPolicy( QtWidgets.QFormLayout.ExpandingFieldsGrow) self.formLayout_2.setFormAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignTop) self.formLayout_2.setContentsMargins(5, 5, 5, 5) self.formLayout_2.setHorizontalSpacing(5) self.formLayout_2.setObjectName("formLayout_2") self.hp_filter_freq = QtWidgets.QDoubleSpinBox(self.frame) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.hp_filter_freq.sizePolicy().hasHeightForWidth()) self.hp_filter_freq.setSizePolicy(sizePolicy) self.hp_filter_freq.setWrapping(False) self.hp_filter_freq.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.hp_filter_freq.setMaximum(512.0) self.hp_filter_freq.setProperty("value", 1.0) self.hp_filter_freq.setObjectName("hp_filter_freq") self.formLayout_2.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.hp_filter_freq) self.label_2 = QtWidgets.QLabel(self.frame) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_2.setFont(font) self.label_2.setLayoutDirection(QtCore.Qt.LeftToRight) self.label_2.setAlignment(QtCore.Qt.AlignCenter) self.label_2.setObjectName("label_2") self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_2) self.lp_filter_freq = QtWidgets.QDoubleSpinBox(self.frame) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.lp_filter_freq.sizePolicy().hasHeightForWidth()) self.lp_filter_freq.setSizePolicy(sizePolicy) self.lp_filter_freq.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.lp_filter_freq.setMaximum(30000.0) self.lp_filter_freq.setProperty("value", 512.0) self.lp_filter_freq.setObjectName("lp_filter_freq") self.formLayout_2.setWidget(7, QtWidgets.QFormLayout.FieldRole, self.lp_filter_freq) self.checkbox_filter_toggle = QtWidgets.QCheckBox(self.frame) self.checkbox_filter_toggle.setLayoutDirection(QtCore.Qt.LeftToRight) self.checkbox_filter_toggle.setAutoFillBackground(True) self.checkbox_filter_toggle.setText("") self.checkbox_filter_toggle.setTristate(False) self.checkbox_filter_toggle.setObjectName("checkbox_filter_toggle") self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.checkbox_filter_toggle) self.checkbox_hp_filter = QtWidgets.QCheckBox(self.frame) self.checkbox_hp_filter.setObjectName("checkbox_hp_filter") self.formLayout_2.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.checkbox_hp_filter) self.checkbox_lp_filter = QtWidgets.QCheckBox(self.frame) self.checkbox_lp_filter.setObjectName("checkbox_lp_filter") self.formLayout_2.setWidget(7, QtWidgets.QFormLayout.LabelRole, self.checkbox_lp_filter) self.horizontalLayout.addWidget(self.frame) self.frame_2 = QtWidgets.QFrame(self.frame_5) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(20) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.frame_2.sizePolicy().hasHeightForWidth()) self.frame_2.setSizePolicy(sizePolicy) self.frame_2.setFrameShape(QtWidgets.QFrame.Panel) self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised) self.frame_2.setObjectName("frame_2") self.formLayout = QtWidgets.QFormLayout(self.frame_2) self.formLayout.setFieldGrowthPolicy( QtWidgets.QFormLayout.ExpandingFieldsGrow) self.formLayout.setFormAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignTop) self.formLayout.setContentsMargins(5, 5, 5, 5) self.formLayout.setHorizontalSpacing(5) self.formLayout.setObjectName("formLayout") self.label_7 = QtWidgets.QLabel(self.frame_2) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_7.setFont(font) self.label_7.setAlignment(QtCore.Qt.AlignCenter) self.label_7.setObjectName("label_7") self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_7) self.label_5 = QtWidgets.QLabel(self.frame_2) self.label_5.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_5.setObjectName("label_5") self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_5) self.xrange_spinBox = QtWidgets.QDoubleSpinBox(self.frame_2) self.xrange_spinBox.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignTop) self.xrange_spinBox.setMaximum(3600.0) self.xrange_spinBox.setObjectName("xrange_spinBox") self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.xrange_spinBox) self.label = QtWidgets.QLabel(self.frame_2) self.label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label.setObjectName("label") self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label) self.scroll_speed_box = QtWidgets.QSpinBox(self.frame_2) self.scroll_speed_box.setMinimum(1) self.scroll_speed_box.setObjectName("scroll_speed_box") self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.scroll_speed_box) self.label_10 = QtWidgets.QLabel(self.frame_2) self.label_10.setLayoutDirection(QtCore.Qt.LeftToRight) self.label_10.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_10.setObjectName("label_10") self.formLayout.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.label_10) self.checkBox_scrolling = QtWidgets.QCheckBox(self.frame_2) self.checkBox_scrolling.setLayoutDirection(QtCore.Qt.LeftToRight) self.checkBox_scrolling.setText("") self.checkBox_scrolling.setObjectName("checkBox_scrolling") self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.checkBox_scrolling) self.blink_box = QtWidgets.QCheckBox(self.frame_2) self.blink_box.setLayoutDirection(QtCore.Qt.LeftToRight) self.blink_box.setText("") self.blink_box.setObjectName("blink_box") self.formLayout.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.blink_box) self.horizontalLayout.addWidget(self.frame_2) self.frame_3 = QtWidgets.QFrame(self.frame_5) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(100) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.frame_3.sizePolicy().hasHeightForWidth()) self.frame_3.setSizePolicy(sizePolicy) self.frame_3.setFrameShape(QtWidgets.QFrame.Panel) self.frame_3.setFrameShadow(QtWidgets.QFrame.Raised) self.frame_3.setObjectName("frame_3") self.formLayout_4 = QtWidgets.QFormLayout(self.frame_3) self.formLayout_4.setFieldGrowthPolicy( QtWidgets.QFormLayout.ExpandingFieldsGrow) self.formLayout_4.setFormAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignTop) self.formLayout_4.setContentsMargins(5, 5, 5, 5) self.formLayout_4.setHorizontalSpacing(5) self.formLayout_4.setObjectName("formLayout_4") self.label_4 = QtWidgets.QLabel(self.frame_3) self.label_4.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter) self.label_4.setObjectName("label_4") self.formLayout_4.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_4) self.predictions_file_display = QtWidgets.QLineEdit(self.frame_3) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.predictions_file_display.sizePolicy().hasHeightForWidth()) self.predictions_file_display.setSizePolicy(sizePolicy) self.predictions_file_display.setObjectName("predictions_file_display") self.formLayout_4.setWidget(1, QtWidgets.QFormLayout.SpanningRole, self.predictions_file_display) self.label_3 = QtWidgets.QLabel(self.frame_3) self.label_3.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter) self.label_3.setObjectName("label_3") self.formLayout_4.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_3) self.h5_folder_display = QtWidgets.QLineEdit(self.frame_3) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.h5_folder_display.sizePolicy().hasHeightForWidth()) self.h5_folder_display.setSizePolicy(sizePolicy) self.h5_folder_display.setDragEnabled(True) self.h5_folder_display.setReadOnly(True) self.h5_folder_display.setCursorMoveStyle(QtCore.Qt.VisualMoveStyle) self.h5_folder_display.setObjectName("h5_folder_display") self.formLayout_4.setWidget(3, QtWidgets.QFormLayout.SpanningRole, self.h5_folder_display) self.horizontalLayout.addWidget(self.frame_3) self.splitter = QtWidgets.QSplitter(self.splitter_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(100) sizePolicy.setVerticalStretch(100) sizePolicy.setHeightForWidth( self.splitter.sizePolicy().hasHeightForWidth()) self.splitter.setSizePolicy(sizePolicy) self.splitter.setOrientation(QtCore.Qt.Vertical) self.splitter.setObjectName("splitter") self.overview_plot = GraphicsLayoutWidget(self.splitter) self.overview_plot.setBaseSize(QtCore.QSize(800, 300)) self.overview_plot.setObjectName("overview_plot") self.GraphicsLayoutWidget = GraphicsLayoutWidget(self.splitter) self.GraphicsLayoutWidget.setEnabled(True) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(10) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.GraphicsLayoutWidget.sizePolicy().hasHeightForWidth()) self.GraphicsLayoutWidget.setSizePolicy(sizePolicy) self.GraphicsLayoutWidget.setBaseSize(QtCore.QSize(800, 300)) self.GraphicsLayoutWidget.setObjectName("GraphicsLayoutWidget") self.gridLayout.addWidget(self.splitter_3, 0, 0, 1, 1) MainWindow.setCentralWidget(self.centralwidget) self.menuBar = QtWidgets.QMenuBar(MainWindow) self.menuBar.setGeometry(QtCore.QRect(0, 0, 1280, 31)) self.menuBar.setObjectName("menuBar") self.menuFile = QtWidgets.QMenu(self.menuBar) self.menuFile.setObjectName("menuFile") self.menuAnalyse = QtWidgets.QMenu(self.menuBar) self.menuAnalyse.setObjectName("menuAnalyse") MainWindow.setMenuBar(self.menuBar) self.actionSave_annotations = QtWidgets.QAction(MainWindow) self.actionSave_annotations.setObjectName("actionSave_annotations") self.actionLoad_Library = QtWidgets.QAction(MainWindow) self.actionLoad_Library.setObjectName("actionLoad_Library") self.actionLoad_Predictions = QtWidgets.QAction(MainWindow) self.actionLoad_Predictions.setObjectName("actionLoad_Predictions") self.actionLoad_h5_folder = QtWidgets.QAction(MainWindow) self.actionLoad_h5_folder.setObjectName("actionLoad_h5_folder") self.actionConvert_dir_to_h5 = QtWidgets.QAction(MainWindow) self.actionConvert_dir_to_h5.setObjectName("actionConvert_dir_to_h5") self.actionConvert_ndf_to_h5 = QtWidgets.QAction(MainWindow) self.actionConvert_ndf_to_h5.setObjectName("actionConvert_ndf_to_h5") self.actionLibrary_logistics = QtWidgets.QAction(MainWindow) self.actionLibrary_logistics.setObjectName("actionLibrary_logistics") self.actionAdd_to_library = QtWidgets.QAction(MainWindow) self.actionAdd_to_library.setObjectName("actionAdd_to_library") self.actionAdd_labels_to_library = QtWidgets.QAction(MainWindow) self.actionAdd_labels_to_library.setObjectName( "actionAdd_labels_to_library") self.actionAdd_features_to_library = QtWidgets.QAction(MainWindow) self.actionAdd_features_to_library.setObjectName( "actionAdd_features_to_library") self.actionClassifier_components = QtWidgets.QAction(MainWindow) self.actionClassifier_components.setObjectName( "actionClassifier_components") self.actionRun_classifer_on_h5_dir = QtWidgets.QAction(MainWindow) self.actionRun_classifer_on_h5_dir.setObjectName( "actionRun_classifer_on_h5_dir") self.actionRun_classifer_on_ndf_dir = QtWidgets.QAction(MainWindow) self.actionRun_classifer_on_ndf_dir.setObjectName( "actionRun_classifer_on_ndf_dir") self.actionSet_default_folder = QtWidgets.QAction(MainWindow) self.actionSet_default_folder.setObjectName("actionSet_default_folder") self.actionAdd_features_to_h5_folder = QtWidgets.QAction(MainWindow) self.actionAdd_features_to_h5_folder.setObjectName( "actionAdd_features_to_h5_folder") self.actionFolder_for_substates = QtWidgets.QAction(MainWindow) self.actionFolder_for_substates.setObjectName( "actionFolder_for_substates") self.actionSubstates_Window = QtWidgets.QAction(MainWindow) self.actionSubstates_Window.setObjectName("actionSubstates_Window") self.actionOpen_in_Jupyter_notebook = QtWidgets.QAction(MainWindow) self.actionOpen_in_Jupyter_notebook.setObjectName( "actionOpen_in_Jupyter_notebook") self.menuFile.addAction(self.actionLoad_Library) self.menuFile.addAction(self.actionLoad_Predictions) self.menuFile.addAction(self.actionLoad_h5_folder) self.menuFile.addSeparator() self.menuFile.addAction(self.actionSave_annotations) self.menuFile.addAction(self.actionSet_default_folder) self.menuFile.addSeparator() self.menuFile.addAction(self.actionSubstates_Window) self.menuAnalyse.addAction(self.actionConvert_ndf_to_h5) self.menuAnalyse.addSeparator() self.menuAnalyse.addAction(self.actionAdd_features_to_h5_folder) self.menuAnalyse.addSeparator() self.menuAnalyse.addAction(self.actionLibrary_logistics) self.menuAnalyse.addSeparator() self.menuAnalyse.addAction(self.actionClassifier_components) self.menuAnalyse.addSeparator() self.menuAnalyse.addSeparator() self.menuAnalyse.addAction(self.actionOpen_in_Jupyter_notebook) self.menuBar.addAction(self.menuFile.menuAction()) self.menuBar.addAction(self.menuAnalyse.menuAction()) self.retranslateUi(MainWindow) self.tabWidget.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): _translate = QtCore.QCoreApplication.translate MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.widget), _translate("MainWindow", "File list")) self.textBrowser_4.setHtml( _translate( "MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" "p, li { white-space: pre-wrap; }\n" "</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:10pt; font-weight:400; font-style:normal;\">\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:11pt; font-weight:600;\">Mouse functionality and keyboard shortcuts</span></p>\n" "<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:11pt; font-weight:600;\"><br /></p>\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:11pt;\">Mouse: Scroll when hovering over either axis in the main plot to zoom that axis only. Scrolling when in the middle will zoom both axes at the same time - you probably don\'t want that.</span></p>\n" "<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:11pt;\">Up arrow: Zoom in / speed up </span></p>\n" "<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:11pt;\">Down arrow: Zoom out / slow down </span></p>\n" "<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:11pt;\">Right arrow: Step right / scroll forwards </span></p>\n" "<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:11pt;\">Left arrow: Step left / scroll backwards</span></p>\n" "<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:11pt;\">Numbers: Set plot time interval </span></p>\n" "<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:11pt;\">B key: Toggle blink vs scroll </span></p>\n" "<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:11pt;\">Space bar: Start scrolling (or blinking)</span></p>\n" "<p style=\"-qt-paragraph-type:empty; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:11pt;\"><br /></p>\n" "<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:11pt;\">Left click + Shift: Mark start of an event in uppper window</span></p>\n" "<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:11pt;\">Left click + Alt: Mark end of event</span></p></body></html>" )) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabWidgetPage2), _translate("MainWindow", "Help")) self.label_6.setText(_translate("MainWindow", " TID: ")) self.label_11.setText(_translate("MainWindow", "Hold position:")) self.label_2.setText(_translate("MainWindow", "Filter (Hz)")) self.checkbox_hp_filter.setText(_translate("MainWindow", "High pass")) self.checkbox_lp_filter.setText(_translate("MainWindow", "Low pass")) self.label_7.setText(_translate("MainWindow", "Scrolling")) self.label_5.setText(_translate("MainWindow", "X range (s):")) self.label.setText(_translate("MainWindow", "Scroll speed:")) self.label_10.setText(_translate("MainWindow", "Blinking:")) self.label_4.setText(_translate("MainWindow", " h5 folder:")) self.label_3.setText(_translate("MainWindow", " Annotation file:")) self.menuFile.setTitle(_translate("MainWindow", "File")) self.menuAnalyse.setTitle(_translate("MainWindow", "Analyse")) self.actionSave_annotations.setText( _translate("MainWindow", "Save annotations")) self.actionLoad_Library.setText( _translate("MainWindow", "Load Library")) self.actionLoad_Predictions.setText( _translate("MainWindow", "Load Predictions")) self.actionLoad_h5_folder.setText( _translate("MainWindow", "Load h5 folder")) self.actionConvert_dir_to_h5.setText( _translate("MainWindow", "Convert dir to h5")) self.actionConvert_ndf_to_h5.setText( _translate("MainWindow", "Convert ndf folder to h5")) self.actionLibrary_logistics.setText( _translate("MainWindow", "Library logistics")) self.actionAdd_to_library.setText( _translate("MainWindow", "Add to library")) self.actionAdd_labels_to_library.setText( _translate("MainWindow", "Add labels to library")) self.actionAdd_features_to_library.setText( _translate("MainWindow", "Add features to library")) self.actionClassifier_components.setText( _translate("MainWindow", "Classifier components")) self.actionRun_classifer_on_h5_dir.setText( _translate("MainWindow", "Run classifer on h5 dir")) self.actionRun_classifer_on_ndf_dir.setText( _translate("MainWindow", "Run classifer on ndf dir")) self.actionSet_default_folder.setText( _translate("MainWindow", "Set default folder")) self.actionAdd_features_to_h5_folder.setText( _translate("MainWindow", "Add features to h5 folder")) self.actionFolder_for_substates.setText( _translate("MainWindow", "Folder for substates")) self.actionSubstates_Window.setText( _translate("MainWindow", "Substates Window")) self.actionOpen_in_Jupyter_notebook.setText( _translate("MainWindow", "Open in Jupyter notebook"))
class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName(_fromUtf8("MainWindow")) MainWindow.setEnabled(True) MainWindow.resize(1201, 818) MainWindow.setMinimumSize(QtCore.QSize(1024, 700)) self.centralwidget = QtGui.QWidget(MainWindow) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Maximum) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.centralwidget.sizePolicy().hasHeightForWidth()) self.centralwidget.setSizePolicy(sizePolicy) self.centralwidget.setObjectName(_fromUtf8("centralwidget")) self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.select_file_button = QtGui.QPushButton(self.centralwidget) font = QtGui.QFont() font.setPointSize(9) self.select_file_button.setFont(font) self.select_file_button.setObjectName(_fromUtf8("select_file_button")) self.horizontalLayout.addWidget(self.select_file_button) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.verticalLayout.addLayout(self.horizontalLayout) self.central_tab = QtGui.QTabWidget(self.centralwidget) self.central_tab.setObjectName(_fromUtf8("central_tab")) self.waveform_tab = QtGui.QWidget() self.waveform_tab.setObjectName(_fromUtf8("waveform_tab")) self.horizontalLayout_3 = QtGui.QHBoxLayout(self.waveform_tab) self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3")) self.verticalLayout_3 = QtGui.QVBoxLayout() self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3")) self.group_by_network_check_box = QtGui.QCheckBox(self.waveform_tab) self.group_by_network_check_box.setChecked(True) self.group_by_network_check_box.setObjectName(_fromUtf8("group_by_network_check_box")) self.verticalLayout_3.addWidget(self.group_by_network_check_box) self.station_view = StationTreeWidget(self.waveform_tab) self.station_view.setAnimated(False) self.station_view.setHeaderHidden(True) self.station_view.setObjectName(_fromUtf8("station_view")) self.station_view.headerItem().setText(0, _fromUtf8("1")) self.verticalLayout_3.addWidget(self.station_view) self.web_view = QtWebKit.QWebView(self.waveform_tab) self.web_view.setUrl(QtCore.QUrl(_fromUtf8("about:blank"))) self.web_view.setObjectName(_fromUtf8("web_view")) self.verticalLayout_3.addWidget(self.web_view) self.verticalLayout_3.setStretch(0, 1) self.verticalLayout_3.setStretch(1, 10) self.verticalLayout_3.setStretch(2, 4) self.horizontalLayout_3.addLayout(self.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")) self.reset_view_push_button = QtGui.QPushButton(self.waveform_tab) self.reset_view_push_button.setEnabled(False) self.reset_view_push_button.setObjectName(_fromUtf8("reset_view_push_button")) self.horizontalLayout_2.addWidget(self.reset_view_push_button) spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem1) self.detrend_and_demean_check_box = QtGui.QCheckBox(self.waveform_tab) self.detrend_and_demean_check_box.setObjectName(_fromUtf8("detrend_and_demean_check_box")) self.horizontalLayout_2.addWidget(self.detrend_and_demean_check_box) self.normalize_check_box = QtGui.QCheckBox(self.waveform_tab) self.normalize_check_box.setObjectName(_fromUtf8("normalize_check_box")) self.horizontalLayout_2.addWidget(self.normalize_check_box) spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem2) self.references_push_button = QtGui.QPushButton(self.waveform_tab) self.references_push_button.setObjectName(_fromUtf8("references_push_button")) self.horizontalLayout_2.addWidget(self.references_push_button) self.verticalLayout_2.addLayout(self.horizontalLayout_2) self.graph = GraphicsLayoutWidget(self.waveform_tab) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.graph.sizePolicy().hasHeightForWidth()) self.graph.setSizePolicy(sizePolicy) self.graph.setMouseTracking(False) self.graph.setToolTip(_fromUtf8("")) self.graph.setObjectName(_fromUtf8("graph")) self.verticalLayout_2.addWidget(self.graph) self.horizontalLayout_3.addLayout(self.verticalLayout_2) self.horizontalLayout_3.setStretch(0, 3) self.horizontalLayout_3.setStretch(1, 10) self.central_tab.addTab(self.waveform_tab, _fromUtf8("Waveforms")) self.auxiliary_data_tab = QtGui.QWidget() self.auxiliary_data_tab.setObjectName(_fromUtf8("auxiliary_data_tab")) self.horizontalLayout_11 = QtGui.QHBoxLayout(self.auxiliary_data_tab) self.horizontalLayout_11.setObjectName(_fromUtf8("horizontalLayout_11")) self.auxiliary_data_tree_view = QtGui.QTreeWidget(self.auxiliary_data_tab) self.auxiliary_data_tree_view.setObjectName(_fromUtf8("auxiliary_data_tree_view")) self.auxiliary_data_tree_view.headerItem().setText(0, _fromUtf8("1")) self.auxiliary_data_tree_view.header().setVisible(False) self.horizontalLayout_11.addWidget(self.auxiliary_data_tree_view) self.verticalLayout_4 = QtGui.QVBoxLayout() self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4")) self.auxiliary_data_stacked_widget = QtGui.QStackedWidget(self.auxiliary_data_tab) self.auxiliary_data_stacked_widget.setObjectName(_fromUtf8("auxiliary_data_stacked_widget")) self.auxiliary_data_graph_page = QtGui.QWidget() self.auxiliary_data_graph_page.setObjectName(_fromUtf8("auxiliary_data_graph_page")) self.horizontalLayout_8 = QtGui.QHBoxLayout(self.auxiliary_data_graph_page) self.horizontalLayout_8.setObjectName(_fromUtf8("horizontalLayout_8")) self.auxiliary_data_graph = GraphicsLayoutWidget(self.auxiliary_data_graph_page) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.auxiliary_data_graph.sizePolicy().hasHeightForWidth()) self.auxiliary_data_graph.setSizePolicy(sizePolicy) self.auxiliary_data_graph.setMouseTracking(False) self.auxiliary_data_graph.setToolTip(_fromUtf8("")) self.auxiliary_data_graph.setObjectName(_fromUtf8("auxiliary_data_graph")) self.horizontalLayout_8.addWidget(self.auxiliary_data_graph) self.auxiliary_data_stacked_widget.addWidget(self.auxiliary_data_graph_page) self.auxiliary_data_file_page = QtGui.QWidget() self.auxiliary_data_file_page.setObjectName(_fromUtf8("auxiliary_data_file_page")) self.horizontalLayout_9 = QtGui.QHBoxLayout(self.auxiliary_data_file_page) self.horizontalLayout_9.setObjectName(_fromUtf8("horizontalLayout_9")) self.auxiliary_file_browser = QtGui.QTextBrowser(self.auxiliary_data_file_page) font = QtGui.QFont() font.setFamily(_fromUtf8("Andale Mono")) font.setPointSize(12) self.auxiliary_file_browser.setFont(font) self.auxiliary_file_browser.setObjectName(_fromUtf8("auxiliary_file_browser")) self.horizontalLayout_9.addWidget(self.auxiliary_file_browser) self.auxiliary_data_stacked_widget.addWidget(self.auxiliary_data_file_page) self.verticalLayout_4.addWidget(self.auxiliary_data_stacked_widget) self.horizontalLayout_10 = QtGui.QHBoxLayout() self.horizontalLayout_10.setObjectName(_fromUtf8("horizontalLayout_10")) self.show_auxiliary_provenance_button = QtGui.QPushButton(self.auxiliary_data_tab) self.show_auxiliary_provenance_button.setEnabled(False) self.show_auxiliary_provenance_button.setAutoDefault(False) self.show_auxiliary_provenance_button.setDefault(False) self.show_auxiliary_provenance_button.setFlat(False) self.show_auxiliary_provenance_button.setObjectName(_fromUtf8("show_auxiliary_provenance_button")) self.horizontalLayout_10.addWidget(self.show_auxiliary_provenance_button) spacerItem3 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_10.addItem(spacerItem3) self.verticalLayout_4.addLayout(self.horizontalLayout_10) self.horizontalLayout_7 = QtGui.QHBoxLayout() self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7")) self.groupBox = QtGui.QGroupBox(self.auxiliary_data_tab) self.groupBox.setObjectName(_fromUtf8("groupBox")) self.horizontalLayout_5 = QtGui.QHBoxLayout(self.groupBox) self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5")) self.auxiliary_data_info_table_view = QtGui.QTableWidget(self.groupBox) self.auxiliary_data_info_table_view.setObjectName(_fromUtf8("auxiliary_data_info_table_view")) self.auxiliary_data_info_table_view.setColumnCount(0) self.auxiliary_data_info_table_view.setRowCount(0) self.auxiliary_data_info_table_view.horizontalHeader().setSortIndicatorShown(False) self.horizontalLayout_5.addWidget(self.auxiliary_data_info_table_view) self.horizontalLayout_7.addWidget(self.groupBox) self.groupBox_2 = QtGui.QGroupBox(self.auxiliary_data_tab) self.groupBox_2.setObjectName(_fromUtf8("groupBox_2")) self.horizontalLayout_6 = QtGui.QHBoxLayout(self.groupBox_2) self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6")) self.auxiliary_data_detail_table_view = QtGui.QTableWidget(self.groupBox_2) self.auxiliary_data_detail_table_view.setObjectName(_fromUtf8("auxiliary_data_detail_table_view")) self.auxiliary_data_detail_table_view.setColumnCount(0) self.auxiliary_data_detail_table_view.setRowCount(0) self.horizontalLayout_6.addWidget(self.auxiliary_data_detail_table_view) self.horizontalLayout_7.addWidget(self.groupBox_2) self.verticalLayout_4.addLayout(self.horizontalLayout_7) self.horizontalLayout_11.addLayout(self.verticalLayout_4) self.horizontalLayout_11.setStretch(0, 3) self.horizontalLayout_11.setStretch(1, 10) self.central_tab.addTab(self.auxiliary_data_tab, _fromUtf8("")) self.provenance_tab = QtGui.QWidget() self.provenance_tab.setObjectName(_fromUtf8("provenance_tab")) self.horizontalLayout_4 = QtGui.QHBoxLayout(self.provenance_tab) self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4")) self.provenance_list_view = QtGui.QListView(self.provenance_tab) self.provenance_list_view.setObjectName(_fromUtf8("provenance_list_view")) self.horizontalLayout_4.addWidget(self.provenance_list_view) self.provenance_graphics_view = SvgGraphicsView(self.provenance_tab) self.provenance_graphics_view.setObjectName(_fromUtf8("provenance_graphics_view")) self.horizontalLayout_4.addWidget(self.provenance_graphics_view) self.horizontalLayout_4.setStretch(0, 3) self.horizontalLayout_4.setStretch(1, 10) self.central_tab.addTab(self.provenance_tab, _fromUtf8("")) self.event_tab = QtGui.QWidget() self.event_tab.setObjectName(_fromUtf8("event_tab")) self.horizontalLayout_12 = QtGui.QHBoxLayout(self.event_tab) self.horizontalLayout_12.setObjectName(_fromUtf8("horizontalLayout_12")) self.event_tree_widget = QtGui.QTreeWidget(self.event_tab) self.event_tree_widget.setObjectName(_fromUtf8("event_tree_widget")) self.event_tree_widget.headerItem().setText(0, _fromUtf8("1")) self.event_tree_widget.header().setVisible(False) self.horizontalLayout_12.addWidget(self.event_tree_widget) self.verticalLayout_5 = QtGui.QVBoxLayout() self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5")) self.events_web_view = QtWebKit.QWebView(self.event_tab) self.events_web_view.setUrl(QtCore.QUrl(_fromUtf8("about:blank"))) self.events_web_view.setObjectName(_fromUtf8("events_web_view")) self.verticalLayout_5.addWidget(self.events_web_view) self.events_text_browser = QtGui.QTextBrowser(self.event_tab) font = QtGui.QFont() font.setFamily(_fromUtf8("Andale Mono")) font.setPointSize(12) self.events_text_browser.setFont(font) self.events_text_browser.setObjectName(_fromUtf8("events_text_browser")) self.verticalLayout_5.addWidget(self.events_text_browser) self.verticalLayout_5.setStretch(0, 1) self.verticalLayout_5.setStretch(1, 1) self.horizontalLayout_12.addLayout(self.verticalLayout_5) self.horizontalLayout_12.setStretch(0, 4) self.horizontalLayout_12.setStretch(1, 6) self.central_tab.addTab(self.event_tab, _fromUtf8("")) self.verticalLayout.addWidget(self.central_tab) MainWindow.setCentralWidget(self.centralwidget) self.status_bar = QtGui.QStatusBar(MainWindow) self.status_bar.setObjectName(_fromUtf8("status_bar")) MainWindow.setStatusBar(self.status_bar) self.retranslateUi(MainWindow) self.central_tab.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): MainWindow.setWindowTitle(_translate("MainWindow", "ASDF Sextant", None)) self.select_file_button.setText(_translate("MainWindow", "Open File", None)) self.group_by_network_check_box.setText(_translate("MainWindow", "Group By Network", None)) self.station_view.setSortingEnabled(False) self.reset_view_push_button.setText(_translate("MainWindow", "Reset View", None)) self.detrend_and_demean_check_box.setText(_translate("MainWindow", "Detrend and Demean", None)) self.normalize_check_box.setText(_translate("MainWindow", "Normalize", None)) self.references_push_button.setText(_translate("MainWindow", "References", None)) self.show_auxiliary_provenance_button.setText(_translate("MainWindow", "Show Provenance", None)) self.groupBox.setTitle(_translate("MainWindow", "Data Information", None)) self.groupBox_2.setTitle(_translate("MainWindow", "Parameters", None)) self.central_tab.setTabText(self.central_tab.indexOf(self.auxiliary_data_tab), _translate("MainWindow", "Auxiliary Data", None)) self.central_tab.setTabText(self.central_tab.indexOf(self.provenance_tab), _translate("MainWindow", "Provenance", None)) self.central_tab.setTabText(self.central_tab.indexOf(self.event_tab), _translate("MainWindow", "Events", None))
class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(1920, 1080) MainWindow.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.centralWidget = QtWidgets.QWidget(MainWindow) self.centralWidget.setObjectName("centralWidget") self.graphicsView = GraphicsLayoutWidget(self.centralWidget) self.graphicsView.setGeometry(QtCore.QRect(20, 80, 1231, 721)) self.graphicsView.setObjectName("graphicsView") self.startBtn = QtWidgets.QPushButton(self.centralWidget) self.startBtn.setGeometry(QtCore.QRect(20, 830, 1681, 171)) self.startBtn.setText("") self.startBtn.setObjectName("startBtn") self.infoText = QtWidgets.QPlainTextEdit(self.centralWidget) self.infoText.setGeometry(QtCore.QRect(1270, 80, 631, 391)) font = QtGui.QFont() font.setPointSize(14) self.infoText.setFont(font) self.infoText.setObjectName("infoText") self.infoLabel = QtWidgets.QLabel(self.centralWidget) self.infoLabel.setGeometry(QtCore.QRect(1270, 20, 361, 51)) font = QtGui.QFont() font.setPointSize(14) self.infoLabel.setFont(font) self.infoLabel.setObjectName("infoLabel") self.pcmLabel = QtWidgets.QLabel(self.centralWidget) self.pcmLabel.setGeometry(QtCore.QRect(20, 20, 361, 51)) font = QtGui.QFont() font.setPointSize(14) self.pcmLabel.setFont(font) self.pcmLabel.setObjectName("pcmLabel") self.statusLabel = QtWidgets.QLabel(self.centralWidget) self.statusLabel.setGeometry(QtCore.QRect(1450, 80, 331, 371)) self.statusLabel.setText("") self.statusLabel.setObjectName("statusLabel") self.resetBtn = QtWidgets.QPushButton(self.centralWidget) self.resetBtn.setGeometry(QtCore.QRect(1730, 830, 171, 171)) self.resetBtn.setText("") self.resetBtn.setObjectName("resetBtn") self.inferenceLabel = QtWidgets.QLabel(self.centralWidget) self.inferenceLabel.setGeometry(QtCore.QRect(1270, 480, 361, 51)) font = QtGui.QFont() font.setPointSize(14) self.inferenceLabel.setFont(font) self.inferenceLabel.setObjectName("inferenceLabel") self.infereceText = QtWidgets.QPlainTextEdit(self.centralWidget) self.infereceText.setGeometry(QtCore.QRect(1270, 530, 631, 271)) font = QtGui.QFont() font.setPointSize(16) font.setBold(True) font.setItalic(False) font.setUnderline(False) font.setWeight(75) self.infereceText.setFont(font) self.infereceText.setObjectName("infereceText") MainWindow.setCentralWidget(self.centralWidget) self.menuBar = QtWidgets.QMenuBar(MainWindow) self.menuBar.setGeometry(QtCore.QRect(0, 0, 1920, 37)) self.menuBar.setObjectName("menuBar") MainWindow.setMenuBar(self.menuBar) self.mainToolBar = QtWidgets.QToolBar(MainWindow) self.mainToolBar.setObjectName("mainToolBar") MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.mainToolBar) self.statusBar = QtWidgets.QStatusBar(MainWindow) self.statusBar.setObjectName("statusBar") MainWindow.setStatusBar(self.statusBar) self.retranslateUi(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): _translate = QtCore.QCoreApplication.translate MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow")) self.infoLabel.setText(_translate("MainWindow", "Output Information :")) self.pcmLabel.setText(_translate("MainWindow", "Record Audio PCM :")) self.inferenceLabel.setText( _translate("MainWindow", "Inference Reslut :"))
class Ui_AutoWindow(object): def setupUi(self, AutoWindow): AutoWindow.setObjectName(_fromUtf8("AutoWindow")) AutoWindow.resize(1346, 920) AutoWindow.setMinimumSize(QtCore.QSize(0, 0)) AutoWindow.setStyleSheet(_fromUtf8("\n" "/*\n" " Android Material Dark\n" " COLOR_DARK = #212121 Grey 900\n" " COLOR_MEDIUM = #424242 Grey 800\n" " COLOR_MEDLIGHT = #757575 Grey 600\n" " COLOR_LIGHT = #DDDDDD White\n" " COLOR_ACCENT = #3F51B5 Indigo 500\n" "*/\n" "\n" "* {\n" " background:qlineargradient(spread:pad, x1:0.517, y1:0.25, x2:1, y2:1, stop:0.211207 rgba(0, 0, 0, 255), stop:0.456897 rgba(39, 103, 106, 255), stop:1 rgba(255, 255, 255, 255));\n" " color: #DDDDDD;\n" " border: 1px solid #757575;\n" "}\n" "\n" "QWidget::item:selected {\n" " background: #3F51B5;\n" "}\n" "\n" "QCheckBox, QRadioButton {\n" " border: none;\n" "}\n" "\n" "QRadioButton::indicator, QCheckBox::indicator {\n" " width: 13px;\n" " height: 13px;\n" "}\n" "\n" "QRadioButton::indicator::unchecked, QCheckBox::indicator::unchecked {\n" " border: 1px solid #757575;\n" " background: none;\n" "}\n" "\n" "QRadioButton::indicator:unchecked:hover, QCheckBox::indicator:unchecked:hover {\n" " border: 1px solid #DDDDDD;\n" "}\n" "\n" "QRadioButton::indicator::checked, QCheckBox::indicator::checked {\n" " border: 1px solid #757575;\n" " background: #757575;\n" "}\n" "\n" "QRadioButton::indicator:checked:hover, QCheckBox::indicator:checked:hover {\n" " border: 1px solid #DDDDDD;\n" " background: #DDDDDD;\n" "}\n" "\n" "QGroupBox {\n" " margin-top: 6px;\n" "}\n" "\n" "QGroupBox::title {\n" " top: -7px;\n" " left: 7px;\n" "}\n" "\n" "QScrollBar {\n" " border: 1px solid #757575;\n" " background: #212121;\n" "}\n" "\n" "QScrollBar:horizontal {\n" " height: 15px;\n" " margin: 0px 0px 0px 32px;\n" "}\n" "\n" "QScrollBar:vertical {\n" " width: 15px;\n" " margin: 32px 0px 0px 0px;\n" "}\n" "\n" "QScrollBar::handle {\n" " background: #424242;\n" " border: 1px solid #757575;\n" "}\n" "\n" "QScrollBar::handle:horizontal {\n" " border-width: 0px 1px 0px 1px;\n" "}\n" "\n" "QScrollBar::handle:vertical {\n" " border-width: 1px 0px 1px 0px;\n" "}\n" "\n" "QScrollBar::handle:horizontal {\n" " min-width: 20px;\n" "}\n" "\n" "QScrollBar::handle:vertical {\n" " min-height: 20px;\n" "}\n" "\n" "QScrollBar::add-line, QScrollBar::sub-line {\n" " background:#424242;\n" " border: 1px solid #757575;\n" " subcontrol-origin: margin;\n" "}\n" "\n" "QScrollBar::add-line {\n" " position: absolute;\n" "}\n" "\n" "QScrollBar::add-line:horizontal {\n" " width: 15px;\n" " subcontrol-position: left;\n" " left: 15px;\n" "}\n" "\n" "QScrollBar::add-line:vertical {\n" " height: 15px;\n" " subcontrol-position: top;\n" " top: 15px;\n" "}\n" "\n" "QScrollBar::sub-line:horizontal {\n" " width: 15px;\n" " subcontrol-position: top left;\n" "}\n" "\n" "QScrollBar::sub-line:vertical {\n" " height: 15px;\n" " subcontrol-position: top;\n" "}\n" "\n" "QScrollBar:left-arrow, QScrollBar::right-arrow, QScrollBar::up-arrow, QScrollBar::down-arrow {\n" " border: 1px solid #757575;\n" " width: 3px;\n" " height: 3px;\n" "}\n" "\n" "QScrollBar::add-page, QScrollBar::sub-page {\n" " background: none;\n" "}\n" "\n" "QAbstractButton:hover {\n" " background: #424242;\n" "}\n" "\n" "QAbstractButton:pressed {\n" " background: #757575;\n" "}\n" "\n" "QAbstractItemView {\n" " show-decoration-selected: 1;\n" " selection-background-color: #3F51B5;\n" " selection-color: #DDDDDD;\n" " alternate-background-color: #424242;\n" "}\n" "\n" "QHeaderView {\n" " border: 1px solid #757575;\n" "}\n" "\n" "QHeaderView::section {\n" " background: #212121;\n" " border: 1px solid #757575;\n" " padding: 4px;\n" "}\n" "\n" "QHeaderView::section:selected, QHeaderView::section::checked {\n" " background: #424242;\n" "}\n" "\n" "QTableView {\n" " gridline-color: #757575;\n" "}\n" "\n" "QTabBar {\n" " margin-left: 2px;\n" "}\n" "\n" "QTabBar::tab {\n" " border-radius: 0px;\n" " padding: 4px;\n" " margin: 4px;\n" "}\n" "\n" "QTabBar::tab:selected {\n" " background: #424242;\n" "}\n" "\n" "QComboBox::down-arrow {\n" " border: 1px solid #757575;\n" " background: #424242;\n" "}\n" "\n" "QComboBox::drop-down {\n" " border: 1px solid #757575;\n" " background: #424242;\n" "}\n" "\n" "QComboBox::down-arrow {\n" " width: 3px;\n" " height: 3px;\n" " border: 1px solid #757575;\n" "}\n" "\n" "QAbstractSpinBox {\n" " padding-right: 15px;\n" "}\n" "\n" "QAbstractSpinBox::up-button, QAbstractSpinBox::down-button {\n" " border: 1px solid #757575;\n" " background: #424242;\n" " subcontrol-origin: border;\n" "}\n" "\n" "QAbstractSpinBox::up-arrow, QAbstractSpinBox::down-arrow {\n" " width: 3px;\n" " height: 3px;\n" " border: 1px solid #757575;\n" "}\n" "\n" "QSlider {\n" " border: none;\n" "}\n" "\n" "QSlider::groove:horizontal {\n" " height: 5px;\n" " margin: 4px 0px 4px 0px;\n" "}\n" "\n" "QSlider::groove:vertical {\n" " width: 5px;\n" " margin: 0px 4px 0px 4px;\n" "}\n" "\n" "QSlider::handle {\n" " border: 1px solid #757575;\n" " background: #424242;\n" "}\n" "\n" "QSlider::handle:horizontal {\n" " width: 15px;\n" " margin: -4px 0px -4px 0px;\n" "}\n" "\n" "QSlider::handle:vertical {\n" " height: 15px;\n" " margin: 0px -4px 0px -4px;\n" "}\n" "\n" "QSlider::add-page:vertical, QSlider::sub-page:horizontal {\n" " background: #3F51B5;\n" "}\n" "\n" "QSlider::sub-page:vertical, QSlider::add-page:horizontal {\n" " background: #424242;\n" "}\n" "\n" "QLabel {\n" " border: none;\n" "}\n" "\n" "QProgressBar {\n" " text-align: center;\n" "}\n" "\n" "QProgressBar::chunk {\n" " width: 1px;\n" " background-color: #3F51B5;\n" "}\n" "\n" "QMenu::separator {\n" " background: #424242;\n" "}\n" "\n" "QStatusBar {\n" " border: 1px;\n" " color: #3F51B5;\n" "}")) AutoWindow.setTabShape(QtGui.QTabWidget.Rounded) self.centralwidget = QtGui.QWidget(AutoWindow) self.centralwidget.setAutoFillBackground(False) self.centralwidget.setObjectName(_fromUtf8("centralwidget")) self.gridLayout = QtGui.QGridLayout(self.centralwidget) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.gridLayout_2 = QtGui.QGridLayout() self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.autoplot = GraphicsLayoutWidget(self.centralwidget) self.autoplot.setObjectName(_fromUtf8("autoplot")) self.gridLayout_2.addWidget(self.autoplot, 0, 0, 1, 1) self.gridLayout.addLayout(self.gridLayout_2, 0, 2, 1, 1) AutoWindow.setCentralWidget(self.centralwidget) self.actionAll_pannel = QtGui.QAction(AutoWindow) self.actionAll_pannel.setCheckable(False) self.actionAll_pannel.setEnabled(True) self.actionAll_pannel.setObjectName(_fromUtf8("actionAll_pannel")) self.actionHistogram = QtGui.QAction(AutoWindow) self.actionHistogram.setObjectName(_fromUtf8("actionHistogram")) self.actionTracker = QtGui.QAction(AutoWindow) self.actionTracker.setObjectName(_fromUtf8("actionTracker")) self.actionChannels = QtGui.QAction(AutoWindow) font = QtGui.QFont() font.setFamily(_fromUtf8("URW Bookman L")) font.setPointSize(12) font.setBold(True) font.setWeight(75) self.actionChannels.setFont(font) self.actionChannels.setObjectName(_fromUtf8("actionChannels")) self.actionAll = QtGui.QAction(AutoWindow) self.actionAll.setObjectName(_fromUtf8("actionAll")) self.retranslateUi(AutoWindow) QtCore.QMetaObject.connectSlotsByName(AutoWindow) def retranslateUi(self, AutoWindow): AutoWindow.setWindowTitle(_translate("AutoWindow", "Auto Window", None)) self.actionAll_pannel.setText(_translate("AutoWindow", "All pannel", None)) self.actionHistogram.setText(_translate("AutoWindow", "Histogram", None)) self.actionTracker.setText(_translate("AutoWindow", "Tracker", None)) self.actionChannels.setText(_translate("AutoWindow", "Channels", None)) self.actionAll.setText(_translate("AutoWindow", "All", None))
class Ui_Dialog(object): def setupUi(self, Dialog): Dialog.setObjectName("Dialog") Dialog.resize(1725, 980) Dialog.setStyleSheet("background-color: white") self.graphicsView = GraphicsLayoutWidget(Dialog) self.graphicsView.setGeometry(QtCore.QRect(0, 0, 1711, 861)) self.graphicsView.setMouseTracking(False) self.graphicsView.setObjectName("graphicsView") self.PushButtonEvents = QtWidgets.QPushButton(Dialog) self.PushButtonEvents.setGeometry(QtCore.QRect(10, 950, 111, 28)) font = QtGui.QFont() font.setPointSize(10) self.PushButtonEvents.setFont(font) self.PushButtonEvents.setStyleSheet( "background-color: rgb(229, 204, 255)") self.PushButtonEvents.setObjectName("PushButtonEvents") self.PushButtonEventsEdit = QtWidgets.QPushButton(Dialog) self.PushButtonEventsEdit.setGeometry(QtCore.QRect(140, 950, 111, 28)) font = QtGui.QFont() font.setPointSize(10) self.PushButtonEventsEdit.setFont(font) self.PushButtonEventsEdit.setStyleSheet( "background-color: rgb(229, 204, 255)") self.PushButtonEventsEdit.setObjectName("PushButtonEventsEdit") self.PushButtonOption = QtWidgets.QPushButton(Dialog) self.PushButtonOption.setGeometry(QtCore.QRect(10, 920, 71, 28)) font = QtGui.QFont() font.setPointSize(10) self.PushButtonOption.setFont(font) self.PushButtonOption.setStyleSheet( "background-color: rgb(229, 204, 255)") self.PushButtonOption.setObjectName("PushButtonOption") self.verticalScrollBar = QtWidgets.QScrollBar(Dialog) self.verticalScrollBar.setGeometry(QtCore.QRect(1710, 0, 16, 781)) self.verticalScrollBar.setStyleSheet("background-color: gray") self.verticalScrollBar.setOrientation(QtCore.Qt.Vertical) self.verticalScrollBar.setObjectName("verticalScrollBar") self.horizontalScrollBar = QtWidgets.QScrollBar(Dialog) self.horizontalScrollBar.setGeometry(QtCore.QRect(140, 920, 1551, 31)) self.horizontalScrollBar.setStyleSheet("background-color: gray") self.horizontalScrollBar.setOrientation(QtCore.Qt.Horizontal) self.horizontalScrollBar.setObjectName("horizontalScrollBar") self.graphicsView_sub = GraphicsLayoutWidget(Dialog) self.graphicsView_sub.setGeometry(QtCore.QRect(0, 850, 1711, 81)) self.graphicsView_sub.setObjectName("graphicsView_sub") self.buttonBox = QtWidgets.QDialogButtonBox(Dialog) self.buttonBox.setGeometry(QtCore.QRect(1500, 950, 211, 32)) self.buttonBox.setStyleSheet("background-color: pink") self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel | QtWidgets.QDialogButtonBox.Ok) self.buttonBox.setObjectName("buttonBox") self.label = QtWidgets.QLabel(Dialog) self.label.setGeometry(QtCore.QRect(1290, 20, 381, 31)) font = QtGui.QFont() font.setPointSize(11) font.setBold(True) font.setWeight(75) self.label.setFont(font) self.label.setLayoutDirection(QtCore.Qt.LeftToRight) self.label.setAutoFillBackground(False) self.label.setStyleSheet("background-color: pink") self.label.setFrameShape(QtWidgets.QFrame.WinPanel) self.label.setFrameShadow(QtWidgets.QFrame.Raised) self.label.setText("") self.label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label.setObjectName("label") self.PushButtonPlayWithVideo = QtWidgets.QPushButton(Dialog) self.PushButtonPlayWithVideo.setGeometry( QtCore.QRect(830, 950, 131, 28)) self.PushButtonPlayWithVideo.setStyleSheet( "background-color: lemonchiffon") self.PushButtonPlayWithVideo.setObjectName("PushButtonPlayWithVideo") self.PushButtonPSISettings = QtWidgets.QPushButton(Dialog) self.PushButtonPSISettings.setGeometry(QtCore.QRect(270, 950, 131, 28)) self.PushButtonPSISettings.setStyleSheet( "background-color: rgb(229, 204, 255)") self.PushButtonPSISettings.setObjectName("PushButtonPSISettings") self.label_2 = QtWidgets.QLabel(Dialog) self.label_2.setGeometry(QtCore.QRect(980, 960, 171, 16)) font = QtGui.QFont() font.setItalic(True) self.label_2.setFont(font) self.label_2.setObjectName("label_2") self.TextBrowserBad = QtWidgets.QTextBrowser(Dialog) self.TextBrowserBad.setGeometry(QtCore.QRect(1160, 950, 256, 31)) self.TextBrowserBad.setObjectName("TextBrowserBad") self.PushButtonSpectogram = QtWidgets.QPushButton(Dialog) self.PushButtonSpectogram.setGeometry(QtCore.QRect(550, 950, 131, 28)) self.PushButtonSpectogram.setStyleSheet("background-color: lavender") self.PushButtonSpectogram.setObjectName("PushButtonSpectogram") self.PushButtonInformationPlot = QtWidgets.QPushButton(Dialog) self.PushButtonInformationPlot.setGeometry( QtCore.QRect(690, 950, 131, 28)) self.PushButtonInformationPlot.setStyleSheet( "background-color: lavender") self.PushButtonInformationPlot.setObjectName( "PushButtonInformationPlot") self.graphicsView_sub.raise_() self.graphicsView.raise_() self.PushButtonEvents.raise_() self.PushButtonEventsEdit.raise_() self.PushButtonOption.raise_() self.verticalScrollBar.raise_() self.horizontalScrollBar.raise_() self.buttonBox.raise_() self.label.raise_() self.PushButtonPlayWithVideo.raise_() self.PushButtonPSISettings.raise_() self.label_2.raise_() self.TextBrowserBad.raise_() self.PushButtonSpectogram.raise_() self.PushButtonInformationPlot.raise_() self.retranslateUi(Dialog) QtCore.QMetaObject.connectSlotsByName(Dialog) def retranslateUi(self, Dialog): _translate = QtCore.QCoreApplication.translate Dialog.setWindowTitle(_translate("Dialog", "Dialog")) self.PushButtonEvents.setText(_translate("Dialog", "Events_check")) self.PushButtonEventsEdit.setText(_translate("Dialog", "Events_edit")) self.PushButtonOption.setText(_translate("Dialog", "Option")) self.PushButtonPlayWithVideo.setText( _translate("Dialog", "Play with Video")) self.PushButtonPSISettings.setText( _translate("Dialog", "InstantPSI_settings")) self.label_2.setText(_translate("Dialog", "Bad channels (\"b\" click)")) self.PushButtonSpectogram.setText(_translate("Dialog", "Spectrogram")) self.PushButtonInformationPlot.setText( _translate("Dialog", "Information_Plot"))
class Ui_Form(object): def setupUi(self, Form): '''Defines the general properties of the window''' Form.setObjectName(_fromUtf8("Form")) Form.resize(1500, 1000) # self.myQMenuBar = QtGui.QMenuBar(Form) # exitMenu = self.myQMenuBar.addMenu('File') # exitAction = QtGui.QAction('Exit', Form) # exitAction.triggered.connect(QtGui.qApp.quit) # exitMenu.addAction(exitAction) self.gridLayout = QtGui.QGridLayout(Form) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) # self.statusBar() # extractAction = QtGui.QAction("&GET TO THE CHOPPAH!!!", self) # extractAction.setShortcut("Ctrl+Q") # extractAction.setStatusTip('Leave The App') # extractAction.triggered.connect(QtGui.qApp.quit) # '''Set up the menu bar''' # self.mainMenu = QtGui.QMenuBar(Form) # self.mainMenu.setNativeMenuBar(False) # fileMenu = self.mainMenu.addMenu('&File') # fileMenu.addAction(extractAction) # self.myQMenuBar = QtGui.QMenuBar(Form) # exitMenu = self.myQMenuBar.addMenu('File') # exitAction = QtGui.QAction('Exit', Form) # exitAction.triggered.connect(QtGui.qApp.quit) # exitMenu.addAction(exitAction) # Form.setMenuBar(self.myQMenuBar) # self.gridLayout.addWidget(self.myQMenuBar, 0, 0, 1, 0) '''Defines the text label for reference beam properties''' self.refbeamlabel = QtGui.QLabel(Form) self.refbeamlabel.setObjectName(_fromUtf8("refbeamlabel")) self.gridLayout.addWidget(self.refbeamlabel, 2, 0, 1, 1) '''Defines the spin box for x0''' self.x0Spin = QtGui.QDoubleSpinBox(Form) self.x0Spin.setRange(0.,754.) self.x0Spin.setProperty("value", 350) self.x0Spin.setObjectName(_fromUtf8("x0Spin")) self.gridLayout.addWidget(self.x0Spin, 3, 0, 1, 1) '''Defines the label for the x0 spin box''' self.x0label = QtGui.QLabel(Form) self.x0label.setObjectName(_fromUtf8("x0label")) self.gridLayout.addWidget(self.x0label, 3, 1, 1, 1) '''Defines the spin box for y0''' self.y0Spin = QtGui.QDoubleSpinBox(Form) self.y0Spin.setRange(0.,480.) self.y0Spin.setProperty("value", 240) self.y0Spin.setObjectName(_fromUtf8("y0Spin")) self.gridLayout.addWidget(self.y0Spin, 4, 0, 1, 1) '''Defines the label for the y0 spin box''' self.y0label = QtGui.QLabel(Form) self.y0label.setObjectName(_fromUtf8("y0label")) self.gridLayout.addWidget(self.y0label, 4, 1, 1, 1) '''Defines the spin box for the horizontal waist''' self.sigmaxSpin = QtGui.QDoubleSpinBox(Form) self.sigmaxSpin.setRange(0.,500.) self.sigmaxSpin.setProperty("value", 30.) self.sigmaxSpin.setObjectName(_fromUtf8("sigmaxSpin")) self.gridLayout.addWidget(self.sigmaxSpin, 5, 0, 1, 1) '''Defines the label for the horizontal waist spin box''' self.sigmaxlabel = QtGui.QLabel(Form) self.sigmaxlabel.setObjectName(_fromUtf8("sigmaxlabel")) self.gridLayout.addWidget(self.sigmaxlabel, 5, 1, 1, 1) '''Defines the spin box for the vertical waist''' self.sigmaySpin = QtGui.QDoubleSpinBox(Form) self.sigmaySpin.setRange(0.,500.) self.sigmaySpin.setProperty("value", 50.) self.sigmaySpin.setObjectName(_fromUtf8("sigmaySpin")) self.gridLayout.addWidget(self.sigmaySpin, 6, 0, 1, 1) '''Defines the label for the vertical waist spin box''' self.sigmaylabel = QtGui.QLabel(Form) self.sigmaylabel.setObjectName(_fromUtf8("sigmaylabel")) self.gridLayout.addWidget(self.sigmaylabel, 6, 1, 1, 1) # self.rotangleSpin = QtGui.QDoubleSpinBox(Form) # self.rotangleSpin.setProperty("value", 200.) # self.rotangleSpin.setObjectName(_fromUtf8("rotangleSpin")) # self.gridLayout.addWidget(self.rotangleSpin, 5, 0, 1, 1) # self.rotanglelabel = QtGui.QLabel(Form) # self.rotanglelabel.setObjectName(_fromUtf8("rotanglelabel")) # self.gridLayout.addWidget(self.rotanglelabel, 5, 1, 1, 1) # '''Defines the label for the camera''' # self.camlabel = QtGui.QLabel(Form) # self.camlabel.setObjectName(_fromUtf8("camlabel")) # self.gridLayout.addWidget(self.camlabel, 2, 2, 1, 1) # '''Defines the field to choose a camera''' # self.choosecam = QtGui.QComboBox() # self.choosecam.setObjectName(_fromUtf8("choosecam")) # self.gridLayout.addWidget(self.choosecam, 3, 2, 1, 1) # self.choosecam.addItem("Test 1") # self.choosecam.addItem("Test 2") '''Defines the text label for camera settings''' self.camsettingslabel = QtGui.QLabel(Form) self.camsettingslabel.setObjectName(_fromUtf8("camsettingslabel")) self.gridLayout.addWidget(self.camsettingslabel, 5, 2, 1, 2) '''Defines the spin box for the exposure time''' self.exposureSpin = QtGui.QDoubleSpinBox(Form) # self.exposureSpin.setRange(0.,100.) # self.exposureSpin.setProperty("value", 1.) self.exposureSpin.setDecimals(3) # self.exposureSpin.setSingleStep(0.1) self.exposureSpin.setObjectName(_fromUtf8("exposureSpin")) self.gridLayout.addWidget(self.exposureSpin, 6, 2, 1, 1) '''Defines the label for the exposure time spin box''' self.exposurelabel = QtGui.QLabel(Form) self.exposurelabel.setObjectName(_fromUtf8("exposurelabel")) self.gridLayout.addWidget(self.exposurelabel, 6, 3, 1, 1) '''Defines the spin box for the gain value''' self.gainSpin = QtGui.QDoubleSpinBox(Form) # self.gainSpin.setRange(16.,64.) # self.gainSpin.setProperty("value", 16.) self.gainSpin.setDecimals(3) # self.gainSpin.setSingleStep(0.1) self.gainSpin.setObjectName(_fromUtf8("gainSpin")) self.gridLayout.addWidget(self.gainSpin, 7, 2, 1, 1) '''Defines the label for the gain value spin box''' self.gainlabel = QtGui.QLabel(Form) self.gainlabel.setObjectName(_fromUtf8("gainlabel")) self.gridLayout.addWidget(self.gainlabel, 7, 3, 1, 1) '''Defines the 'Save actual beam properties' push button''' self.saveprops = QtGui.QPushButton('Save Current Beam Properties') self.saveprops.setObjectName(_fromUtf8("saveprops")) self.gridLayout.addWidget(self.saveprops, 3, 3, 2, 1) self.saveprops.setToolTip('Save the current beam properties into the corresponding .csv-file') '''Defines the heading for the 'fit options' column''' self.fitoptionslabel = QtGui.QLabel(Form) self.fitoptionslabel.setObjectName(_fromUtf8("fitoptionslabel")) self.gridLayout.addWidget(self.fitoptionslabel, 2, 4, 1, 1) self.fitoptgroup = QtGui.QButtonGroup(Form) '''Defines the 'Sum over ROI' push button''' self.fitsum = QtGui.QPushButton('Sum Over ROI') self.fitsum.setObjectName(_fromUtf8("fitsum")) self.gridLayout.addWidget(self.fitsum, 3, 4, 1, 1) self.fitsum.setCheckable(True) self.fitsum.setToolTip('For fitting a gaussian the vertically/horizontally summed up data of the ROI is used') self.fitsum.setChecked(True) '''Defines the 'Select Data at Peak' push button''' self.fitline = QtGui.QPushButton('Select Data at Peak') self.fitline.setObjectName(_fromUtf8("fitline")) self.gridLayout.addWidget(self.fitline, 4, 4, 1, 1) self.fitline.setCheckable(True) self.fitline.setToolTip('For fitting a gaussian the vertical/horizontal line of data at the peak is selec') self.fitoptgroup.addButton(self.fitsum) self.fitoptgroup.addButton(self.fitline) '''Defines the buttons for the method for select data at peak fit''' self.plotselectedmethodgroup = QtGui.QButtonGroup(Form) '''Defines the max before radio button''' self.maxbeforeRadio = QtGui.QRadioButton(Form) # if self.fitline.isChecked(): # self.maxbeforeRadio.setChecked(True) # self.maxbeforeRadio.setChecked(True) self.maxbeforeRadio.setObjectName(_fromUtf8("maxbeforeRadio")) self.gridLayout.addWidget(self.maxbeforeRadio, 5, 4, 1, 1) '''Defines the abs max radio button''' self.absmaxRadio = QtGui.QRadioButton(Form) self.absmaxRadio.setChecked(True) self.absmaxRadio.setObjectName(_fromUtf8("absmaxRadio")) self.gridLayout.addWidget(self.absmaxRadio, 6, 4, 1, 1) # self.absmaxRadio.setCheckable(False) '''Defines the self max radio button''' self.selfmaxRadio = QtGui.QRadioButton(Form) self.selfmaxRadio.setObjectName(_fromUtf8("selfmaxRadio")) self.gridLayout.addWidget(self.selfmaxRadio, 7, 4, 1, 1) '''Adds buttons to group''' self.plotselectedmethodgroup.addButton(self.maxbeforeRadio) self.plotselectedmethodgroup.addButton(self.absmaxRadio) self.plotselectedmethodgroup.addButton(self.selfmaxRadio) '''Defines the 'Autoscale ROI' push button''' self.autoscale = QtGui.QPushButton('Autoscale ROI') self.autoscale.setObjectName(_fromUtf8("autoscale")) self.gridLayout.addWidget(self.autoscale, 2, 5, 1, 1) self.autoscale.setCheckable(False) self.autoscale.setToolTip('Automatically scale the ROI to three times the beam waist') '''Defines the 'Connect ROI' push button''' self.connect = QtGui.QPushButton('Connect ROI') self.connect.setObjectName(_fromUtf8("connect")) self.gridLayout.addWidget(self.connect, 3, 5, 1, 1) self.connect.setCheckable(True) self.connect.setToolTip('Connect position of ROI<br>with the position of the peak') '''Defines the 'Hold' push button''' self.hold = QtGui.QPushButton('Hold') self.hold.setObjectName(_fromUtf8("hold")) self.gridLayout.addWidget(self.hold, 4, 5, 1, 1) self.hold.setCheckable(True) self.hold.setToolTip('Pause the live view') # self.hold.setChecked(False) '''Analysis combo''' self.anaCombo = QtGui.QComboBox() self.anaCombo.setObjectName(_fromUtf8('analysis type')) self.gridLayout.addWidget(self.anaCombo, 3, 4, 1, 1) self.anaCombo.setToolTip('choose a analysis type') # '''Defins the text box for the 'orientation' heading''' # self.orientationlabel = QtGui.QLabel(Form) # self.orientationlabel.setObjectName(_fromUtf8("orientationlabel")) # self.gridLayout.addWidget(self.orientationlabel, 5, 4, 1, 1) # '''Defines the buttons for choosing the orientation''' # self.OrientationGroup = QtGui.QButtonGroup(Form) # self.horRadio = QtGui.QRadioButton(Form) # self.horRadio.setChecked(True) # self.horRadio.setObjectName(_fromUtf8("horRadio")) # self.gridLayout.addWidget(self.horRadio, 4, 4, 1, 1) # self.vertRadio = QtGui.QRadioButton(Form) # # self.vertRadio.setChecked(True) # self.vertRadio.setObjectName(_fromUtf8("vertRadio")) # self.gridLayout.addWidget(self.vertRadio, 5, 4, 1, 1) # # self.stack = QtGui.QStackedWidget(Form) # # self.stack.setObjectName(_fromUtf8("stack")) # self.OrientationGroup.addButton(self.horRadio) # self.OrientationGroup.addButton(self.vertRadio) # '''Defines the 'Rotate counterclockwise' push button''' # self.rotccw = QtGui.QPushButton('Rotate counterclockwise') # self.rotccw.setObjectName(_fromUtf8("rotccw")) # self.gridLayout.addWidget(self.rotccw, 6, 4, 1, 1) # self.rotccw.setToolTip('Rotate the image 90 degrees counterclockwise') # self.hold.setChecked(False) # '''Defines the 'Rotate clockwise' push button''' # self.rotcw = QtGui.QPushButton('Rotate clockwise') # self.rotcw.setObjectName(_fromUtf8("rotcw")) # self.gridLayout.addWidget(self.rotcw, 7, 4, 1, 1) # self.rotcw.setToolTip('Rotate the image 90 degrees clockwise') '''Defines the heading for the 'options' column''' self.optionslabel = QtGui.QLabel(Form) self.optionslabel.setObjectName(_fromUtf8("optionslabel")) self.gridLayout.addWidget(self.optionslabel, 5, 5, 1, 1) '''Defines the check box for fitting''' self.fitCheck = QtGui.QCheckBox(Form) self.fitCheck.setObjectName(_fromUtf8("fitCheck")) self.gridLayout.addWidget(self.fitCheck, 6, 5, 1, 1) self.fitCheck.setChecked(True) '''Defines the check box for tracking''' self.trackCheck = QtGui.QCheckBox(Form) self.trackCheck.setObjectName(_fromUtf8("trackCheck")) self.gridLayout.addWidget(self.trackCheck, 7, 5, 1, 1) self.trackCheck.setChecked(True) '''Defines the check box for the reference beam''' self.refCheck = QtGui.QCheckBox(Form) self.refCheck.setObjectName(_fromUtf8("refCheck")) self.gridLayout.addWidget(self.refCheck, 8, 5, 1, 1) self.refCheck.setChecked(True) '''Defines the heading for the 'time evolution plot' column''' self.evplotlabel = QtGui.QLabel(Form) self.evplotlabel.setObjectName(_fromUtf8("evplotlabel")) self.gridLayout.addWidget(self.evplotlabel, 2, 6, 1, 1) '''Defines the buttons for the time evolution plot''' self.TimeEvGroup = QtGui.QButtonGroup(Form) self.ampRadio = QtGui.QRadioButton(Form) self.ampRadio.setChecked(True) self.ampRadio.setObjectName(_fromUtf8("ampRadio")) self.gridLayout.addWidget(self.ampRadio, 3, 6, 1, 1) self.poshorRadio = QtGui.QRadioButton(Form) # self.poshorRadio.setChecked(True) self.poshorRadio.setObjectName(_fromUtf8("poshorRadio")) self.gridLayout.addWidget(self.poshorRadio, 4, 6, 1, 1) self.posvertRadio = QtGui.QRadioButton(Form) self.posvertRadio.setObjectName(_fromUtf8("posvertRadio")) self.gridLayout.addWidget(self.posvertRadio, 5, 6, 1, 1) self.waisthorRadio = QtGui.QRadioButton(Form) self.waisthorRadio.setObjectName(_fromUtf8("waisthorRadio")) self.gridLayout.addWidget(self.waisthorRadio, 6, 6, 1, 1) self.waistvertRadio = QtGui.QRadioButton(Form) self.waistvertRadio.setObjectName(_fromUtf8("waistvertRadio")) self.gridLayout.addWidget(self.waistvertRadio, 7, 6, 1, 1) self.distRadio = QtGui.QRadioButton(Form) self.distRadio.setObjectName(_fromUtf8("distRadio")) self.gridLayout.addWidget(self.distRadio, 8, 6, 1, 1) self.TimeEvGroup.addButton(self.ampRadio) self.TimeEvGroup.addButton(self.poshorRadio) self.TimeEvGroup.addButton(self.posvertRadio) self.TimeEvGroup.addButton(self.waisthorRadio) self.TimeEvGroup.addButton(self.waistvertRadio) self.TimeEvGroup.addButton(self.distRadio) '''Defines the plot widget''' self.plot = GraphicsLayoutWidget(Form) self.plot.setObjectName(_fromUtf8("plot")) self.gridLayout.addWidget(self.plot, 1, 0, 1, 7) '''Puts everything together''' self.retranslateUi(Form) # self.stack.setCurrentIndex(2) QtCore.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): '''Sets the right names to the objects''' # Form.setWindowTitle(QtGui.QApplication.translate("Form", "VRmagic USB Cam Live View", None, QtGui.QApplication.UnicodeUTF8)) # self.pixelModeCheck.setText(QtGui.QApplication.translate("Form", "pixel mode", None, QtGui.QApplication.UnicodeUTF8)) self.refbeamlabel.setText(QtGui.QApplication.translate("Form", "Reference Beam", None, QtGui.QApplication.UnicodeUTF8)) self.x0label.setText(QtGui.QApplication.translate("Form", "x(0)", None, QtGui.QApplication.UnicodeUTF8)) self.y0label.setText(QtGui.QApplication.translate("Form", "y(0)", None, QtGui.QApplication.UnicodeUTF8)) self.sigmaxlabel.setText(QtGui.QApplication.translate("Form", "Waist horizontal", None, QtGui.QApplication.UnicodeUTF8)) self.sigmaylabel.setText(QtGui.QApplication.translate("Form", "Waist vertical", None, QtGui.QApplication.UnicodeUTF8)) # self.rotanglelabel.setText(QtGui.QApplication.translate("Form", "Rotation angle", None, QtGui.QApplication.UnicodeUTF8)) # self.camlabel.setText(QtGui.QApplication.translate("Form", "Camera", None, QtGui.QApplication.UnicodeUTF8)) self.camsettingslabel.setText(QtGui.QApplication.translate("Form", "Camera settings", None, QtGui.QApplication.UnicodeUTF8)) self.exposurelabel.setText(QtGui.QApplication.translate("Form", "Exposure time [ms]", None, QtGui.QApplication.UnicodeUTF8)) self.gainlabel.setText(QtGui.QApplication.translate("Form", "Gain", None, QtGui.QApplication.UnicodeUTF8)) # self.orientationlabel.setText(QtGui.QApplication.translate("Form", "Orientation", None, QtGui.QApplication.UnicodeUTF8)) # self.horRadio.setText(QtGui.QApplication.translate("Form", "horizontal", None)) # self.vertRadio.setText(QtGui.QApplication.translate("Form", "vertical", None)) self.fitoptionslabel.setText(QtGui.QApplication.translate("Form", "Fit Options", None, QtGui.QApplication.UnicodeUTF8)) self.maxbeforeRadio.setText(QtGui.QApplication.translate("Form", "Maximum Before", None)) self.absmaxRadio.setText(QtGui.QApplication.translate("Form", " Absolute Maximum", None)) self.selfmaxRadio.setText(QtGui.QApplication.translate("Form", " Self Defined Maximum", None)) self.optionslabel.setText(QtGui.QApplication.translate("Form", "Options", None, QtGui.QApplication.UnicodeUTF8)) self.fitCheck.setText(QtGui.QApplication.translate("Form", "Show Fit", None, QtGui.QApplication.UnicodeUTF8)) self.trackCheck.setText(QtGui.QApplication.translate("Form", "Track Beam", None, QtGui.QApplication.UnicodeUTF8)) self.refCheck.setText(QtGui.QApplication.translate("Form", "Show Reference Beam", None, QtGui.QApplication.UnicodeUTF8)) self.evplotlabel.setText(QtGui.QApplication.translate("Form", "Time Evolution Plot", None, QtGui.QApplication.UnicodeUTF8)) self.ampRadio.setText(QtGui.QApplication.translate("Form", "Amplitude", None)) self.poshorRadio.setText(QtGui.QApplication.translate("Form", "Horizontal Position", None)) self.posvertRadio.setText(QtGui.QApplication.translate("Form", "Vertical Position", None)) self.waisthorRadio.setText(QtGui.QApplication.translate("Form", "Horizontal Waist", None)) self.waistvertRadio.setText(QtGui.QApplication.translate("Form", "Vertical Waist", None)) self.distRadio.setText(QtGui.QApplication.translate("Form", "Distance", None))
class Ui_SliceWidget(object): def setupUi(self, SliceWidget): SliceWidget.setObjectName("SliceWidget") SliceWidget.resize(554, 642) self.gridLayout = QtWidgets.QGridLayout(SliceWidget) self.gridLayout.setContentsMargins(0, 0, 0, 0) self.gridLayout.setSpacing(0) self.gridLayout.setObjectName("gridLayout") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setSpacing(0) self.horizontalLayout.setObjectName("horizontalLayout") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.graphicsView = GraphicsLayoutWidget(SliceWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(1) sizePolicy.setVerticalStretch(1) sizePolicy.setHeightForWidth( self.graphicsView.sizePolicy().hasHeightForWidth()) self.graphicsView.setSizePolicy(sizePolicy) self.graphicsView.setObjectName("graphicsView") self.verticalLayout.addWidget(self.graphicsView) self.controlsWidget = QtWidgets.QWidget(SliceWidget) self.controlsWidget.setMaximumSize(QtCore.QSize(16777215, 25)) self.controlsWidget.setObjectName("controlsWidget") self.layout_index_slider = QtWidgets.QHBoxLayout(self.controlsWidget) self.layout_index_slider.setContentsMargins(20, 2, 15, 2) self.layout_index_slider.setObjectName("layout_index_slider") self.labelImageSeriesNumber = QtWidgets.QLabel(self.controlsWidget) self.labelImageSeriesNumber.setText("") self.labelImageSeriesNumber.setObjectName("labelImageSeriesNumber") self.layout_index_slider.addWidget(self.labelImageSeriesNumber) self.seriesSlider = QtWidgets.QSlider(self.controlsWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.seriesSlider.sizePolicy().hasHeightForWidth()) self.seriesSlider.setSizePolicy(sizePolicy) self.seriesSlider.setMinimumSize(QtCore.QSize(200, 0)) self.seriesSlider.setOrientation(QtCore.Qt.Horizontal) self.seriesSlider.setInvertedAppearance(False) self.seriesSlider.setInvertedControls(False) self.seriesSlider.setTickPosition(QtWidgets.QSlider.TicksAbove) self.seriesSlider.setTickInterval(1) self.seriesSlider.setObjectName("seriesSlider") self.layout_index_slider.addWidget(self.seriesSlider) self.labelSliceNumber = QtWidgets.QLabel(self.controlsWidget) self.labelSliceNumber.setText("") self.labelSliceNumber.setObjectName("labelSliceNumber") self.layout_index_slider.addWidget(self.labelSliceNumber) self.sliderSlice = QtWidgets.QSlider(self.controlsWidget) self.sliderSlice.setMaximumSize(QtCore.QSize(16777215, 10)) self.sliderSlice.setOrientation(QtCore.Qt.Horizontal) self.sliderSlice.setTickInterval(0) self.sliderSlice.setObjectName("sliderSlice") self.layout_index_slider.addWidget(self.sliderSlice) self.pushButtonScrollLeft = QtWidgets.QPushButton(self.controlsWidget) self.pushButtonScrollLeft.setStyleSheet("border:none") self.pushButtonScrollLeft.setText("") icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/icons/scroll_arrow_left.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.pushButtonScrollLeft.setIcon(icon) self.pushButtonScrollLeft.setIconSize(QtCore.QSize(15, 15)) self.pushButtonScrollLeft.setObjectName("pushButtonScrollLeft") self.layout_index_slider.addWidget(self.pushButtonScrollLeft) self.pushButtonScrollRight = QtWidgets.QPushButton(self.controlsWidget) self.pushButtonScrollRight.setStyleSheet("border:none") self.pushButtonScrollRight.setText("") icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(":/icons/scroll_arrow_right.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) icon1.addPixmap(QtGui.QPixmap(":/icons/scroll_arrow_right_active.png"), QtGui.QIcon.Active, QtGui.QIcon.On) self.pushButtonScrollRight.setIcon(icon1) self.pushButtonScrollRight.setIconSize(QtCore.QSize(15, 15)) self.pushButtonScrollRight.setObjectName("pushButtonScrollRight") self.layout_index_slider.addWidget(self.pushButtonScrollRight) self.pushButtonManageVolumes = QtWidgets.QPushButton( self.controlsWidget) self.pushButtonManageVolumes.setStyleSheet("border:none") self.pushButtonManageVolumes.setText("") icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap(":/icons/settings.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.pushButtonManageVolumes.setIcon(icon2) self.pushButtonManageVolumes.setIconSize(QtCore.QSize(15, 15)) self.pushButtonManageVolumes.setFlat(False) self.pushButtonManageVolumes.setObjectName("pushButtonManageVolumes") self.layout_index_slider.addWidget(self.pushButtonManageVolumes) self.verticalLayout.addWidget(self.controlsWidget) self.horizontalLayout.addLayout(self.verticalLayout) self.gridLayout.addLayout(self.horizontalLayout, 0, 0, 1, 1) self.retranslateUi(SliceWidget) QtCore.QMetaObject.connectSlotsByName(SliceWidget) def retranslateUi(self, SliceWidget): _translate = QtCore.QCoreApplication.translate SliceWidget.setWindowTitle(_translate("SliceWidget", "Form")) self.labelSliceNumber.setAccessibleName( _translate("SliceWidget", "sliceNumber"))
class Ui_xrs_mask_widget(object): def setupUi(self, xrs_mask_widget): xrs_mask_widget.setObjectName(_fromUtf8("xrs_mask_widget")) xrs_mask_widget.resize(712, 530) xrs_mask_widget.setStyleSheet(_fromUtf8("")) self.horizontalLayout_2 = QtGui.QHBoxLayout(xrs_mask_widget) self.horizontalLayout_2.setSpacing(0) self.horizontalLayout_2.setMargin(8) self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.splitter = QtGui.QSplitter(xrs_mask_widget) self.splitter.setOrientation(QtCore.Qt.Horizontal) self.splitter.setObjectName(_fromUtf8("splitter")) self.layoutWidget = QtGui.QWidget(self.splitter) self.layoutWidget.setObjectName(_fromUtf8("layoutWidget")) self.verticalLayout = QtGui.QVBoxLayout(self.layoutWidget) self.verticalLayout.setMargin(0) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.img_pg_layout = GraphicsLayoutWidget(self.layoutWidget) self.img_pg_layout.setObjectName(_fromUtf8("img_pg_layout")) self.verticalLayout.addWidget(self.img_pg_layout) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) spacerItem = QtGui.QSpacerItem(118, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.pos_lbl = QtGui.QLabel(self.layoutWidget) self.pos_lbl.setObjectName(_fromUtf8("pos_lbl")) self.horizontalLayout.addWidget(self.pos_lbl) self.verticalLayout.addLayout(self.horizontalLayout) self.widget = QtGui.QWidget(self.splitter) self.widget.setMaximumSize(QtCore.QSize(200, 16777215)) self.widget.setObjectName(_fromUtf8("widget")) self.verticalLayout_2 = QtGui.QVBoxLayout(self.widget) self.verticalLayout_2.setSpacing(8) self.verticalLayout_2.setMargin(0) self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.horizontalLayout_3 = QtGui.QHBoxLayout() self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3")) self.mask_rb = QtGui.QRadioButton(self.widget) self.mask_rb.setChecked(True) self.mask_rb.setObjectName(_fromUtf8("mask_rb")) self.horizontalLayout_3.addWidget(self.mask_rb) self.unmask_rb = QtGui.QRadioButton(self.widget) self.unmask_rb.setChecked(False) self.unmask_rb.setObjectName(_fromUtf8("unmask_rb")) self.horizontalLayout_3.addWidget(self.unmask_rb) self.verticalLayout_2.addLayout(self.horizontalLayout_3) self.line_2 = QtGui.QFrame(self.widget) self.line_2.setFrameShadow(QtGui.QFrame.Raised) self.line_2.setFrameShape(QtGui.QFrame.HLine) self.line_2.setFrameShadow(QtGui.QFrame.Sunken) self.line_2.setObjectName(_fromUtf8("line_2")) self.verticalLayout_2.addWidget(self.line_2) self.gridLayout = QtGui.QGridLayout() self.gridLayout.setSpacing(8) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.circle_btn = QtGui.QPushButton(self.widget) self.circle_btn.setCheckable(True) self.circle_btn.setChecked(False) self.circle_btn.setFlat(True) self.circle_btn.setObjectName(_fromUtf8("circle_btn")) self.gridLayout.addWidget(self.circle_btn, 0, 0, 1, 1) self.rectangle_btn = QtGui.QPushButton(self.widget) self.rectangle_btn.setCheckable(True) self.rectangle_btn.setFlat(True) self.rectangle_btn.setObjectName(_fromUtf8("rectangle_btn")) self.gridLayout.addWidget(self.rectangle_btn, 0, 1, 1, 1) self.point_btn = QtGui.QPushButton(self.widget) self.point_btn.setCheckable(True) self.point_btn.setFlat(True) self.point_btn.setObjectName(_fromUtf8("point_btn")) self.gridLayout.addWidget(self.point_btn, 1, 0, 1, 1) self.point_size_sb = QtGui.QSpinBox(self.widget) self.point_size_sb.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.point_size_sb.setMaximum(4000) self.point_size_sb.setProperty("value", 20) self.point_size_sb.setObjectName(_fromUtf8("point_size_sb")) self.gridLayout.addWidget(self.point_size_sb, 1, 1, 1, 1) self.polygon_btn = QtGui.QPushButton(self.widget) self.polygon_btn.setCheckable(True) self.polygon_btn.setFlat(True) self.polygon_btn.setObjectName(_fromUtf8("polygon_btn")) self.gridLayout.addWidget(self.polygon_btn, 2, 0, 1, 2) self.verticalLayout_2.addLayout(self.gridLayout) self.line = QtGui.QFrame(self.widget) self.line.setFrameShadow(QtGui.QFrame.Raised) self.line.setFrameShape(QtGui.QFrame.HLine) self.line.setFrameShadow(QtGui.QFrame.Sunken) self.line.setObjectName(_fromUtf8("line")) self.verticalLayout_2.addWidget(self.line) self.gridLayout_2 = QtGui.QGridLayout() self.gridLayout_2.setSpacing(8) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.below_thresh_txt = QtGui.QLineEdit(self.widget) self.below_thresh_txt.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.below_thresh_txt.setObjectName(_fromUtf8("below_thresh_txt")) self.gridLayout_2.addWidget(self.below_thresh_txt, 1, 1, 1, 1) self.below_thresh_btn = QtGui.QPushButton(self.widget) self.below_thresh_btn.setFlat(True) self.below_thresh_btn.setObjectName(_fromUtf8("below_thresh_btn")) self.gridLayout_2.addWidget(self.below_thresh_btn, 1, 0, 1, 1) self.above_thresh_txt = QtGui.QLineEdit(self.widget) self.above_thresh_txt.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.above_thresh_txt.setObjectName(_fromUtf8("above_thresh_txt")) self.gridLayout_2.addWidget(self.above_thresh_txt, 0, 1, 1, 1) self.above_thresh_btn = QtGui.QPushButton(self.widget) self.above_thresh_btn.setFlat(True) self.above_thresh_btn.setObjectName(_fromUtf8("above_thresh_btn")) self.gridLayout_2.addWidget(self.above_thresh_btn, 0, 0, 1, 1) self.verticalLayout_2.addLayout(self.gridLayout_2) self.line_5 = QtGui.QFrame(self.widget) self.line_5.setFrameShape(QtGui.QFrame.HLine) self.line_5.setFrameShadow(QtGui.QFrame.Sunken) self.line_5.setObjectName(_fromUtf8("line_5")) self.verticalLayout_2.addWidget(self.line_5) self.gridLayout_4 = QtGui.QGridLayout() self.gridLayout_4.setSpacing(8) self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4")) self.undo_btn = QtGui.QPushButton(self.widget) self.undo_btn.setFlat(True) self.undo_btn.setObjectName(_fromUtf8("undo_btn")) self.gridLayout_4.addWidget(self.undo_btn, 2, 0, 1, 1) self.clear_mask_btn = QtGui.QPushButton(self.widget) self.clear_mask_btn.setFlat(True) self.clear_mask_btn.setObjectName(_fromUtf8("clear_mask_btn")) self.gridLayout_4.addWidget(self.clear_mask_btn, 1, 1, 1, 1) self.invert_mask_btn = QtGui.QPushButton(self.widget) self.invert_mask_btn.setFlat(True) self.invert_mask_btn.setObjectName(_fromUtf8("invert_mask_btn")) self.gridLayout_4.addWidget(self.invert_mask_btn, 1, 0, 1, 1) self.redo_btn = QtGui.QPushButton(self.widget) self.redo_btn.setFlat(True) self.redo_btn.setObjectName(_fromUtf8("redo_btn")) self.gridLayout_4.addWidget(self.redo_btn, 2, 1, 1, 1) self.grow_btn = QtGui.QPushButton(self.widget) self.grow_btn.setFlat(True) self.grow_btn.setObjectName(_fromUtf8("grow_btn")) self.gridLayout_4.addWidget(self.grow_btn, 0, 0, 1, 1) self.shrink_btn = QtGui.QPushButton(self.widget) self.shrink_btn.setFlat(True) self.shrink_btn.setObjectName(_fromUtf8("shrink_btn")) self.gridLayout_4.addWidget(self.shrink_btn, 0, 1, 1, 1) self.verticalLayout_2.addLayout(self.gridLayout_4) self.line_3 = QtGui.QFrame(self.widget) self.line_3.setFrameShape(QtGui.QFrame.HLine) self.line_3.setFrameShadow(QtGui.QFrame.Sunken) self.line_3.setObjectName(_fromUtf8("line_3")) self.verticalLayout_2.addWidget(self.line_3) self.cosmic_btn = QtGui.QPushButton(self.widget) self.cosmic_btn.setFlat(True) self.cosmic_btn.setObjectName(_fromUtf8("cosmic_btn")) self.verticalLayout_2.addWidget(self.cosmic_btn) self.line_4 = QtGui.QFrame(self.widget) self.line_4.setFrameShape(QtGui.QFrame.HLine) self.line_4.setFrameShadow(QtGui.QFrame.Sunken) self.line_4.setObjectName(_fromUtf8("line_4")) self.verticalLayout_2.addWidget(self.line_4) self.widget1 = QtGui.QWidget(self.widget) self.widget1.setObjectName(_fromUtf8("widget1")) self.horizontalLayout_4 = QtGui.QHBoxLayout(self.widget1) self.horizontalLayout_4.setMargin(0) self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4")) self.fill_rb = QtGui.QRadioButton(self.widget1) self.fill_rb.setChecked(True) self.fill_rb.setObjectName(_fromUtf8("fill_rb")) self.horizontalLayout_4.addWidget(self.fill_rb) self.transparent_rb = QtGui.QRadioButton(self.widget1) self.transparent_rb.setObjectName(_fromUtf8("transparent_rb")) self.horizontalLayout_4.addWidget(self.transparent_rb) self.verticalLayout_2.addWidget(self.widget1) spacerItem1 = QtGui.QSpacerItem(228, 224, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.verticalLayout_2.addItem(spacerItem1) self.gridLayout_3 = QtGui.QGridLayout() self.gridLayout_3.setVerticalSpacing(8) self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) self.save_mask_btn = QtGui.QPushButton(self.widget) self.save_mask_btn.setFlat(True) self.save_mask_btn.setObjectName(_fromUtf8("save_mask_btn")) self.gridLayout_3.addWidget(self.save_mask_btn, 0, 0, 1, 2) self.load_mask_btn = QtGui.QPushButton(self.widget) self.load_mask_btn.setFlat(True) self.load_mask_btn.setObjectName(_fromUtf8("load_mask_btn")) self.gridLayout_3.addWidget(self.load_mask_btn, 1, 0, 1, 1) self.add_mask_btn = QtGui.QPushButton(self.widget) self.add_mask_btn.setFlat(True) self.add_mask_btn.setObjectName(_fromUtf8("add_mask_btn")) self.gridLayout_3.addWidget(self.add_mask_btn, 1, 1, 1, 1) self.verticalLayout_2.addLayout(self.gridLayout_3) self.horizontalLayout_2.addWidget(self.splitter) self.retranslateUi(xrs_mask_widget) QtCore.QMetaObject.connectSlotsByName(xrs_mask_widget) def retranslateUi(self, xrs_mask_widget): xrs_mask_widget.setWindowTitle(_translate("xrs_mask_widget", "XRS - Suite Mask creation", None)) self.pos_lbl.setText(_translate("xrs_mask_widget", "TextLabel", None)) self.mask_rb.setText(_translate("xrs_mask_widget", "mask", None)) self.unmask_rb.setText(_translate("xrs_mask_widget", "unmask", None)) self.circle_btn.setText(_translate("xrs_mask_widget", "Circle", None)) self.rectangle_btn.setText(_translate("xrs_mask_widget", "Rectangle", None)) self.point_btn.setText(_translate("xrs_mask_widget", "Point", None)) self.polygon_btn.setText(_translate("xrs_mask_widget", "Polygon", None)) self.below_thresh_btn.setText(_translate("xrs_mask_widget", "Below Thresh", None)) self.above_thresh_btn.setText(_translate("xrs_mask_widget", "Above Thresh", None)) self.undo_btn.setText(_translate("xrs_mask_widget", "undo", None)) self.clear_mask_btn.setText(_translate("xrs_mask_widget", "Clear", None)) self.invert_mask_btn.setText(_translate("xrs_mask_widget", "Invert", None)) self.redo_btn.setText(_translate("xrs_mask_widget", "redo", None)) self.grow_btn.setText(_translate("xrs_mask_widget", "Grow", None)) self.shrink_btn.setText(_translate("xrs_mask_widget", "Shrink", None)) self.cosmic_btn.setText(_translate("xrs_mask_widget", "Cosmic Removal", None)) self.fill_rb.setText(_translate("xrs_mask_widget", "Fill", None)) self.transparent_rb.setText(_translate("xrs_mask_widget", "Transparent", None)) self.save_mask_btn.setText(_translate("xrs_mask_widget", "Save Mask", None)) self.load_mask_btn.setText(_translate("xrs_mask_widget", "Load Mask", None)) self.add_mask_btn.setText(_translate("xrs_mask_widget", "Add Mask", None))
class Ui_SAXSgui(object): def setupUi(self, SAXSgui): SAXSgui.setObjectName("SAXSgui") SAXSgui.resize(925, 630) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(SAXSgui.sizePolicy().hasHeightForWidth()) SAXSgui.setSizePolicy(sizePolicy) SAXSgui.setMinimumSize(QtCore.QSize(925, 630)) SAXSgui.setFocusPolicy(QtCore.Qt.StrongFocus) SAXSgui.setWindowOpacity(1.0) SAXSgui.setAutoFillBackground(False) SAXSgui.setTabShape(QtWidgets.QTabWidget.Rounded) self.centralwidget = QtWidgets.QWidget(SAXSgui) self.centralwidget.setObjectName("centralwidget") self.Console = QtWidgets.QTabWidget(self.centralwidget) self.Console.setGeometry(QtCore.QRect(50, 30, 821, 541)) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.Console.sizePolicy().hasHeightForWidth()) self.Console.setSizePolicy(sizePolicy) self.Console.setObjectName("Console") self.fourierspace_tab = QtWidgets.QWidget() self.fourierspace_tab.setObjectName("fourierspace_tab") self.fourierView = GraphicsLayoutWidget(self.fourierspace_tab) self.fourierView.setGeometry(QtCore.QRect(10, 0, 511, 491)) self.fourierView.setObjectName("fourierView") self.checkLogY = QtWidgets.QCheckBox(self.fourierspace_tab) self.checkLogY.setGeometry(QtCore.QRect(540, 10, 131, 20)) self.checkLogY.setObjectName("checkLogY") self.checkLogX = QtWidgets.QCheckBox(self.fourierspace_tab) self.checkLogX.setGeometry(QtCore.QRect(540, 40, 131, 20)) self.checkLogX.setObjectName("checkLogX") self.beamview = GraphicsLayoutWidget(self.fourierspace_tab) self.beamview.setGeometry(QtCore.QRect(540, 300, 261, 191)) self.beamview.setObjectName("beamview") self.label_8 = QtWidgets.QLabel(self.fourierspace_tab) self.label_8.setGeometry(QtCore.QRect(550, 280, 121, 16)) self.label_8.setObjectName("label_8") self.nskip_spinbox = QtWidgets.QSpinBox(self.fourierspace_tab) self.nskip_spinbox.setGeometry(QtCore.QRect(550, 80, 57, 24)) self.nskip_spinbox.setMaximum(1000) self.nskip_spinbox.setObjectName("nskip_spinbox") self.label_19 = QtWidgets.QLabel(self.fourierspace_tab) self.label_19.setGeometry(QtCore.QRect(620, 80, 161, 16)) self.label_19.setObjectName("label_19") self.nskip2_spinbox = QtWidgets.QSpinBox(self.fourierspace_tab) self.nskip2_spinbox.setGeometry(QtCore.QRect(550, 110, 57, 24)) self.nskip2_spinbox.setMinimum(0) self.nskip2_spinbox.setMaximum(1000) self.nskip2_spinbox.setProperty("value", 0) self.nskip2_spinbox.setObjectName("nskip2_spinbox") self.label_20 = QtWidgets.QLabel(self.fourierspace_tab) self.label_20.setGeometry(QtCore.QRect(620, 110, 161, 16)) self.label_20.setObjectName("label_20") self.label_22 = QtWidgets.QLabel(self.fourierspace_tab) self.label_22.setGeometry(QtCore.QRect(550, 160, 62, 16)) self.label_22.setObjectName("label_22") self.label_23 = QtWidgets.QLabel(self.fourierspace_tab) self.label_23.setGeometry(QtCore.QRect(550, 180, 62, 16)) self.label_23.setObjectName("label_23") self.qmin_label = QtWidgets.QLabel(self.fourierspace_tab) self.qmin_label.setGeometry(QtCore.QRect(605, 160, 206, 16)) self.qmin_label.setObjectName("qmin_label") self.qmax_label = QtWidgets.QLabel(self.fourierspace_tab) self.qmax_label.setGeometry(QtCore.QRect(605, 180, 206, 16)) self.qmax_label.setObjectName("qmax_label") self.Console.addTab(self.fourierspace_tab, "") self.guinierkratky_tab = QtWidgets.QWidget() self.guinierkratky_tab.setObjectName("guinierkratky_tab") self.primaryanalysis_view = GraphicsLayoutWidget( self.guinierkratky_tab) self.primaryanalysis_view.setGeometry(QtCore.QRect(20, 10, 781, 401)) self.primaryanalysis_view.setObjectName("primaryanalysis_view") self.groupBox_4 = QtWidgets.QGroupBox(self.guinierkratky_tab) self.groupBox_4.setEnabled(True) self.groupBox_4.setGeometry(QtCore.QRect(20, 410, 341, 91)) self.groupBox_4.setObjectName("groupBox_4") self.qRgmin = QtWidgets.QDoubleSpinBox(self.groupBox_4) self.qRgmin.setGeometry(QtCore.QRect(10, 30, 62, 24)) self.qRgmin.setMaximum(1.0) self.qRgmin.setSingleStep(0.05) self.qRgmin.setProperty("value", 1.0) self.qRgmin.setObjectName("qRgmin") self.label_16 = QtWidgets.QLabel(self.groupBox_4) self.label_16.setGeometry(QtCore.QRect(80, 30, 62, 16)) self.label_16.setObjectName("label_16") self.label_17 = QtWidgets.QLabel(self.groupBox_4) self.label_17.setGeometry(QtCore.QRect(80, 60, 62, 16)) self.label_17.setObjectName("label_17") self.qRgmax = QtWidgets.QDoubleSpinBox(self.groupBox_4) self.qRgmax.setGeometry(QtCore.QRect(10, 60, 62, 24)) self.qRgmax.setMaximum(3.0) self.qRgmax.setSingleStep(0.05) self.qRgmax.setProperty("value", 1.3) self.qRgmax.setObjectName("qRgmax") self.guinierminpts = QtWidgets.QLineEdit(self.groupBox_4) self.guinierminpts.setGeometry(QtCore.QRect(180, 30, 61, 21)) self.guinierminpts.setObjectName("guinierminpts") self.label_18 = QtWidgets.QLabel(self.groupBox_4) self.label_18.setGeometry(QtCore.QRect(250, 30, 71, 16)) self.label_18.setObjectName("label_18") self.autoguinier_button = QtWidgets.QPushButton(self.groupBox_4) self.autoguinier_button.setGeometry(QtCore.QRect(210, 55, 91, 26)) self.autoguinier_button.setStyleSheet( "background-color: #F1BF29; font-size: 12px; color: green;") self.autoguinier_button.setObjectName("autoguinier_button") self.runprimaryanalysis = QtWidgets.QPushButton(self.guinierkratky_tab) self.runprimaryanalysis.setGeometry(QtCore.QRect(580, 435, 111, 26)) self.runprimaryanalysis.setStyleSheet( "background-color: #F1BF29; font-size: 12px; color: blue;") self.runprimaryanalysis.setObjectName("runprimaryanalysis") self.lb_guinier_spinbox = QtWidgets.QSpinBox(self.guinierkratky_tab) self.lb_guinier_spinbox.setGeometry(QtCore.QRect(410, 435, 57, 24)) self.lb_guinier_spinbox.setObjectName("lb_guinier_spinbox") self.ub_guinier_spinbox = QtWidgets.QSpinBox(self.guinierkratky_tab) self.ub_guinier_spinbox.setGeometry(QtCore.QRect(495, 435, 57, 24)) self.ub_guinier_spinbox.setMaximum(200) self.ub_guinier_spinbox.setObjectName("ub_guinier_spinbox") self.label_6 = QtWidgets.QLabel(self.guinierkratky_tab) self.label_6.setGeometry(QtCore.QRect(475, 440, 16, 16)) self.label_6.setObjectName("label_6") self.label_7 = QtWidgets.QLabel(self.guinierkratky_tab) self.label_7.setGeometry(QtCore.QRect(380, 440, 26, 16)) self.label_7.setObjectName("label_7") self.label_21 = QtWidgets.QLabel(self.guinierkratky_tab) self.label_21.setGeometry(QtCore.QRect(375, 470, 91, 16)) self.label_21.setObjectName("label_21") self.qRg_label = QtWidgets.QLabel(self.guinierkratky_tab) self.qRg_label.setGeometry(QtCore.QRect(465, 470, 126, 16)) self.qRg_label.setObjectName("qRg_label") self.label_4 = QtWidgets.QLabel(self.guinierkratky_tab) self.label_4.setGeometry(QtCore.QRect(375, 490, 36, 16)) self.label_4.setObjectName("label_4") self.label_5 = QtWidgets.QLabel(self.guinierkratky_tab) self.label_5.setGeometry(QtCore.QRect(470, 490, 36, 16)) self.label_5.setObjectName("label_5") self.guinierRg_label = QtWidgets.QLabel(self.guinierkratky_tab) self.guinierRg_label.setGeometry(QtCore.QRect(405, 490, 62, 16)) self.guinierRg_label.setObjectName("guinierRg_label") self.I0_label = QtWidgets.QLabel(self.guinierkratky_tab) self.I0_label.setGeometry(QtCore.QRect(500, 490, 151, 16)) self.I0_label.setObjectName("I0_label") self.Console.addTab(self.guinierkratky_tab, "") self.realspace_tab = QtWidgets.QWidget() self.realspace_tab.setObjectName("realspace_tab") self.realspaceView = GraphicsLayoutWidget(self.realspace_tab) self.realspaceView.setGeometry(QtCore.QRect(10, 0, 531, 491)) self.realspaceView.setObjectName("realspaceView") self.groupBox_3 = QtWidgets.QGroupBox(self.realspace_tab) self.groupBox_3.setGeometry(QtCore.QRect(550, 0, 261, 141)) self.groupBox_3.setObjectName("groupBox_3") self.Nr_input = QtWidgets.QLineEdit(self.groupBox_3) self.Nr_input.setGeometry(QtCore.QRect(10, 100, 71, 21)) self.Nr_input.setObjectName("Nr_input") self.label_2 = QtWidgets.QLabel(self.groupBox_3) self.label_2.setGeometry(QtCore.QRect(90, 70, 166, 16)) self.label_2.setObjectName("label_2") self.label = QtWidgets.QLabel(self.groupBox_3) self.label.setGeometry(QtCore.QRect(90, 40, 41, 16)) self.label.setObjectName("label") self.label_3 = QtWidgets.QLabel(self.groupBox_3) self.label_3.setGeometry(QtCore.QRect(90, 100, 121, 16)) self.label_3.setObjectName("label_3") self.logalpha_input = QtWidgets.QLineEdit(self.groupBox_3) self.logalpha_input.setGeometry(QtCore.QRect(10, 70, 71, 21)) self.logalpha_input.setObjectName("logalpha_input") self.dmax_input = QtWidgets.QLineEdit(self.groupBox_3) self.dmax_input.setGeometry(QtCore.QRect(10, 40, 71, 21)) self.dmax_input.setObjectName("dmax_input") self.groupBox = QtWidgets.QGroupBox(self.realspace_tab) self.groupBox.setGeometry(QtCore.QRect(550, 210, 151, 101)) self.groupBox.setObjectName("groupBox") self.varianceweighted = QtWidgets.QCheckBox(self.groupBox) self.varianceweighted.setGeometry(QtCore.QRect(10, 30, 131, 20)) self.varianceweighted.setObjectName("varianceweighted") self.smeared = QtWidgets.QCheckBox(self.groupBox) self.smeared.setGeometry(QtCore.QRect(10, 55, 87, 20)) self.smeared.setObjectName("smeared") self.solvepr_button = QtWidgets.QPushButton(self.realspace_tab) self.solvepr_button.setGeometry(QtCore.QRect(630, 440, 114, 32)) self.solvepr_button.setStyleSheet( "background-color: #0085ff; color: #ffffff;") self.solvepr_button.setObjectName("solvepr_button") self.iftresultout = QtWidgets.QLineEdit(self.realspace_tab) self.iftresultout.setGeometry(QtCore.QRect(550, 400, 261, 21)) self.iftresultout.setObjectName("iftresultout") self.saveiftresult = QtWidgets.QCheckBox(self.realspace_tab) self.saveiftresult.setGeometry(QtCore.QRect(550, 370, 241, 20)) self.saveiftresult.setObjectName("saveiftresult") self.Console.addTab(self.realspace_tab, "") self.bayesianift_tab = QtWidgets.QWidget() self.bayesianift_tab.setObjectName("bayesianift_tab") self.biftgridView = matplotlibWidget(self.bayesianift_tab) self.biftgridView.setGeometry(QtCore.QRect(10, 0, 401, 411)) self.biftgridView.setObjectName("biftgridView") self.groupBox_2 = QtWidgets.QGroupBox(self.bayesianift_tab) self.groupBox_2.setGeometry(QtCore.QRect(420, 0, 381, 161)) self.groupBox_2.setObjectName("groupBox_2") self.Nalpha = QtWidgets.QLineEdit(self.groupBox_2) self.Nalpha.setGeometry(QtCore.QRect(10, 30, 51, 21)) self.Nalpha.setObjectName("Nalpha") self.Ndmax = QtWidgets.QLineEdit(self.groupBox_2) self.Ndmax.setGeometry(QtCore.QRect(10, 60, 51, 21)) self.Ndmax.setObjectName("Ndmax") self.label_9 = QtWidgets.QLabel(self.groupBox_2) self.label_9.setGeometry(QtCore.QRect(70, 30, 91, 16)) self.label_9.setObjectName("label_9") self.label_10 = QtWidgets.QLabel(self.groupBox_2) self.label_10.setGeometry(QtCore.QRect(70, 60, 101, 16)) self.label_10.setObjectName("label_10") self.minlogalpha = QtWidgets.QDoubleSpinBox(self.groupBox_2) self.minlogalpha.setGeometry(QtCore.QRect(20, 120, 62, 24)) self.minlogalpha.setMinimum(-100.0) self.minlogalpha.setMaximum(100.0) self.minlogalpha.setProperty("value", 4.0) self.minlogalpha.setObjectName("minlogalpha") self.label_11 = QtWidgets.QLabel(self.groupBox_2) self.label_11.setGeometry(QtCore.QRect(20, 100, 111, 16)) self.label_11.setObjectName("label_11") self.maxlogalpha = QtWidgets.QDoubleSpinBox(self.groupBox_2) self.maxlogalpha.setGeometry(QtCore.QRect(110, 120, 62, 24)) self.maxlogalpha.setMinimum(-100.0) self.maxlogalpha.setMaximum(100.0) self.maxlogalpha.setProperty("value", 10.0) self.maxlogalpha.setObjectName("maxlogalpha") self.label_13 = QtWidgets.QLabel(self.groupBox_2) self.label_13.setGeometry(QtCore.QRect(220, 100, 111, 16)) self.label_13.setObjectName("label_13") self.mindmax = QtWidgets.QDoubleSpinBox(self.groupBox_2) self.mindmax.setGeometry(QtCore.QRect(220, 120, 62, 24)) self.mindmax.setDecimals(3) self.mindmax.setMaximum(9999.0) self.mindmax.setObjectName("mindmax") self.maxdmax = QtWidgets.QDoubleSpinBox(self.groupBox_2) self.maxdmax.setGeometry(QtCore.QRect(310, 120, 62, 24)) self.maxdmax.setDecimals(3) self.maxdmax.setMaximum(9999.0) self.maxdmax.setObjectName("maxdmax") self.calcbiftgrid = QtWidgets.QPushButton(self.bayesianift_tab) self.calcbiftgrid.setGeometry(QtCore.QRect(520, 180, 191, 51)) font = QtGui.QFont() font.setFamily("Helvetica") font.setPointSize(18) font.setBold(True) font.setWeight(75) self.calcbiftgrid.setFont(font) self.calcbiftgrid.setStyleSheet( "background-color: #6495ed; color: #ffffff;") self.calcbiftgrid.setObjectName("calcbiftgrid") self.label_12 = QtWidgets.QLabel(self.bayesianift_tab) self.label_12.setGeometry(QtCore.QRect(510, 120, 10, 16)) self.label_12.setObjectName("label_12") self.label_14 = QtWidgets.QLabel(self.bayesianift_tab) self.label_14.setGeometry(QtCore.QRect(710, 120, 10, 16)) self.label_14.setObjectName("label_14") self.refinebift = QtWidgets.QPushButton(self.bayesianift_tab) self.refinebift.setGeometry(QtCore.QRect(515, 325, 211, 51)) font = QtGui.QFont() font.setFamily("Helvetica") font.setPointSize(14) font.setBold(True) font.setWeight(75) self.refinebift.setFont(font) self.refinebift.setStyleSheet( "background-color:#87cc83; color: #ffffff;") self.refinebift.setObjectName("refinebift") self.line = QtWidgets.QFrame(self.bayesianift_tab) self.line.setGeometry(QtCore.QRect(420, 270, 391, 16)) self.line.setFrameShape(QtWidgets.QFrame.HLine) self.line.setFrameShadow(QtWidgets.QFrame.Sunken) self.line.setObjectName("line") self.Console.addTab(self.bayesianift_tab, "") SAXSgui.setCentralWidget(self.centralwidget) self.menubar = QtWidgets.QMenuBar(SAXSgui) self.menubar.setGeometry(QtCore.QRect(0, 0, 925, 22)) self.menubar.setObjectName("menubar") self.menuFile = QtWidgets.QMenu(self.menubar) self.menuFile.setObjectName("menuFile") SAXSgui.setMenuBar(self.menubar) self.statusbar = QtWidgets.QStatusBar(SAXSgui) self.statusbar.setObjectName("statusbar") SAXSgui.setStatusBar(self.statusbar) self.actionOpen = QtWidgets.QAction(SAXSgui) self.actionOpen.setObjectName("actionOpen") self.actionClose = QtWidgets.QAction(SAXSgui) self.actionClose.setObjectName("actionClose") self.actionExit = QtWidgets.QAction(SAXSgui) self.actionExit.setShortcutContext(QtCore.Qt.WindowShortcut) self.actionExit.setObjectName("actionExit") self.actionGuinier_Plot = QtWidgets.QAction(SAXSgui) self.actionGuinier_Plot.setObjectName("actionGuinier_Plot") self.actionKratky_Plot = QtWidgets.QAction(SAXSgui) self.actionKratky_Plot.setObjectName("actionKratky_Plot") self.actionSAXSMoW = QtWidgets.QAction(SAXSgui) self.actionSAXSMoW.setObjectName("actionSAXSMoW") self.actionFoXS_fit = QtWidgets.QAction(SAXSgui) self.actionFoXS_fit.setObjectName("actionFoXS_fit") self.actionLoad_Beam_Profile = QtWidgets.QAction(SAXSgui) self.actionLoad_Beam_Profile.setObjectName("actionLoad_Beam_Profile") self.actionSave_as_GNOM_file = QtWidgets.QAction(SAXSgui) self.actionSave_as_GNOM_file.setObjectName("actionSave_as_GNOM_file") self.actionSAXSMoW_2 = QtWidgets.QAction(SAXSgui) self.actionSAXSMoW_2.setObjectName("actionSAXSMoW_2") self.menuFile.addAction(self.actionOpen) self.menuFile.addAction(self.actionSave_as_GNOM_file) self.menuFile.addAction(self.actionLoad_Beam_Profile) self.menuFile.addAction(self.actionClose) self.menuFile.addAction(self.actionExit) self.menubar.addAction(self.menuFile.menuAction()) self.retranslateUi(SAXSgui) self.Console.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(SAXSgui) def retranslateUi(self, SAXSgui): _translate = QtCore.QCoreApplication.translate SAXSgui.setWindowTitle(_translate("SAXSgui", "UCSFsaxs v0.6")) self.checkLogY.setText(_translate("SAXSgui", "Log-scale Y-axis")) self.checkLogX.setText(_translate("SAXSgui", "Log-scale X-axis")) self.label_8.setText(_translate("SAXSgui", "Beam Profile")) self.label_19.setText(_translate("SAXSgui", "Initial Points to skip")) self.label_20.setText(_translate("SAXSgui", "End Points to skip")) self.label_22.setText(_translate("SAXSgui", "q_min : ")) self.label_23.setText(_translate("SAXSgui", "q_max : ")) self.qmin_label.setText(_translate("SAXSgui", "None")) self.qmax_label.setText(_translate("SAXSgui", "None")) self.Console.setTabText( self.Console.indexOf(self.fourierspace_tab), _translate("SAXSgui", "Fourier Space (Scattering)")) self.groupBox_4.setTitle( _translate("SAXSgui", "Automated Guinier Analysis")) self.label_16.setText(_translate("SAXSgui", "qRg_min")) self.label_17.setText(_translate("SAXSgui", "qRg_max")) self.guinierminpts.setText(_translate("SAXSgui", "10")) self.label_18.setText(_translate("SAXSgui", "Min. points")) self.autoguinier_button.setText(_translate("SAXSgui", "Do it (Auto)!")) self.runprimaryanalysis.setText( _translate("SAXSgui", "Do it (Manual)!")) self.label_6.setText(_translate("SAXSgui", "to")) self.label_7.setText(_translate("SAXSgui", "Fit")) self.label_21.setText(_translate("SAXSgui", "current qRg : ")) self.qRg_label.setText(_translate("SAXSgui", "None")) self.label_4.setText(_translate("SAXSgui", "Rg : ")) self.label_5.setText(_translate("SAXSgui", "I(0):")) self.guinierRg_label.setText(_translate("SAXSgui", "None")) self.I0_label.setText(_translate("SAXSgui", "None")) self.Console.setTabText(self.Console.indexOf(self.guinierkratky_tab), _translate("SAXSgui", "Guinier, Kratky Plots")) self.groupBox_3.setTitle(_translate("SAXSgui", "IFT parameters")) self.label_2.setText(_translate("SAXSgui", "Log(alpha) - Smoothness")) self.label.setText(_translate("SAXSgui", "Dmax")) self.label_3.setText(_translate("SAXSgui", "# of points in P(r)")) self.groupBox.setTitle(_translate("SAXSgui", "Data Parameters")) self.varianceweighted.setText(_translate("SAXSgui", "σ^2 weighted")) self.smeared.setText(_translate("SAXSgui", "Smeared")) self.solvepr_button.setText(_translate("SAXSgui", "Solve P(r)!")) self.saveiftresult.setText( _translate("SAXSgui", "Save File? Enter file name below:")) self.Console.setTabText(self.Console.indexOf(self.realspace_tab), _translate("SAXSgui", "Real Space")) self.groupBox_2.setTitle( _translate("SAXSgui", "Grid Search Parameters")) self.Nalpha.setText(_translate("SAXSgui", "10")) self.Ndmax.setText(_translate("SAXSgui", "10")) self.label_9.setText(_translate("SAXSgui", "No. of alpha")) self.label_10.setText(_translate("SAXSgui", "No. of Dmax")) self.label_11.setText(_translate("SAXSgui", "log(alpha) Range")) self.label_13.setText(_translate("SAXSgui", "Dmax Range")) self.calcbiftgrid.setText(_translate("SAXSgui", "Calculate Grid")) self.label_12.setText(_translate("SAXSgui", "-")) self.label_14.setText(_translate("SAXSgui", "-")) self.refinebift.setText( _translate("SAXSgui", "Refine Solution (Simplex)")) self.Console.setTabText(self.Console.indexOf(self.bayesianift_tab), _translate("SAXSgui", "BayesianIFT")) self.menuFile.setTitle(_translate("SAXSgui", "File")) self.actionOpen.setText(_translate("SAXSgui", "Open")) self.actionOpen.setToolTip(_translate("SAXSgui", "Open SAXS data file")) self.actionClose.setText(_translate("SAXSgui", "Close")) self.actionExit.setText(_translate("SAXSgui", "Exit Program")) self.actionGuinier_Plot.setText(_translate("SAXSgui", "Guinier Plot")) self.actionKratky_Plot.setText(_translate("SAXSgui", "Kratky Plot")) self.actionSAXSMoW.setText(_translate("SAXSgui", "SAXSMoW")) self.actionFoXS_fit.setText(_translate("SAXSgui", "FoXS fit ...")) self.actionLoad_Beam_Profile.setText( _translate("SAXSgui", "Load Beam Profile")) self.actionSave_as_GNOM_file.setText( _translate("SAXSgui", "Save as GNOM file ...")) self.actionSAXSMoW_2.setText(_translate("SAXSgui", "SAXSMoW"))
class ScopeWindow(QtGui.QMainWindow): def __init__(self, parent=None, maxepisodes=10): super(ScopeWindow, self).__init__(parent) self.episodes = None self.index = [] # set a limit on how many episodes to memorize self.maxepisodes = maxepisodes # Record state of the scope window self.isclosed = True # This keeps track of the indices of which episodes are loaded self._loaded_array = [] # Default options self.options = {'colorfy':False,\ 'layout':[['Voltage', 'A', 0, 0], ['Current', 'A', 1, 0]]} # layout = [Stream, Channel, row, col] # Keep track of which colors have been used self._usedColors = [] # Set up the GUI window self.setupUi(self) self.setDisplayTheme() def setupUi(self, MainWindow): """This function is converted from the .ui file from the designer""" MainWindow.setObjectName(_fromUtf8("Scope Window")) MainWindow.resize(1200, 600) self.centralwidget = QtGui.QWidget(MainWindow) self.centralwidget.setObjectName(_fromUtf8("centralwidget")) # Graphics layout self.horizontalLayout = QtGui.QHBoxLayout(self.centralwidget) self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.graphicsLayout = QtGui.QHBoxLayout() self.graphicsLayout.setObjectName(_fromUtf8("graphicsLayout")) self.graphicsView = GraphicsLayoutWidget(self.centralwidget) self.graphicsView.setObjectName(_fromUtf8("graphicsView")) self.graphicsLayout.addWidget(self.graphicsView) self.horizontalLayout.addLayout(self.graphicsLayout) # Side panel layout: initialize as a list view self.sideDockPanel = QtGui.QDockWidget("Settings", self) self.sideDockPanel.setAllowedAreas(QtCore.Qt.LeftDockWidgetArea | QtCore.Qt.RightDockWidgetArea) self.sideDockPanel.setObjectName(_fromUtf8("sideDockPanel")) self.sideDockPanel.hide() # self.sidePanelLayout = QtGui.QHBoxLayout() # self.sidePanelLayout.setObjectName(_fromUtf8("sidePanelLayout")) self.listView = QtGui.QListView(self.centralwidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.listView.sizePolicy().hasHeightForWidth()) self.listView.setSizePolicy(sizePolicy) self.listView.setObjectName(_fromUtf8("listView")) self.sideDockPanel.setWidget(self.listView) self.addDockWidget(QtCore.Qt.RightDockWidgetArea, self.sideDockPanel) # self.sidePanelLayout.addWidget(self.listView) # self.horizontalLayout.addLayout(self.sidePanelLayout) MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtGui.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 1225, 26)) self.menubar.setObjectName(_fromUtf8("menubar")) self.setMenuBarItems() MainWindow.setMenuBar(self.menubar) self.statusbar = QtGui.QStatusBar(MainWindow) self.statusbar.setObjectName(_fromUtf8("statusbar")) MainWindow.setStatusBar(self.statusbar) self.retranslateUi(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) # ---------------- Additional main window behaviors ----------------------- def setMenuBarItems(self): # File Menu fileMenu = self.menubar.addMenu('&File') # File: Export exportMenu = fileMenu.addMenu('&Export') exportWithScaleBarAction = QtGui.QAction(QtGui.QIcon('export.png'), 'Export with scalebar', self) exportWithScaleBarAction.setShortcut('Ctrl+Alt+E') exportWithScaleBarAction.setStatusTip('Export with scalebar') exportWithScaleBarAction.triggered.connect(self.printme) exportMenu.addAction(exportWithScaleBarAction) # View Menu viewMenu = self.menubar.addMenu('&View') # View: show settings viewMenu.addAction(self.sideDockPanel.toggleViewAction()) # View: Colorfy colorfyAction = QtGui.QAction('Color code traces', self, checkable=True, checked=False) colorfyAction.setShortcut('Ctrl+Alt+C') colorfyAction.setStatusTip('Toggle between color coded traces and black traces') colorfyAction.triggered.connect(lambda: self.toggleTraceColors(colorfyAction.isChecked())) viewMenu.addAction(colorfyAction) def printme(self): print('doing stuff') def closeEvent(self, event): """Override default behavior when closing the main window""" self.isclosed = True def retranslateUi(self, MainWindow): """Set window title and other miscellaneous""" MainWindow.setWindowTitle(_translate(__version__, __version__, None)) # ------------- Episode plotting utilities -------------------------------- def updateEpisodes(self, episodes=None, index=[]): """First compare episodes with self.episodes and index with self.index Only update the difference in the two sets""" if not isinstance(episodes, dict) or not isinstance(self.episodes, dict): bool_old_episode = False else: bool_old_episode = self.episodes['Name'] == episodes['Name'] index_insert = list(set(index) - set(self.index)) index_remove = list(set(self.index) - set(index)) if bool_old_episode and not index_insert and not index_remove: # same episode, same index return elif not bool_old_episode: # new item / cell index_insert = index index_remove = [] self.episodes = episodes self.episodes['Data'] = [[]] * len(self.episodes['Dirs']) self._loaded_array = [] # update index self.index += index_insert for a in index_remove: self.index.remove(a) # Insert new episodes for i in index_insert: self.episodes['Data'][i] = NeuroData(dataFile=self.episodes['Dirs'][i], old=True, infoOnly=False, getTime=True) self._loaded_array.append(i) # call self.drawPlot self.drawEpisode(self.episodes['Data'][i], info=(self.episodes['Name'], self.episodes['Epi'][i])) # Remove episodes for j in index_remove: self.removeEpisode(info=(self.episodes['Name'], self.episodes['Epi'][j])) def drawEpisode(self, zData, info=None, pen=None): """Draw plot from 1 zData""" # Set up pen color if self.options['colorfy']: availableColors = list(colors) for c in self._usedColors: availableColors.remove(c) pen = availableColors[0] self._usedColors.append(pen) elif pen is None: pen = self.options['theme']['pen'] # Loop through all the subplots for n, l in enumerate(self.options['layout']): # get viewbox p = self.graphicsView.getItem(row=l[2], col=l[3]) if p is None: p = self.graphicsView.addPlot(row=l[2], col=l[3]) # Make sure later viewboxes are linked in time domain if n>0: p.setXLink(self.graphicsView.getItem(row=0, col=0)) # put an identifier on the trace if isinstance(info, tuple): pname = info[0]+'.'+info[1]+'.'+l[0]+'.'+l[1] else: pname = None p.plot(x=zData.Time, y=getattr(zData, l[0])[l[1]], pen=pen, name=pname) def removeEpisode(self, info=None): if not info: return for l in self.options['layout']: # get viewbox p1 = self.graphicsView.getItem(row=l[2], col=l[3]) pname = info[0]+'.'+info[1]+'.'+l[0]+'.'+l[1] remove_index = [] for k, a in enumerate(p1.listDataItems()): if a.name() == pname: # matching p1.removeItem(a) remove_index.append(k) # recover the colors if remove_index and self.options['colorfy']: for r in remove_index: del self._usedColors[r] # ----------------------- Layout utilities -------------------------------- def setLayout(self): return # ----------------------- Option utilities ---------------------------------- def toggleTraceColors(self, checked): """Change traces from black to color coded""" # if already painted in color, paint in default pen again if not checked: self.options['colorfy'] = False self._usedColors = [] # reset used colors else: self.options['colorfy'] = True for l in self.options['layout']: # get viewbox p = self.graphicsView.getItem(row=l[2], col=l[3]) for k, a in enumerate(p.listDataItems()): if not checked: pen = self.options['theme']['pen'] else: pen = colors[k%len(colors)] if pen not in self._usedColors: self._usedColors.append(pen) pen = pg.mkPen(pen) a.setPen(pen) def setDisplayTheme(self, theme='whiteboard'): self.options['theme'] = {'blackboard':{'background':'k', 'pen':'w'}, \ 'whiteboard':{'background':'w', 'pen':'k'}\ }.get(theme) self.graphicsView.setBackground(self.options['theme']['background'])
class Ui_QSpectrumAnalyzerMainWindow(object): def setupUi(self, QSpectrumAnalyzerMainWindow): QSpectrumAnalyzerMainWindow.setObjectName( _fromUtf8("QSpectrumAnalyzerMainWindow")) QSpectrumAnalyzerMainWindow.resize(1200, 810) self.centralwidget = QtGui.QWidget(QSpectrumAnalyzerMainWindow) self.centralwidget.setObjectName(_fromUtf8("centralwidget")) self.horizontalLayout = QtGui.QHBoxLayout(self.centralwidget) self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.plotSplitter = QtGui.QSplitter(self.centralwidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.plotSplitter.sizePolicy().hasHeightForWidth()) self.plotSplitter.setSizePolicy(sizePolicy) self.plotSplitter.setOrientation(QtCore.Qt.Vertical) self.plotSplitter.setObjectName(_fromUtf8("plotSplitter")) self.mainPlotLayout = GraphicsLayoutWidget(self.plotSplitter) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.mainPlotLayout.sizePolicy().hasHeightForWidth()) self.mainPlotLayout.setSizePolicy(sizePolicy) self.mainPlotLayout.setObjectName(_fromUtf8("mainPlotLayout")) self.waterfallPlotLayout = GraphicsLayoutWidget(self.plotSplitter) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.waterfallPlotLayout.sizePolicy().hasHeightForWidth()) self.waterfallPlotLayout.setSizePolicy(sizePolicy) self.waterfallPlotLayout.setObjectName( _fromUtf8("waterfallPlotLayout")) self.horizontalLayout.addWidget(self.plotSplitter) QSpectrumAnalyzerMainWindow.setCentralWidget(self.centralwidget) self.menubar = QtGui.QMenuBar(QSpectrumAnalyzerMainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 1200, 30)) self.menubar.setObjectName(_fromUtf8("menubar")) self.menu_File = QtGui.QMenu(self.menubar) self.menu_File.setObjectName(_fromUtf8("menu_File")) self.menu_Help = QtGui.QMenu(self.menubar) self.menu_Help.setObjectName(_fromUtf8("menu_Help")) QSpectrumAnalyzerMainWindow.setMenuBar(self.menubar) self.statusbar = QtGui.QStatusBar(QSpectrumAnalyzerMainWindow) self.statusbar.setObjectName(_fromUtf8("statusbar")) QSpectrumAnalyzerMainWindow.setStatusBar(self.statusbar) self.controlsDockWidget = QtGui.QDockWidget( QSpectrumAnalyzerMainWindow) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.controlsDockWidget.sizePolicy().hasHeightForWidth()) self.controlsDockWidget.setSizePolicy(sizePolicy) self.controlsDockWidget.setMinimumSize(QtCore.QSize(10, 10)) self.controlsDockWidget.setFeatures( QtGui.QDockWidget.DockWidgetFloatable | QtGui.QDockWidget.DockWidgetMovable) self.controlsDockWidget.setObjectName(_fromUtf8("controlsDockWidget")) self.controlsDockWidgetContents = QtGui.QWidget() self.controlsDockWidgetContents.setObjectName( _fromUtf8("controlsDockWidgetContents")) self.gridLayout_2 = QtGui.QGridLayout(self.controlsDockWidgetContents) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.startButton = QtGui.QPushButton(self.controlsDockWidgetContents) self.startButton.setObjectName(_fromUtf8("startButton")) self.gridLayout_2.addWidget(self.startButton, 0, 0, 1, 1) self.stopButton = QtGui.QPushButton(self.controlsDockWidgetContents) self.stopButton.setObjectName(_fromUtf8("stopButton")) self.gridLayout_2.addWidget(self.stopButton, 0, 1, 1, 1) self.singleShotButton = QtGui.QPushButton( self.controlsDockWidgetContents) self.singleShotButton.setObjectName(_fromUtf8("singleShotButton")) self.gridLayout_2.addWidget(self.singleShotButton, 1, 0, 1, 2) spacerItem = QtGui.QSpacerItem(20, 561, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout_2.addItem(spacerItem, 2, 0, 1, 1) self.controlsDockWidget.setWidget(self.controlsDockWidgetContents) QSpectrumAnalyzerMainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(2), self.controlsDockWidget) self.frequencyDockWidget = QtGui.QDockWidget( QSpectrumAnalyzerMainWindow) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.frequencyDockWidget.sizePolicy().hasHeightForWidth()) self.frequencyDockWidget.setSizePolicy(sizePolicy) self.frequencyDockWidget.setMinimumSize(QtCore.QSize(10, 10)) self.frequencyDockWidget.setFeatures( QtGui.QDockWidget.DockWidgetFloatable | QtGui.QDockWidget.DockWidgetMovable) self.frequencyDockWidget.setObjectName( _fromUtf8("frequencyDockWidget")) self.frequencyDockWidgetContents = QtGui.QWidget() self.frequencyDockWidgetContents.setObjectName( _fromUtf8("frequencyDockWidgetContents")) self.formLayout = QtGui.QFormLayout(self.frequencyDockWidgetContents) self.formLayout.setFieldGrowthPolicy( QtGui.QFormLayout.ExpandingFieldsGrow) self.formLayout.setObjectName(_fromUtf8("formLayout")) self.label_2 = QtGui.QLabel(self.frequencyDockWidgetContents) self.label_2.setObjectName(_fromUtf8("label_2")) self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_2) self.startFreqSpinBox = QtGui.QDoubleSpinBox( self.frequencyDockWidgetContents) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.startFreqSpinBox.sizePolicy().hasHeightForWidth()) self.startFreqSpinBox.setSizePolicy(sizePolicy) self.startFreqSpinBox.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.startFreqSpinBox.setDecimals(3) self.startFreqSpinBox.setMinimum(24.0) self.startFreqSpinBox.setMaximum(1766.0) self.startFreqSpinBox.setProperty("value", 87.0) self.startFreqSpinBox.setObjectName(_fromUtf8("startFreqSpinBox")) self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.startFreqSpinBox) self.label_3 = QtGui.QLabel(self.frequencyDockWidgetContents) self.label_3.setObjectName(_fromUtf8("label_3")) self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_3) self.stopFreqSpinBox = QtGui.QDoubleSpinBox( self.frequencyDockWidgetContents) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.stopFreqSpinBox.sizePolicy().hasHeightForWidth()) self.stopFreqSpinBox.setSizePolicy(sizePolicy) self.stopFreqSpinBox.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.stopFreqSpinBox.setDecimals(3) self.stopFreqSpinBox.setMinimum(24.0) self.stopFreqSpinBox.setMaximum(1766.0) self.stopFreqSpinBox.setProperty("value", 108.0) self.stopFreqSpinBox.setObjectName(_fromUtf8("stopFreqSpinBox")) self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.stopFreqSpinBox) self.label = QtGui.QLabel(self.frequencyDockWidgetContents) self.label.setObjectName(_fromUtf8("label")) self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.label) self.binSizeSpinBox = QtGui.QDoubleSpinBox( self.frequencyDockWidgetContents) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.binSizeSpinBox.sizePolicy().hasHeightForWidth()) self.binSizeSpinBox.setSizePolicy(sizePolicy) self.binSizeSpinBox.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.binSizeSpinBox.setDecimals(3) self.binSizeSpinBox.setMaximum(2800.0) self.binSizeSpinBox.setProperty("value", 10.0) self.binSizeSpinBox.setObjectName(_fromUtf8("binSizeSpinBox")) self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.binSizeSpinBox) spacerItem1 = QtGui.QSpacerItem(20, 0, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.formLayout.setItem(3, QtGui.QFormLayout.SpanningRole, spacerItem1) self.frequencyDockWidget.setWidget(self.frequencyDockWidgetContents) QSpectrumAnalyzerMainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(2), self.frequencyDockWidget) self.settingsDockWidget = QtGui.QDockWidget( QSpectrumAnalyzerMainWindow) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.settingsDockWidget.sizePolicy().hasHeightForWidth()) self.settingsDockWidget.setSizePolicy(sizePolicy) self.settingsDockWidget.setFeatures( QtGui.QDockWidget.DockWidgetFloatable | QtGui.QDockWidget.DockWidgetMovable) self.settingsDockWidget.setObjectName(_fromUtf8("settingsDockWidget")) self.settingsDockWidgetContents = QtGui.QWidget() self.settingsDockWidgetContents.setObjectName( _fromUtf8("settingsDockWidgetContents")) self.gridLayout = QtGui.QGridLayout(self.settingsDockWidgetContents) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.label_4 = QtGui.QLabel(self.settingsDockWidgetContents) self.label_4.setObjectName(_fromUtf8("label_4")) self.gridLayout.addWidget(self.label_4, 0, 0, 1, 1) self.label_6 = QtGui.QLabel(self.settingsDockWidgetContents) self.label_6.setObjectName(_fromUtf8("label_6")) self.gridLayout.addWidget(self.label_6, 0, 1, 1, 1) self.intervalSpinBox = QtGui.QDoubleSpinBox( self.settingsDockWidgetContents) self.intervalSpinBox.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.intervalSpinBox.setMaximum(999.0) self.intervalSpinBox.setProperty("value", 1.0) self.intervalSpinBox.setObjectName(_fromUtf8("intervalSpinBox")) self.gridLayout.addWidget(self.intervalSpinBox, 1, 0, 1, 1) self.gainSpinBox = QtGui.QSpinBox(self.settingsDockWidgetContents) self.gainSpinBox.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.gainSpinBox.setMinimum(-1) self.gainSpinBox.setMaximum(49) self.gainSpinBox.setProperty("value", -1) self.gainSpinBox.setObjectName(_fromUtf8("gainSpinBox")) self.gridLayout.addWidget(self.gainSpinBox, 1, 1, 1, 2) self.label_5 = QtGui.QLabel(self.settingsDockWidgetContents) self.label_5.setObjectName(_fromUtf8("label_5")) self.gridLayout.addWidget(self.label_5, 2, 0, 1, 1) self.label_7 = QtGui.QLabel(self.settingsDockWidgetContents) self.label_7.setObjectName(_fromUtf8("label_7")) self.gridLayout.addWidget(self.label_7, 2, 1, 1, 1) self.ppmSpinBox = QtGui.QSpinBox(self.settingsDockWidgetContents) self.ppmSpinBox.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.ppmSpinBox.setMinimum(-999) self.ppmSpinBox.setMaximum(999) self.ppmSpinBox.setObjectName(_fromUtf8("ppmSpinBox")) self.gridLayout.addWidget(self.ppmSpinBox, 3, 0, 1, 1) self.mainCurveCheckBox = QtGui.QCheckBox( self.settingsDockWidgetContents) self.mainCurveCheckBox.setChecked(True) self.mainCurveCheckBox.setObjectName(_fromUtf8("mainCurveCheckBox")) self.gridLayout.addWidget(self.mainCurveCheckBox, 4, 0, 1, 1) self.colorsButton = QtGui.QPushButton(self.settingsDockWidgetContents) self.colorsButton.setObjectName(_fromUtf8("colorsButton")) self.gridLayout.addWidget(self.colorsButton, 4, 1, 1, 2) self.peakHoldMaxCheckBox = QtGui.QCheckBox( self.settingsDockWidgetContents) self.peakHoldMaxCheckBox.setObjectName( _fromUtf8("peakHoldMaxCheckBox")) self.gridLayout.addWidget(self.peakHoldMaxCheckBox, 5, 0, 1, 1) self.peakHoldMinCheckBox = QtGui.QCheckBox( self.settingsDockWidgetContents) self.peakHoldMinCheckBox.setObjectName( _fromUtf8("peakHoldMinCheckBox")) self.gridLayout.addWidget(self.peakHoldMinCheckBox, 5, 1, 1, 2) self.averageCheckBox = QtGui.QCheckBox(self.settingsDockWidgetContents) self.averageCheckBox.setObjectName(_fromUtf8("averageCheckBox")) self.gridLayout.addWidget(self.averageCheckBox, 6, 0, 1, 1) self.smoothCheckBox = QtGui.QCheckBox(self.settingsDockWidgetContents) self.smoothCheckBox.setObjectName(_fromUtf8("smoothCheckBox")) self.gridLayout.addWidget(self.smoothCheckBox, 7, 0, 1, 1) self.smoothButton = QtGui.QToolButton(self.settingsDockWidgetContents) self.smoothButton.setAutoRaise(False) self.smoothButton.setObjectName(_fromUtf8("smoothButton")) self.gridLayout.addWidget(self.smoothButton, 7, 2, 1, 1) self.persistenceCheckBox = QtGui.QCheckBox( self.settingsDockWidgetContents) self.persistenceCheckBox.setObjectName( _fromUtf8("persistenceCheckBox")) self.gridLayout.addWidget(self.persistenceCheckBox, 8, 0, 1, 1) self.persistenceButton = QtGui.QToolButton( self.settingsDockWidgetContents) self.persistenceButton.setAutoRaise(False) self.persistenceButton.setObjectName(_fromUtf8("persistenceButton")) self.gridLayout.addWidget(self.persistenceButton, 8, 2, 1, 1) spacerItem2 = QtGui.QSpacerItem(20, 1, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem2, 9, 0, 1, 1) self.cropSpinBox = QtGui.QSpinBox(self.settingsDockWidgetContents) self.cropSpinBox.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.cropSpinBox.setObjectName(_fromUtf8("cropSpinBox")) self.gridLayout.addWidget(self.cropSpinBox, 3, 1, 1, 2) self.settingsDockWidget.setWidget(self.settingsDockWidgetContents) QSpectrumAnalyzerMainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(2), self.settingsDockWidget) self.levelsDockWidget = QtGui.QDockWidget(QSpectrumAnalyzerMainWindow) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.levelsDockWidget.sizePolicy().hasHeightForWidth()) self.levelsDockWidget.setSizePolicy(sizePolicy) self.levelsDockWidget.setFeatures( QtGui.QDockWidget.DockWidgetFloatable | QtGui.QDockWidget.DockWidgetMovable) self.levelsDockWidget.setObjectName(_fromUtf8("levelsDockWidget")) self.levelsDockWidgetContents = QtGui.QWidget() self.levelsDockWidgetContents.setObjectName( _fromUtf8("levelsDockWidgetContents")) self.verticalLayout_6 = QtGui.QVBoxLayout( self.levelsDockWidgetContents) self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6")) self.histogramPlotLayout = GraphicsLayoutWidget( self.levelsDockWidgetContents) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Ignored, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.histogramPlotLayout.sizePolicy().hasHeightForWidth()) self.histogramPlotLayout.setSizePolicy(sizePolicy) self.histogramPlotLayout.setObjectName( _fromUtf8("histogramPlotLayout")) self.verticalLayout_6.addWidget(self.histogramPlotLayout) self.levelsDockWidget.setWidget(self.levelsDockWidgetContents) QSpectrumAnalyzerMainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(2), self.levelsDockWidget) self.action_Settings = QtGui.QAction(QSpectrumAnalyzerMainWindow) self.action_Settings.setObjectName(_fromUtf8("action_Settings")) self.action_Quit = QtGui.QAction(QSpectrumAnalyzerMainWindow) self.action_Quit.setObjectName(_fromUtf8("action_Quit")) self.action_About = QtGui.QAction(QSpectrumAnalyzerMainWindow) self.action_About.setObjectName(_fromUtf8("action_About")) self.menu_File.addAction(self.action_Settings) self.menu_File.addSeparator() self.menu_File.addAction(self.action_Quit) self.menu_Help.addAction(self.action_About) self.menubar.addAction(self.menu_File.menuAction()) self.menubar.addAction(self.menu_Help.menuAction()) self.label_2.setBuddy(self.startFreqSpinBox) self.label_3.setBuddy(self.stopFreqSpinBox) self.label.setBuddy(self.binSizeSpinBox) self.label_4.setBuddy(self.intervalSpinBox) self.label_6.setBuddy(self.gainSpinBox) self.label_5.setBuddy(self.ppmSpinBox) self.label_7.setBuddy(self.cropSpinBox) self.retranslateUi(QSpectrumAnalyzerMainWindow) QtCore.QMetaObject.connectSlotsByName(QSpectrumAnalyzerMainWindow) QSpectrumAnalyzerMainWindow.setTabOrder(self.startButton, self.stopButton) QSpectrumAnalyzerMainWindow.setTabOrder(self.stopButton, self.singleShotButton) QSpectrumAnalyzerMainWindow.setTabOrder(self.singleShotButton, self.startFreqSpinBox) QSpectrumAnalyzerMainWindow.setTabOrder(self.startFreqSpinBox, self.stopFreqSpinBox) QSpectrumAnalyzerMainWindow.setTabOrder(self.stopFreqSpinBox, self.binSizeSpinBox) QSpectrumAnalyzerMainWindow.setTabOrder(self.binSizeSpinBox, self.intervalSpinBox) QSpectrumAnalyzerMainWindow.setTabOrder(self.intervalSpinBox, self.gainSpinBox) QSpectrumAnalyzerMainWindow.setTabOrder(self.gainSpinBox, self.ppmSpinBox) QSpectrumAnalyzerMainWindow.setTabOrder(self.ppmSpinBox, self.cropSpinBox) QSpectrumAnalyzerMainWindow.setTabOrder(self.cropSpinBox, self.mainCurveCheckBox) QSpectrumAnalyzerMainWindow.setTabOrder(self.mainCurveCheckBox, self.colorsButton) QSpectrumAnalyzerMainWindow.setTabOrder(self.colorsButton, self.peakHoldMaxCheckBox) QSpectrumAnalyzerMainWindow.setTabOrder(self.peakHoldMaxCheckBox, self.peakHoldMinCheckBox) QSpectrumAnalyzerMainWindow.setTabOrder(self.peakHoldMinCheckBox, self.averageCheckBox) QSpectrumAnalyzerMainWindow.setTabOrder(self.averageCheckBox, self.smoothCheckBox) QSpectrumAnalyzerMainWindow.setTabOrder(self.smoothCheckBox, self.smoothButton) QSpectrumAnalyzerMainWindow.setTabOrder(self.smoothButton, self.persistenceCheckBox) QSpectrumAnalyzerMainWindow.setTabOrder(self.persistenceCheckBox, self.persistenceButton) QSpectrumAnalyzerMainWindow.setTabOrder(self.persistenceButton, self.histogramPlotLayout) QSpectrumAnalyzerMainWindow.setTabOrder(self.histogramPlotLayout, self.mainPlotLayout) QSpectrumAnalyzerMainWindow.setTabOrder(self.mainPlotLayout, self.waterfallPlotLayout) def retranslateUi(self, QSpectrumAnalyzerMainWindow): QSpectrumAnalyzerMainWindow.setWindowTitle( _translate("QSpectrumAnalyzerMainWindow", "QSpectrumAnalyzer", None)) self.menu_File.setTitle( _translate("QSpectrumAnalyzerMainWindow", "&File", None)) self.menu_Help.setTitle( _translate("QSpectrumAnalyzerMainWindow", "&Help", None)) self.controlsDockWidget.setWindowTitle( _translate("QSpectrumAnalyzerMainWindow", "Controls", None)) self.startButton.setText( _translate("QSpectrumAnalyzerMainWindow", "&Start", None)) self.stopButton.setText( _translate("QSpectrumAnalyzerMainWindow", "S&top", None)) self.singleShotButton.setText( _translate("QSpectrumAnalyzerMainWindow", "Si&ngle shot", None)) self.frequencyDockWidget.setWindowTitle( _translate("QSpectrumAnalyzerMainWindow", "Frequency", None)) self.label_2.setText( _translate("QSpectrumAnalyzerMainWindow", "Start:", None)) self.startFreqSpinBox.setSuffix( _translate("QSpectrumAnalyzerMainWindow", " MHz", None)) self.label_3.setText( _translate("QSpectrumAnalyzerMainWindow", "Stop:", None)) self.stopFreqSpinBox.setSuffix( _translate("QSpectrumAnalyzerMainWindow", " MHz", None)) self.label.setText( _translate("QSpectrumAnalyzerMainWindow", "Bin size:", None)) self.binSizeSpinBox.setSuffix( _translate("QSpectrumAnalyzerMainWindow", " kHz", None)) self.settingsDockWidget.setWindowTitle( _translate("QSpectrumAnalyzerMainWindow", "Settings", None)) self.label_4.setText( _translate("QSpectrumAnalyzerMainWindow", "Interval [s]:", None)) self.label_6.setText( _translate("QSpectrumAnalyzerMainWindow", "Gain [dB]:", None)) self.gainSpinBox.setSpecialValueText( _translate("QSpectrumAnalyzerMainWindow", "auto", None)) self.label_5.setText( _translate("QSpectrumAnalyzerMainWindow", "Corr. [ppm]:", None)) self.label_7.setText( _translate("QSpectrumAnalyzerMainWindow", "Crop [%]:", None)) self.mainCurveCheckBox.setText( _translate("QSpectrumAnalyzerMainWindow", "Main curve", None)) self.colorsButton.setText( _translate("QSpectrumAnalyzerMainWindow", "Colors...", None)) self.peakHoldMaxCheckBox.setText( _translate("QSpectrumAnalyzerMainWindow", "Max. hold", None)) self.peakHoldMinCheckBox.setText( _translate("QSpectrumAnalyzerMainWindow", "Min. hold", None)) self.averageCheckBox.setText( _translate("QSpectrumAnalyzerMainWindow", "Average", None)) self.smoothCheckBox.setText( _translate("QSpectrumAnalyzerMainWindow", "Smoothing", None)) self.smoothButton.setText( _translate("QSpectrumAnalyzerMainWindow", "...", None)) self.persistenceCheckBox.setText( _translate("QSpectrumAnalyzerMainWindow", "Persistence", None)) self.persistenceButton.setText( _translate("QSpectrumAnalyzerMainWindow", "...", None)) self.levelsDockWidget.setWindowTitle( _translate("QSpectrumAnalyzerMainWindow", "Levels", None)) self.action_Settings.setText( _translate("QSpectrumAnalyzerMainWindow", "&Settings...", None)) self.action_Quit.setText( _translate("QSpectrumAnalyzerMainWindow", "&Quit", None)) self.action_Quit.setShortcut( _translate("QSpectrumAnalyzerMainWindow", "Ctrl+Q", None)) self.action_About.setText( _translate("QSpectrumAnalyzerMainWindow", "&About", None))
class Ui_RecordingViewerWidget(object): def setupUi(self, RecordingViewerWidget): RecordingViewerWidget.setObjectName("RecordingViewerWidget") RecordingViewerWidget.resize(489, 402) self.gridLayout_2 = QtWidgets.QGridLayout(RecordingViewerWidget) self.gridLayout_2.setObjectName("gridLayout_2") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.titleLabel = QtWidgets.QLabel(RecordingViewerWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Maximum) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.titleLabel.sizePolicy().hasHeightForWidth()) self.titleLabel.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setPointSize(12) font.setBold(True) font.setWeight(75) self.titleLabel.setFont(font) self.titleLabel.setText("") self.titleLabel.setAlignment(QtCore.Qt.AlignCenter) self.titleLabel.setObjectName("titleLabel") self.verticalLayout.addWidget(self.titleLabel) self.plotWidget = GraphicsLayoutWidget(RecordingViewerWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(1) sizePolicy.setVerticalStretch(1) sizePolicy.setHeightForWidth(self.plotWidget.sizePolicy().hasHeightForWidth()) self.plotWidget.setSizePolicy(sizePolicy) self.plotWidget.setObjectName("plotWidget") self.verticalLayout.addWidget(self.plotWidget) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.previousButton = QtWidgets.QPushButton(RecordingViewerWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.previousButton.sizePolicy().hasHeightForWidth()) self.previousButton.setSizePolicy(sizePolicy) icon = QtGui.QIcon.fromTheme("go-previous") self.previousButton.setIcon(icon) self.previousButton.setObjectName("previousButton") self.horizontalLayout.addWidget(self.previousButton) self.nextButton = QtWidgets.QPushButton(RecordingViewerWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.nextButton.sizePolicy().hasHeightForWidth()) self.nextButton.setSizePolicy(sizePolicy) icon = QtGui.QIcon.fromTheme("go-next") self.nextButton.setIcon(icon) self.nextButton.setObjectName("nextButton") self.horizontalLayout.addWidget(self.nextButton) self.verticalLayout.addLayout(self.horizontalLayout) self.gridLayout_2.addLayout(self.verticalLayout, 0, 0, 1, 1) self.groupBox = QtWidgets.QGroupBox(RecordingViewerWidget) self.groupBox.setMinimumSize(QtCore.QSize(250, 0)) self.groupBox.setObjectName("groupBox") self.gridLayout = QtWidgets.QGridLayout(self.groupBox) self.gridLayout.setObjectName("gridLayout") self.sessionBrowser = SessionBrowser(self.groupBox) self.sessionBrowser.setObjectName("sessionBrowser") self.gridLayout.addWidget(self.sessionBrowser, 0, 0, 1, 1) self.gridLayout_2.addWidget(self.groupBox, 0, 1, 1, 1) self.retranslateUi(RecordingViewerWidget) QtCore.QMetaObject.connectSlotsByName(RecordingViewerWidget) def retranslateUi(self, RecordingViewerWidget): _translate = QtCore.QCoreApplication.translate RecordingViewerWidget.setWindowTitle(_translate("RecordingViewerWidget", "Form")) self.previousButton.setText(_translate("RecordingViewerWidget", "Prev")) self.nextButton.setText(_translate("RecordingViewerWidget", "Next")) self.groupBox.setTitle(_translate("RecordingViewerWidget", "Sessions"))
class Ui_DockWidget(object): def setupUi(self, DockWidget): DockWidget.setObjectName(_fromUtf8("DockWidget")) DockWidget.resize(1001, 718) font = QtGui.QFont() font.setBold(True) font.setWeight(75) DockWidget.setFont(font) self.dockWidgetContents = QtGui.QWidget() self.dockWidgetContents.setObjectName(_fromUtf8("dockWidgetContents")) self.gridLayout_4 = QtGui.QGridLayout(self.dockWidgetContents) self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4")) self.widget = QtGui.QWidget(self.dockWidgetContents) self.widget.setObjectName(_fromUtf8("widget")) self.gridLayout_2 = QtGui.QGridLayout(self.widget) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.verticalLayout_3 = QtGui.QVBoxLayout() self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3")) self.verticalLayout_8 = QtGui.QVBoxLayout() self.verticalLayout_8.setObjectName(_fromUtf8("verticalLayout_8")) self.gridLayout_3 = QtGui.QGridLayout() self.gridLayout_3.setSizeConstraint(QtGui.QLayout.SetMaximumSize) self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) self.putativeAnnotationLabel = QtGui.QLabel(self.widget) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.putativeAnnotationLabel.setFont(font) self.putativeAnnotationLabel.setText(_fromUtf8("")) self.putativeAnnotationLabel.setObjectName( _fromUtf8("putativeAnnotationLabel")) self.gridLayout_3.addWidget(self.putativeAnnotationLabel, 1, 2, 1, 1) self.annotationCandidates = QtGui.QLabel(self.widget) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.annotationCandidates.setFont(font) self.annotationCandidates.setText(_fromUtf8("")) self.annotationCandidates.setObjectName( _fromUtf8("annotationCandidates")) self.gridLayout_3.addWidget(self.annotationCandidates, 3, 2, 1, 1) self.label_7 = QtGui.QLabel(self.widget) self.label_7.setObjectName(_fromUtf8("label_7")) self.gridLayout_3.addWidget(self.label_7, 1, 0, 1, 1) spacerItem = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Minimum) self.gridLayout_3.addItem(spacerItem, 1, 1, 1, 1) self.label_12 = QtGui.QLabel(self.widget) self.label_12.setObjectName(_fromUtf8("label_12")) self.gridLayout_3.addWidget(self.label_12, 3, 0, 1, 1) self.verticalLayout_8.addLayout(self.gridLayout_3) self.verticalLayout_3.addLayout(self.verticalLayout_8) self.horizontalLayout_2 = QtGui.QHBoxLayout() self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.label_11 = QtGui.QLabel(self.widget) self.label_11.setObjectName(_fromUtf8("label_11")) self.horizontalLayout_2.addWidget(self.label_11) self.selectedSampleOnly = QtGui.QCheckBox(self.widget) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.selectedSampleOnly.setFont(font) self.selectedSampleOnly.setObjectName(_fromUtf8("selectedSampleOnly")) self.horizontalLayout_2.addWidget(self.selectedSampleOnly) self.setIntegrationBoundaries = QtGui.QPushButton(self.widget) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.setIntegrationBoundaries.setFont(font) self.setIntegrationBoundaries.setObjectName( _fromUtf8("setIntegrationBoundaries")) self.horizontalLayout_2.addWidget(self.setIntegrationBoundaries) self.restoreDefaultIntegrationButton = QtGui.QPushButton(self.widget) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.restoreDefaultIntegrationButton.setFont(font) self.restoreDefaultIntegrationButton.setObjectName( _fromUtf8("restoreDefaultIntegrationButton")) self.horizontalLayout_2.addWidget(self.restoreDefaultIntegrationButton) self.verticalLayout_3.addLayout(self.horizontalLayout_2) self.eicPlotFI = GraphicsLayoutWidget(self.widget) self.eicPlotFI.setObjectName(_fromUtf8("eicPlotFI")) self.verticalLayout_3.addWidget(self.eicPlotFI) self.verticalLayout_4 = QtGui.QVBoxLayout() self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4")) self.label_13 = QtGui.QLabel(self.widget) self.label_13.setObjectName(_fromUtf8("label_13")) self.verticalLayout_4.addWidget(self.label_13) self.spectrumPlotFI = GraphicsLayoutWidget(self.widget) self.spectrumPlotFI.setObjectName(_fromUtf8("spectrumPlotFI")) self.verticalLayout_4.addWidget(self.spectrumPlotFI) self.verticalLayout_3.addLayout(self.verticalLayout_4) self.gridLayout_2.addLayout(self.verticalLayout_3, 0, 0, 1, 1) self.verticalLayout_7 = QtGui.QVBoxLayout() self.verticalLayout_7.setObjectName(_fromUtf8("verticalLayout_7")) self.verticalLayout = QtGui.QVBoxLayout() self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.gridLayout = QtGui.QGridLayout() self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.label_9 = QtGui.QLabel(self.widget) self.label_9.setObjectName(_fromUtf8("label_9")) self.gridLayout.addWidget(self.label_9, 1, 0, 1, 1) self.filledOnlyCB = QtGui.QCheckBox(self.widget) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.filledOnlyCB.setFont(font) self.filledOnlyCB.setObjectName(_fromUtf8("filledOnlyCB")) self.gridLayout.addWidget(self.filledOnlyCB, 1, 1, 1, 1) self.label_6 = QtGui.QLabel(self.widget) self.label_6.setObjectName(_fromUtf8("label_6")) self.gridLayout.addWidget(self.label_6, 0, 0, 1, 1) self.verticalLayout.addLayout(self.gridLayout) self.filledPeaksTable = QtGui.QTableWidget(self.widget) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.filledPeaksTable.setFont(font) self.filledPeaksTable.setObjectName(_fromUtf8("filledPeaksTable")) self.filledPeaksTable.setColumnCount(6) self.filledPeaksTable.setRowCount(0) item = QtGui.QTableWidgetItem() self.filledPeaksTable.setHorizontalHeaderItem(0, item) item = QtGui.QTableWidgetItem() self.filledPeaksTable.setHorizontalHeaderItem(1, item) item = QtGui.QTableWidgetItem() self.filledPeaksTable.setHorizontalHeaderItem(2, item) item = QtGui.QTableWidgetItem() self.filledPeaksTable.setHorizontalHeaderItem(3, item) item = QtGui.QTableWidgetItem() self.filledPeaksTable.setHorizontalHeaderItem(4, item) item = QtGui.QTableWidgetItem() self.filledPeaksTable.setHorizontalHeaderItem(5, item) self.verticalLayout.addWidget(self.filledPeaksTable) self.tabWidget = QtGui.QTabWidget(self.widget) self.tabWidget.setTabPosition(QtGui.QTabWidget.North) self.tabWidget.setObjectName(_fromUtf8("tabWidget")) self.tab_2 = QtGui.QWidget() self.tab_2.setObjectName(_fromUtf8("tab_2")) self.gridLayout_8 = QtGui.QGridLayout(self.tab_2) self.gridLayout_8.setObjectName(_fromUtf8("gridLayout_8")) self.intensityDistribution = GraphicsLayoutWidget(self.tab_2) self.intensityDistribution.setObjectName( _fromUtf8("intensityDistribution")) self.gridLayout_8.addWidget(self.intensityDistribution, 0, 0, 1, 1) self.tabWidget.addTab(self.tab_2, _fromUtf8("")) self.tab_3 = QtGui.QWidget() self.tab_3.setObjectName(_fromUtf8("tab_3")) self.gridLayout_7 = QtGui.QGridLayout(self.tab_3) self.gridLayout_7.setObjectName(_fromUtf8("gridLayout_7")) self.verticalLayout_6 = QtGui.QVBoxLayout() self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6")) self.peakDistributionLayout = GraphicsLayoutWidget(self.tab_3) self.peakDistributionLayout.setObjectName( _fromUtf8("peakDistributionLayout")) self.verticalLayout_6.addWidget(self.peakDistributionLayout) self.gridLayout_7.addLayout(self.verticalLayout_6, 0, 0, 1, 1) self.tabWidget.addTab(self.tab_3, _fromUtf8("")) self.tab_4 = QtGui.QWidget() self.tab_4.setObjectName(_fromUtf8("tab_4")) self.gridLayout_5 = QtGui.QGridLayout(self.tab_4) self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5")) self.assignmentCandidateTable = QtGui.QTableWidget(self.tab_4) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.assignmentCandidateTable.setFont(font) self.assignmentCandidateTable.setObjectName( _fromUtf8("assignmentCandidateTable")) self.assignmentCandidateTable.setColumnCount(3) self.assignmentCandidateTable.setRowCount(0) item = QtGui.QTableWidgetItem() self.assignmentCandidateTable.setHorizontalHeaderItem(0, item) item = QtGui.QTableWidgetItem() self.assignmentCandidateTable.setHorizontalHeaderItem(1, item) item = QtGui.QTableWidgetItem() self.assignmentCandidateTable.setHorizontalHeaderItem(2, item) self.gridLayout_5.addWidget(self.assignmentCandidateTable, 0, 0, 1, 1) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.acceptAssignment = QtGui.QPushButton(self.tab_4) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.acceptAssignment.setFont(font) self.acceptAssignment.setObjectName(_fromUtf8("acceptAssignment")) self.horizontalLayout.addWidget(self.acceptAssignment) self.clearAssignment = QtGui.QPushButton(self.tab_4) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.clearAssignment.setFont(font) self.clearAssignment.setObjectName(_fromUtf8("clearAssignment")) self.horizontalLayout.addWidget(self.clearAssignment) self.gridLayout_5.addLayout(self.horizontalLayout, 1, 0, 1, 1) self.tabWidget.addTab(self.tab_4, _fromUtf8("")) self.verticalLayout.addWidget(self.tabWidget) self.verticalLayout_7.addLayout(self.verticalLayout) self.gridLayout_2.addLayout(self.verticalLayout_7, 0, 1, 1, 1) self.gridLayout_4.addWidget(self.widget, 0, 0, 1, 1) DockWidget.setWidget(self.dockWidgetContents) self.retranslateUi(DockWidget) self.tabWidget.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(DockWidget) def retranslateUi(self, DockWidget): DockWidget.setWindowTitle( _translate("DockWidget", "Feature Inspector", None)) self.label_7.setText(_translate("DockWidget", "Annotation", None)) self.label_12.setText( _translate("DockWidget", "Annotation Candidates", None)) self.label_11.setText(_translate("DockWidget", "EIC", None)) self.selectedSampleOnly.setText( _translate("DockWidget", "Selected Only", None)) self.setIntegrationBoundaries.setText( _translate("DockWidget", "Reintegrate", None)) self.restoreDefaultIntegrationButton.setText( _translate("DockWidget", "Restore Default", None)) self.label_13.setText(_translate("DockWidget", "MS", None)) self.label_9.setText(_translate("DockWidget", "Filters:", None)) self.filledOnlyCB.setText(_translate("DockWidget", "Filled only", None)) self.label_6.setText(_translate("DockWidget", "Peaks", None)) item = self.filledPeaksTable.horizontalHeaderItem(0) item.setText(_translate("DockWidget", "#", None)) item = self.filledPeaksTable.horizontalHeaderItem(1) item.setText(_translate("DockWidget", "RT", None)) item = self.filledPeaksTable.horizontalHeaderItem(2) item.setText(_translate("DockWidget", "m/z", None)) item = self.filledPeaksTable.horizontalHeaderItem(3) item.setText(_translate("DockWidget", "IntO", None)) item = self.filledPeaksTable.horizontalHeaderItem(4) item.setText(_translate("DockWidget", "MaxO", None)) item = self.filledPeaksTable.horizontalHeaderItem(5) item.setText(_translate("DockWidget", "Filled", None)) self.tabWidget.setTabText( self.tabWidget.indexOf(self.tab_2), _translate("DockWidget", "Intensity Distribution", None)) self.tabWidget.setTabText( self.tabWidget.indexOf(self.tab_3), _translate("DockWidget", "Peak Distribution", None)) item = self.assignmentCandidateTable.horizontalHeaderItem(0) item.setText(_translate("DockWidget", "Name", None)) item = self.assignmentCandidateTable.horizontalHeaderItem(1) item.setText(_translate("DockWidget", "ppm Error", None)) item = self.assignmentCandidateTable.horizontalHeaderItem(2) item.setText(_translate("DockWidget", "RT Error", None)) self.acceptAssignment.setText( _translate("DockWidget", "Accept Selected Assignment", None)) self.clearAssignment.setText( _translate("DockWidget", "Clear Assignment", None)) self.tabWidget.setTabText( self.tabWidget.indexOf(self.tab_4), _translate("DockWidget", "Assignments", None))
class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(1280, 800) self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.gridLayout = QtWidgets.QGridLayout(self.centralwidget) self.gridLayout.setObjectName("gridLayout") self.splitter_3 = QtWidgets.QSplitter(self.centralwidget) self.splitter_3.setOrientation(QtCore.Qt.Horizontal) self.splitter_3.setObjectName("splitter_3") self.tabWidget = QtWidgets.QTabWidget(self.splitter_3) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(1) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.tabWidget.sizePolicy().hasHeightForWidth()) self.tabWidget.setSizePolicy(sizePolicy) self.tabWidget.setObjectName("tabWidget") self.widget = QtWidgets.QWidget() self.widget.setObjectName("widget") self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.widget) self.verticalLayout_2.setContentsMargins(0, 0, 0, 0) self.verticalLayout_2.setSpacing(0) self.verticalLayout_2.setObjectName("verticalLayout_2") self.treeWidget = QtWidgets.QTreeWidget(self.widget) self.treeWidget.setEnabled(True) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.treeWidget.sizePolicy().hasHeightForWidth()) self.treeWidget.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setFamily("Helvetica Neue") self.treeWidget.setFont(font) self.treeWidget.setAutoExpandDelay(-1) self.treeWidget.setColumnCount(8) self.treeWidget.setObjectName("treeWidget") self.treeWidget.headerItem().setText(0, "1") font = QtGui.QFont() font.setFamily("Helvetica Neue") font.setKerning(True) self.treeWidget.headerItem().setFont(0, font) self.treeWidget.headerItem().setText(1, "2") font = QtGui.QFont() font.setFamily("Helvetica Neue") self.treeWidget.headerItem().setFont(1, font) self.treeWidget.headerItem().setText(2, "3") font = QtGui.QFont() font.setFamily("Helvetica Neue") self.treeWidget.headerItem().setFont(2, font) self.treeWidget.headerItem().setText(3, "4") font = QtGui.QFont() font.setFamily("Helvetica Neue") self.treeWidget.headerItem().setFont(3, font) self.treeWidget.headerItem().setText(4, "5") self.treeWidget.headerItem().setText(5, "6") self.treeWidget.headerItem().setText(6, "7") self.treeWidget.headerItem().setText(7, "8") self.treeWidget.header().setDefaultSectionSize(50) self.treeWidget.header().setMinimumSectionSize(5) self.treeWidget.header().setSortIndicatorShown(True) self.verticalLayout_2.addWidget(self.treeWidget) self.tabWidget.addTab(self.widget, "") self.tabWidgetPage2 = QtWidgets.QWidget() self.tabWidgetPage2.setObjectName("tabWidgetPage2") self.verticalLayout = QtWidgets.QVBoxLayout(self.tabWidgetPage2) self.verticalLayout.setContentsMargins(0, 0, 0, 0) self.verticalLayout.setObjectName("verticalLayout") self.textBrowser_4 = QtWidgets.QTextBrowser(self.tabWidgetPage2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.textBrowser_4.sizePolicy().hasHeightForWidth()) self.textBrowser_4.setSizePolicy(sizePolicy) self.textBrowser_4.setBaseSize(QtCore.QSize(300, 0)) font = QtGui.QFont() font.setPointSize(10) self.textBrowser_4.setFont(font) self.textBrowser_4.setObjectName("textBrowser_4") self.verticalLayout.addWidget(self.textBrowser_4) self.tabWidget.addTab(self.tabWidgetPage2, "") self.splitter_2 = QtWidgets.QSplitter(self.splitter_3) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(100) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.splitter_2.sizePolicy().hasHeightForWidth()) self.splitter_2.setSizePolicy(sizePolicy) self.splitter_2.setOrientation(QtCore.Qt.Vertical) self.splitter_2.setObjectName("splitter_2") self.frame_5 = QtWidgets.QFrame(self.splitter_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(1) sizePolicy.setVerticalStretch(1) sizePolicy.setHeightForWidth(self.frame_5.sizePolicy().hasHeightForWidth()) self.frame_5.setSizePolicy(sizePolicy) self.frame_5.setMaximumSize(QtCore.QSize(16777215, 180)) self.frame_5.setFrameShape(QtWidgets.QFrame.StyledPanel) self.frame_5.setFrameShadow(QtWidgets.QFrame.Raised) self.frame_5.setObjectName("frame_5") self.horizontalLayout = QtWidgets.QHBoxLayout(self.frame_5) self.horizontalLayout.setSizeConstraint(QtWidgets.QLayout.SetMinimumSize) self.horizontalLayout.setContentsMargins(0, 0, 0, 0) self.horizontalLayout.setSpacing(0) self.horizontalLayout.setObjectName("horizontalLayout") self.frame_4 = QtWidgets.QFrame(self.frame_5) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(20) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.frame_4.sizePolicy().hasHeightForWidth()) self.frame_4.setSizePolicy(sizePolicy) self.frame_4.setFrameShape(QtWidgets.QFrame.Panel) self.frame_4.setFrameShadow(QtWidgets.QFrame.Raised) self.frame_4.setObjectName("frame_4") self.formLayout_3 = QtWidgets.QFormLayout(self.frame_4) self.formLayout_3.setFormAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop) self.formLayout_3.setContentsMargins(5, 44, 5, 5) self.formLayout_3.setObjectName("formLayout_3") self.label_6 = QtWidgets.QLabel(self.frame_4) self.label_6.setMaximumSize(QtCore.QSize(200, 16777215)) self.label_6.setLayoutDirection(QtCore.Qt.LeftToRight) self.label_6.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_6.setObjectName("label_6") self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_6) self.tid_spinBox = QtWidgets.QSpinBox(self.frame_4) self.tid_spinBox.setMaximumSize(QtCore.QSize(51, 16777215)) self.tid_spinBox.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop) self.tid_spinBox.setObjectName("tid_spinBox") self.tid_spinBox.setMaximum(500) self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.tid_spinBox) self.label_11 = QtWidgets.QLabel(self.frame_4) self.label_11.setLayoutDirection(QtCore.Qt.LeftToRight) self.label_11.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_11.setObjectName("label_11") self.formLayout_3.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_11) self.checkbox_hold_trace_position = QtWidgets.QCheckBox(self.frame_4) font = QtGui.QFont() font.setPointSize(8) self.checkbox_hold_trace_position.setFont(font) self.checkbox_hold_trace_position.setLayoutDirection(QtCore.Qt.LeftToRight) self.checkbox_hold_trace_position.setText("") self.checkbox_hold_trace_position.setObjectName("checkbox_hold_trace_position") self.formLayout_3.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.checkbox_hold_trace_position) self.horizontalLayout.addWidget(self.frame_4) self.frame = QtWidgets.QFrame(self.frame_5) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(20) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.frame.sizePolicy().hasHeightForWidth()) self.frame.setSizePolicy(sizePolicy) self.frame.setLayoutDirection(QtCore.Qt.LeftToRight) self.frame.setFrameShape(QtWidgets.QFrame.Panel) self.frame.setFrameShadow(QtWidgets.QFrame.Raised) self.frame.setObjectName("frame") self.formLayout_2 = QtWidgets.QFormLayout(self.frame) self.formLayout_2.setFieldGrowthPolicy(QtWidgets.QFormLayout.ExpandingFieldsGrow) self.formLayout_2.setFormAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop) self.formLayout_2.setContentsMargins(5, 5, 5, 5) self.formLayout_2.setHorizontalSpacing(5) self.formLayout_2.setObjectName("formLayout_2") self.hp_filter_freq = QtWidgets.QDoubleSpinBox(self.frame) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.hp_filter_freq.sizePolicy().hasHeightForWidth()) self.hp_filter_freq.setSizePolicy(sizePolicy) self.hp_filter_freq.setWrapping(False) self.hp_filter_freq.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.hp_filter_freq.setMaximum(512.0) self.hp_filter_freq.setProperty("value", 1.0) self.hp_filter_freq.setObjectName("hp_filter_freq") self.formLayout_2.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.hp_filter_freq) self.label_2 = QtWidgets.QLabel(self.frame) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_2.setFont(font) self.label_2.setLayoutDirection(QtCore.Qt.LeftToRight) self.label_2.setAlignment(QtCore.Qt.AlignCenter) self.label_2.setObjectName("label_2") self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_2) self.lp_filter_freq = QtWidgets.QDoubleSpinBox(self.frame) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lp_filter_freq.sizePolicy().hasHeightForWidth()) self.lp_filter_freq.setSizePolicy(sizePolicy) self.lp_filter_freq.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.lp_filter_freq.setMaximum(30000.0) self.lp_filter_freq.setProperty("value", 512.0) self.lp_filter_freq.setObjectName("lp_filter_freq") self.formLayout_2.setWidget(7, QtWidgets.QFormLayout.FieldRole, self.lp_filter_freq) self.checkbox_filter_toggle = QtWidgets.QCheckBox(self.frame) self.checkbox_filter_toggle.setLayoutDirection(QtCore.Qt.LeftToRight) self.checkbox_filter_toggle.setAutoFillBackground(True) self.checkbox_filter_toggle.setText("") self.checkbox_filter_toggle.setTristate(False) self.checkbox_filter_toggle.setObjectName("checkbox_filter_toggle") self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.checkbox_filter_toggle) self.checkbox_hp_filter = QtWidgets.QCheckBox(self.frame) self.checkbox_hp_filter.setObjectName("checkbox_hp_filter") self.formLayout_2.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.checkbox_hp_filter) self.checkbox_lp_filter = QtWidgets.QCheckBox(self.frame) self.checkbox_lp_filter.setObjectName("checkbox_lp_filter") self.formLayout_2.setWidget(7, QtWidgets.QFormLayout.LabelRole, self.checkbox_lp_filter) self.horizontalLayout.addWidget(self.frame) self.frame_2 = QtWidgets.QFrame(self.frame_5) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(20) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.frame_2.sizePolicy().hasHeightForWidth()) self.frame_2.setSizePolicy(sizePolicy) self.frame_2.setFrameShape(QtWidgets.QFrame.Panel) self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised) self.frame_2.setObjectName("frame_2") self.formLayout = QtWidgets.QFormLayout(self.frame_2) self.formLayout.setFieldGrowthPolicy(QtWidgets.QFormLayout.ExpandingFieldsGrow) self.formLayout.setFormAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop) self.formLayout.setContentsMargins(5, 5, 5, 5) self.formLayout.setHorizontalSpacing(5) self.formLayout.setObjectName("formLayout") self.label_7 = QtWidgets.QLabel(self.frame_2) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_7.setFont(font) self.label_7.setAlignment(QtCore.Qt.AlignCenter) self.label_7.setObjectName("label_7") self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_7) self.label_5 = QtWidgets.QLabel(self.frame_2) self.label_5.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_5.setObjectName("label_5") self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_5) self.xrange_spinBox = QtWidgets.QDoubleSpinBox(self.frame_2) self.xrange_spinBox.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop) self.xrange_spinBox.setMaximum(3600.0) self.xrange_spinBox.setObjectName("xrange_spinBox") self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.xrange_spinBox) self.label = QtWidgets.QLabel(self.frame_2) self.label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label.setObjectName("label") self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label) self.scroll_speed_box = QtWidgets.QSpinBox(self.frame_2) self.scroll_speed_box.setMinimum(1) self.scroll_speed_box.setObjectName("scroll_speed_box") self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.scroll_speed_box) self.label_10 = QtWidgets.QLabel(self.frame_2) self.label_10.setLayoutDirection(QtCore.Qt.LeftToRight) self.label_10.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_10.setObjectName("label_10") self.formLayout.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.label_10) self.checkBox_scrolling = QtWidgets.QCheckBox(self.frame_2) self.checkBox_scrolling.setLayoutDirection(QtCore.Qt.LeftToRight) self.checkBox_scrolling.setText("") self.checkBox_scrolling.setObjectName("checkBox_scrolling") self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.checkBox_scrolling) self.blink_box = QtWidgets.QCheckBox(self.frame_2) self.blink_box.setLayoutDirection(QtCore.Qt.LeftToRight) self.blink_box.setText("") self.blink_box.setObjectName("blink_box") self.formLayout.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.blink_box) self.horizontalLayout.addWidget(self.frame_2) self.frame_3 = QtWidgets.QFrame(self.frame_5) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(100) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.frame_3.sizePolicy().hasHeightForWidth()) self.frame_3.setSizePolicy(sizePolicy) self.frame_3.setFrameShape(QtWidgets.QFrame.Panel) self.frame_3.setFrameShadow(QtWidgets.QFrame.Raised) self.frame_3.setObjectName("frame_3") self.formLayout_4 = QtWidgets.QFormLayout(self.frame_3) self.formLayout_4.setFieldGrowthPolicy(QtWidgets.QFormLayout.ExpandingFieldsGrow) self.formLayout_4.setFormAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop) self.formLayout_4.setContentsMargins(5, 5, 5, 5) self.formLayout_4.setHorizontalSpacing(5) self.formLayout_4.setObjectName("formLayout_4") self.label_4 = QtWidgets.QLabel(self.frame_3) self.label_4.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter) self.label_4.setObjectName("label_4") self.formLayout_4.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_4) self.predictions_file_display = QtWidgets.QLineEdit(self.frame_3) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.predictions_file_display.sizePolicy().hasHeightForWidth()) self.predictions_file_display.setSizePolicy(sizePolicy) self.predictions_file_display.setObjectName("predictions_file_display") self.formLayout_4.setWidget(1, QtWidgets.QFormLayout.SpanningRole, self.predictions_file_display) self.label_3 = QtWidgets.QLabel(self.frame_3) self.label_3.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter) self.label_3.setObjectName("label_3") self.formLayout_4.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_3) self.h5_folder_display = QtWidgets.QLineEdit(self.frame_3) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.h5_folder_display.sizePolicy().hasHeightForWidth()) self.h5_folder_display.setSizePolicy(sizePolicy) self.h5_folder_display.setDragEnabled(True) self.h5_folder_display.setReadOnly(True) self.h5_folder_display.setCursorMoveStyle(QtCore.Qt.VisualMoveStyle) self.h5_folder_display.setObjectName("h5_folder_display") self.formLayout_4.setWidget(3, QtWidgets.QFormLayout.SpanningRole, self.h5_folder_display) self.horizontalLayout.addWidget(self.frame_3) self.splitter = QtWidgets.QSplitter(self.splitter_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(100) sizePolicy.setVerticalStretch(100) sizePolicy.setHeightForWidth(self.splitter.sizePolicy().hasHeightForWidth()) self.splitter.setSizePolicy(sizePolicy) self.splitter.setOrientation(QtCore.Qt.Vertical) self.splitter.setObjectName("splitter") self.overview_plot = GraphicsLayoutWidget(self.splitter) self.overview_plot.setBaseSize(QtCore.QSize(800, 300)) self.overview_plot.setObjectName("overview_plot") self.GraphicsLayoutWidget = GraphicsLayoutWidget(self.splitter) self.GraphicsLayoutWidget.setEnabled(True) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(10) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.GraphicsLayoutWidget.sizePolicy().hasHeightForWidth()) self.GraphicsLayoutWidget.setSizePolicy(sizePolicy) self.GraphicsLayoutWidget.setBaseSize(QtCore.QSize(800, 300)) self.GraphicsLayoutWidget.setObjectName("GraphicsLayoutWidget") self.gridLayout.addWidget(self.splitter_3, 0, 0, 1, 1) MainWindow.setCentralWidget(self.centralwidget) self.menuBar = QtWidgets.QMenuBar(MainWindow) self.menuBar.setGeometry(QtCore.QRect(0, 0, 1280, 31)) self.menuBar.setObjectName("menuBar") self.menuFile = QtWidgets.QMenu(self.menuBar) self.menuFile.setObjectName("menuFile") self.menuAnalyse = QtWidgets.QMenu(self.menuBar) self.menuAnalyse.setObjectName("menuAnalyse") MainWindow.setMenuBar(self.menuBar) self.actionSave_annotations = QtWidgets.QAction(MainWindow) self.actionSave_annotations.setObjectName("actionSave_annotations") self.actionLoad_Library = QtWidgets.QAction(MainWindow) self.actionLoad_Library.setObjectName("actionLoad_Library") self.actionLoad_Predictions = QtWidgets.QAction(MainWindow) self.actionLoad_Predictions.setObjectName("actionLoad_Predictions") self.actionLoad_h5_folder = QtWidgets.QAction(MainWindow) self.actionLoad_h5_folder.setObjectName("actionLoad_h5_folder") self.actionConvert_dir_to_h5 = QtWidgets.QAction(MainWindow) self.actionConvert_dir_to_h5.setObjectName("actionConvert_dir_to_h5") self.actionConvert_ndf_to_h5 = QtWidgets.QAction(MainWindow) self.actionConvert_ndf_to_h5.setObjectName("actionConvert_ndf_to_h5") self.actionLibrary_logistics = QtWidgets.QAction(MainWindow) self.actionLibrary_logistics.setObjectName("actionLibrary_logistics") self.actionAdd_to_library = QtWidgets.QAction(MainWindow) self.actionAdd_to_library.setObjectName("actionAdd_to_library") self.actionAdd_labels_to_library = QtWidgets.QAction(MainWindow) self.actionAdd_labels_to_library.setObjectName("actionAdd_labels_to_library") self.actionAdd_features_to_library = QtWidgets.QAction(MainWindow) self.actionAdd_features_to_library.setObjectName("actionAdd_features_to_library") self.actionClassifier_components = QtWidgets.QAction(MainWindow) self.actionClassifier_components.setObjectName("actionClassifier_components") self.actionRun_classifer_on_h5_dir = QtWidgets.QAction(MainWindow) self.actionRun_classifer_on_h5_dir.setObjectName("actionRun_classifer_on_h5_dir") self.actionRun_classifer_on_ndf_dir = QtWidgets.QAction(MainWindow) self.actionRun_classifer_on_ndf_dir.setObjectName("actionRun_classifer_on_ndf_dir") self.actionSet_default_folder = QtWidgets.QAction(MainWindow) self.actionSet_default_folder.setObjectName("actionSet_default_folder") self.actionAdd_features_to_h5_folder = QtWidgets.QAction(MainWindow) self.actionAdd_features_to_h5_folder.setObjectName("actionAdd_features_to_h5_folder") self.actionFolder_for_substates = QtWidgets.QAction(MainWindow) self.actionFolder_for_substates.setObjectName("actionFolder_for_substates") self.actionSubstates_Window = QtWidgets.QAction(MainWindow) self.actionSubstates_Window.setObjectName("actionSubstates_Window") self.actionOpen_in_Jupyter_notebook = QtWidgets.QAction(MainWindow) self.actionOpen_in_Jupyter_notebook.setObjectName("actionOpen_in_Jupyter_notebook") self.menuFile.addAction(self.actionLoad_Library) self.menuFile.addAction(self.actionLoad_Predictions) self.menuFile.addAction(self.actionLoad_h5_folder) self.menuFile.addSeparator() self.menuFile.addAction(self.actionSave_annotations) self.menuFile.addAction(self.actionSet_default_folder) self.menuFile.addSeparator() self.menuFile.addAction(self.actionSubstates_Window) self.menuAnalyse.addAction(self.actionConvert_ndf_to_h5) self.menuAnalyse.addSeparator() self.menuAnalyse.addAction(self.actionAdd_features_to_h5_folder) self.menuAnalyse.addSeparator() self.menuAnalyse.addAction(self.actionLibrary_logistics) self.menuAnalyse.addSeparator() self.menuAnalyse.addAction(self.actionClassifier_components) self.menuAnalyse.addSeparator() self.menuAnalyse.addSeparator() self.menuAnalyse.addAction(self.actionOpen_in_Jupyter_notebook) self.menuBar.addAction(self.menuFile.menuAction()) self.menuBar.addAction(self.menuAnalyse.menuAction()) self.retranslateUi(MainWindow) self.tabWidget.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): _translate = QtCore.QCoreApplication.translate MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.widget), _translate("MainWindow", "File list")) self.textBrowser_4.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" "p, li { white-space: pre-wrap; }\n" "</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:10pt; font-weight:400; font-style:normal;\">\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:11pt; font-weight:600;\">Mouse functionality and keyboard shortcuts</span></p>\n" "<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:11pt; font-weight:600;\"><br /></p>\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:11pt;\">Mouse: Scroll when hovering over either axis in the main plot to zoom that axis only. Scrolling when in the middle will zoom both axes at the same time - you probably don\'t want that.</span></p>\n" "<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:11pt;\">Up arrow: Zoom in / speed up </span></p>\n" "<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:11pt;\">Down arrow: Zoom out / slow down </span></p>\n" "<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:11pt;\">Right arrow: Step right / scroll forwards </span></p>\n" "<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:11pt;\">Left arrow: Step left / scroll backwards</span></p>\n" "<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:11pt;\">Numbers: Set plot time interval </span></p>\n" "<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:11pt;\">B key: Toggle blink vs scroll </span></p>\n" "<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:11pt;\">Space bar: Start scrolling (or blinking)</span></p>\n" "<p style=\"-qt-paragraph-type:empty; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:11pt;\"><br /></p>\n" "<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:11pt;\">Left click + Shift: Mark start of an event in uppper window</span></p>\n" "<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:11pt;\">Left click + Alt: Mark end of event</span></p></body></html>")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabWidgetPage2), _translate("MainWindow", "Help")) self.label_6.setText(_translate("MainWindow", " TID: ")) self.label_11.setText(_translate("MainWindow", "Hold position:")) self.label_2.setText(_translate("MainWindow", "Filter (Hz)")) self.checkbox_hp_filter.setText(_translate("MainWindow", "High pass")) self.checkbox_lp_filter.setText(_translate("MainWindow", "Low pass")) self.label_7.setText(_translate("MainWindow", "Scrolling")) self.label_5.setText(_translate("MainWindow", "X range (s):")) self.label.setText(_translate("MainWindow", "Scroll speed:")) self.label_10.setText(_translate("MainWindow", "Blinking:")) self.label_4.setText(_translate("MainWindow", " h5 folder:")) self.label_3.setText(_translate("MainWindow", " Annotation file:")) self.menuFile.setTitle(_translate("MainWindow", "File")) self.menuAnalyse.setTitle(_translate("MainWindow", "Analyse")) self.actionSave_annotations.setText(_translate("MainWindow", "Save annotations")) self.actionLoad_Library.setText(_translate("MainWindow", "Load Library")) self.actionLoad_Predictions.setText(_translate("MainWindow", "Load Predictions")) self.actionLoad_h5_folder.setText(_translate("MainWindow", "Load h5 folder")) self.actionConvert_dir_to_h5.setText(_translate("MainWindow", "Convert dir to h5")) self.actionConvert_ndf_to_h5.setText(_translate("MainWindow", "Convert ndf folder to h5")) self.actionLibrary_logistics.setText(_translate("MainWindow", "Library logistics")) self.actionAdd_to_library.setText(_translate("MainWindow", "Add to library")) self.actionAdd_labels_to_library.setText(_translate("MainWindow", "Add labels to library")) self.actionAdd_features_to_library.setText(_translate("MainWindow", "Add features to library")) self.actionClassifier_components.setText(_translate("MainWindow", "Classifier components")) self.actionRun_classifer_on_h5_dir.setText(_translate("MainWindow", "Run classifer on h5 dir")) self.actionRun_classifer_on_ndf_dir.setText(_translate("MainWindow", "Run classifer on ndf dir")) self.actionSet_default_folder.setText(_translate("MainWindow", "Set default folder")) self.actionAdd_features_to_h5_folder.setText(_translate("MainWindow", "Add features to h5 folder")) self.actionFolder_for_substates.setText(_translate("MainWindow", "Folder for substates")) self.actionSubstates_Window.setText(_translate("MainWindow", "Substates Window")) self.actionOpen_in_Jupyter_notebook.setText(_translate("MainWindow", "Open in Jupyter notebook"))
class Ui_mainWindow(object): def setupUi(self, mainWindow): mainWindow.setObjectName("mainWindow") mainWindow.resize(1550, 871) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(mainWindow.sizePolicy().hasHeightForWidth()) mainWindow.setSizePolicy(sizePolicy) self.centralwidget = QtWidgets.QWidget(mainWindow) self.centralwidget.setObjectName("centralwidget") self.horizontalLayout = QtWidgets.QHBoxLayout(self.centralwidget) self.horizontalLayout.setObjectName("horizontalLayout") self.browserColumn = QtWidgets.QVBoxLayout() self.browserColumn.setSpacing(1) self.browserColumn.setObjectName("browserColumn") self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setSpacing(5) self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.dayBrowserBox = QtWidgets.QGroupBox(self.centralwidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.dayBrowserBox.sizePolicy().hasHeightForWidth()) self.dayBrowserBox.setSizePolicy(sizePolicy) self.dayBrowserBox.setMaximumSize(QtCore.QSize(170, 500)) self.dayBrowserBox.setObjectName("dayBrowserBox") self.verticalLayout = QtWidgets.QVBoxLayout(self.dayBrowserBox) self.verticalLayout.setObjectName("verticalLayout") self.dayBrowserDateLayout = QtWidgets.QHBoxLayout() self.dayBrowserDateLayout.setSizeConstraint(QtWidgets.QLayout.SetDefaultConstraint) self.dayBrowserDateLayout.setSpacing(1) self.dayBrowserDateLayout.setObjectName("dayBrowserDateLayout") self.dateEdit = QtWidgets.QDateEdit(self.dayBrowserBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.dateEdit.sizePolicy().hasHeightForWidth()) self.dateEdit.setSizePolicy(sizePolicy) self.dateEdit.setMinimumSize(QtCore.QSize(101, 0)) self.dateEdit.setObjectName("dateEdit") self.dayBrowserDateLayout.addWidget(self.dateEdit) self.todayButton = QtWidgets.QPushButton(self.dayBrowserBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.todayButton.sizePolicy().hasHeightForWidth()) self.todayButton.setSizePolicy(sizePolicy) self.todayButton.setMinimumSize(QtCore.QSize(41, 0)) self.todayButton.setMaximumSize(QtCore.QSize(41, 16777215)) self.todayButton.setObjectName("todayButton") self.dayBrowserDateLayout.addWidget(self.todayButton) self.verticalLayout.addLayout(self.dayBrowserDateLayout) self.dayBrowserListLayout = QtWidgets.QHBoxLayout() self.dayBrowserListLayout.setObjectName("dayBrowserListLayout") self.yearList = QtWidgets.QListWidget(self.dayBrowserBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.yearList.sizePolicy().hasHeightForWidth()) self.yearList.setSizePolicy(sizePolicy) self.yearList.setMinimumSize(QtCore.QSize(61, 0)) self.yearList.setMaximumSize(QtCore.QSize(61, 16777215)) self.yearList.setObjectName("yearList") self.dayBrowserListLayout.addWidget(self.yearList) self.monthList = QtWidgets.QListWidget(self.dayBrowserBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.monthList.sizePolicy().hasHeightForWidth()) self.monthList.setSizePolicy(sizePolicy) self.monthList.setMinimumSize(QtCore.QSize(31, 0)) self.monthList.setMaximumSize(QtCore.QSize(31, 16777215)) self.monthList.setObjectName("monthList") self.dayBrowserListLayout.addWidget(self.monthList) self.dayList = QtWidgets.QListWidget(self.dayBrowserBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.dayList.sizePolicy().hasHeightForWidth()) self.dayList.setSizePolicy(sizePolicy) self.dayList.setMinimumSize(QtCore.QSize(31, 0)) self.dayList.setMaximumSize(QtCore.QSize(31, 16777215)) self.dayList.setObjectName("dayList") self.dayBrowserListLayout.addWidget(self.dayList) self.verticalLayout.addLayout(self.dayBrowserListLayout) self.horizontalLayout_3.addWidget(self.dayBrowserBox) self.settingsTabWidget = QtWidgets.QTabWidget(self.centralwidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.settingsTabWidget.sizePolicy().hasHeightForWidth()) self.settingsTabWidget.setSizePolicy(sizePolicy) self.settingsTabWidget.setMaximumSize(QtCore.QSize(285, 16777215)) self.settingsTabWidget.setObjectName("settingsTabWidget") self.settingsDataTab = QtWidgets.QWidget() self.settingsDataTab.setObjectName("settingsDataTab") self.gridLayout_2 = QtWidgets.QGridLayout(self.settingsDataTab) self.gridLayout_2.setObjectName("gridLayout_2") self.label = QtWidgets.QLabel(self.settingsDataTab) self.label.setObjectName("label") self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1) self.label_3 = QtWidgets.QLabel(self.settingsDataTab) self.label_3.setObjectName("label_3") self.gridLayout_2.addWidget(self.label_3, 2, 0, 1, 1) self.scaleMinEdit = QtWidgets.QLineEdit(self.settingsDataTab) self.scaleMinEdit.setObjectName("scaleMinEdit") self.gridLayout_2.addWidget(self.scaleMinEdit, 2, 1, 1, 1) self.autoScaleCheckBox = QtWidgets.QCheckBox(self.settingsDataTab) self.autoScaleCheckBox.setTristate(False) self.autoScaleCheckBox.setObjectName("autoScaleCheckBox") self.gridLayout_2.addWidget(self.autoScaleCheckBox, 3, 0, 1, 1) self.scaleMaxEdit = QtWidgets.QLineEdit(self.settingsDataTab) self.scaleMaxEdit.setObjectName("scaleMaxEdit") self.gridLayout_2.addWidget(self.scaleMaxEdit, 2, 2, 1, 1) self.colorMapComboBox = QtWidgets.QComboBox(self.settingsDataTab) self.colorMapComboBox.setObjectName("colorMapComboBox") self.gridLayout_2.addWidget(self.colorMapComboBox, 1, 1, 1, 2) self.dataTypeComboBox = QtWidgets.QComboBox(self.settingsDataTab) self.dataTypeComboBox.setObjectName("dataTypeComboBox") self.gridLayout_2.addWidget(self.dataTypeComboBox, 0, 1, 1, 2) self.label_2 = QtWidgets.QLabel(self.settingsDataTab) self.label_2.setObjectName("label_2") self.gridLayout_2.addWidget(self.label_2, 1, 0, 1, 1) self.settingsTabWidget.addTab(self.settingsDataTab, "") self.settingsFitTab = QtWidgets.QWidget() self.settingsFitTab.setObjectName("settingsFitTab") self.fitButton = QtWidgets.QPushButton(self.settingsFitTab) self.fitButton.setGeometry(QtCore.QRect(10, 180, 101, 41)) self.fitButton.setObjectName("fitButton") self.label_10 = QtWidgets.QLabel(self.settingsFitTab) self.label_10.setGeometry(QtCore.QRect(130, 170, 51, 23)) self.label_10.setObjectName("label_10") self.selectRoiComboBox = QtWidgets.QComboBox(self.settingsFitTab) self.selectRoiComboBox.setGeometry(QtCore.QRect(120, 20, 151, 23)) self.selectRoiComboBox.setObjectName("selectRoiComboBox") self.addRoiButton = QtWidgets.QPushButton(self.settingsFitTab) self.addRoiButton.setGeometry(QtCore.QRect(10, 10, 91, 23)) self.addRoiButton.setObjectName("addRoiButton") self.fitTypeComboBox = QtWidgets.QComboBox(self.settingsFitTab) self.fitTypeComboBox.setGeometry(QtCore.QRect(130, 190, 121, 23)) self.fitTypeComboBox.setObjectName("fitTypeComboBox") self.backgroundCheckBox = QtWidgets.QCheckBox(self.settingsFitTab) self.backgroundCheckBox.setGeometry(QtCore.QRect(10, 140, 101, 21)) self.backgroundCheckBox.setObjectName("backgroundCheckBox") self.deleteRoiButton = QtWidgets.QPushButton(self.settingsFitTab) self.deleteRoiButton.setGeometry(QtCore.QRect(10, 70, 91, 23)) self.deleteRoiButton.setObjectName("deleteRoiButton") self.resetRoiButton = QtWidgets.QPushButton(self.settingsFitTab) self.resetRoiButton.setGeometry(QtCore.QRect(10, 100, 91, 23)) self.resetRoiButton.setObjectName("resetRoiButton") self.renameRoiButton = QtWidgets.QPushButton(self.settingsFitTab) self.renameRoiButton.setGeometry(QtCore.QRect(10, 40, 91, 23)) self.renameRoiButton.setObjectName("renameRoiButton") self.label_11 = QtWidgets.QLabel(self.settingsFitTab) self.label_11.setGeometry(QtCore.QRect(120, 0, 71, 23)) self.label_11.setObjectName("label_11") self.settingsTabWidget.addTab(self.settingsFitTab, "") self.horizontalLayout_3.addWidget(self.settingsTabWidget) self.browserColumn.addLayout(self.horizontalLayout_3) self.runBrowserBox = QtWidgets.QGroupBox(self.centralwidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.runBrowserBox.sizePolicy().hasHeightForWidth()) self.runBrowserBox.setSizePolicy(sizePolicy) self.runBrowserBox.setMaximumSize(QtCore.QSize(460, 16777215)) self.runBrowserBox.setObjectName("runBrowserBox") self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.runBrowserBox) self.verticalLayout_2.setObjectName("verticalLayout_2") self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.seqList = QtWidgets.QListWidget(self.runBrowserBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.seqList.sizePolicy().hasHeightForWidth()) self.seqList.setSizePolicy(sizePolicy) self.seqList.setObjectName("seqList") self.gridLayout.addWidget(self.seqList, 1, 0, 1, 1) self.runList = QtWidgets.QListWidget(self.runBrowserBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.runList.sizePolicy().hasHeightForWidth()) self.runList.setSizePolicy(sizePolicy) self.runList.setObjectName("runList") self.gridLayout.addWidget(self.runList, 1, 1, 1, 1) self.label_5 = QtWidgets.QLabel(self.runBrowserBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_5.sizePolicy().hasHeightForWidth()) self.label_5.setSizePolicy(sizePolicy) self.label_5.setObjectName("label_5") self.gridLayout.addWidget(self.label_5, 0, 1, 1, 1) self.label_6 = QtWidgets.QLabel(self.runBrowserBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_6.sizePolicy().hasHeightForWidth()) self.label_6.setSizePolicy(sizePolicy) self.label_6.setObjectName("label_6") self.gridLayout.addWidget(self.label_6, 0, 2, 1, 1) self.label_4 = QtWidgets.QLabel(self.runBrowserBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_4.sizePolicy().hasHeightForWidth()) self.label_4.setSizePolicy(sizePolicy) self.label_4.setObjectName("label_4") self.gridLayout.addWidget(self.label_4, 0, 0, 1, 1) self.setList = QtWidgets.QListWidget(self.runBrowserBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.setList.sizePolicy().hasHeightForWidth()) self.setList.setSizePolicy(sizePolicy) self.setList.setObjectName("setList") self.gridLayout.addWidget(self.setList, 1, 2, 1, 1) self.horizontalLayout_9 = QtWidgets.QHBoxLayout() self.horizontalLayout_9.setObjectName("horizontalLayout_9") self.gridLayout.addLayout(self.horizontalLayout_9, 2, 1, 1, 1) self.verticalLayout_2.addLayout(self.gridLayout) self.refreshRunListButton = QtWidgets.QPushButton(self.runBrowserBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.refreshRunListButton.sizePolicy().hasHeightForWidth()) self.refreshRunListButton.setSizePolicy(sizePolicy) self.refreshRunListButton.setObjectName("refreshRunListButton") self.verticalLayout_2.addWidget(self.refreshRunListButton) self.browserButtonsLayout = QtWidgets.QHBoxLayout() self.browserButtonsLayout.setObjectName("browserButtonsLayout") self.deleteFitButton = QtWidgets.QPushButton(self.runBrowserBox) self.deleteFitButton.setMaximumSize(QtCore.QSize(60, 16777215)) self.deleteFitButton.setObjectName("deleteFitButton") self.browserButtonsLayout.addWidget(self.deleteFitButton) spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum) self.browserButtonsLayout.addItem(spacerItem) self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.dataSetToolButton = QtWidgets.QToolButton(self.runBrowserBox) self.dataSetToolButton.setObjectName("dataSetToolButton") self.horizontalLayout_4.addWidget(self.dataSetToolButton) self.browserButtonsLayout.addLayout(self.horizontalLayout_4) self.verticalLayout_2.addLayout(self.browserButtonsLayout) self.progressBar = QtWidgets.QProgressBar(self.runBrowserBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.progressBar.sizePolicy().hasHeightForWidth()) self.progressBar.setSizePolicy(sizePolicy) self.progressBar.setMaximumSize(QtCore.QSize(16777215, 20)) self.progressBar.setMaximum(100) self.progressBar.setProperty("value", 100) self.progressBar.setTextVisible(False) self.progressBar.setObjectName("progressBar") self.verticalLayout_2.addWidget(self.progressBar) self.browserColumn.addWidget(self.runBrowserBox) self.horizontalLayout.addLayout(self.browserColumn) self.screenColumn = QtWidgets.QVBoxLayout() self.screenColumn.setObjectName("screenColumn") self.mainScreen = GraphicsLayoutWidget(self.centralwidget) self.mainScreen.setObjectName("mainScreen") self.screenColumn.addWidget(self.mainScreen) self.dataAnalysisTabWidget = QtWidgets.QTabWidget(self.centralwidget) self.dataAnalysisTabWidget.setMaximumSize(QtCore.QSize(16777215, 220)) self.dataAnalysisTabWidget.setObjectName("dataAnalysisTabWidget") self.quickAnalysisTab = QtWidgets.QWidget() self.quickAnalysisTab.setObjectName("quickAnalysisTab") self.groupBox = QtWidgets.QGroupBox(self.quickAnalysisTab) self.groupBox.setGeometry(QtCore.QRect(90, 10, 381, 171)) font = QtGui.QFont() font.setPointSize(11) font.setBold(False) font.setWeight(50) self.groupBox.setFont(font) self.groupBox.setObjectName("groupBox") self.gridLayoutWidget_2 = QtWidgets.QWidget(self.groupBox) self.gridLayoutWidget_2.setGeometry(QtCore.QRect(10, 30, 361, 146)) self.gridLayoutWidget_2.setObjectName("gridLayoutWidget_2") self.gridLayout_5 = QtWidgets.QGridLayout(self.gridLayoutWidget_2) self.gridLayout_5.setContentsMargins(0, 0, 0, 0) self.gridLayout_5.setObjectName("gridLayout_5") self.quickPlotYToolButton = QtWidgets.QToolButton(self.gridLayoutWidget_2) self.quickPlotYToolButton.setObjectName("quickPlotYToolButton") self.gridLayout_5.addWidget(self.quickPlotYToolButton, 1, 0, 1, 1, QtCore.Qt.AlignHCenter) self.quickPlotPlotbyLabel = QtWidgets.QLabel(self.gridLayoutWidget_2) self.quickPlotPlotbyLabel.setObjectName("quickPlotPlotbyLabel") self.gridLayout_5.addWidget(self.quickPlotPlotbyLabel, 2, 2, 1, 1) self.quickPlotButton = QtWidgets.QPushButton(self.gridLayoutWidget_2) self.quickPlotButton.setObjectName("quickPlotButton") self.gridLayout_5.addWidget(self.quickPlotButton, 0, 2, 1, 1) self.quickPlotXToolButton = QtWidgets.QToolButton(self.gridLayoutWidget_2) self.quickPlotXToolButton.setObjectName("quickPlotXToolButton") self.gridLayout_5.addWidget(self.quickPlotXToolButton, 0, 0, 1, 1, QtCore.Qt.AlignHCenter) self.quickPlotYLabel = QtWidgets.QLabel(self.gridLayoutWidget_2) self.quickPlotYLabel.setObjectName("quickPlotYLabel") self.gridLayout_5.addWidget(self.quickPlotYLabel, 1, 1, 1, 1) self.quickPlotXLabel = QtWidgets.QLabel(self.gridLayoutWidget_2) self.quickPlotXLabel.setObjectName("quickPlotXLabel") self.gridLayout_5.addWidget(self.quickPlotXLabel, 0, 1, 1, 1) self.quickPlotPlotbyToolButton = QtWidgets.QToolButton(self.gridLayoutWidget_2) self.quickPlotPlotbyToolButton.setObjectName("quickPlotPlotbyToolButton") self.gridLayout_5.addWidget(self.quickPlotPlotbyToolButton, 2, 1, 1, 1, QtCore.Qt.AlignHCenter) self.quickPlotPlotByBox = QtWidgets.QCheckBox(self.gridLayoutWidget_2) self.quickPlotPlotByBox.setEnabled(True) self.quickPlotPlotByBox.setTristate(False) self.quickPlotPlotByBox.setObjectName("quickPlotPlotByBox") self.gridLayout_5.addWidget(self.quickPlotPlotByBox, 2, 0, 1, 1) self.quickPlotEnableFitBox = QtWidgets.QCheckBox(self.gridLayoutWidget_2) self.quickPlotEnableFitBox.setObjectName("quickPlotEnableFitBox") self.gridLayout_5.addWidget(self.quickPlotEnableFitBox, 3, 0, 1, 1) self.quickPlotFitLabel = QtWidgets.QLabel(self.gridLayoutWidget_2) self.quickPlotFitLabel.setObjectName("quickPlotFitLabel") self.gridLayout_5.addWidget(self.quickPlotFitLabel, 3, 2, 1, 1) self.quickPlotFitToolButton = QtWidgets.QToolButton(self.gridLayoutWidget_2) self.quickPlotFitToolButton.setObjectName("quickPlotFitToolButton") self.gridLayout_5.addWidget(self.quickPlotFitToolButton, 3, 1, 1, 1, QtCore.Qt.AlignHCenter) self.gridLayout_5.setColumnStretch(1, 2) self.gridLayout_5.setColumnStretch(2, 2) self.groupBox_2 = QtWidgets.QGroupBox(self.quickAnalysisTab) self.groupBox_2.setGeometry(QtCore.QRect(480, 10, 311, 171)) font = QtGui.QFont() font.setPointSize(11) font.setBold(False) font.setWeight(50) self.groupBox_2.setFont(font) self.groupBox_2.setObjectName("groupBox_2") self.gridLayoutWidget = QtWidgets.QWidget(self.groupBox_2) self.gridLayoutWidget.setGeometry(QtCore.QRect(10, 30, 291, 131)) self.gridLayoutWidget.setObjectName("gridLayoutWidget") self.gridLayout_4 = QtWidgets.QGridLayout(self.gridLayoutWidget) self.gridLayout_4.setContentsMargins(0, 0, 0, 0) self.gridLayout_4.setObjectName("gridLayout_4") self.quickPlot2DXLabel = QtWidgets.QLabel(self.gridLayoutWidget) self.quickPlot2DXLabel.setObjectName("quickPlot2DXLabel") self.gridLayout_4.addWidget(self.quickPlot2DXLabel, 0, 1, 1, 1) self.quickPlot2DYLabel = QtWidgets.QLabel(self.gridLayoutWidget) self.quickPlot2DYLabel.setObjectName("quickPlot2DYLabel") self.gridLayout_4.addWidget(self.quickPlot2DYLabel, 1, 1, 1, 1) self.quickPlot2DXToolButton = QtWidgets.QToolButton(self.gridLayoutWidget) self.quickPlot2DXToolButton.setObjectName("quickPlot2DXToolButton") self.gridLayout_4.addWidget(self.quickPlot2DXToolButton, 0, 0, 1, 1) self.quickPlot2DYToolButton = QtWidgets.QToolButton(self.gridLayoutWidget) self.quickPlot2DYToolButton.setEnabled(True) self.quickPlot2DYToolButton.setObjectName("quickPlot2DYToolButton") self.gridLayout_4.addWidget(self.quickPlot2DYToolButton, 1, 0, 1, 1) self.quickPlot2DZToolButton = QtWidgets.QToolButton(self.gridLayoutWidget) self.quickPlot2DZToolButton.setObjectName("quickPlot2DZToolButton") self.gridLayout_4.addWidget(self.quickPlot2DZToolButton, 2, 0, 1, 1) self.quickPlot2DZLabel = QtWidgets.QLabel(self.gridLayoutWidget) self.quickPlot2DZLabel.setObjectName("quickPlot2DZLabel") self.gridLayout_4.addWidget(self.quickPlot2DZLabel, 2, 1, 1, 1) self.quickPlot2DButton = QtWidgets.QPushButton(self.gridLayoutWidget) self.quickPlot2DButton.setMaximumSize(QtCore.QSize(136, 16777215)) self.quickPlot2DButton.setObjectName("quickPlot2DButton") self.gridLayout_4.addWidget(self.quickPlot2DButton, 1, 2, 1, 1) self.plottingOptionsButton = QtWidgets.QPushButton(self.gridLayoutWidget) self.plottingOptionsButton.setObjectName("plottingOptionsButton") self.gridLayout_4.addWidget(self.plottingOptionsButton, 2, 2, 1, 1) self.gridLayout_4.setColumnStretch(0, 2) self.gridLayout_4.setColumnStretch(1, 1) self.quickStatsButton = QtWidgets.QPushButton(self.quickAnalysisTab) self.quickStatsButton.setGeometry(QtCore.QRect(10, 80, 71, 31)) self.quickStatsButton.setObjectName("quickStatsButton") self.dataAnalysisTabWidget.addTab(self.quickAnalysisTab, "") self.advancedAnalysisTab = QtWidgets.QWidget() self.advancedAnalysisTab.setObjectName("advancedAnalysisTab") self.variableDeclarationTable = QtWidgets.QTableWidget(self.advancedAnalysisTab) self.variableDeclarationTable.setGeometry(QtCore.QRect(10, 32, 250, 151)) self.variableDeclarationTable.setObjectName("variableDeclarationTable") self.variableDeclarationTable.setColumnCount(0) self.variableDeclarationTable.setRowCount(0) self.subplotContentTable = QtWidgets.QTableWidget(self.advancedAnalysisTab) self.subplotContentTable.setGeometry(QtCore.QRect(489, 32, 271, 151)) self.subplotContentTable.setObjectName("subplotContentTable") self.subplotContentTable.setColumnCount(0) self.subplotContentTable.setRowCount(0) self.subplotSetupTable = QtWidgets.QTableWidget(self.advancedAnalysisTab) self.subplotSetupTable.setGeometry(QtCore.QRect(280, 32, 191, 101)) self.subplotSetupTable.setObjectName("subplotSetupTable") self.subplotSetupTable.setColumnCount(0) self.subplotSetupTable.setRowCount(0) self.horizontalLayoutWidget = QtWidgets.QWidget(self.advancedAnalysisTab) self.horizontalLayoutWidget.setGeometry(QtCore.QRect(10, 0, 339, 31)) self.horizontalLayoutWidget.setObjectName("horizontalLayoutWidget") self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget) self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0) self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.advancedPlotSelectionBox = QtWidgets.QComboBox(self.horizontalLayoutWidget) self.advancedPlotSelectionBox.setObjectName("advancedPlotSelectionBox") self.horizontalLayout_2.addWidget(self.advancedPlotSelectionBox) self.advancedPlotSaveButton = QtWidgets.QPushButton(self.horizontalLayoutWidget) self.advancedPlotSaveButton.setMaximumSize(QtCore.QSize(50, 16777215)) self.advancedPlotSaveButton.setObjectName("advancedPlotSaveButton") self.horizontalLayout_2.addWidget(self.advancedPlotSaveButton) self.advancedPlotSaveAsButton = QtWidgets.QPushButton(self.horizontalLayoutWidget) self.advancedPlotSaveAsButton.setMaximumSize(QtCore.QSize(70, 16777215)) self.advancedPlotSaveAsButton.setObjectName("advancedPlotSaveAsButton") self.horizontalLayout_2.addWidget(self.advancedPlotSaveAsButton) self.advancedPlotDeleteButton = QtWidgets.QPushButton(self.horizontalLayoutWidget) self.advancedPlotDeleteButton.setMaximumSize(QtCore.QSize(50, 16777215)) self.advancedPlotDeleteButton.setObjectName("advancedPlotDeleteButton") self.horizontalLayout_2.addWidget(self.advancedPlotDeleteButton) self.horizontalLayoutWidget_2 = QtWidgets.QWidget(self.advancedAnalysisTab) self.horizontalLayoutWidget_2.setGeometry(QtCore.QRect(490, 0, 300, 31)) self.horizontalLayoutWidget_2.setObjectName("horizontalLayoutWidget_2") self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget_2) self.horizontalLayout_7.setContentsMargins(0, 0, 0, 0) self.horizontalLayout_7.setObjectName("horizontalLayout_7") self.advancedStatButton = QtWidgets.QPushButton(self.horizontalLayoutWidget_2) self.advancedStatButton.setObjectName("advancedStatButton") self.horizontalLayout_7.addWidget(self.advancedStatButton) self.exportDataButton = QtWidgets.QPushButton(self.horizontalLayoutWidget_2) self.exportDataButton.setObjectName("exportDataButton") self.horizontalLayout_7.addWidget(self.exportDataButton) self.exportToMatplotlibButton = QtWidgets.QPushButton(self.horizontalLayoutWidget_2) self.exportToMatplotlibButton.setObjectName("exportToMatplotlibButton") self.horizontalLayout_7.addWidget(self.exportToMatplotlibButton) self.verticalLayoutWidget = QtWidgets.QWidget(self.advancedAnalysisTab) self.verticalLayoutWidget.setGeometry(QtCore.QRect(280, 130, 191, 64)) self.verticalLayoutWidget.setObjectName("verticalLayoutWidget") self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.verticalLayoutWidget) self.verticalLayout_3.setContentsMargins(0, 0, 0, 0) self.verticalLayout_3.setSpacing(2) self.verticalLayout_3.setObjectName("verticalLayout_3") self.horizontalLayout_8 = QtWidgets.QHBoxLayout() self.horizontalLayout_8.setObjectName("horizontalLayout_8") self.label_8 = QtWidgets.QLabel(self.verticalLayoutWidget) self.label_8.setMaximumSize(QtCore.QSize(40, 16777215)) self.label_8.setObjectName("label_8") self.horizontalLayout_8.addWidget(self.label_8) self.updateSubplotLayoutButton = QtWidgets.QPushButton(self.verticalLayoutWidget) self.updateSubplotLayoutButton.setMaximumSize(QtCore.QSize(60, 16777215)) self.updateSubplotLayoutButton.setObjectName("updateSubplotLayoutButton") self.horizontalLayout_8.addWidget(self.updateSubplotLayoutButton) self.resetSubplotLayoutButton = QtWidgets.QPushButton(self.verticalLayoutWidget) self.resetSubplotLayoutButton.setMaximumSize(QtCore.QSize(60, 16777215)) self.resetSubplotLayoutButton.setObjectName("resetSubplotLayoutButton") self.horizontalLayout_8.addWidget(self.resetSubplotLayoutButton) self.verticalLayout_3.addLayout(self.horizontalLayout_8) self.horizontalLayout_10 = QtWidgets.QHBoxLayout() self.horizontalLayout_10.setObjectName("horizontalLayout_10") self.advancedPlotResetButton = QtWidgets.QPushButton(self.verticalLayoutWidget) self.advancedPlotResetButton.setObjectName("advancedPlotResetButton") self.horizontalLayout_10.addWidget(self.advancedPlotResetButton) self.verticalLayout_3.addLayout(self.horizontalLayout_10) self.dataAnalysisTabWidget.addTab(self.advancedAnalysisTab, "") self.correlationsTab = QtWidgets.QWidget() self.correlationsTab.setObjectName("correlationsTab") self.correlationsGroupBox = QtWidgets.QGroupBox(self.correlationsTab) self.correlationsGroupBox.setGeometry(QtCore.QRect(10, 0, 431, 181)) self.correlationsGroupBox.setObjectName("correlationsGroupBox") self.formLayoutWidget_4 = QtWidgets.QWidget(self.correlationsGroupBox) self.formLayoutWidget_4.setGeometry(QtCore.QRect(10, 30, 411, 141)) self.formLayoutWidget_4.setObjectName("formLayoutWidget_4") self.formLayout_4 = QtWidgets.QFormLayout(self.formLayoutWidget_4) self.formLayout_4.setContentsMargins(0, 0, 0, 0) self.formLayout_4.setObjectName("formLayout_4") self.correlationsPlotButton = QtWidgets.QPushButton(self.formLayoutWidget_4) self.correlationsPlotButton.setObjectName("correlationsPlotButton") self.formLayout_4.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.correlationsPlotButton) self.correlationsVarsList = QtWidgets.QListWidget(self.formLayoutWidget_4) self.correlationsVarsList.setObjectName("correlationsVarsList") self.formLayout_4.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.correlationsVarsList) self.correlationsOptionsGroupBox = QtWidgets.QGroupBox(self.correlationsTab) self.correlationsOptionsGroupBox.setGeometry(QtCore.QRect(460, 0, 321, 171)) self.correlationsOptionsGroupBox.setObjectName("correlationsOptionsGroupBox") self.formLayoutWidget_3 = QtWidgets.QWidget(self.correlationsOptionsGroupBox) self.formLayoutWidget_3.setGeometry(QtCore.QRect(9, 29, 301, 145)) self.formLayoutWidget_3.setObjectName("formLayoutWidget_3") self.formLayout_3 = QtWidgets.QFormLayout(self.formLayoutWidget_3) self.formLayout_3.setContentsMargins(0, 0, 0, 0) self.formLayout_3.setObjectName("formLayout_3") self.label_9 = QtWidgets.QLabel(self.formLayoutWidget_3) self.label_9.setObjectName("label_9") self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_9) self.correlationsKindComboBox = QtWidgets.QComboBox(self.formLayoutWidget_3) self.correlationsKindComboBox.setObjectName("correlationsKindComboBox") self.correlationsKindComboBox.addItem("") self.correlationsKindComboBox.addItem("") self.correlationsKindComboBox.addItem("") self.correlationsKindComboBox.addItem("") self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.correlationsKindComboBox) self.label_12 = QtWidgets.QLabel(self.formLayoutWidget_3) self.label_12.setObjectName("label_12") self.formLayout_3.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_12) self.correlationsDiagKindComboBox = QtWidgets.QComboBox(self.formLayoutWidget_3) self.correlationsDiagKindComboBox.setObjectName("correlationsDiagKindComboBox") self.correlationsDiagKindComboBox.addItem("") self.correlationsDiagKindComboBox.addItem("") self.correlationsDiagKindComboBox.addItem("") self.correlationsDiagKindComboBox.addItem("") self.formLayout_3.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.correlationsDiagKindComboBox) self.correlationsHueCheckBox = QtWidgets.QCheckBox(self.formLayoutWidget_3) self.correlationsHueCheckBox.setObjectName("correlationsHueCheckBox") self.formLayout_3.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.correlationsHueCheckBox) self.correlationsHueToolButton = QtWidgets.QToolButton(self.formLayoutWidget_3) self.correlationsHueToolButton.setObjectName("correlationsHueToolButton") self.formLayout_3.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.correlationsHueToolButton) self.correlationsHueLabel = QtWidgets.QLabel(self.formLayoutWidget_3) self.correlationsHueLabel.setObjectName("correlationsHueLabel") self.formLayout_3.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.correlationsHueLabel) self.dataAnalysisTabWidget.addTab(self.correlationsTab, "") self.screenColumn.addWidget(self.dataAnalysisTabWidget) self.horizontalLayout.addLayout(self.screenColumn) self.metaColumn = QtWidgets.QVBoxLayout() self.metaColumn.setObjectName("metaColumn") self.metaDataText = QtWidgets.QPlainTextEdit(self.centralwidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.metaDataText.sizePolicy().hasHeightForWidth()) self.metaDataText.setSizePolicy(sizePolicy) self.metaDataText.setObjectName("metaDataText") self.metaColumn.addWidget(self.metaDataText) self.label_7 = QtWidgets.QLabel(self.centralwidget) self.label_7.setObjectName("label_7") self.metaColumn.addWidget(self.label_7) self.metaDataList = QtWidgets.QListWidget(self.centralwidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.metaDataList.sizePolicy().hasHeightForWidth()) self.metaDataList.setSizePolicy(sizePolicy) self.metaDataList.setMinimumSize(QtCore.QSize(0, 0)) self.metaDataList.setMaximumSize(QtCore.QSize(240, 140)) self.metaDataList.setObjectName("metaDataList") self.metaColumn.addWidget(self.metaDataList) self.refreshMetadataCachebutton = QtWidgets.QPushButton(self.centralwidget) self.refreshMetadataCachebutton.setObjectName("refreshMetadataCachebutton") self.metaColumn.addWidget(self.refreshMetadataCachebutton) self.horizontalLayout.addLayout(self.metaColumn) mainWindow.setCentralWidget(self.centralwidget) self.menubar = QtWidgets.QMenuBar(mainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 1550, 22)) self.menubar.setObjectName("menubar") self.menuDataDisplay = QtWidgets.QMenu(self.menubar) self.menuDataDisplay.setObjectName("menuDataDisplay") mainWindow.setMenuBar(self.menubar) self.statusbar = QtWidgets.QStatusBar(mainWindow) self.statusbar.setObjectName("statusbar") mainWindow.setStatusBar(self.statusbar) self.actionv1s = QtWidgets.QAction(mainWindow) self.actionv1s.setObjectName("actionv1s") self.actionl = QtWidgets.QAction(mainWindow) self.actionl.setObjectName("actionl") self.actionlol = QtWidgets.QAction(mainWindow) self.actionlol.setObjectName("actionlol") self.menubar.addAction(self.menuDataDisplay.menuAction()) self.retranslateUi(mainWindow) self.settingsTabWidget.setCurrentIndex(0) self.dataAnalysisTabWidget.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(mainWindow) def retranslateUi(self, mainWindow): _translate = QtCore.QCoreApplication.translate mainWindow.setWindowTitle(_translate("mainWindow", "HAL")) self.dayBrowserBox.setTitle(_translate("mainWindow", "Day Browser")) self.todayButton.setText(_translate("mainWindow", "now")) self.label.setText(_translate("mainWindow", "Data Type")) self.label_3.setText(_translate("mainWindow", "Scale")) self.autoScaleCheckBox.setText(_translate("mainWindow", "auto")) self.label_2.setText(_translate("mainWindow", "Colormap")) self.settingsTabWidget.setTabText(self.settingsTabWidget.indexOf(self.settingsDataTab), _translate("mainWindow", "Data")) self.fitButton.setText(_translate("mainWindow", "FIT")) self.label_10.setText(_translate("mainWindow", "fit type:")) self.addRoiButton.setText(_translate("mainWindow", "add ROI")) self.backgroundCheckBox.setText(_translate("mainWindow", "background")) self.deleteRoiButton.setText(_translate("mainWindow", "Delete ROI")) self.resetRoiButton.setText(_translate("mainWindow", "Reset ROIs")) self.renameRoiButton.setText(_translate("mainWindow", "Rename ROI")) self.label_11.setText(_translate("mainWindow", "select ROI:")) self.settingsTabWidget.setTabText(self.settingsTabWidget.indexOf(self.settingsFitTab), _translate("mainWindow", "FIT")) self.runBrowserBox.setTitle(_translate("mainWindow", "Run Browser")) self.label_5.setText(_translate("mainWindow", "runs")) self.label_6.setText(_translate("mainWindow", "sets")) self.label_4.setText(_translate("mainWindow", "sequences")) self.refreshRunListButton.setText(_translate("mainWindow", "Refresh")) self.deleteFitButton.setText(_translate("mainWindow", "Del. Fit")) self.dataSetToolButton.setText(_translate("mainWindow", "manage sets")) self.groupBox.setTitle(_translate("mainWindow", "1D plot")) self.quickPlotYToolButton.setText(_translate("mainWindow", "Y")) self.quickPlotPlotbyLabel.setText(_translate("mainWindow", "PlotbyLabel")) self.quickPlotButton.setText(_translate("mainWindow", "PLOT")) self.quickPlotXToolButton.setText(_translate("mainWindow", "X")) self.quickPlotYLabel.setText(_translate("mainWindow", "quickPlotYLabel")) self.quickPlotXLabel.setText(_translate("mainWindow", "quickPlotXLabel")) self.quickPlotPlotbyToolButton.setText(_translate("mainWindow", "select")) self.quickPlotPlotByBox.setText(_translate("mainWindow", "plot by")) self.quickPlotEnableFitBox.setText(_translate("mainWindow", "fit data")) self.quickPlotFitLabel.setText(_translate("mainWindow", "fit type")) self.quickPlotFitToolButton.setText(_translate("mainWindow", "fit")) self.groupBox_2.setTitle(_translate("mainWindow", "2D density plot")) self.quickPlot2DXLabel.setText(_translate("mainWindow", "quickPlotXLabel")) self.quickPlot2DYLabel.setText(_translate("mainWindow", "quickPlotYLabel")) self.quickPlot2DXToolButton.setText(_translate("mainWindow", "X")) self.quickPlot2DYToolButton.setText(_translate("mainWindow", "Y")) self.quickPlot2DZToolButton.setText(_translate("mainWindow", "Z")) self.quickPlot2DZLabel.setText(_translate("mainWindow", "quickPlotZLabel")) self.quickPlot2DButton.setText(_translate("mainWindow", "PLOT")) self.plottingOptionsButton.setText(_translate("mainWindow", "OPTIONS")) self.quickStatsButton.setText(_translate("mainWindow", "STATS")) self.dataAnalysisTabWidget.setTabText(self.dataAnalysisTabWidget.indexOf(self.quickAnalysisTab), _translate("mainWindow", "Quick Analysis")) self.advancedPlotSaveButton.setText(_translate("mainWindow", "save")) self.advancedPlotSaveAsButton.setText(_translate("mainWindow", "save as...")) self.advancedPlotDeleteButton.setText(_translate("mainWindow", "delete")) self.advancedStatButton.setText(_translate("mainWindow", "STATS")) self.exportDataButton.setText(_translate("mainWindow", "export")) self.exportToMatplotlibButton.setText(_translate("mainWindow", "to matplotlib")) self.label_8.setText(_translate("mainWindow", "layout")) self.updateSubplotLayoutButton.setText(_translate("mainWindow", "update")) self.resetSubplotLayoutButton.setText(_translate("mainWindow", "reset")) self.advancedPlotResetButton.setText(_translate("mainWindow", "reset all")) self.dataAnalysisTabWidget.setTabText(self.dataAnalysisTabWidget.indexOf(self.advancedAnalysisTab), _translate("mainWindow", "Advanced Analysis")) self.correlationsGroupBox.setTitle(_translate("mainWindow", "Variables to correlate")) self.correlationsPlotButton.setText(_translate("mainWindow", "PLOT")) self.correlationsOptionsGroupBox.setTitle(_translate("mainWindow", "Options")) self.label_9.setText(_translate("mainWindow", "Kind")) self.correlationsKindComboBox.setItemText(0, _translate("mainWindow", "scatter")) self.correlationsKindComboBox.setItemText(1, _translate("mainWindow", "kde")) self.correlationsKindComboBox.setItemText(2, _translate("mainWindow", "hist")) self.correlationsKindComboBox.setItemText(3, _translate("mainWindow", "reg")) self.label_12.setText(_translate("mainWindow", "Diagonal kind")) self.correlationsDiagKindComboBox.setItemText(0, _translate("mainWindow", "auto")) self.correlationsDiagKindComboBox.setItemText(1, _translate("mainWindow", "hist")) self.correlationsDiagKindComboBox.setItemText(2, _translate("mainWindow", "kde")) self.correlationsDiagKindComboBox.setItemText(3, _translate("mainWindow", "None")) self.correlationsHueCheckBox.setText(_translate("mainWindow", "hue enabled")) self.correlationsHueToolButton.setText(_translate("mainWindow", "Hue group")) self.correlationsHueLabel.setText(_translate("mainWindow", "correlationsHueLabel")) self.dataAnalysisTabWidget.setTabText(self.dataAnalysisTabWidget.indexOf(self.correlationsTab), _translate("mainWindow", "Correlations visualiser")) self.label_7.setText(_translate("mainWindow", "Metadata sources:")) self.refreshMetadataCachebutton.setText(_translate("mainWindow", "refresh metadata cache")) self.menuDataDisplay.setTitle(_translate("mainWindow", "Data Display")) self.actionv1s.setText(_translate("mainWindow", "v1s")) self.actionl.setText(_translate("mainWindow", "l")) self.actionlol.setText(_translate("mainWindow", "lol"))
class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName(_fromUtf8("MainWindow")) MainWindow.resize(704, 558) MainWindow.setMinimumSize(QtCore.QSize(0, 0)) MainWindow.setStyleSheet(_fromUtf8("\n" "/*\n" " Android Material Dark\n" " COLOR_DARK = #212121 Grey 900\n" " COLOR_MEDIUM = #424242 Grey 800\n" " COLOR_MEDLIGHT = #757575 Grey 600\n" " COLOR_LIGHT = #DDDDDD White\n" " COLOR_ACCENT = #3F51B5 Indigo 500\n" "*/\n" "\n" "* {\n" " background: #212121;\n" " color: #DDDDDD;\n" " border: 1px solid #757575;\n" "}\n" "\n" "QWidget::item:selected {\n" " background: #3F51B5;\n" "}\n" "\n" "QCheckBox, QRadioButton {\n" " border: none;\n" "}\n" "\n" "QRadioButton::indicator, QCheckBox::indicator {\n" " width: 13px;\n" " height: 13px;\n" "}\n" "\n" "QRadioButton::indicator::unchecked, QCheckBox::indicator::unchecked {\n" " border: 1px solid #757575;\n" " background: none;\n" "}\n" "\n" "QRadioButton::indicator:unchecked:hover, QCheckBox::indicator:unchecked:hover {\n" " border: 1px solid #DDDDDD;\n" "}\n" "\n" "QRadioButton::indicator::checked, QCheckBox::indicator::checked {\n" " border: 1px solid #757575;\n" " background: #757575;\n" "}\n" "\n" "QRadioButton::indicator:checked:hover, QCheckBox::indicator:checked:hover {\n" " border: 1px solid #DDDDDD;\n" " background: #DDDDDD;\n" "}\n" "\n" "QGroupBox {\n" " margin-top: 6px;\n" "}\n" "\n" "QGroupBox::title {\n" " top: -7px;\n" " left: 7px;\n" "}\n" "\n" "QScrollBar {\n" " border: 1px solid #757575;\n" " background: #212121;\n" "}\n" "\n" "QScrollBar:horizontal {\n" " height: 15px;\n" " margin: 0px 0px 0px 32px;\n" "}\n" "\n" "QScrollBar:vertical {\n" " width: 15px;\n" " margin: 32px 0px 0px 0px;\n" "}\n" "\n" "QScrollBar::handle {\n" " background: #424242;\n" " border: 1px solid #757575;\n" "}\n" "\n" "QScrollBar::handle:horizontal {\n" " border-width: 0px 1px 0px 1px;\n" "}\n" "\n" "QScrollBar::handle:vertical {\n" " border-width: 1px 0px 1px 0px;\n" "}\n" "\n" "QScrollBar::handle:horizontal {\n" " min-width: 20px;\n" "}\n" "\n" "QScrollBar::handle:vertical {\n" " min-height: 20px;\n" "}\n" "\n" "QScrollBar::add-line, QScrollBar::sub-line {\n" " background:#424242;\n" " border: 1px solid #757575;\n" " subcontrol-origin: margin;\n" "}\n" "\n" "QScrollBar::add-line {\n" " position: absolute;\n" "}\n" "\n" "QScrollBar::add-line:horizontal {\n" " width: 15px;\n" " subcontrol-position: left;\n" " left: 15px;\n" "}\n" "\n" "QScrollBar::add-line:vertical {\n" " height: 15px;\n" " subcontrol-position: top;\n" " top: 15px;\n" "}\n" "\n" "QScrollBar::sub-line:horizontal {\n" " width: 15px;\n" " subcontrol-position: top left;\n" "}\n" "\n" "QScrollBar::sub-line:vertical {\n" " height: 15px;\n" " subcontrol-position: top;\n" "}\n" "\n" "QScrollBar:left-arrow, QScrollBar::right-arrow, QScrollBar::up-arrow, QScrollBar::down-arrow {\n" " border: 1px solid #757575;\n" " width: 3px;\n" " height: 3px;\n" "}\n" "\n" "QScrollBar::add-page, QScrollBar::sub-page {\n" " background: none;\n" "}\n" "\n" "QAbstractButton:hover {\n" " background: #424242;\n" "}\n" "\n" "QAbstractButton:pressed {\n" " background: #757575;\n" "}\n" "\n" "QAbstractItemView {\n" " show-decoration-selected: 1;\n" " selection-background-color: #3F51B5;\n" " selection-color: #DDDDDD;\n" " alternate-background-color: #424242;\n" "}\n" "\n" "QHeaderView {\n" " border: 1px solid #757575;\n" "}\n" "\n" "QHeaderView::section {\n" " background: #212121;\n" " border: 1px solid #757575;\n" " padding: 4px;\n" "}\n" "\n" "QHeaderView::section:selected, QHeaderView::section::checked {\n" " background: #424242;\n" "}\n" "\n" "QTableView {\n" " gridline-color: #757575;\n" "}\n" "\n" "QTabBar {\n" " margin-left: 2px;\n" "}\n" "\n" "QTabBar::tab {\n" " border-radius: 0px;\n" " padding: 4px;\n" " margin: 4px;\n" "}\n" "\n" "QTabBar::tab:selected {\n" " background: #424242;\n" "}\n" "\n" "QComboBox::down-arrow {\n" " border: 1px solid #757575;\n" " background: #424242;\n" "}\n" "\n" "QComboBox::drop-down {\n" " border: 1px solid #757575;\n" " background: #424242;\n" "}\n" "\n" "QComboBox::down-arrow {\n" " width: 3px;\n" " height: 3px;\n" " border: 1px solid #757575;\n" "}\n" "\n" "QAbstractSpinBox {\n" " padding-right: 15px;\n" "}\n" "\n" "QAbstractSpinBox::up-button, QAbstractSpinBox::down-button {\n" " border: 1px solid #757575;\n" " background: #424242;\n" " subcontrol-origin: border;\n" "}\n" "\n" "QAbstractSpinBox::up-arrow, QAbstractSpinBox::down-arrow {\n" " width: 3px;\n" " height: 3px;\n" " border: 1px solid #757575;\n" "}\n" "\n" "QSlider {\n" " border: none;\n" "}\n" "\n" "QSlider::groove:horizontal {\n" " height: 5px;\n" " margin: 4px 0px 4px 0px;\n" "}\n" "\n" "QSlider::groove:vertical {\n" " width: 5px;\n" " margin: 0px 4px 0px 4px;\n" "}\n" "\n" "QSlider::handle {\n" " border: 1px solid #757575;\n" " background: #424242;\n" "}\n" "\n" "QSlider::handle:horizontal {\n" " width: 15px;\n" " margin: -4px 0px -4px 0px;\n" "}\n" "\n" "QSlider::handle:vertical {\n" " height: 15px;\n" " margin: 0px -4px 0px -4px;\n" "}\n" "\n" "QSlider::add-page:vertical, QSlider::sub-page:horizontal {\n" " background: #3F51B5;\n" "}\n" "\n" "QSlider::sub-page:vertical, QSlider::add-page:horizontal {\n" " background: #424242;\n" "}\n" "\n" "QLabel {\n" " border: none;\n" "}\n" "\n" "QProgressBar {\n" " text-align: center;\n" "}\n" "\n" "QProgressBar::chunk {\n" " width: 1px;\n" " background-color: #3F51B5;\n" "}\n" "\n" "QMenu::separator {\n" " background: #424242;\n" "}\n" "\n" "QStatusBar {\n" " border: 1px;\n" " color: #3F51B5;\n" "}")) MainWindow.setTabShape(QtGui.QTabWidget.Rounded) self.centralwidget = QtGui.QWidget(MainWindow) self.centralwidget.setObjectName(_fromUtf8("centralwidget")) self.gridLayout = QtGui.QGridLayout(self.centralwidget) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.Layout_controls2 = QtGui.QGridLayout() self.Layout_controls2.setObjectName(_fromUtf8("Layout_controls2")) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.Layout_controls2.addItem(spacerItem, 0, 1, 1, 1) self.chBox_export = QtGui.QCheckBox(self.centralwidget) self.chBox_export.setObjectName(_fromUtf8("chBox_export")) self.Layout_controls2.addWidget(self.chBox_export, 0, 0, 1, 1) self.gridLayout.addLayout(self.Layout_controls2, 9, 1, 1, 1) self.Layout_controls = QtGui.QGridLayout() self.Layout_controls.setObjectName(_fromUtf8("Layout_controls")) self.cBox_Speed = QtGui.QComboBox(self.centralwidget) self.cBox_Speed.setObjectName(_fromUtf8("cBox_Speed")) self.Layout_controls.addWidget(self.cBox_Speed, 0, 1, 1, 1) self.cBox_Port = QtGui.QComboBox(self.centralwidget) self.cBox_Port.setObjectName(_fromUtf8("cBox_Port")) self.Layout_controls.addWidget(self.cBox_Port, 0, 0, 1, 1) self.pButton_Start = QtGui.QPushButton(self.centralwidget) self.pButton_Start.setMinimumSize(QtCore.QSize(0, 0)) self.pButton_Start.setObjectName(_fromUtf8("pButton_Start")) self.Layout_controls.addWidget(self.pButton_Start, 1, 0, 1, 1) self.pButton_Stop = QtGui.QPushButton(self.centralwidget) self.pButton_Stop.setObjectName(_fromUtf8("pButton_Stop")) self.Layout_controls.addWidget(self.pButton_Stop, 1, 1, 1, 1) self.gridLayout.addLayout(self.Layout_controls, 7, 0, 1, 2) self.Layout_graphs = QtGui.QGridLayout() self.Layout_graphs.setObjectName(_fromUtf8("Layout_graphs")) self.plt = GraphicsLayoutWidget(self.centralwidget) self.plt.setAutoFillBackground(False) self.plt.setStyleSheet(_fromUtf8("border: 0px;")) self.plt.setFrameShape(QtGui.QFrame.StyledPanel) self.plt.setFrameShadow(QtGui.QFrame.Plain) self.plt.setLineWidth(0) self.plt.setObjectName(_fromUtf8("plt")) self.Layout_graphs.addWidget(self.plt, 0, 0, 1, 1) self.gridLayout.addLayout(self.Layout_graphs, 2, 1, 1, 1) MainWindow.setCentralWidget(self.centralwidget) self.statusbar = QtGui.QStatusBar(MainWindow) self.statusbar.setSizeGripEnabled(False) self.statusbar.setObjectName(_fromUtf8("statusbar")) MainWindow.setStatusBar(self.statusbar) self.retranslateUi(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): MainWindow.setWindowTitle(_translate("MainWindow", "RTGraph", None)) self.chBox_export.setText(_translate("MainWindow", "Export to CSV", None)) self.pButton_Start.setText(_translate("MainWindow", "Start", None)) self.pButton_Stop.setText(_translate("MainWindow", "Stop", None))
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName("Form") Form.resize(912, 914) Form.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates)) self.gridLayout_3 = QtWidgets.QGridLayout(Form) self.gridLayout_3.setObjectName("gridLayout_3") self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.scrollArea = QtWidgets.QScrollArea(Form) self.scrollArea.setMinimumSize(QtCore.QSize(760, 900)) self.scrollArea.setWidgetResizable(True) self.scrollArea.setObjectName("scrollArea") self.scrollAreaWidgetContents = QtWidgets.QWidget() self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 1014, 2014)) self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents") self.gridLayout = QtWidgets.QGridLayout(self.scrollAreaWidgetContents) self.gridLayout.setContentsMargins(0, 0, 0, 0) self.gridLayout.setObjectName("gridLayout") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.graphicsView = GraphicsLayoutWidget(self.scrollAreaWidgetContents) self.graphicsView.setMinimumSize(QtCore.QSize(1000, 2000)) self.graphicsView.setObjectName("graphicsView") self.horizontalLayout.addWidget(self.graphicsView) self.gridLayout.addLayout(self.horizontalLayout, 0, 0, 1, 1) self.scrollArea.setWidget(self.scrollAreaWidgetContents) self.horizontalLayout_2.addWidget(self.scrollArea) self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.gb_channels = QtWidgets.QGroupBox(Form) self.gb_channels.setMaximumSize(QtCore.QSize(200, 16777215)) self.gb_channels.setObjectName("gb_channels") self.gb_channels_layout = QtWidgets.QGridLayout(self.gb_channels) self.gb_channels_layout.setObjectName("gb_channels_layout") self.verticalLayout.addWidget(self.gb_channels) self.btn_allLeads = QtWidgets.QPushButton(Form) self.btn_allLeads.setEnabled(False) self.btn_allLeads.setMinimumSize(QtCore.QSize(130, 0)) self.btn_allLeads.setCheckable(True) self.btn_allLeads.setObjectName("btn_allLeads") self.verticalLayout.addWidget(self.btn_allLeads) self.btn_chart = QtWidgets.QPushButton(Form) self.btn_chart.setObjectName("btn_chart") self.verticalLayout.addWidget(self.btn_chart) self.btn_openFile = QtWidgets.QPushButton(Form) self.btn_openFile.setObjectName("btn_openFile") self.verticalLayout.addWidget(self.btn_openFile) self.horizontalLayout_2.addLayout(self.verticalLayout) self.gridLayout_3.addLayout(self.horizontalLayout_2, 0, 0, 1, 1) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): _translate = QtCore.QCoreApplication.translate Form.setWindowTitle(_translate("Form", "Form")) self.gb_channels.setTitle(_translate("Form", "Channels")) self.btn_allLeads.setText(_translate("Form", "Check All Leads")) self.btn_chart.setText(_translate("Form", "Redraw ECG")) self.btn_openFile.setText(_translate("Form", "Open file"))
class Ui_SAXSgui(object): def setupUi(self, SAXSgui): SAXSgui.setObjectName(_fromUtf8("SAXSgui")) SAXSgui.resize(925, 630) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(SAXSgui.sizePolicy().hasHeightForWidth()) SAXSgui.setSizePolicy(sizePolicy) SAXSgui.setMinimumSize(QtCore.QSize(925, 630)) SAXSgui.setFocusPolicy(QtCore.Qt.StrongFocus) SAXSgui.setWindowOpacity(1.0) SAXSgui.setAutoFillBackground(False) SAXSgui.setTabShape(QtGui.QTabWidget.Rounded) self.centralwidget = QtGui.QWidget(SAXSgui) self.centralwidget.setObjectName(_fromUtf8("centralwidget")) self.Console = QtGui.QTabWidget(self.centralwidget) self.Console.setGeometry(QtCore.QRect(50, 30, 821, 541)) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.Console.sizePolicy().hasHeightForWidth()) self.Console.setSizePolicy(sizePolicy) self.Console.setObjectName(_fromUtf8("Console")) self.fourierspace_tab = QtGui.QWidget() self.fourierspace_tab.setObjectName(_fromUtf8("fourierspace_tab")) self.fourierView = GraphicsLayoutWidget(self.fourierspace_tab) self.fourierView.setGeometry(QtCore.QRect(10, 0, 511, 491)) self.fourierView.setObjectName(_fromUtf8("fourierView")) self.checkLogY = QtGui.QCheckBox(self.fourierspace_tab) self.checkLogY.setGeometry(QtCore.QRect(540, 10, 131, 20)) self.checkLogY.setObjectName(_fromUtf8("checkLogY")) self.checkLogX = QtGui.QCheckBox(self.fourierspace_tab) self.checkLogX.setGeometry(QtCore.QRect(540, 40, 131, 20)) self.checkLogX.setObjectName(_fromUtf8("checkLogX")) self.beamview = GraphicsLayoutWidget(self.fourierspace_tab) self.beamview.setGeometry(QtCore.QRect(540, 300, 261, 191)) self.beamview.setObjectName(_fromUtf8("beamview")) self.label_8 = QtGui.QLabel(self.fourierspace_tab) self.label_8.setGeometry(QtCore.QRect(550, 280, 121, 16)) self.label_8.setObjectName(_fromUtf8("label_8")) self.nskip_spinbox = QtGui.QSpinBox(self.fourierspace_tab) self.nskip_spinbox.setGeometry(QtCore.QRect(550, 80, 57, 24)) self.nskip_spinbox.setMaximum(1000) self.nskip_spinbox.setObjectName(_fromUtf8("nskip_spinbox")) self.label_19 = QtGui.QLabel(self.fourierspace_tab) self.label_19.setGeometry(QtCore.QRect(620, 80, 161, 16)) self.label_19.setObjectName(_fromUtf8("label_19")) self.nskip2_spinbox = QtGui.QSpinBox(self.fourierspace_tab) self.nskip2_spinbox.setGeometry(QtCore.QRect(550, 110, 57, 24)) self.nskip2_spinbox.setMinimum(0) self.nskip2_spinbox.setMaximum(1000) self.nskip2_spinbox.setProperty("value", 0) self.nskip2_spinbox.setObjectName(_fromUtf8("nskip2_spinbox")) self.label_20 = QtGui.QLabel(self.fourierspace_tab) self.label_20.setGeometry(QtCore.QRect(620, 110, 161, 16)) self.label_20.setObjectName(_fromUtf8("label_20")) self.label_22 = QtGui.QLabel(self.fourierspace_tab) self.label_22.setGeometry(QtCore.QRect(550, 160, 62, 16)) self.label_22.setObjectName(_fromUtf8("label_22")) self.label_23 = QtGui.QLabel(self.fourierspace_tab) self.label_23.setGeometry(QtCore.QRect(550, 180, 62, 16)) self.label_23.setObjectName(_fromUtf8("label_23")) self.qmin_label = QtGui.QLabel(self.fourierspace_tab) self.qmin_label.setGeometry(QtCore.QRect(605, 160, 206, 16)) self.qmin_label.setObjectName(_fromUtf8("qmin_label")) self.qmax_label = QtGui.QLabel(self.fourierspace_tab) self.qmax_label.setGeometry(QtCore.QRect(605, 180, 206, 16)) self.qmax_label.setObjectName(_fromUtf8("qmax_label")) self.Console.addTab(self.fourierspace_tab, _fromUtf8("")) self.guinierkratky_tab = QtGui.QWidget() self.guinierkratky_tab.setObjectName(_fromUtf8("guinierkratky_tab")) self.primaryanalysis_view = GraphicsLayoutWidget(self.guinierkratky_tab) self.primaryanalysis_view.setGeometry(QtCore.QRect(20, 10, 781, 401)) self.primaryanalysis_view.setObjectName(_fromUtf8("primaryanalysis_view")) self.groupBox_4 = QtGui.QGroupBox(self.guinierkratky_tab) self.groupBox_4.setEnabled(True) self.groupBox_4.setGeometry(QtCore.QRect(20, 410, 341, 91)) self.groupBox_4.setObjectName(_fromUtf8("groupBox_4")) self.qRgmin = QtGui.QDoubleSpinBox(self.groupBox_4) self.qRgmin.setGeometry(QtCore.QRect(10, 30, 62, 24)) self.qRgmin.setMaximum(1.0) self.qRgmin.setSingleStep(0.05) self.qRgmin.setProperty("value", 1.0) self.qRgmin.setObjectName(_fromUtf8("qRgmin")) self.label_16 = QtGui.QLabel(self.groupBox_4) self.label_16.setGeometry(QtCore.QRect(80, 30, 62, 16)) self.label_16.setObjectName(_fromUtf8("label_16")) self.label_17 = QtGui.QLabel(self.groupBox_4) self.label_17.setGeometry(QtCore.QRect(80, 60, 62, 16)) self.label_17.setObjectName(_fromUtf8("label_17")) self.qRgmax = QtGui.QDoubleSpinBox(self.groupBox_4) self.qRgmax.setGeometry(QtCore.QRect(10, 60, 62, 24)) self.qRgmax.setMaximum(3.0) self.qRgmax.setSingleStep(0.05) self.qRgmax.setProperty("value", 1.3) self.qRgmax.setObjectName(_fromUtf8("qRgmax")) self.guinierminpts = QtGui.QLineEdit(self.groupBox_4) self.guinierminpts.setGeometry(QtCore.QRect(180, 30, 61, 21)) self.guinierminpts.setObjectName(_fromUtf8("guinierminpts")) self.label_18 = QtGui.QLabel(self.groupBox_4) self.label_18.setGeometry(QtCore.QRect(250, 30, 71, 16)) self.label_18.setObjectName(_fromUtf8("label_18")) self.autoguinier_button = QtGui.QPushButton(self.groupBox_4) self.autoguinier_button.setGeometry(QtCore.QRect(210, 55, 91, 26)) self.autoguinier_button.setStyleSheet(_fromUtf8("background-color: #F1BF29; font-size: 12px; color: green;")) self.autoguinier_button.setObjectName(_fromUtf8("autoguinier_button")) self.runprimaryanalysis = QtGui.QPushButton(self.guinierkratky_tab) self.runprimaryanalysis.setGeometry(QtCore.QRect(580, 435, 111, 26)) self.runprimaryanalysis.setStyleSheet(_fromUtf8("background-color: #F1BF29; font-size: 12px; color: blue;")) self.runprimaryanalysis.setObjectName(_fromUtf8("runprimaryanalysis")) self.lb_guinier_spinbox = QtGui.QSpinBox(self.guinierkratky_tab) self.lb_guinier_spinbox.setGeometry(QtCore.QRect(410, 435, 57, 24)) self.lb_guinier_spinbox.setObjectName(_fromUtf8("lb_guinier_spinbox")) self.ub_guinier_spinbox = QtGui.QSpinBox(self.guinierkratky_tab) self.ub_guinier_spinbox.setGeometry(QtCore.QRect(495, 435, 57, 24)) self.ub_guinier_spinbox.setMaximum(200) self.ub_guinier_spinbox.setObjectName(_fromUtf8("ub_guinier_spinbox")) self.label_6 = QtGui.QLabel(self.guinierkratky_tab) self.label_6.setGeometry(QtCore.QRect(475, 440, 16, 16)) self.label_6.setObjectName(_fromUtf8("label_6")) self.label_7 = QtGui.QLabel(self.guinierkratky_tab) self.label_7.setGeometry(QtCore.QRect(380, 440, 26, 16)) self.label_7.setObjectName(_fromUtf8("label_7")) self.label_21 = QtGui.QLabel(self.guinierkratky_tab) self.label_21.setGeometry(QtCore.QRect(375, 470, 91, 16)) self.label_21.setObjectName(_fromUtf8("label_21")) self.qRg_label = QtGui.QLabel(self.guinierkratky_tab) self.qRg_label.setGeometry(QtCore.QRect(465, 470, 126, 16)) self.qRg_label.setObjectName(_fromUtf8("qRg_label")) self.label_4 = QtGui.QLabel(self.guinierkratky_tab) self.label_4.setGeometry(QtCore.QRect(375, 490, 36, 16)) self.label_4.setObjectName(_fromUtf8("label_4")) self.label_5 = QtGui.QLabel(self.guinierkratky_tab) self.label_5.setGeometry(QtCore.QRect(470, 490, 36, 16)) self.label_5.setObjectName(_fromUtf8("label_5")) self.guinierRg_label = QtGui.QLabel(self.guinierkratky_tab) self.guinierRg_label.setGeometry(QtCore.QRect(405, 490, 62, 16)) self.guinierRg_label.setObjectName(_fromUtf8("guinierRg_label")) self.I0_label = QtGui.QLabel(self.guinierkratky_tab) self.I0_label.setGeometry(QtCore.QRect(500, 490, 151, 16)) self.I0_label.setObjectName(_fromUtf8("I0_label")) self.Console.addTab(self.guinierkratky_tab, _fromUtf8("")) self.realspace_tab = QtGui.QWidget() self.realspace_tab.setObjectName(_fromUtf8("realspace_tab")) self.realspaceView = GraphicsLayoutWidget(self.realspace_tab) self.realspaceView.setGeometry(QtCore.QRect(10, 0, 531, 491)) self.realspaceView.setObjectName(_fromUtf8("realspaceView")) self.groupBox_3 = QtGui.QGroupBox(self.realspace_tab) self.groupBox_3.setGeometry(QtCore.QRect(550, 0, 261, 141)) self.groupBox_3.setObjectName(_fromUtf8("groupBox_3")) self.Nr_input = QtGui.QLineEdit(self.groupBox_3) self.Nr_input.setGeometry(QtCore.QRect(10, 100, 71, 21)) self.Nr_input.setObjectName(_fromUtf8("Nr_input")) self.label_2 = QtGui.QLabel(self.groupBox_3) self.label_2.setGeometry(QtCore.QRect(90, 70, 166, 16)) self.label_2.setObjectName(_fromUtf8("label_2")) self.label = QtGui.QLabel(self.groupBox_3) self.label.setGeometry(QtCore.QRect(90, 40, 41, 16)) self.label.setObjectName(_fromUtf8("label")) self.label_3 = QtGui.QLabel(self.groupBox_3) self.label_3.setGeometry(QtCore.QRect(90, 100, 121, 16)) self.label_3.setObjectName(_fromUtf8("label_3")) self.logalpha_input = QtGui.QLineEdit(self.groupBox_3) self.logalpha_input.setGeometry(QtCore.QRect(10, 70, 71, 21)) self.logalpha_input.setObjectName(_fromUtf8("logalpha_input")) self.dmax_input = QtGui.QLineEdit(self.groupBox_3) self.dmax_input.setGeometry(QtCore.QRect(10, 40, 71, 21)) self.dmax_input.setObjectName(_fromUtf8("dmax_input")) self.groupBox = QtGui.QGroupBox(self.realspace_tab) self.groupBox.setGeometry(QtCore.QRect(550, 210, 151, 101)) self.groupBox.setObjectName(_fromUtf8("groupBox")) self.varianceweighted = QtGui.QCheckBox(self.groupBox) self.varianceweighted.setGeometry(QtCore.QRect(10, 30, 131, 20)) self.varianceweighted.setObjectName(_fromUtf8("varianceweighted")) self.smeared = QtGui.QCheckBox(self.groupBox) self.smeared.setGeometry(QtCore.QRect(10, 55, 87, 20)) self.smeared.setObjectName(_fromUtf8("smeared")) self.solvepr_button = QtGui.QPushButton(self.realspace_tab) self.solvepr_button.setGeometry(QtCore.QRect(630, 440, 114, 32)) self.solvepr_button.setStyleSheet(_fromUtf8("background-color: #0085ff; color: #ffffff;")) self.solvepr_button.setObjectName(_fromUtf8("solvepr_button")) self.iftresultout = QtGui.QLineEdit(self.realspace_tab) self.iftresultout.setGeometry(QtCore.QRect(550, 400, 261, 21)) self.iftresultout.setObjectName(_fromUtf8("iftresultout")) self.saveiftresult = QtGui.QCheckBox(self.realspace_tab) self.saveiftresult.setGeometry(QtCore.QRect(550, 370, 241, 20)) self.saveiftresult.setObjectName(_fromUtf8("saveiftresult")) self.Console.addTab(self.realspace_tab, _fromUtf8("")) self.bayesianift_tab = QtGui.QWidget() self.bayesianift_tab.setObjectName(_fromUtf8("bayesianift_tab")) self.biftgridView = matplotlibWidget(self.bayesianift_tab) self.biftgridView.setGeometry(QtCore.QRect(10, 0, 401, 411)) self.biftgridView.setObjectName(_fromUtf8("biftgridView")) self.groupBox_2 = QtGui.QGroupBox(self.bayesianift_tab) self.groupBox_2.setGeometry(QtCore.QRect(420, 0, 381, 161)) self.groupBox_2.setObjectName(_fromUtf8("groupBox_2")) self.Nalpha = QtGui.QLineEdit(self.groupBox_2) self.Nalpha.setGeometry(QtCore.QRect(10, 30, 51, 21)) self.Nalpha.setObjectName(_fromUtf8("Nalpha")) self.Ndmax = QtGui.QLineEdit(self.groupBox_2) self.Ndmax.setGeometry(QtCore.QRect(10, 60, 51, 21)) self.Ndmax.setObjectName(_fromUtf8("Ndmax")) self.label_9 = QtGui.QLabel(self.groupBox_2) self.label_9.setGeometry(QtCore.QRect(70, 30, 91, 16)) self.label_9.setObjectName(_fromUtf8("label_9")) self.label_10 = QtGui.QLabel(self.groupBox_2) self.label_10.setGeometry(QtCore.QRect(70, 60, 101, 16)) self.label_10.setObjectName(_fromUtf8("label_10")) self.minlogalpha = QtGui.QDoubleSpinBox(self.groupBox_2) self.minlogalpha.setGeometry(QtCore.QRect(20, 120, 62, 24)) self.minlogalpha.setMinimum(-100.0) self.minlogalpha.setMaximum(100.0) self.minlogalpha.setProperty("value", 4.0) self.minlogalpha.setObjectName(_fromUtf8("minlogalpha")) self.label_11 = QtGui.QLabel(self.groupBox_2) self.label_11.setGeometry(QtCore.QRect(20, 100, 111, 16)) self.label_11.setObjectName(_fromUtf8("label_11")) self.maxlogalpha = QtGui.QDoubleSpinBox(self.groupBox_2) self.maxlogalpha.setGeometry(QtCore.QRect(110, 120, 62, 24)) self.maxlogalpha.setMinimum(-100.0) self.maxlogalpha.setMaximum(100.0) self.maxlogalpha.setProperty("value", 10.0) self.maxlogalpha.setObjectName(_fromUtf8("maxlogalpha")) self.label_13 = QtGui.QLabel(self.groupBox_2) self.label_13.setGeometry(QtCore.QRect(220, 100, 111, 16)) self.label_13.setObjectName(_fromUtf8("label_13")) self.mindmax = QtGui.QDoubleSpinBox(self.groupBox_2) self.mindmax.setGeometry(QtCore.QRect(220, 120, 62, 24)) self.mindmax.setDecimals(3) self.mindmax.setMaximum(9999.0) self.mindmax.setObjectName(_fromUtf8("mindmax")) self.maxdmax = QtGui.QDoubleSpinBox(self.groupBox_2) self.maxdmax.setGeometry(QtCore.QRect(310, 120, 62, 24)) self.maxdmax.setDecimals(3) self.maxdmax.setMaximum(9999.0) self.maxdmax.setObjectName(_fromUtf8("maxdmax")) self.calcbiftgrid = QtGui.QPushButton(self.bayesianift_tab) self.calcbiftgrid.setGeometry(QtCore.QRect(520, 180, 191, 51)) font = QtGui.QFont() font.setFamily(_fromUtf8("Helvetica")) font.setPointSize(18) font.setBold(True) font.setWeight(75) self.calcbiftgrid.setFont(font) self.calcbiftgrid.setStyleSheet(_fromUtf8("background-color: #6495ed; color: #ffffff;")) self.calcbiftgrid.setObjectName(_fromUtf8("calcbiftgrid")) self.label_12 = QtGui.QLabel(self.bayesianift_tab) self.label_12.setGeometry(QtCore.QRect(510, 120, 10, 16)) self.label_12.setObjectName(_fromUtf8("label_12")) self.label_14 = QtGui.QLabel(self.bayesianift_tab) self.label_14.setGeometry(QtCore.QRect(710, 120, 10, 16)) self.label_14.setObjectName(_fromUtf8("label_14")) self.refinebift = QtGui.QPushButton(self.bayesianift_tab) self.refinebift.setGeometry(QtCore.QRect(515, 325, 211, 51)) font = QtGui.QFont() font.setFamily(_fromUtf8("Helvetica")) font.setPointSize(14) font.setBold(True) font.setWeight(75) self.refinebift.setFont(font) self.refinebift.setStyleSheet(_fromUtf8("background-color:#87cc83; color: #ffffff;")) self.refinebift.setObjectName(_fromUtf8("refinebift")) self.line = QtGui.QFrame(self.bayesianift_tab) self.line.setGeometry(QtCore.QRect(420, 270, 391, 16)) self.line.setFrameShape(QtGui.QFrame.HLine) self.line.setFrameShadow(QtGui.QFrame.Sunken) self.line.setObjectName(_fromUtf8("line")) self.Console.addTab(self.bayesianift_tab, _fromUtf8("")) SAXSgui.setCentralWidget(self.centralwidget) self.menubar = QtGui.QMenuBar(SAXSgui) self.menubar.setGeometry(QtCore.QRect(0, 0, 925, 22)) self.menubar.setObjectName(_fromUtf8("menubar")) self.menuFile = QtGui.QMenu(self.menubar) self.menuFile.setObjectName(_fromUtf8("menuFile")) SAXSgui.setMenuBar(self.menubar) self.statusbar = QtGui.QStatusBar(SAXSgui) self.statusbar.setObjectName(_fromUtf8("statusbar")) SAXSgui.setStatusBar(self.statusbar) self.actionOpen = QtGui.QAction(SAXSgui) self.actionOpen.setObjectName(_fromUtf8("actionOpen")) self.actionClose = QtGui.QAction(SAXSgui) self.actionClose.setObjectName(_fromUtf8("actionClose")) self.actionExit = QtGui.QAction(SAXSgui) self.actionExit.setShortcutContext(QtCore.Qt.WindowShortcut) self.actionExit.setObjectName(_fromUtf8("actionExit")) self.actionGuinier_Plot = QtGui.QAction(SAXSgui) self.actionGuinier_Plot.setObjectName(_fromUtf8("actionGuinier_Plot")) self.actionKratky_Plot = QtGui.QAction(SAXSgui) self.actionKratky_Plot.setObjectName(_fromUtf8("actionKratky_Plot")) self.actionSAXSMoW = QtGui.QAction(SAXSgui) self.actionSAXSMoW.setObjectName(_fromUtf8("actionSAXSMoW")) self.actionFoXS_fit = QtGui.QAction(SAXSgui) self.actionFoXS_fit.setObjectName(_fromUtf8("actionFoXS_fit")) self.actionLoad_Beam_Profile = QtGui.QAction(SAXSgui) self.actionLoad_Beam_Profile.setObjectName(_fromUtf8("actionLoad_Beam_Profile")) self.actionSave_as_GNOM_file = QtGui.QAction(SAXSgui) self.actionSave_as_GNOM_file.setObjectName(_fromUtf8("actionSave_as_GNOM_file")) self.actionSAXSMoW_2 = QtGui.QAction(SAXSgui) self.actionSAXSMoW_2.setObjectName(_fromUtf8("actionSAXSMoW_2")) self.menuFile.addAction(self.actionOpen) self.menuFile.addAction(self.actionSave_as_GNOM_file) self.menuFile.addAction(self.actionLoad_Beam_Profile) self.menuFile.addAction(self.actionClose) self.menuFile.addAction(self.actionExit) self.menubar.addAction(self.menuFile.menuAction()) self.retranslateUi(SAXSgui) self.Console.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(SAXSgui) def retranslateUi(self, SAXSgui): SAXSgui.setWindowTitle(_translate("SAXSgui", "UCSFsaxs v0.6", None)) self.checkLogY.setText(_translate("SAXSgui", "Log-scale Y-axis", None)) self.checkLogX.setText(_translate("SAXSgui", "Log-scale X-axis", None)) self.label_8.setText(_translate("SAXSgui", "Beam Profile", None)) self.label_19.setText(_translate("SAXSgui", "Initial Points to skip", None)) self.label_20.setText(_translate("SAXSgui", "End Points to skip", None)) self.label_22.setText(_translate("SAXSgui", "q_min : ", None)) self.label_23.setText(_translate("SAXSgui", "q_max : ", None)) self.qmin_label.setText(_translate("SAXSgui", "None", None)) self.qmax_label.setText(_translate("SAXSgui", "None", None)) self.Console.setTabText( self.Console.indexOf(self.fourierspace_tab), _translate("SAXSgui", "Fourier Space (Scattering)", None) ) self.groupBox_4.setTitle(_translate("SAXSgui", "Automated Guinier Analysis", None)) self.label_16.setText(_translate("SAXSgui", "qRg_min", None)) self.label_17.setText(_translate("SAXSgui", "qRg_max", None)) self.guinierminpts.setText(_translate("SAXSgui", "10", None)) self.label_18.setText(_translate("SAXSgui", "Min. points", None)) self.autoguinier_button.setText(_translate("SAXSgui", "Do it (Auto)!", None)) self.runprimaryanalysis.setText(_translate("SAXSgui", "Do it (Manual)!", None)) self.label_6.setText(_translate("SAXSgui", "to", None)) self.label_7.setText(_translate("SAXSgui", "Fit", None)) self.label_21.setText(_translate("SAXSgui", "current qRg : ", None)) self.qRg_label.setText(_translate("SAXSgui", "None", None)) self.label_4.setText(_translate("SAXSgui", "Rg : ", None)) self.label_5.setText(_translate("SAXSgui", "I(0):", None)) self.guinierRg_label.setText(_translate("SAXSgui", "None", None)) self.I0_label.setText(_translate("SAXSgui", "None", None)) self.Console.setTabText( self.Console.indexOf(self.guinierkratky_tab), _translate("SAXSgui", "Guinier, Kratky Plots", None) ) self.groupBox_3.setTitle(_translate("SAXSgui", "IFT parameters", None)) self.label_2.setText(_translate("SAXSgui", "Log(alpha) - Smoothness", None)) self.label.setText(_translate("SAXSgui", "Dmax", None)) self.label_3.setText(_translate("SAXSgui", "# of points in P(r)", None)) self.groupBox.setTitle(_translate("SAXSgui", "Data Parameters", None)) self.varianceweighted.setText(_translate("SAXSgui", "σ^2 weighted", None)) self.smeared.setText(_translate("SAXSgui", "Smeared", None)) self.solvepr_button.setText(_translate("SAXSgui", "Solve P(r)!", None)) self.saveiftresult.setText(_translate("SAXSgui", "Save File? Enter file name below:", None)) self.Console.setTabText(self.Console.indexOf(self.realspace_tab), _translate("SAXSgui", "Real Space", None)) self.groupBox_2.setTitle(_translate("SAXSgui", "Grid Search Parameters", None)) self.Nalpha.setText(_translate("SAXSgui", "10", None)) self.Ndmax.setText(_translate("SAXSgui", "10", None)) self.label_9.setText(_translate("SAXSgui", "No. of alpha", None)) self.label_10.setText(_translate("SAXSgui", "No. of Dmax", None)) self.label_11.setText(_translate("SAXSgui", "log(alpha) Range", None)) self.label_13.setText(_translate("SAXSgui", "Dmax Range", None)) self.calcbiftgrid.setText(_translate("SAXSgui", "Calculate Grid", None)) self.label_12.setText(_translate("SAXSgui", "-", None)) self.label_14.setText(_translate("SAXSgui", "-", None)) self.refinebift.setText(_translate("SAXSgui", "Refine Solution (Simplex)", None)) self.Console.setTabText(self.Console.indexOf(self.bayesianift_tab), _translate("SAXSgui", "BayesianIFT", None)) self.menuFile.setTitle(_translate("SAXSgui", "File", None)) self.actionOpen.setText(_translate("SAXSgui", "Open", None)) self.actionOpen.setToolTip(_translate("SAXSgui", "Open SAXS data file", None)) self.actionClose.setText(_translate("SAXSgui", "Close", None)) self.actionExit.setText(_translate("SAXSgui", "Exit Program", None)) self.actionGuinier_Plot.setText(_translate("SAXSgui", "Guinier Plot", None)) self.actionKratky_Plot.setText(_translate("SAXSgui", "Kratky Plot", None)) self.actionSAXSMoW.setText(_translate("SAXSgui", "SAXSMoW", None)) self.actionFoXS_fit.setText(_translate("SAXSgui", "FoXS fit ...", None)) self.actionLoad_Beam_Profile.setText(_translate("SAXSgui", "Load Beam Profile", None)) self.actionSave_as_GNOM_file.setText(_translate("SAXSgui", "Save as GNOM file ...", None)) self.actionSAXSMoW_2.setText(_translate("SAXSgui", "SAXSMoW", None))
class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(1012, 849) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(".\\Images/MainIcon.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) MainWindow.setWindowIcon(icon) self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget) self.verticalLayout.setObjectName("verticalLayout") self.showChannels = QtWidgets.QHBoxLayout() self.showChannels.setObjectName("showChannels") self.showChannel1 = QtWidgets.QCheckBox(self.centralwidget) self.showChannel1.setMinimumSize(QtCore.QSize(327, 20)) self.showChannel1.setObjectName("showChannel1") self.showChannels.addWidget(self.showChannel1) self.showChannel2 = QtWidgets.QCheckBox(self.centralwidget) self.showChannel2.setMinimumSize(QtCore.QSize(326, 20)) self.showChannel2.setObjectName("showChannel2") self.showChannels.addWidget(self.showChannel2) self.showChannel3 = QtWidgets.QCheckBox(self.centralwidget) self.showChannel3.setMinimumSize(QtCore.QSize(327, 20)) self.showChannel3.setObjectName("showChannel3") self.showChannels.addWidget(self.showChannel3) self.verticalLayout.addLayout(self.showChannels) self.channel1 = QtWidgets.QFrame() self.Channel1Components = QtWidgets.QHBoxLayout() self.channel1.setLayout(self.Channel1Components) self.verticalLayout.addWidget(self.channel1) self.Channel1Components.setObjectName("Channel1Components") self.signal1Graph = PlotWidget(self.centralwidget) # self.signal1Graph.setBackground('w') self.signal1Graph.plotItem.showGrid(True, True) self.signal1Graph.setMinimumSize(QtCore.QSize(470, 227)) self.signal1Graph.setObjectName("signal1Graph") self.Channel1Components.addWidget(self.signal1Graph) self.line_4 = QtWidgets.QFrame(self.centralwidget) self.line_4.setFrameShape(QtWidgets.QFrame.VLine) self.line_4.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_4.setObjectName("line_4") self.Channel1Components.addWidget(self.line_4) self.spectrogram1Graph = GraphicsLayoutWidget(self.centralwidget) # self.spectrogram1Graph.setBackground('w') self.spectrogram1Graph.setMinimumSize(QtCore.QSize(470, 227)) self.spectrogram1Graph.setObjectName("spectrogram1Graph") self.Channel1Components.addWidget(self.spectrogram1Graph) self.controls1 = QtWidgets.QVBoxLayout() self.controls1.setObjectName("controls1") spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.controls1.addItem(spacerItem) self.playBtn1 = QtWidgets.QPushButton(self.centralwidget) self.playBtn1.setEnabled(True) self.playBtn1.setMinimumSize(QtCore.QSize(29, 28)) self.playBtn1.setMaximumSize(QtCore.QSize(50, 16777215)) self.playBtn1.setText("") icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(".\\Images/play.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.playBtn1.setIcon(icon1) self.playBtn1.setObjectName("playBtn1") self.controls1.addWidget(self.playBtn1) self.pauseBtn1 = QtWidgets.QPushButton(self.centralwidget) self.pauseBtn1.setMinimumSize(QtCore.QSize(29, 28)) self.pauseBtn1.setMaximumSize(QtCore.QSize(50, 16777215)) self.pauseBtn1.setText("") icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap(".\\Images/pause.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.pauseBtn1.setIcon(icon2) self.pauseBtn1.setObjectName("pauseBtn1") self.controls1.addWidget(self.pauseBtn1) self.focusBtn1 = QtWidgets.QPushButton(self.centralwidget) self.focusBtn1.setMinimumSize(QtCore.QSize(29, 28)) self.focusBtn1.setMaximumSize(QtCore.QSize(50, 16777215)) self.focusBtn1.setText("") icon3 = QtGui.QIcon() icon3.addPixmap(QtGui.QPixmap(".\\Images/focus.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.focusBtn1.setIcon(icon3) self.focusBtn1.setObjectName("focusBtn1") self.controls1.addWidget(self.focusBtn1) self.zoomInBtn1 = QtWidgets.QPushButton(self.centralwidget) self.zoomInBtn1.setMinimumSize(QtCore.QSize(29, 28)) self.zoomInBtn1.setMaximumSize(QtCore.QSize(50, 16777215)) self.zoomInBtn1.setText("") icon4 = QtGui.QIcon() icon4.addPixmap(QtGui.QPixmap(".\\Images/zoom-in.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.zoomInBtn1.setIcon(icon4) self.zoomInBtn1.setObjectName("zoomInBtn1") self.controls1.addWidget(self.zoomInBtn1) self.zoomOutBtn1 = QtWidgets.QPushButton(self.centralwidget) self.zoomOutBtn1.setMinimumSize(QtCore.QSize(29, 28)) self.zoomOutBtn1.setMaximumSize(QtCore.QSize(50, 16777215)) self.zoomOutBtn1.setText("") icon5 = QtGui.QIcon() icon5.addPixmap(QtGui.QPixmap(".\\Images/zoom-out.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.zoomOutBtn1.setIcon(icon5) self.zoomOutBtn1.setObjectName("zoomOutBtn1") self.controls1.addWidget(self.zoomOutBtn1) self.clearBtn1 = QtWidgets.QPushButton(self.centralwidget) self.clearBtn1.setMinimumSize(QtCore.QSize(29, 28)) self.clearBtn1.setMaximumSize(QtCore.QSize(50, 16777215)) self.clearBtn1.setText("") icon6 = QtGui.QIcon() icon6.addPixmap(QtGui.QPixmap(".\\Images/delete.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.clearBtn1.setIcon(icon6) self.clearBtn1.setObjectName("clearBtn1") self.controls1.addWidget(self.clearBtn1) spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.controls1.addItem(spacerItem1) self.Channel1Components.addLayout(self.controls1) self.verticalLayout.addLayout(self.Channel1Components) self.line_2 = QtWidgets.QFrame(self.centralwidget) self.line_2.setFrameShape(QtWidgets.QFrame.HLine) self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_2.setObjectName("line_2") self.verticalLayout.addWidget(self.line_2) self.channel2 = QtWidgets.QFrame() self.Channel2Components = QtWidgets.QHBoxLayout() self.channel2.setLayout(self.Channel2Components) self.verticalLayout.addWidget(self.channel2) self.Channel2Components.setObjectName("Channel2Components") self.signal2Graph = PlotWidget(self.centralwidget) self.signal2Graph.plotItem.showGrid(True, True) # self.signal2Graph.setBackground('w') self.signal2Graph.setMinimumSize(QtCore.QSize(470, 226)) self.signal2Graph.setObjectName("signal2Graph") self.Channel2Components.addWidget(self.signal2Graph) self.line_3 = QtWidgets.QFrame(self.centralwidget) self.line_3.setFrameShape(QtWidgets.QFrame.VLine) self.line_3.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_3.setObjectName("line_3") self.Channel2Components.addWidget(self.line_3) self.spectrogram2Graph = GraphicsLayoutWidget(self.centralwidget) # self.spectrogram2Graph.setBackground('w') self.spectrogram2Graph.setMinimumSize(QtCore.QSize(470, 226)) self.spectrogram2Graph.setObjectName("spectrogram2Graph") self.Channel2Components.addWidget(self.spectrogram2Graph) self.controls2 = QtWidgets.QVBoxLayout() self.controls2.setObjectName("controls2") spacerItem2 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.controls2.addItem(spacerItem2) self.playBtn2 = QtWidgets.QPushButton(self.centralwidget) self.playBtn2.setEnabled(True) self.playBtn2.setMinimumSize(QtCore.QSize(29, 28)) self.playBtn2.setMaximumSize(QtCore.QSize(50, 16777215)) self.playBtn2.setText("") self.playBtn2.setIcon(icon1) self.playBtn2.setObjectName("playBtn2") self.controls2.addWidget(self.playBtn2) self.pauseBtn2 = QtWidgets.QPushButton(self.centralwidget) self.pauseBtn2.setMinimumSize(QtCore.QSize(29, 28)) self.pauseBtn2.setMaximumSize(QtCore.QSize(50, 16777215)) self.pauseBtn2.setText("") self.pauseBtn2.setIcon(icon2) self.pauseBtn2.setObjectName("pauseBtn2") self.controls2.addWidget(self.pauseBtn2) self.focusBtn2 = QtWidgets.QPushButton(self.centralwidget) self.focusBtn2.setMinimumSize(QtCore.QSize(29, 28)) self.focusBtn2.setMaximumSize(QtCore.QSize(50, 16777215)) self.focusBtn2.setText("") self.focusBtn2.setIcon(icon3) self.focusBtn2.setObjectName("focusBtn2") self.controls2.addWidget(self.focusBtn2) self.zoomInBtn2 = QtWidgets.QPushButton(self.centralwidget) self.zoomInBtn2.setMinimumSize(QtCore.QSize(29, 28)) self.zoomInBtn2.setMaximumSize(QtCore.QSize(50, 16777215)) self.zoomInBtn2.setText("") self.zoomInBtn2.setIcon(icon4) self.zoomInBtn2.setObjectName("zoomInBtn2") self.controls2.addWidget(self.zoomInBtn2) self.zoomOutBtn2 = QtWidgets.QPushButton(self.centralwidget) self.zoomOutBtn2.setMinimumSize(QtCore.QSize(29, 28)) self.zoomOutBtn2.setMaximumSize(QtCore.QSize(50, 16777215)) self.zoomOutBtn2.setText("") self.zoomOutBtn2.setIcon(icon5) self.zoomOutBtn2.setObjectName("zoomOutBtn2") self.controls2.addWidget(self.zoomOutBtn2) self.clearBtn2 = QtWidgets.QPushButton(self.centralwidget) self.clearBtn2.setMinimumSize(QtCore.QSize(29, 28)) self.clearBtn2.setMaximumSize(QtCore.QSize(50, 16777215)) self.clearBtn2.setText("") self.clearBtn2.setIcon(icon6) self.clearBtn2.setObjectName("clearBtn2") self.controls2.addWidget(self.clearBtn2) spacerItem3 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.controls2.addItem(spacerItem3) self.Channel2Components.addLayout(self.controls2) self.verticalLayout.addLayout(self.Channel2Components) self.line = QtWidgets.QFrame(self.centralwidget) self.line.setFrameShape(QtWidgets.QFrame.HLine) self.line.setFrameShadow(QtWidgets.QFrame.Sunken) self.line.setObjectName("line") self.verticalLayout.addWidget(self.line) self.channel3 = QtWidgets.QFrame() self.Channel3Components = QtWidgets.QHBoxLayout() self.channel3.setLayout(self.Channel3Components) self.verticalLayout.addWidget(self.channel3) self.Channel3Components.setObjectName("Channel3Components") self.signal3Graph = PlotWidget(self.centralwidget) self.signal3Graph.plotItem.showGrid(True, True) # self.signal3Graph.setBackground('w') self.signal3Graph.setMinimumSize(QtCore.QSize(470, 227)) self.signal3Graph.setObjectName("signal3Graph") self.Channel3Components.addWidget(self.signal3Graph) self.line_5 = QtWidgets.QFrame(self.centralwidget) self.line_5.setFrameShape(QtWidgets.QFrame.VLine) self.line_5.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_5.setObjectName("line_5") self.Channel3Components.addWidget(self.line_5) self.spectrogram3Graph = GraphicsLayoutWidget(self.centralwidget) # self.spectrogram3Graph.setBackground('w') self.spectrogram3Graph.setMinimumSize(QtCore.QSize(470, 227)) self.spectrogram3Graph.setObjectName("spectrogram3Graph") self.Channel3Components.addWidget(self.spectrogram3Graph) self.controls3 = QtWidgets.QVBoxLayout() self.controls3.setObjectName("controls3") spacerItem4 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.controls3.addItem(spacerItem4) self.playBtn3 = QtWidgets.QPushButton(self.centralwidget) self.playBtn3.setEnabled(True) self.playBtn3.setMinimumSize(QtCore.QSize(29, 28)) self.playBtn3.setMaximumSize(QtCore.QSize(50, 16777215)) self.playBtn3.setText("") self.playBtn3.setIcon(icon1) self.playBtn3.setObjectName("playBtn3") self.controls3.addWidget(self.playBtn3) self.pauseBtn3 = QtWidgets.QPushButton(self.centralwidget) self.pauseBtn3.setMinimumSize(QtCore.QSize(29, 28)) self.pauseBtn3.setMaximumSize(QtCore.QSize(50, 16777215)) self.pauseBtn3.setText("") self.pauseBtn3.setIcon(icon2) self.pauseBtn3.setObjectName("pauseBtn3") self.controls3.addWidget(self.pauseBtn3) self.focusBtn3 = QtWidgets.QPushButton(self.centralwidget) self.focusBtn3.setMinimumSize(QtCore.QSize(29, 28)) self.focusBtn3.setMaximumSize(QtCore.QSize(50, 16777215)) self.focusBtn3.setText("") self.focusBtn3.setIcon(icon3) self.focusBtn3.setObjectName("focusBtn3") self.controls3.addWidget(self.focusBtn3) self.zoomInBtn3 = QtWidgets.QPushButton(self.centralwidget) self.zoomInBtn3.setMinimumSize(QtCore.QSize(29, 28)) self.zoomInBtn3.setMaximumSize(QtCore.QSize(50, 16777215)) self.zoomInBtn3.setText("") self.zoomInBtn3.setIcon(icon4) self.zoomInBtn3.setObjectName("zoomInBtn3") self.controls3.addWidget(self.zoomInBtn3) self.zoomOutBtn3 = QtWidgets.QPushButton(self.centralwidget) self.zoomOutBtn3.setMinimumSize(QtCore.QSize(29, 28)) self.zoomOutBtn3.setMaximumSize(QtCore.QSize(50, 16777215)) self.zoomOutBtn3.setText("") self.zoomOutBtn3.setIcon(icon5) self.zoomOutBtn3.setObjectName("zoomOutBtn3") self.controls3.addWidget(self.zoomOutBtn3) self.clearBtn3 = QtWidgets.QPushButton(self.centralwidget) self.clearBtn3.setMinimumSize(QtCore.QSize(29, 28)) self.clearBtn3.setMaximumSize(QtCore.QSize(50, 16777215)) self.clearBtn3.setText("") self.clearBtn3.setIcon(icon6) self.clearBtn3.setObjectName("clearBtn3") self.controls3.addWidget(self.clearBtn3) spacerItem5 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.controls3.addItem(spacerItem5) self.Channel3Components.addLayout(self.controls3) self.verticalLayout.addLayout(self.Channel3Components) self.generatePDFComponent = QtWidgets.QHBoxLayout() self.generatePDFComponent.setObjectName("generatePDFComponent") spacerItem6 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.generatePDFComponent.addItem(spacerItem6) self.generatePDF = QtWidgets.QPushButton(self.centralwidget) self.generatePDF.setMinimumSize(QtCore.QSize(93, 28)) self.generatePDF.setObjectName("generatePDF") self.generatePDFComponent.addWidget(self.generatePDF) spacerItem7 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.generatePDFComponent.addItem(spacerItem7) self.verticalLayout.addLayout(self.generatePDFComponent) MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtWidgets.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 1012, 26)) self.menubar.setObjectName("menubar") self.menuFile = QtWidgets.QMenu(self.menubar) self.menuFile.setObjectName("menuFile") self.menuOpen = QtWidgets.QMenu(self.menuFile) self.menuOpen.setObjectName("menuOpen") self.menuHelp = QtWidgets.QMenu(self.menubar) self.menuHelp.setObjectName("menuHelp") MainWindow.setMenuBar(self.menubar) self.statusbar = QtWidgets.QStatusBar(MainWindow) self.statusbar.setObjectName("statusbar") MainWindow.setStatusBar(self.statusbar) self.actionNew = QtWidgets.QAction(MainWindow) self.actionNew.setObjectName("actionNew") self.actionGenerate_PDF = QtWidgets.QAction(MainWindow) self.actionGenerate_PDF.setObjectName("actionGenerate_PDF") self.actionExit = QtWidgets.QAction(MainWindow) self.actionExit.setObjectName("actionExit") self.actionAbout = QtWidgets.QAction(MainWindow) self.actionAbout.setObjectName("actionAbout") self.actionOpenChannel1 = QtWidgets.QAction(MainWindow) self.actionOpenChannel1.setObjectName("actionOpenChannel1") self.actionOpenChannel2 = QtWidgets.QAction(MainWindow) self.actionOpenChannel2.setObjectName("actionOpenChannel2") self.actionOpenChannel3 = QtWidgets.QAction(MainWindow) self.actionOpenChannel3.setObjectName("actionOpenChannel3") self.menuOpen.addAction(self.actionOpenChannel1) self.menuOpen.addAction(self.actionOpenChannel2) self.menuOpen.addAction(self.actionOpenChannel3) self.menuFile.addAction(self.actionNew) self.menuFile.addAction(self.menuOpen.menuAction()) self.menuFile.addAction(self.actionExit) self.menuHelp.addAction(self.actionAbout) self.menubar.addAction(self.menuFile.menuAction()) self.menubar.addAction(self.menuHelp.menuAction()) self.timer1 = QtCore.QTimer() self.timer2 = QtCore.QTimer() self.timer3 = QtCore.QTimer() self.retranslateUi(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): _translate = QtCore.QCoreApplication.translate MainWindow.setWindowTitle( _translate("MainWindow", "SBME - Signal Viewer")) self.showChannel1.setText(_translate("MainWindow", "CH1")) self.showChannel1.setShortcut(_translate("MainWindow", "Alt+1")) self.showChannel2.setText(_translate("MainWindow", "CH2")) self.showChannel2.setShortcut(_translate("MainWindow", "Alt+2")) self.showChannel3.setText(_translate("MainWindow", "CH3")) self.showChannel3.setShortcut(_translate("MainWindow", "Alt+3")) self.playBtn1.setShortcut(_translate("MainWindow", "Ctrl+P, Ctrl+1")) self.generatePDF.setText(_translate("MainWindow", "Generate PDF")) self.generatePDF.setShortcut(_translate("MainWindow", "Ctrl+S")) self.menuFile.setTitle(_translate("MainWindow", "File")) self.menuOpen.setTitle(_translate("MainWindow", "Open")) self.menuHelp.setTitle(_translate("MainWindow", "Help")) self.actionNew.setText(_translate("MainWindow", "New")) self.actionNew.setShortcut(_translate("MainWindow", "Ctrl+N")) self.actionGenerate_PDF.setText( _translate("MainWindow", "Generate PDF")) self.actionGenerate_PDF.setShortcut(_translate("MainWindow", "Ctrl+S")) self.actionExit.setText(_translate("MainWindow", "Exit")) self.actionExit.setShortcut(_translate("MainWindow", "Ctrl+Q")) self.actionAbout.setText(_translate("MainWindow", "About")) self.actionAbout.setShortcut(_translate("MainWindow", "F1")) self.actionOpenChannel1.setText(_translate("MainWindow", "Channel 1")) self.actionOpenChannel1.setShortcut(_translate("MainWindow", "Ctrl+1")) self.actionOpenChannel2.setText(_translate("MainWindow", "Channel 2")) self.actionOpenChannel2.setShortcut(_translate("MainWindow", "Ctrl+2")) self.actionOpenChannel3.setText(_translate("MainWindow", "Channel 3")) self.actionOpenChannel3.setShortcut(_translate("MainWindow", "Ctrl+3"))