Beispiel #1
0
class Ui_SignalViewer(object):
    def setupUi(self, SignalViewer):
        SignalViewer.setObjectName("SignalViewer")
        SignalViewer.resize(1003, 876)
        icon = QtGui.QIcon()
        icon.addPixmap(
            QtGui.QPixmap(
                "D:/3rd biomedical/second term/DSP/task 1/visualstudio/img/signallogo.png"
            ), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        SignalViewer.setWindowIcon(icon)
        SignalViewer.setIconSize(QtCore.QSize(500, 100))
        self.centralwidget = QtWidgets.QWidget(SignalViewer)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.centralwidget)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.win1 = PlotWidget(self.centralwidget)
        self.win1.setEnabled(True)
        self.win1.setMouseTracking(True)
        self.win1.setDragMode(QtWidgets.QGraphicsView.ScrollHandDrag)
        self.win1.setObjectName("win1")
        self.verticalLayout.addWidget(self.win1)
        self.gridLayout_2 = QtWidgets.QGridLayout()
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.startbutton1 = QtWidgets.QPushButton(self.centralwidget)
        self.startbutton1.setText("")
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap("img/startgreen.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.startbutton1.setIcon(icon1)
        self.startbutton1.setIconSize(QtCore.QSize(30, 30))
        self.startbutton1.setObjectName("startbutton1")
        self.gridLayout_2.addWidget(self.startbutton1, 0, 0, 1, 1)
        self.pausebutton1 = QtWidgets.QPushButton(self.centralwidget)
        self.pausebutton1.setText("")
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap("img/pausegreen.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.pausebutton1.setIcon(icon2)
        self.pausebutton1.setIconSize(QtCore.QSize(30, 30))
        self.pausebutton1.setObjectName("pausebutton1")
        self.gridLayout_2.addWidget(self.pausebutton1, 0, 1, 1, 1)
        self.restartbutton1 = QtWidgets.QPushButton(self.centralwidget)
        self.restartbutton1.setText("")
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap("img/startg1.png"), QtGui.QIcon.Normal,
                        QtGui.QIcon.Off)
        self.restartbutton1.setIcon(icon3)
        self.restartbutton1.setIconSize(QtCore.QSize(30, 30))
        self.restartbutton1.setObjectName("restartbutton1")
        self.gridLayout_2.addWidget(self.restartbutton1, 0, 2, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout_2)
        self.win2 = PlotWidget(self.centralwidget)
        self.win2.setMouseTracking(True)
        self.win2.setDragMode(QtWidgets.QGraphicsView.ScrollHandDrag)
        self.win2.setObjectName("win2")
        self.verticalLayout.addWidget(self.win2)
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.startbutton2 = QtWidgets.QPushButton(self.centralwidget)
        self.startbutton2.setText("")
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap("img/startblue.png"), QtGui.QIcon.Normal,
                        QtGui.QIcon.Off)
        self.startbutton2.setIcon(icon4)
        self.startbutton2.setIconSize(QtCore.QSize(30, 30))
        self.startbutton2.setObjectName("startbutton2")
        self.gridLayout.addWidget(self.startbutton2, 0, 0, 1, 1)
        self.win3 = PlotWidget(self.centralwidget)
        self.win3.setMouseTracking(True)
        self.win3.setDragMode(QtWidgets.QGraphicsView.ScrollHandDrag)
        self.win3.setObjectName("win3")
        self.gridLayout.addWidget(self.win3, 1, 0, 1, 3)
        self.restartbutton2 = QtWidgets.QPushButton(self.centralwidget)
        self.restartbutton2.setText("")
        icon5 = QtGui.QIcon()
        icon5.addPixmap(QtGui.QPixmap("img/restartblue.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.restartbutton2.setIcon(icon5)
        self.restartbutton2.setIconSize(QtCore.QSize(30, 30))
        self.restartbutton2.setObjectName("restartbutton2")
        self.gridLayout.addWidget(self.restartbutton2, 0, 2, 1, 1)
        self.pausebutton2 = QtWidgets.QPushButton(self.centralwidget)
        self.pausebutton2.setText("")
        icon6 = QtGui.QIcon()
        icon6.addPixmap(QtGui.QPixmap("img/pauseblue.png"), QtGui.QIcon.Normal,
                        QtGui.QIcon.Off)
        self.pausebutton2.setIcon(icon6)
        self.pausebutton2.setIconSize(QtCore.QSize(30, 30))
        self.pausebutton2.setObjectName("pausebutton2")
        self.gridLayout.addWidget(self.pausebutton2, 0, 1, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout)
        self.gridLayout_3 = QtWidgets.QGridLayout()
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.pausebutton3 = QtWidgets.QPushButton(self.centralwidget)
        self.pausebutton3.setText("")
        icon7 = QtGui.QIcon()
        icon7.addPixmap(QtGui.QPixmap("img/pausered.png"), QtGui.QIcon.Normal,
                        QtGui.QIcon.Off)
        self.pausebutton3.setIcon(icon7)
        self.pausebutton3.setIconSize(QtCore.QSize(30, 32))
        self.pausebutton3.setObjectName("pausebutton3")
        self.gridLayout_3.addWidget(self.pausebutton3, 0, 1, 1, 1)
        self.restartbutton3 = QtWidgets.QPushButton(self.centralwidget)
        self.restartbutton3.setText("")
        icon8 = QtGui.QIcon()
        icon8.addPixmap(QtGui.QPixmap("img/startr.png"), QtGui.QIcon.Normal,
                        QtGui.QIcon.Off)
        self.restartbutton3.setIcon(icon8)
        self.restartbutton3.setIconSize(QtCore.QSize(30, 30))
        self.restartbutton3.setObjectName("restartbutton3")
        self.gridLayout_3.addWidget(self.restartbutton3, 0, 2, 1, 1)
        self.startbutton3 = QtWidgets.QPushButton(self.centralwidget)
        self.startbutton3.setText("")
        icon9 = QtGui.QIcon()
        icon9.addPixmap(QtGui.QPixmap("img/resumered.png"), QtGui.QIcon.Normal,
                        QtGui.QIcon.Off)
        self.startbutton3.setIcon(icon9)
        self.startbutton3.setIconSize(QtCore.QSize(30, 30))
        self.startbutton3.setObjectName("startbutton3")
        self.gridLayout_3.addWidget(self.startbutton3, 0, 0, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout_3)
        self.verticalLayout_3.addLayout(self.verticalLayout)
        self.label1 = QtWidgets.QLabel(self.centralwidget)
        palette = QtGui.QPalette()
        brush = QtGui.QBrush(QtGui.QColor(85, 170, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(85, 170, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush)
        brush = QtGui.QBrush(QtGui.QColor(85, 170, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(85, 170, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush)
        brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush)
        self.label1.setPalette(palette)
        font = QtGui.QFont()
        font.setPointSize(10)
        font.setBold(True)
        font.setWeight(75)
        self.label1.setFont(font)
        self.label1.setObjectName("label1")
        self.verticalLayout_3.addWidget(self.label1)
        self.label2 = QtWidgets.QLabel(self.centralwidget)
        palette = QtGui.QPalette()
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText,
                         brush)
        self.label2.setPalette(palette)
        font = QtGui.QFont()
        font.setPointSize(10)
        font.setBold(True)
        font.setWeight(75)
        self.label2.setFont(font)
        self.label2.setObjectName("label2")
        self.verticalLayout_3.addWidget(self.label2)
        self.label3 = QtWidgets.QLabel(self.centralwidget)
        palette = QtGui.QPalette()
        brush = QtGui.QBrush(QtGui.QColor(255, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText,
                         brush)
        self.label3.setPalette(palette)
        font = QtGui.QFont()
        font.setPointSize(10)
        font.setBold(True)
        font.setWeight(75)
        self.label3.setFont(font)
        self.label3.setObjectName("label3")
        self.verticalLayout_3.addWidget(self.label3)
        self.verticalLayout_2 = QtWidgets.QVBoxLayout()
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.verticalLayout_3.addLayout(self.verticalLayout_2)
        SignalViewer.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(SignalViewer)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1003, 26))
        self.menubar.setObjectName("menubar")
        self.menuFile = QtWidgets.QMenu(self.menubar)
        self.menuFile.setObjectName("menuFile")
        self.menuOpenFile = QtWidgets.QMenu(self.menuFile)
        icon10 = QtGui.QIcon()
        icon10.addPixmap(QtGui.QPixmap("img/open.png"), QtGui.QIcon.Normal,
                         QtGui.QIcon.Off)
        self.menuOpenFile.setIcon(icon10)
        self.menuOpenFile.setObjectName("menuOpenFile")
        self.menuView = QtWidgets.QMenu(self.menubar)
        self.menuView.setObjectName("menuView")
        SignalViewer.setMenuBar(self.menubar)
        self.toolBar = QtWidgets.QToolBar(SignalViewer)
        self.toolBar.setIconSize(QtCore.QSize(40, 40))
        self.toolBar.setObjectName("toolBar")
        SignalViewer.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
        self.statusBar = QtWidgets.QStatusBar(SignalViewer)
        self.statusBar.setObjectName("statusBar")
        SignalViewer.setStatusBar(self.statusBar)
        self.actionZoomIn = QtWidgets.QAction(SignalViewer)
        self.actionZoomIn.setCheckable(False)
        icon11 = QtGui.QIcon()
        icon11.addPixmap(QtGui.QPixmap("img/zoominblue.png"),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionZoomIn.setIcon(icon11)
        self.actionZoomIn.setObjectName("actionZoomIn")
        self.actionZoomOut = QtWidgets.QAction(SignalViewer)
        icon12 = QtGui.QIcon()
        icon12.addPixmap(QtGui.QPixmap("img/zoomoutblue.png"),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionZoomOut.setIcon(icon12)
        self.actionZoomOut.setObjectName("actionZoomOut")
        self.actionScroll = QtWidgets.QAction(SignalViewer)
        icon13 = QtGui.QIcon()
        icon13.addPixmap(QtGui.QPixmap("img/scrolllblue.png"),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionScroll.setIcon(icon13)
        self.actionScroll.setObjectName("actionScroll")
        self.actionPan = QtWidgets.QAction(SignalViewer)
        icon14 = QtGui.QIcon()
        icon14.addPixmap(QtGui.QPixmap("img/panblue.png"), QtGui.QIcon.Normal,
                         QtGui.QIcon.Off)
        self.actionPan.setIcon(icon14)
        self.actionPan.setObjectName("actionPan")
        self.actionOpenCSVFile = QtWidgets.QAction(SignalViewer)
        self.actionOpenCSVFile.setIcon(icon10)
        self.actionOpenCSVFile.setObjectName("actionOpenCSVFile")
        self.actionOpentxtFile = QtWidgets.QAction(SignalViewer)
        self.actionOpentxtFile.setIcon(icon10)
        self.actionOpentxtFile.setObjectName("actionOpentxtFile")
        self.actionOpenWaveFile = QtWidgets.QAction(SignalViewer)
        self.actionOpenWaveFile.setIcon(icon10)
        self.actionOpenWaveFile.setObjectName("actionOpenWaveFile")
        self.actionSave = QtWidgets.QAction(SignalViewer)
        icon15 = QtGui.QIcon()
        icon15.addPixmap(QtGui.QPixmap("img/save.png"), QtGui.QIcon.Normal,
                         QtGui.QIcon.Off)
        self.actionSave.setIcon(icon15)
        self.actionSave.setObjectName("actionSave")
        self.actionExit = QtWidgets.QAction(SignalViewer)
        self.actionExit.setObjectName("actionExit")
        self.menuOpenFile.addAction(self.actionOpenCSVFile)
        self.menuOpenFile.addAction(self.actionOpentxtFile)
        self.menuOpenFile.addAction(self.actionOpenWaveFile)
        self.menuFile.addAction(self.menuOpenFile.menuAction())
        self.menuFile.addAction(self.actionSave)
        self.menuFile.addSeparator()
        self.menuFile.addAction(self.actionExit)
        self.menuView.addAction(self.actionZoomIn)
        self.menuView.addAction(self.actionZoomOut)
        self.menuView.addSeparator()
        self.menuView.addAction(self.actionPan)
        self.menuView.addAction(self.actionScroll)
        self.menubar.addAction(self.menuFile.menuAction())
        self.menubar.addAction(self.menuView.menuAction())
        self.toolBar.addAction(self.actionOpenCSVFile)
        self.toolBar.addSeparator()
        self.toolBar.addAction(self.actionSave)
        self.toolBar.addSeparator()
        self.toolBar.addAction(self.actionZoomIn)
        self.toolBar.addSeparator()
        self.toolBar.addAction(self.actionZoomOut)
        self.toolBar.addSeparator()
        self.toolBar.addAction(self.actionPan)
        self.toolBar.addSeparator()
        self.toolBar.addAction(self.actionScroll)

        self.retranslateUi(SignalViewer)
        QtCore.QMetaObject.connectSlotsByName(SignalViewer)

    def retranslateUi(self, SignalViewer):
        _translate = QtCore.QCoreApplication.translate
        SignalViewer.setWindowTitle(_translate("SignalViewer",
                                               "Signal Viewer"))
        self.startbutton1.setToolTip(_translate("SignalViewer", "Pause"))
        self.pausebutton1.setToolTip(_translate("SignalViewer", "Resume"))
        self.restartbutton1.setToolTip(_translate("SignalViewer", "Stop"))
        self.startbutton2.setToolTip(_translate("SignalViewer", "Pause"))
        self.restartbutton2.setToolTip(_translate("SignalViewer", "Stop"))
        self.pausebutton2.setToolTip(_translate("SignalViewer", "Resume"))
        self.pausebutton3.setToolTip(_translate("SignalViewer", "Pause"))
        self.restartbutton3.setToolTip(_translate("SignalViewer", "Resume"))
        self.startbutton3.setToolTip(_translate("SignalViewer", "Stop"))
        self.label1.setText(
            _translate(
                "SignalViewer",
                " Channel One                             -------------------------------------------------------------------------------------------"
            ))
        self.label2.setText(
            _translate(
                "SignalViewer",
                " Channel Two                             -------------------------------------------------------------------------------------------"
            ))
        self.label3.setText(
            _translate(
                "SignalViewer",
                " Channel Three                           -------------------------------------------------------------------------------------------"
            ))
        self.menuFile.setTitle(_translate("SignalViewer", "File"))
        self.menuOpenFile.setTitle(_translate("SignalViewer", "Open File"))
        self.menuView.setTitle(_translate("SignalViewer", "View"))
        self.toolBar.setWindowTitle(_translate("SignalViewer", "toolBar"))
        self.actionZoomIn.setText(_translate("SignalViewer", "Zoom In"))
        self.actionZoomOut.setText(_translate("SignalViewer", "Zoom Out"))
        self.actionScroll.setText(_translate("SignalViewer", "Scroll"))
        self.actionPan.setText(_translate("SignalViewer", "Pan"))
        self.actionOpenCSVFile.setText(_translate("SignalViewer", "csv File"))
        self.actionOpenCSVFile.setShortcut(_translate("SignalViewer",
                                                      "Ctrl+O"))
        self.actionOpentxtFile.setText(_translate("SignalViewer", "txt File"))
        self.actionOpenWaveFile.setText(_translate("SignalViewer", "wav File"))
        self.actionSave.setText(_translate("SignalViewer", "Save"))
        self.actionSave.setShortcut(_translate("SignalViewer", "Ctrl+S"))
        self.actionExit.setText(_translate("SignalViewer", "Exit"))
Beispiel #2
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.setEnabled(True)
        MainWindow.resize(1350, 755)
        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.horizontalLayout_13 = QtGui.QHBoxLayout(self.centralwidget)
        self.horizontalLayout_13.setObjectName(_fromUtf8("horizontalLayout_13"))
        self.verticalLayout_5 = QtGui.QVBoxLayout()
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
        self.select_folder_button = QtGui.QPushButton(self.centralwidget)
        self.select_folder_button.setMaximumSize(QtCore.QSize(150, 50))
        font = QtGui.QFont()
        font.setPointSize(9)
        self.select_folder_button.setFont(font)
        self.select_folder_button.setObjectName(_fromUtf8("select_folder_button"))
        self.horizontalLayout_6.addWidget(self.select_folder_button)
        self.reset_view_button = QtGui.QPushButton(self.centralwidget)
        self.reset_view_button.setObjectName(_fromUtf8("reset_view_button"))
        self.horizontalLayout_6.addWidget(self.reset_view_button)
        spacerItem = QtGui.QSpacerItem(20, 24, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_6.addItem(spacerItem)
        self.line_3 = QtGui.QFrame(self.centralwidget)
        self.line_3.setFrameShape(QtGui.QFrame.VLine)
        self.line_3.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_3.setObjectName(_fromUtf8("line_3"))
        self.horizontalLayout_6.addWidget(self.line_3)
        spacerItem1 = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_6.addItem(spacerItem1)
        self.tt_times = QtGui.QCheckBox(self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(9)
        self.tt_times.setFont(font)
        self.tt_times.setObjectName(_fromUtf8("tt_times"))
        self.horizontalLayout_6.addWidget(self.tt_times)
        spacerItem2 = QtGui.QSpacerItem(20, 24, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_6.addItem(spacerItem2)
        self.line_6 = QtGui.QFrame(self.centralwidget)
        self.line_6.setFrameShape(QtGui.QFrame.VLine)
        self.line_6.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_6.setObjectName(_fromUtf8("line_6"))
        self.horizontalLayout_6.addWidget(self.line_6)
        spacerItem3 = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_6.addItem(spacerItem3)
        self.lowpass_check_box = QtGui.QCheckBox(self.centralwidget)
        self.lowpass_check_box.setEnabled(True)
        font = QtGui.QFont()
        font.setPointSize(9)
        self.lowpass_check_box.setFont(font)
        self.lowpass_check_box.setChecked(False)
        self.lowpass_check_box.setTristate(False)
        self.lowpass_check_box.setObjectName(_fromUtf8("lowpass_check_box"))
        self.horizontalLayout_6.addWidget(self.lowpass_check_box)
        self.lowpass_period = QtGui.QDoubleSpinBox(self.centralwidget)
        self.lowpass_period.setEnabled(False)
        self.lowpass_period.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.lowpass_period.setDecimals(1)
        self.lowpass_period.setMinimum(0.0)
        self.lowpass_period.setMaximum(1000.0)
        self.lowpass_period.setProperty("value", 5.0)
        self.lowpass_period.setObjectName(_fromUtf8("lowpass_period"))
        self.horizontalLayout_6.addWidget(self.lowpass_period)
        self.lowpass_label = QtGui.QLabel(self.centralwidget)
        self.lowpass_label.setEnabled(False)
        font = QtGui.QFont()
        font.setPointSize(9)
        self.lowpass_label.setFont(font)
        self.lowpass_label.setObjectName(_fromUtf8("lowpass_label"))
        self.horizontalLayout_6.addWidget(self.lowpass_label)
        self.highpass_check_box = QtGui.QCheckBox(self.centralwidget)
        self.highpass_check_box.setEnabled(True)
        font = QtGui.QFont()
        font.setPointSize(9)
        self.highpass_check_box.setFont(font)
        self.highpass_check_box.setChecked(False)
        self.highpass_check_box.setTristate(False)
        self.highpass_check_box.setObjectName(_fromUtf8("highpass_check_box"))
        self.horizontalLayout_6.addWidget(self.highpass_check_box)
        self.highpass_period = QtGui.QDoubleSpinBox(self.centralwidget)
        self.highpass_period.setEnabled(False)
        self.highpass_period.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.highpass_period.setDecimals(1)
        self.highpass_period.setMinimum(0.0)
        self.highpass_period.setMaximum(1000.0)
        self.highpass_period.setProperty("value", 50.0)
        self.highpass_period.setObjectName(_fromUtf8("highpass_period"))
        self.horizontalLayout_6.addWidget(self.highpass_period)
        self.highpass_label = QtGui.QLabel(self.centralwidget)
        self.highpass_label.setEnabled(False)
        font = QtGui.QFont()
        font.setPointSize(9)
        self.highpass_label.setFont(font)
        self.highpass_label.setObjectName(_fromUtf8("highpass_label"))
        self.horizontalLayout_6.addWidget(self.highpass_label)
        spacerItem4 = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_6.addItem(spacerItem4)
        self.components_combo = QtGui.QComboBox(self.centralwidget)
        self.components_combo.setEditable(False)
        self.components_combo.setObjectName(_fromUtf8("components_combo"))
        self.components_combo.addItem(_fromUtf8(""))
        self.components_combo.addItem(_fromUtf8(""))
        self.horizontalLayout_6.addWidget(self.components_combo)
        spacerItem5 = QtGui.QSpacerItem(20, 24, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_6.addItem(spacerItem5)
        self.resample_check_box = QtGui.QCheckBox(self.centralwidget)
        self.resample_check_box.setEnabled(True)
        font = QtGui.QFont()
        font.setPointSize(9)
        self.resample_check_box.setFont(font)
        self.resample_check_box.setChecked(False)
        self.resample_check_box.setTristate(False)
        self.resample_check_box.setObjectName(_fromUtf8("resample_check_box"))
        self.horizontalLayout_6.addWidget(self.resample_check_box)
        self.resample_factor = QtGui.QDoubleSpinBox(self.centralwidget)
        self.resample_factor.setEnabled(False)
        self.resample_factor.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.resample_factor.setMinimum(1.0)
        self.resample_factor.setProperty("value", 10.0)
        self.resample_factor.setObjectName(_fromUtf8("resample_factor"))
        self.horizontalLayout_6.addWidget(self.resample_factor)
        self.sr_ref_label = QtGui.QLabel(self.centralwidget)
        self.sr_ref_label.setEnabled(False)
        font = QtGui.QFont()
        font.setPointSize(9)
        self.sr_ref_label.setFont(font)
        self.sr_ref_label.setObjectName(_fromUtf8("sr_ref_label"))
        self.horizontalLayout_6.addWidget(self.sr_ref_label)
        self.verticalLayout_5.addLayout(self.horizontalLayout_6)
        self.line = QtGui.QFrame(self.centralwidget)
        self.line.setFrameShape(QtGui.QFrame.HLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName(_fromUtf8("line"))
        self.verticalLayout_5.addWidget(self.line)
        self.horizontalLayout_8 = QtGui.QHBoxLayout()
        self.horizontalLayout_8.setObjectName(_fromUtf8("horizontalLayout_8"))
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.z_graph = PlotWidget(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.z_graph.sizePolicy().hasHeightForWidth())
        self.z_graph.setSizePolicy(sizePolicy)
        self.z_graph.setMouseTracking(False)
        self.z_graph.setToolTip(_fromUtf8(""))
        self.z_graph.setObjectName(_fromUtf8("z_graph"))
        self.verticalLayout_2.addWidget(self.z_graph)
        self.n_graph = PlotWidget(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.n_graph.sizePolicy().hasHeightForWidth())
        self.n_graph.setSizePolicy(sizePolicy)
        self.n_graph.setToolTip(_fromUtf8(""))
        self.n_graph.setObjectName(_fromUtf8("n_graph"))
        self.verticalLayout_2.addWidget(self.n_graph)
        self.e_graph = PlotWidget(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.e_graph.sizePolicy().hasHeightForWidth())
        self.e_graph.setSizePolicy(sizePolicy)
        self.e_graph.setObjectName(_fromUtf8("e_graph"))
        self.verticalLayout_2.addWidget(self.e_graph)
        self.horizontalLayout_8.addLayout(self.verticalLayout_2)
        self.line_2 = QtGui.QFrame(self.centralwidget)
        self.line_2.setFrameShape(QtGui.QFrame.VLine)
        self.line_2.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_2.setObjectName(_fromUtf8("line_2"))
        self.horizontalLayout_8.addWidget(self.line_2)
        self.verticalLayout_3 = QtGui.QVBoxLayout()
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.info_text = QtGui.QTextBrowser(self.centralwidget)
        self.info_text.setMinimumSize(QtCore.QSize(470, 100))
        self.info_text.setMaximumSize(QtCore.QSize(470, 600))
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Monospace"))
        font.setPointSize(8)
        self.info_text.setFont(font)
        self.info_text.setLineWrapMode(QtGui.QTextEdit.NoWrap)
        self.info_text.setTabStopWidth(20)
        self.info_text.setObjectName(_fromUtf8("info_text"))
        self.verticalLayout_3.addWidget(self.info_text)
        self.finsource_tab = QtGui.QTabWidget(self.centralwidget)
        self.finsource_tab.setMinimumSize(QtCore.QSize(470, 0))
        self.finsource_tab.setMaximumSize(QtCore.QSize(470, 16777215))
        self.finsource_tab.setObjectName(_fromUtf8("finsource_tab"))
        self.tab_9 = QtGui.QWidget()
        self.tab_9.setObjectName(_fromUtf8("tab_9"))
        self.horizontalLayout_5 = QtGui.QHBoxLayout(self.tab_9)
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.gridLayout_2 = QtGui.QGridLayout()
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.label = QtGui.QLabel(self.tab_9)
        self.label.setAlignment(QtCore.Qt.AlignCenter)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout_2.addWidget(self.label, 1, 0, 1, 1)
        self.source_latitude = QtGui.QDoubleSpinBox(self.tab_9)
        self.source_latitude.setMinimum(-90.0)
        self.source_latitude.setMaximum(90.0)
        self.source_latitude.setObjectName(_fromUtf8("source_latitude"))
        self.gridLayout_2.addWidget(self.source_latitude, 1, 1, 1, 1)
        self.source_longitude = QtGui.QDoubleSpinBox(self.tab_9)
        self.source_longitude.setMinimum(-180.0)
        self.source_longitude.setMaximum(180.0)
        self.source_longitude.setObjectName(_fromUtf8("source_longitude"))
        self.gridLayout_2.addWidget(self.source_longitude, 1, 3, 1, 1)
        self.label_2 = QtGui.QLabel(self.tab_9)
        self.label_2.setAlignment(QtCore.Qt.AlignCenter)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout_2.addWidget(self.label_2, 1, 2, 1, 1)
        self.horizontalLayout_3.addLayout(self.gridLayout_2)
        self.depth_label = QtGui.QLabel(self.tab_9)
        self.depth_label.setMinimumSize(QtCore.QSize(120, 0))
        self.depth_label.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.depth_label.setObjectName(_fromUtf8("depth_label"))
        self.horizontalLayout_3.addWidget(self.depth_label)
        self.verticalLayout.addLayout(self.horizontalLayout_3)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.mt_fig = Qt4MplCanvas(self.tab_9)
        self.mt_fig.setMinimumSize(QtCore.QSize(60, 60))
        self.mt_fig.setMaximumSize(QtCore.QSize(60, 60))
        self.mt_fig.setObjectName(_fromUtf8("mt_fig"))
        self.horizontalLayout.addWidget(self.mt_fig)
        self.source_tab = QtGui.QTabWidget(self.tab_9)
        self.source_tab.setObjectName(_fromUtf8("source_tab"))
        self.tab = QtGui.QWidget()
        self.tab.setObjectName(_fromUtf8("tab"))
        self.gridLayout = QtGui.QGridLayout(self.tab)
        self.gridLayout.setContentsMargins(9, -1, -1, -1)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.m_rr = QtGui.QDoubleSpinBox(self.tab)
        self.m_rr.setPrefix(_fromUtf8(""))
        self.m_rr.setMinimum(-99.0)
        self.m_rr.setMaximum(99.0)
        self.m_rr.setObjectName(_fromUtf8("m_rr"))
        self.gridLayout.addWidget(self.m_rr, 1, 1, 1, 1)
        self.m_rt = QtGui.QDoubleSpinBox(self.tab)
        self.m_rt.setPrefix(_fromUtf8(""))
        self.m_rt.setMinimum(-99.0)
        self.m_rt.setMaximum(99.0)
        self.m_rt.setObjectName(_fromUtf8("m_rt"))
        self.gridLayout.addWidget(self.m_rt, 1, 2, 1, 1)
        self.label_9 = QtGui.QLabel(self.tab)
        self.label_9.setAlignment(QtCore.Qt.AlignCenter)
        self.label_9.setObjectName(_fromUtf8("label_9"))
        self.gridLayout.addWidget(self.label_9, 0, 3, 1, 1)
        self.label_6 = QtGui.QLabel(self.tab)
        self.label_6.setAlignment(QtCore.Qt.AlignCenter)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.gridLayout.addWidget(self.label_6, 0, 2, 1, 1)
        self.label_5 = QtGui.QLabel(self.tab)
        self.label_5.setAlignment(QtCore.Qt.AlignCenter)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.gridLayout.addWidget(self.label_5, 0, 1, 1, 1)
        self.m_rp = QtGui.QDoubleSpinBox(self.tab)
        self.m_rp.setPrefix(_fromUtf8(""))
        self.m_rp.setMinimum(-99.0)
        self.m_rp.setMaximum(99.0)
        self.m_rp.setObjectName(_fromUtf8("m_rp"))
        self.gridLayout.addWidget(self.m_rp, 1, 3, 1, 1)
        self.label_7 = QtGui.QLabel(self.tab)
        self.label_7.setAlignment(QtCore.Qt.AlignCenter)
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.gridLayout.addWidget(self.label_7, 3, 0, 1, 1)
        self.m_tt = QtGui.QDoubleSpinBox(self.tab)
        self.m_tt.setPrefix(_fromUtf8(""))
        self.m_tt.setMinimum(-99.0)
        self.m_tt.setMaximum(99.0)
        self.m_tt.setObjectName(_fromUtf8("m_tt"))
        self.gridLayout.addWidget(self.m_tt, 3, 2, 1, 1)
        self.m_tp = QtGui.QDoubleSpinBox(self.tab)
        self.m_tp.setPrefix(_fromUtf8(""))
        self.m_tp.setMinimum(-99.0)
        self.m_tp.setMaximum(99.0)
        self.m_tp.setObjectName(_fromUtf8("m_tp"))
        self.gridLayout.addWidget(self.m_tp, 3, 3, 1, 1)
        self.label_8 = QtGui.QLabel(self.tab)
        self.label_8.setAlignment(QtCore.Qt.AlignCenter)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.gridLayout.addWidget(self.label_8, 4, 0, 1, 1)
        self.m_pp = QtGui.QDoubleSpinBox(self.tab)
        self.m_pp.setPrefix(_fromUtf8(""))
        self.m_pp.setMinimum(-99.0)
        self.m_pp.setMaximum(99.0)
        self.m_pp.setObjectName(_fromUtf8("m_pp"))
        self.gridLayout.addWidget(self.m_pp, 4, 3, 1, 1)
        self.label_4 = QtGui.QLabel(self.tab)
        self.label_4.setEnabled(True)
        self.label_4.setAlignment(QtCore.Qt.AlignCenter)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.gridLayout.addWidget(self.label_4, 1, 0, 1, 1)
        self.gridLayout.setColumnStretch(1, 10)
        self.gridLayout.setColumnStretch(2, 10)
        self.gridLayout.setColumnStretch(3, 10)
        self.source_tab.addTab(self.tab, _fromUtf8(""))
        self.tab_2 = QtGui.QWidget()
        self.tab_2.setObjectName(_fromUtf8("tab_2"))
        self.gridLayout_4 = QtGui.QGridLayout(self.tab_2)
        self.gridLayout_4.setMargin(9)
        self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
        self.strike_value = QtGui.QLabel(self.tab_2)
        self.strike_value.setMinimumSize(QtCore.QSize(30, 0))
        self.strike_value.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.strike_value.setObjectName(_fromUtf8("strike_value"))
        self.gridLayout_4.addWidget(self.strike_value, 0, 2, 1, 1)
        self.label_10 = QtGui.QLabel(self.tab_2)
        self.label_10.setObjectName(_fromUtf8("label_10"))
        self.gridLayout_4.addWidget(self.label_10, 1, 0, 1, 1)
        self.label_3 = QtGui.QLabel(self.tab_2)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout_4.addWidget(self.label_3, 0, 0, 1, 1)
        self.dip_slider = QtGui.QSlider(self.tab_2)
        self.dip_slider.setMaximum(90)
        self.dip_slider.setProperty("value", 90)
        self.dip_slider.setOrientation(QtCore.Qt.Horizontal)
        self.dip_slider.setObjectName(_fromUtf8("dip_slider"))
        self.gridLayout_4.addWidget(self.dip_slider, 1, 1, 1, 1)
        self.dip_value = QtGui.QLabel(self.tab_2)
        self.dip_value.setMinimumSize(QtCore.QSize(30, 0))
        self.dip_value.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.dip_value.setObjectName(_fromUtf8("dip_value"))
        self.gridLayout_4.addWidget(self.dip_value, 1, 2, 1, 1)
        self.label_13 = QtGui.QLabel(self.tab_2)
        self.label_13.setObjectName(_fromUtf8("label_13"))
        self.gridLayout_4.addWidget(self.label_13, 2, 0, 1, 1)
        self.rake_slider = QtGui.QSlider(self.tab_2)
        self.rake_slider.setMinimum(-180)
        self.rake_slider.setMaximum(180)
        self.rake_slider.setOrientation(QtCore.Qt.Horizontal)
        self.rake_slider.setObjectName(_fromUtf8("rake_slider"))
        self.gridLayout_4.addWidget(self.rake_slider, 2, 1, 1, 1)
        self.rake_value = QtGui.QLabel(self.tab_2)
        self.rake_value.setMinimumSize(QtCore.QSize(30, 0))
        self.rake_value.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.rake_value.setObjectName(_fromUtf8("rake_value"))
        self.gridLayout_4.addWidget(self.rake_value, 2, 2, 1, 1)
        self.strike_slider = QtGui.QSlider(self.tab_2)
        self.strike_slider.setMaximum(360)
        self.strike_slider.setOrientation(QtCore.Qt.Horizontal)
        self.strike_slider.setObjectName(_fromUtf8("strike_slider"))
        self.gridLayout_4.addWidget(self.strike_slider, 0, 1, 1, 1)
        self.source_tab.addTab(self.tab_2, _fromUtf8(""))
        self.horizontalLayout.addWidget(self.source_tab)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.horizontalLayout_5.addLayout(self.verticalLayout)
        self.depth_slider = QtGui.QSlider(self.tab_9)
        self.depth_slider.setMinimum(-300)
        self.depth_slider.setMaximum(0)
        self.depth_slider.setProperty("value", -10)
        self.depth_slider.setSliderPosition(-10)
        self.depth_slider.setOrientation(QtCore.Qt.Vertical)
        self.depth_slider.setTickPosition(QtGui.QSlider.NoTicks)
        self.depth_slider.setObjectName(_fromUtf8("depth_slider"))
        self.horizontalLayout_5.addWidget(self.depth_slider)
        self.finsource_tab.addTab(self.tab_9, _fromUtf8(""))
        self.tab_10 = QtGui.QWidget()
        self.tab_10.setObjectName(_fromUtf8("tab_10"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.tab_10)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.open_srf_file_button = QtGui.QPushButton(self.tab_10)
        self.open_srf_file_button.setObjectName(_fromUtf8("open_srf_file_button"))
        self.horizontalLayout_2.addWidget(self.open_srf_file_button)
        self.update_button = QtGui.QPushButton(self.tab_10)
        self.update_button.setObjectName(_fromUtf8("update_button"))
        self.horizontalLayout_2.addWidget(self.update_button)
        self.auto_update_check_box = QtGui.QCheckBox(self.tab_10)
        self.auto_update_check_box.setEnabled(True)
        self.auto_update_check_box.setObjectName(_fromUtf8("auto_update_check_box"))
        self.horizontalLayout_2.addWidget(self.auto_update_check_box)
        self.finsource_tab.addTab(self.tab_10, _fromUtf8(""))
        self.verticalLayout_3.addWidget(self.finsource_tab)
        self.map_fig = Qt4MplCanvas(self.centralwidget)
        self.map_fig.setMinimumSize(QtCore.QSize(470, 280))
        self.map_fig.setMaximumSize(QtCore.QSize(470, 280))
        self.map_fig.setObjectName(_fromUtf8("map_fig"))
        self.verticalLayout_3.addWidget(self.map_fig)
        self.groupBox_2 = QtGui.QGroupBox(self.centralwidget)
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.horizontalLayout_7 = QtGui.QHBoxLayout(self.groupBox_2)
        self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7"))
        self.label_11 = QtGui.QLabel(self.groupBox_2)
        self.label_11.setObjectName(_fromUtf8("label_11"))
        self.horizontalLayout_7.addWidget(self.label_11)
        self.receiver_latitude = QtGui.QDoubleSpinBox(self.groupBox_2)
        self.receiver_latitude.setMinimum(-90.0)
        self.receiver_latitude.setMaximum(90.0)
        self.receiver_latitude.setProperty("value", 45.0)
        self.receiver_latitude.setObjectName(_fromUtf8("receiver_latitude"))
        self.horizontalLayout_7.addWidget(self.receiver_latitude)
        self.label_12 = QtGui.QLabel(self.groupBox_2)
        self.label_12.setObjectName(_fromUtf8("label_12"))
        self.horizontalLayout_7.addWidget(self.label_12)
        self.receiver_longitude = QtGui.QDoubleSpinBox(self.groupBox_2)
        self.receiver_longitude.setMinimum(-180.0)
        self.receiver_longitude.setMaximum(180.0)
        self.receiver_longitude.setProperty("value", 45.0)
        self.receiver_longitude.setObjectName(_fromUtf8("receiver_longitude"))
        self.horizontalLayout_7.addWidget(self.receiver_longitude)
        spacerItem6 = QtGui.QSpacerItem(163, 24, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_7.addItem(spacerItem6)
        self.verticalLayout_3.addWidget(self.groupBox_2)
        self.horizontalLayout_8.addLayout(self.verticalLayout_3)
        self.horizontalLayout_8.setStretch(0, 10)
        self.verticalLayout_5.addLayout(self.horizontalLayout_8)
        self.horizontalLayout_13.addLayout(self.verticalLayout_5)
        MainWindow.setCentralWidget(self.centralwidget)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)
        self.components_combo.setCurrentIndex(1)
        self.finsource_tab.setCurrentIndex(0)
        self.source_tab.setCurrentIndex(1)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(_translate("MainWindow", "Instaseis GUI", None))
        self.select_folder_button.setText(_translate("MainWindow", "Open DB", None))
        self.reset_view_button.setText(_translate("MainWindow", "Reset View (R)", None))
        self.reset_view_button.setShortcut(_translate("MainWindow", "R", None))
        self.tt_times.setText(_translate("MainWindow", "Plot TauP Times (AK135)", None))
        self.lowpass_check_box.setText(_translate("MainWindow", "Lowpass", None))
        self.lowpass_label.setText(_translate("MainWindow", "s", None))
        self.highpass_check_box.setText(_translate("MainWindow", "Highpass", None))
        self.highpass_label.setText(_translate("MainWindow", "s", None))
        self.components_combo.setItemText(0, _translate("MainWindow", "ZNE", None))
        self.components_combo.setItemText(1, _translate("MainWindow", "ZRT", None))
        self.resample_check_box.setText(_translate("MainWindow", "Resample", None))
        self.sr_ref_label.setText(_translate("MainWindow", "x sampling rate", None))
        self.label.setText(_translate("MainWindow", "Latitude", None))
        self.label_2.setText(_translate("MainWindow", "Longitude", None))
        self.depth_label.setText(_translate("MainWindow", "Depth: 10 km", None))
        self.m_rr.setSuffix(_translate("MainWindow", "e16", None))
        self.m_rt.setSuffix(_translate("MainWindow", "e16", None))
        self.label_9.setText(_translate("MainWindow", "p", None))
        self.label_6.setText(_translate("MainWindow", "t", None))
        self.label_5.setText(_translate("MainWindow", "r", None))
        self.m_rp.setSuffix(_translate("MainWindow", "e16", None))
        self.label_7.setText(_translate("MainWindow", "t", None))
        self.m_tt.setSuffix(_translate("MainWindow", "e16", None))
        self.m_tp.setSuffix(_translate("MainWindow", "e16", None))
        self.label_8.setText(_translate("MainWindow", "p", None))
        self.m_pp.setSuffix(_translate("MainWindow", "e16", None))
        self.label_4.setText(_translate("MainWindow", "r", None))
        self.source_tab.setTabText(self.source_tab.indexOf(self.tab), _translate("MainWindow", "Moment Tensor", None))
        self.strike_value.setText(_translate("MainWindow", "0", None))
        self.label_10.setText(_translate("MainWindow", "Dip", None))
        self.label_3.setText(_translate("MainWindow", "Strike", None))
        self.dip_value.setText(_translate("MainWindow", "0", None))
        self.label_13.setText(_translate("MainWindow", "Rake", None))
        self.rake_value.setText(_translate("MainWindow", "0", None))
        self.source_tab.setTabText(self.source_tab.indexOf(self.tab_2), _translate("MainWindow", "Strike Dip Rake", None))
        self.finsource_tab.setTabText(self.finsource_tab.indexOf(self.tab_9), _translate("MainWindow", "Point Source", None))
        self.open_srf_file_button.setText(_translate("MainWindow", "Open *.srf", None))
        self.update_button.setText(_translate("MainWindow", "update seismograms (U)", None))
        self.update_button.setShortcut(_translate("MainWindow", "U", None))
        self.auto_update_check_box.setText(_translate("MainWindow", "auto update", None))
        self.finsource_tab.setTabText(self.finsource_tab.indexOf(self.tab_10), _translate("MainWindow", "Finite Source", None))
        self.groupBox_2.setTitle(_translate("MainWindow", "Receiver", None))
        self.label_11.setText(_translate("MainWindow", "Latitude", None))
        self.label_12.setText(_translate("MainWindow", "Longitude", None))
Beispiel #3
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.setEnabled(True)
        MainWindow.resize(721, 721)
        MainWindow.setMinimumSize(QtCore.QSize(721, 721))
        MainWindow.setMaximumSize(QtCore.QSize(721, 16777215))
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.textBrowser = QtWidgets.QTextBrowser(self.centralwidget)
        self.textBrowser.setEnabled(True)
        self.textBrowser.setGeometry(QtCore.QRect(10, 610, 701, 51))
        self.textBrowser.setObjectName("textBrowser")
        self.label = QtWidgets.QLabel(self.centralwidget)
        self.label.setGeometry(QtCore.QRect(10, 590, 59, 16))
        self.label.setObjectName("label")
        self.screen = PlotWidget(self.centralwidget)
        self.screen.setGeometry(QtCore.QRect(0, 0, 721, 551))
        self.screen.setCursor(QtGui.QCursor(QtCore.Qt.CrossCursor))
        self.screen.setMouseTracking(True)
        self.screen.setContextMenuPolicy(QtCore.Qt.DefaultContextMenu)
        self.screen.setAutoFillBackground(False)
        self.screen.setStyleSheet("background-color: qradialgradient(spread:repeat, cx:0.5, cy:0.5, radius:0.077, fx:0.5, fy:0.5, stop:0 rgba(0, 169, 255, 147), stop:0.497326 rgba(0, 0, 0, 147), stop:1 rgba(0, 169, 255, 147));")
        self.screen.setObjectName("screen")
        self.layoutWidget = QtWidgets.QWidget(self.centralwidget)
        self.layoutWidget.setGeometry(QtCore.QRect(10, 560, 701, 26))
        self.layoutWidget.setObjectName("layoutWidget")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.layoutWidget)
        self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.scan = QtWidgets.QPushButton(self.layoutWidget)
        self.scan.setObjectName("scan")
        self.horizontalLayout.addWidget(self.scan)
        self.load = QtWidgets.QPushButton(self.layoutWidget)
        self.load.setObjectName("load")
        self.horizontalLayout.addWidget(self.load)
        self.slice = QtWidgets.QPushButton(self.layoutWidget)
        self.slice.setObjectName("slice")
        self.horizontalLayout.addWidget(self.slice)
        self.measure = QtWidgets.QPushButton(self.layoutWidget)
        self.measure.setObjectName("measure")
        self.horizontalLayout.addWidget(self.measure)
        self.report = QtWidgets.QPushButton(self.layoutWidget)
        self.report.setAutoDefault(False)
        self.report.setDefault(False)
        self.report.setFlat(False)
        self.report.setObjectName("report")
        self.horizontalLayout.addWidget(self.report)
        self.pushButton = QtWidgets.QPushButton(self.layoutWidget)
        self.pushButton.setObjectName("pushButton")
        self.horizontalLayout.addWidget(self.pushButton)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 721, 21))
        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.slice.clicked.connect(MainWindow.invokeSlicer)
        self.measure.clicked.connect(MainWindow.measureMode)
        self.scan.clicked.connect(MainWindow.spawnOptions)
        self.load.clicked.connect(MainWindow.browseSlot)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "Spectrox"))
        self.label.setText(_translate("MainWindow", "Debugger"))
        self.scan.setText(_translate("MainWindow", "Scan Now"))
        self.load.setText(_translate("MainWindow", "Load Scan"))
        self.slice.setText(_translate("MainWindow", "Slice"))
        self.measure.setText(_translate("MainWindow", "Measure"))
        self.report.setText(_translate("MainWindow", "Report"))
        self.pushButton.setText(_translate("MainWindow", "PushButton"))
Beispiel #4
0
class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(681, 411)
        Form.setMouseTracking(True)
        self.Header = QtWidgets.QLabel(Form)
        self.Header.setGeometry(QtCore.QRect(10, 10, 171, 41))
        self.Header.setMouseTracking(True)
        self.Header.setText("")
        self.Header.setPixmap(
            QtGui.QPixmap("Graphics//Assets/ResultsheaderAsset 2.png"))
        self.Header.setObjectName("Header")
        self.Home_button = QtWidgets.QLabel(Form)
        self.Home_button.setGeometry(QtCore.QRect(20, 360, 91, 41))
        self.Home_button.setMouseTracking(True)
        self.Home_button.setText("")
        self.Home_button.setPixmap(
            QtGui.QPixmap("Graphics//Assets/HomearrowleftAsset 3.png"))
        self.Home_button.setObjectName("Home_button")
        self.Plot = PlotWidget(Form)
        self.Plot.setGeometry(QtCore.QRect(20, 70, 481, 271))
        self.Plot.setMouseTracking(True)
        self.Plot.setObjectName("Plot")
        self.achievedheader = QtWidgets.QLabel(Form)
        self.achievedheader.setGeometry(QtCore.QRect(520, 70, 121, 31))
        font = QtGui.QFont()
        font.setPointSize(16)
        self.achievedheader.setFont(font)
        self.achievedheader.setObjectName("achievedheader")
        self.youare = QtWidgets.QLabel(Form)
        self.youare.setGeometry(QtCore.QRect(520, 150, 121, 61))
        font = QtGui.QFont()
        font.setPointSize(16)
        self.youare.setFont(font)
        self.youare.setObjectName("youare")
        self.legend = QtWidgets.QLabel(Form)
        self.legend.setGeometry(QtCore.QRect(260, 350, 261, 51))
        font = QtGui.QFont()
        font.setPointSize(16)
        self.legend.setFont(font)
        self.legend.setText("")
        self.legend.setPixmap(
            QtGui.QPixmap("Graphics//Assets/LegendAsset 4.png"))
        self.legend.setObjectName("legend")
        self.Current_angle = QtWidgets.QLabel(Form)
        self.Current_angle.setGeometry(QtCore.QRect(560, 120, 41, 41))
        font = QtGui.QFont()
        font.setPointSize(28)
        self.Current_angle.setFont(font)
        self.Current_angle.setObjectName("Current_angle")
        self.deg1 = QtWidgets.QLabel(Form)
        self.deg1.setGeometry(QtCore.QRect(600, 110, 21, 31))
        font = QtGui.QFont()
        font.setPointSize(28)
        self.deg1.setFont(font)
        self.deg1.setObjectName("deg1")
        self.social = QtWidgets.QLabel(Form)
        self.social.setGeometry(QtCore.QRect(520, 350, 261, 51))
        font = QtGui.QFont()
        font.setPointSize(16)
        self.social.setFont(font)
        self.social.setText("")
        self.social.setPixmap(
            QtGui.QPixmap("Graphics//Assets/SocialAsset 1.png"))
        self.social.setObjectName("social")
        self.Current_progression = QtWidgets.QLabel(Form)
        self.Current_progression.setGeometry(QtCore.QRect(560, 200, 41, 41))
        font = QtGui.QFont()
        font.setPointSize(28)
        self.Current_progression.setFont(font)
        self.Current_progression.setObjectName("Current_progression")
        self.deg1_2 = QtWidgets.QLabel(Form)
        self.deg1_2.setGeometry(QtCore.QRect(600, 190, 41, 51))
        font = QtGui.QFont()
        font.setPointSize(16)
        self.deg1_2.setFont(font)
        self.deg1_2.setObjectName("deg1_2")
        self.Schedule_state_2 = QtWidgets.QLabel(Form)
        self.Schedule_state_2.setGeometry(QtCore.QRect(540, 250, 151, 51))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.Schedule_state_2.setFont(font)
        self.Schedule_state_2.setObjectName("Schedule_state_2")
        self.Schedule_state_3 = QtWidgets.QLabel(Form)
        self.Schedule_state_3.setGeometry(QtCore.QRect(520, 270, 151, 51))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.Schedule_state_3.setFont(font)
        self.Schedule_state_3.setObjectName("Schedule_state_3")
        self.Axis_X = QtWidgets.QLabel(Form)
        self.Axis_X.setGeometry(QtCore.QRect(240, 330, 101, 41))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.Axis_X.setFont(font)
        self.Axis_X.setText("")
        self.Axis_X.setPixmap(
            QtGui.QPixmap("Graphics//Assets/AxislabelsAsset 4.png"))
        self.Axis_X.setObjectName("Axis_X")
        self.Axis_Y = QtWidgets.QLabel(Form)
        self.Axis_Y.setGeometry(QtCore.QRect(10, 120, 21, 151))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.Axis_Y.setFont(font)
        self.Axis_Y.setText("")
        self.Axis_Y.setPixmap(
            QtGui.QPixmap("Graphics//Assets/AxislabelsAsset 5.png"))
        self.Axis_Y.setObjectName("Axis_Y")

        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)

    def retranslateUi(self, Form):
        _translate = QtCore.QCoreApplication.translate
        Form.setWindowTitle(_translate("Form", "Form"))
        self.achievedheader.setText(_translate("Form", "Achieved:"))
        self.youare.setText(_translate("Form", "You are:"))
        self.Current_angle.setText(_translate("Form", "90"))
        self.deg1.setText(_translate("Form", "°"))
        self.Current_progression.setText(_translate("Form", "90"))
        self.deg1_2.setText(_translate("Form", "%"))
        self.Schedule_state_2.setText(_translate("Form", "Through your "))
        self.Schedule_state_3.setText(_translate("Form", "exercise programme"))
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(1366, 713)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.tabWidget = QtGui.QTabWidget(self.centralwidget)
        self.tabWidget.setGeometry(QtCore.QRect(0, 0, 1361, 691))
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.Spectra = QtGui.QWidget()
        self.Spectra.setObjectName(_fromUtf8("Spectra"))
        self.layoutWidget = QtGui.QWidget(self.Spectra)
        self.layoutWidget.setGeometry(QtCore.QRect(4, 5, 1343, 623))
        self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
        self.gridLayout_8 = QtGui.QGridLayout(self.layoutWidget)
        self.gridLayout_8.setObjectName(_fromUtf8("gridLayout_8"))
        self.gridLayout_3 = QtGui.QGridLayout()
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.frame = QtGui.QFrame(self.layoutWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.frame.sizePolicy().hasHeightForWidth())
        self.frame.setSizePolicy(sizePolicy)
        self.frame.setMinimumSize(QtCore.QSize(428, 114))
        self.frame.setMaximumSize(QtCore.QSize(428, 114))
        self.frame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame.setFrameShadow(QtGui.QFrame.Raised)
        self.frame.setObjectName(_fromUtf8("frame"))
        self.gridLayout = QtGui.QGridLayout(self.frame)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.label = QtGui.QLabel(self.frame)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.label.setFont(font)
        self.label.setAlignment(QtCore.Qt.AlignCenter)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout.addWidget(self.label, 0, 0, 1, 2)
        self.label_2 = QtGui.QLabel(self.frame)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.label_2.setFont(font)
        self.label_2.setAlignment(QtCore.Qt.AlignCenter)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout.addWidget(self.label_2, 0, 3, 1, 3)
        self.checkBoxinf_1 = QtGui.QCheckBox(self.frame)
        self.checkBoxinf_1.setChecked(False)
        self.checkBoxinf_1.setAutoExclusive(False)
        self.checkBoxinf_1.setObjectName(_fromUtf8("checkBoxinf_1"))
        self.gridLayout.addWidget(self.checkBoxinf_1, 1, 0, 1, 2)
        self.radioButtoncomma_1 = QtGui.QRadioButton(self.frame)
        self.radioButtoncomma_1.setChecked(True)
        self.radioButtoncomma_1.setObjectName(_fromUtf8("radioButtoncomma_1"))
        self.gridLayout.addWidget(self.radioButtoncomma_1, 1, 2, 1, 2)
        self.radioButtonspace_1 = QtGui.QRadioButton(self.frame)
        self.radioButtonspace_1.setObjectName(_fromUtf8("radioButtonspace_1"))
        self.gridLayout.addWidget(self.radioButtonspace_1, 1, 4, 1, 2)
        self.radioButtoncolon_1 = QtGui.QRadioButton(self.frame)
        self.radioButtoncolon_1.setObjectName(_fromUtf8("radioButtoncolon_1"))
        self.gridLayout.addWidget(self.radioButtoncolon_1, 1, 6, 1, 1)
        self.checkBoxspectra_1 = QtGui.QCheckBox(self.frame)
        self.checkBoxspectra_1.setObjectName(_fromUtf8("checkBoxspectra_1"))
        self.gridLayout.addWidget(self.checkBoxspectra_1, 2, 0, 1, 2)
        spacerItem = QtGui.QSpacerItem(20, 28, QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem, 2, 2, 1, 1)
        spacerItem1 = QtGui.QSpacerItem(20, 28, QtGui.QSizePolicy.Minimum,
                                        QtGui.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem1, 2, 4, 1, 1)
        self.openButton_1 = QtGui.QPushButton(self.frame)
        self.openButton_1.setObjectName(_fromUtf8("openButton_1"))
        self.gridLayout.addWidget(self.openButton_1, 3, 0, 1, 1)
        self.calculateButton_1 = QtGui.QPushButton(self.frame)
        self.calculateButton_1.setObjectName(_fromUtf8("calculateButton_1"))
        self.gridLayout.addWidget(self.calculateButton_1, 3, 1, 1, 4)
        self.saveButton_1 = QtGui.QPushButton(self.frame)
        self.saveButton_1.setObjectName(_fromUtf8("saveButton_1"))
        self.gridLayout.addWidget(self.saveButton_1, 3, 5, 1, 3)
        spacerItem2 = QtGui.QSpacerItem(20, 28, QtGui.QSizePolicy.Minimum,
                                        QtGui.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem2, 2, 5, 1, 1)
        spacerItem3 = QtGui.QSpacerItem(38, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem3, 1, 7, 2, 1)
        self.gridLayout_3.addWidget(self.frame, 0, 0, 1, 1)
        spacerItem4 = QtGui.QSpacerItem(888, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.gridLayout_3.addItem(spacerItem4, 0, 1, 1, 1)
        self.gridLayout_8.addLayout(self.gridLayout_3, 0, 0, 1, 1)
        self.frame_2 = QtGui.QFrame(self.layoutWidget)
        self.frame_2.setMinimumSize(QtCore.QSize(1341, 501))
        self.frame_2.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_2.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_2.setObjectName(_fromUtf8("frame_2"))
        self.gridLayout_2 = QtGui.QGridLayout(self.frame_2)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.Plot1_1 = PlotWidget(self.frame_2)
        self.Plot1_1.setObjectName(_fromUtf8("Plot1_1"))
        self.gridLayout_2.addWidget(self.Plot1_1, 0, 0, 1, 1)
        self.Plot2_1 = PlotWidget(self.frame_2)
        self.Plot2_1.setObjectName(_fromUtf8("Plot2_1"))
        self.gridLayout_2.addWidget(self.Plot2_1, 0, 1, 1, 1)
        self.gridLayout_8.addWidget(self.frame_2, 1, 0, 1, 1)
        self.tabWidget.addTab(self.Spectra, _fromUtf8(""))
        self.Spectra_analysis = QtGui.QWidget()
        self.Spectra_analysis.setObjectName(_fromUtf8("Spectra_analysis"))
        self.layoutWidget1 = QtGui.QWidget(self.Spectra_analysis)
        self.layoutWidget1.setGeometry(QtCore.QRect(10, 13, 1337, 611))
        self.layoutWidget1.setObjectName(_fromUtf8("layoutWidget1"))
        self.gridLayout_7 = QtGui.QGridLayout(self.layoutWidget1)
        self.gridLayout_7.setObjectName(_fromUtf8("gridLayout_7"))
        self.gridLayout_6 = QtGui.QGridLayout()
        self.gridLayout_6.setObjectName(_fromUtf8("gridLayout_6"))
        self.frame_4 = QtGui.QFrame(self.layoutWidget1)
        self.frame_4.setMinimumSize(QtCore.QSize(351, 61))
        self.frame_4.setMaximumSize(QtCore.QSize(351, 61))
        self.frame_4.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_4.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_4.setObjectName(_fromUtf8("frame_4"))
        self.pushButtonImport_2 = QtGui.QPushButton(self.frame_4)
        self.pushButtonImport_2.setGeometry(QtCore.QRect(10, 10, 111, 24))
        self.pushButtonImport_2.setAutoFillBackground(False)
        self.pushButtonImport_2.setObjectName(_fromUtf8("pushButtonImport_2"))
        self.radioButtonFrmclc_2 = QtGui.QRadioButton(self.frame_4)
        self.radioButtonFrmclc_2.setGeometry(QtCore.QRect(120, 10, 131, 21))
        self.radioButtonFrmclc_2.setChecked(True)
        self.radioButtonFrmclc_2.setObjectName(
            _fromUtf8("radioButtonFrmclc_2"))
        self.radioButtonFrmcsv_2 = QtGui.QRadioButton(self.frame_4)
        self.radioButtonFrmcsv_2.setGeometry(QtCore.QRect(120, 30, 97, 21))
        self.radioButtonFrmcsv_2.setObjectName(
            _fromUtf8("radioButtonFrmcsv_2"))
        self.pushButtonSave_2 = QtGui.QPushButton(self.frame_4)
        self.pushButtonSave_2.setGeometry(QtCore.QRect(250, 10, 94, 24))
        self.pushButtonSave_2.setObjectName(_fromUtf8("pushButtonSave_2"))
        self.pushButtonReset_2 = QtGui.QPushButton(self.frame_4)
        self.pushButtonReset_2.setGeometry(QtCore.QRect(250, 30, 94, 24))
        self.pushButtonReset_2.setObjectName(_fromUtf8("pushButtonReset_2"))
        self.gridLayout_6.addWidget(self.frame_4, 0, 0, 1, 1)
        spacerItem5 = QtGui.QSpacerItem(978, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.gridLayout_6.addItem(spacerItem5, 0, 1, 1, 1)
        self.gridLayout_7.addLayout(self.gridLayout_6, 0, 0, 1, 1)
        self.frame_3 = QtGui.QFrame(self.layoutWidget1)
        self.frame_3.setMinimumSize(QtCore.QSize(1335, 542))
        self.frame_3.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_3.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_3.setObjectName(_fromUtf8("frame_3"))
        self.gridLayout_5 = QtGui.QGridLayout(self.frame_3)
        self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5"))
        self.Plot1_2 = PlotWidget(self.frame_3)
        self.Plot1_2.setMinimumSize(QtCore.QSize(1258, 528))
        self.Plot1_2.setMouseTracking(False)
        self.Plot1_2.setObjectName(_fromUtf8("Plot1_2"))
        self.gridLayout_5.addWidget(self.Plot1_2, 0, 0, 1, 1)
        self.gridLayout_7.addWidget(self.frame_3, 1, 0, 1, 1)
        self.tabWidget.addTab(self.Spectra_analysis, _fromUtf8(""))
        self.Results = QtGui.QWidget()
        self.Results.setObjectName(_fromUtf8("Results"))
        self.graphicsView = QtGui.QGraphicsView(self.Results)
        self.graphicsView.setGeometry(QtCore.QRect(490, 10, 851, 641))
        self.graphicsView.setObjectName(_fromUtf8("graphicsView"))
        self.tableWidget = QtGui.QTableWidget(self.Results)
        self.tableWidget.setGeometry(QtCore.QRect(10, 10, 471, 641))
        self.tableWidget.setColumnCount(3)
        self.tableWidget.setObjectName(_fromUtf8("tableWidget"))
        self.tableWidget.setRowCount(0)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(2, item)
        self.tableWidget.horizontalHeader().setCascadingSectionResizes(True)
        self.tableWidget.horizontalHeader().setDefaultSectionSize(155)
        self.tableWidget.horizontalHeader().setMinimumSectionSize(100)
        self.tableWidget.horizontalHeader().setStretchLastSection(True)
        self.tabWidget.addTab(self.Results, _fromUtf8(""))
        MainWindow.setCentralWidget(self.centralwidget)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)
        self.tabWidget.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(
            _translate("MainWindow", "FT-I.R. Analysis Tool", None))
        self.label.setText(
            _translate("MainWindow", "Select Source Data Type:", None))
        self.label_2.setText(_translate("MainWindow", "Csv Delimiter:", None))
        self.checkBoxinf_1.setText(
            _translate("MainWindow", "Spectra to Interferogram", None))
        self.radioButtoncomma_1.setText(
            _translate("MainWindow", "Comma ", None))
        self.radioButtonspace_1.setText(_translate("MainWindow", "Space",
                                                   None))
        self.radioButtoncolon_1.setText(_translate("MainWindow", "Colon",
                                                   None))
        self.checkBoxspectra_1.setText(
            _translate("MainWindow", "Interferrogram to Spectra", None))
        self.openButton_1.setText(
            _translate("MainWindow", "Open csv Source File", None))
        self.calculateButton_1.setText(
            _translate("MainWindow", "Calculate", None))
        self.saveButton_1.setText(_translate("MainWindow", "Save Result",
                                             None))
        self.tabWidget.setTabText(
            self.tabWidget.indexOf(self.Spectra),
            _translate("MainWindow", "Spectra Calculations", None))
        self.pushButtonImport_2.setText(
            _translate("MainWindow", "Import Data", None))
        self.radioButtonFrmclc_2.setText(
            _translate("MainWindow", "From Calculation", None))
        self.radioButtonFrmcsv_2.setText(
            _translate("MainWindow", "From Csv", None))
        self.pushButtonSave_2.setText(
            _translate("MainWindow", "Save Result", None))
        self.pushButtonReset_2.setText(_translate("MainWindow", "Reset", None))
        self.tabWidget.setTabText(
            self.tabWidget.indexOf(self.Spectra_analysis),
            _translate("MainWindow", "Peak Picking Tool", None))
        item = self.tableWidget.horizontalHeaderItem(0)
        item.setText(_translate("MainWindow", "Wavenumber(1/cm)", None))
        item = self.tableWidget.horizontalHeaderItem(1)
        item.setText(_translate("MainWindow", "Relative Intensity", None))
        item = self.tableWidget.horizontalHeaderItem(2)
        item.setText(_translate("MainWindow", "Zone", None))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.Results),
                                  _translate("MainWindow", "Results", None))

        # hide unused components temporararily
        self.Plot1_1.clear()
        self.Plot2_1.clear()
        self.Plot1_1.hide()
        self.Plot2_1.hide()
        self.Plot1_2.hide()
        self.tabWidget.setTabEnabled(2, False)
        self.radioButtonFrmclc_2.setEnabled(False)
        self.pushButtonSave_2.setEnabled(False)
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1581, 771)
        self.centralWidget = QtWidgets.QWidget(MainWindow)
        self.centralWidget.setObjectName("centralWidget")
        self.btnCalculateLevel = QtWidgets.QPushButton(self.centralWidget)
        self.btnCalculateLevel.setGeometry(QtCore.QRect(750, 680, 110, 25))
        self.btnCalculateLevel.setObjectName("btnCalculateLevel")
        self.grpAddCycle = QtWidgets.QGroupBox(self.centralWidget)
        self.grpAddCycle.setGeometry(QtCore.QRect(10, 10, 731, 361))
        self.grpAddCycle.setObjectName("grpAddCycle")
        self.btnAddCycle = QtWidgets.QPushButton(self.grpAddCycle)
        self.btnAddCycle.setGeometry(QtCore.QRect(10, 20, 110, 25))
        self.btnAddCycle.setObjectName("btnAddCycle")
        self.tblAddCycle = QtWidgets.QTableWidget(self.grpAddCycle)
        self.tblAddCycle.setEnabled(True)
        self.tblAddCycle.setGeometry(QtCore.QRect(10, 50, 711, 300))
        self.tblAddCycle.setMinimumSize(QtCore.QSize(611, 0))
        self.tblAddCycle.setInputMethodHints(QtCore.Qt.ImhNone)
        self.tblAddCycle.setEditTriggers(
            QtWidgets.QAbstractItemView.DoubleClicked)
        self.tblAddCycle.setDragEnabled(True)
        self.tblAddCycle.setDragDropOverwriteMode(True)
        self.tblAddCycle.setAlternatingRowColors(True)
        self.tblAddCycle.setColumnCount(8)
        self.tblAddCycle.setObjectName("tblAddCycle")
        self.tblAddCycle.setRowCount(0)
        item = QtWidgets.QTableWidgetItem()
        self.tblAddCycle.setHorizontalHeaderItem(0, item)
        item = QtWidgets.QTableWidgetItem()
        self.tblAddCycle.setHorizontalHeaderItem(1, item)
        item = QtWidgets.QTableWidgetItem()
        self.tblAddCycle.setHorizontalHeaderItem(2, item)
        item = QtWidgets.QTableWidgetItem()
        self.tblAddCycle.setHorizontalHeaderItem(3, item)
        item = QtWidgets.QTableWidgetItem()
        self.tblAddCycle.setHorizontalHeaderItem(4, item)
        item = QtWidgets.QTableWidgetItem()
        self.tblAddCycle.setHorizontalHeaderItem(5, item)
        item = QtWidgets.QTableWidgetItem()
        self.tblAddCycle.setHorizontalHeaderItem(6, item)
        item = QtWidgets.QTableWidgetItem()
        self.tblAddCycle.setHorizontalHeaderItem(7, item)
        self.grpCycleResults = QtWidgets.QGroupBox(self.centralWidget)
        self.grpCycleResults.setGeometry(QtCore.QRect(10, 380, 731, 331))
        self.grpCycleResults.setObjectName("grpCycleResults")
        self.tblCycleResults = QtWidgets.QTableWidget(self.grpCycleResults)
        self.tblCycleResults.setGeometry(QtCore.QRect(10, 20, 711, 300))
        self.tblCycleResults.setEditTriggers(
            QtWidgets.QAbstractItemView.NoEditTriggers)
        self.tblCycleResults.setColumnCount(6)
        self.tblCycleResults.setObjectName("tblCycleResults")
        self.tblCycleResults.setRowCount(0)
        item = QtWidgets.QTableWidgetItem()
        self.tblCycleResults.setHorizontalHeaderItem(0, item)
        item = QtWidgets.QTableWidgetItem()
        self.tblCycleResults.setHorizontalHeaderItem(1, item)
        item = QtWidgets.QTableWidgetItem()
        self.tblCycleResults.setHorizontalHeaderItem(2, item)
        item = QtWidgets.QTableWidgetItem()
        self.tblCycleResults.setHorizontalHeaderItem(3, item)
        item = QtWidgets.QTableWidgetItem()
        self.tblCycleResults.setHorizontalHeaderItem(4, item)
        item = QtWidgets.QTableWidgetItem()
        self.tblCycleResults.setHorizontalHeaderItem(5, item)
        self.btnExport = QtWidgets.QPushButton(self.centralWidget)
        self.btnExport.setGeometry(QtCore.QRect(870, 680, 110, 25))
        self.btnExport.setObjectName("btnExport")
        self.tabPlots = QtWidgets.QTabWidget(self.centralWidget)
        self.tabPlots.setGeometry(QtCore.QRect(750, 10, 821, 661))
        self.tabPlots.setObjectName("tabPlots")
        self.tabWFILevel = QtWidgets.QWidget()
        self.tabWFILevel.setObjectName("tabWFILevel")
        self.grphViewTankLevel = PlotWidget(self.tabWFILevel)
        self.grphViewTankLevel.setGeometry(QtCore.QRect(10, 10, 801, 611))
        self.grphViewTankLevel.setMouseTracking(True)
        self.grphViewTankLevel.setTabletTracking(False)
        self.grphViewTankLevel.setObjectName("grphViewTankLevel")
        self.tabPlots.addTab(self.tabWFILevel, "")
        self.tabSchedule = QtWidgets.QWidget()
        self.tabSchedule.setObjectName("tabSchedule")
        self.grphViewSchedule = PlotWidget(self.tabSchedule)
        self.grphViewSchedule.setGeometry(QtCore.QRect(10, 10, 801, 611))
        self.grphViewSchedule.setMouseTracking(True)
        self.grphViewSchedule.setTabletTracking(False)
        self.grphViewSchedule.setObjectName("grphViewSchedule")
        self.tabPlots.addTab(self.tabSchedule, "")
        self.grpCycleResults.raise_()
        self.grpAddCycle.raise_()
        self.btnCalculateLevel.raise_()
        self.btnExport.raise_()
        self.tabPlots.raise_()
        MainWindow.setCentralWidget(self.centralWidget)
        self.menuBar = QtWidgets.QMenuBar(MainWindow)
        self.menuBar.setGeometry(QtCore.QRect(0, 0, 1581, 18))
        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)
        self.tabPlots.setCurrentIndex(1)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
        self.btnCalculateLevel.setText(
            _translate("MainWindow", "Calculate tank level"))
        self.grpAddCycle.setTitle(
            _translate("MainWindow", "Lists cycles that need to be started"))
        self.btnAddCycle.setText(_translate("MainWindow", "Add cycle"))
        item = self.tblAddCycle.horizontalHeaderItem(0)
        item.setText(_translate("MainWindow", "Id"))
        item = self.tblAddCycle.horizontalHeaderItem(1)
        item.setText(_translate("MainWindow", "Component"))
        item = self.tblAddCycle.horizontalHeaderItem(2)
        item.setText(_translate("MainWindow", "Cycle"))
        item = self.tblAddCycle.horizontalHeaderItem(3)
        item.setText(_translate("MainWindow", "Subphase"))
        item = self.tblAddCycle.horizontalHeaderItem(4)
        item.setText(_translate("MainWindow", "Start"))
        item = self.tblAddCycle.horizontalHeaderItem(5)
        item.setText(_translate("MainWindow", "End"))
        item = self.tblAddCycle.horizontalHeaderItem(6)
        item.setText(_translate("MainWindow", "Opt"))
        item = self.tblAddCycle.horizontalHeaderItem(7)
        item.setText(_translate("MainWindow", "Remove"))
        self.grpCycleResults.setTitle(
            _translate("MainWindow", "Results of automatic scheduling"))
        item = self.tblCycleResults.horizontalHeaderItem(0)
        item.setText(_translate("MainWindow", "Component"))
        item = self.tblCycleResults.horizontalHeaderItem(1)
        item.setText(_translate("MainWindow", "Cycle"))
        item = self.tblCycleResults.horizontalHeaderItem(2)
        item.setText(_translate("MainWindow", "Subphase"))
        item = self.tblCycleResults.horizontalHeaderItem(3)
        item.setText(_translate("MainWindow", "Start"))
        item = self.tblCycleResults.horizontalHeaderItem(4)
        item.setText(_translate("MainWindow", "End"))
        item = self.tblCycleResults.horizontalHeaderItem(5)
        item.setText(_translate("MainWindow", "Status"))
        self.btnExport.setText(_translate("MainWindow", "Export results"))
        self.tabPlots.setTabText(self.tabPlots.indexOf(self.tabWFILevel),
                                 _translate("MainWindow", "WFI tank level"))
        self.tabPlots.setTabText(self.tabPlots.indexOf(self.tabSchedule),
                                 _translate("MainWindow", "Schedule"))
Beispiel #7
0
def addPlotTab(self, tabwidget, *args, **kwargs):
    '''
    EDIT TAB WIDGET PROPERTIES
    '''
    tabwidget.setTabsClosable(True)
    tabwidget.setMovable(True)
    tabwidget.setTabBarAutoHide(False)

    tabnum = tabwidget.count() + 1
    ''' 
    CREATE THE NEW TAB
    '''
    newtab = QtWidgets.QWidget()
    tabname = f'StoredDataTab{tabnum}'
    '''
    CREATE THE LAYOUTS
    '''
    layout = QtWidgets.QGridLayout(newtab)
    layout.setContentsMargins(4, 6, 4, 4)
    layout.setHorizontalSpacing(6)
    layout.setVerticalSpacing(0)

    topleftlayout = QtWidgets.QGridLayout(newtab)
    topleftlayout.setContentsMargins(0, 0, -1, -1)
    topleftlayout.setSpacing(0)

    topcenterlayout = QtWidgets.QGridLayout()

    toprightlayout = QtWidgets.QGridLayout()
    toprightlayout.setContentsMargins(-1, 0, -1, -1)
    toprightlayout.setSpacing(0)
    '''
    ADDING THE FREQUENCY LABEL
    '''
    freqlabel = QtWidgets.QLabel(newtab)
    sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding,
                                       QtWidgets.QSizePolicy.Preferred)
    sizePolicy.setHorizontalStretch(0)
    sizePolicy.setVerticalStretch(0)
    sizePolicy.setHeightForWidth(freqlabel.sizePolicy().hasHeightForWidth())
    freqlabel.setSizePolicy(sizePolicy)
    freqlabel.setPalette(standardPalette())
    freqlabel.setMouseTracking(True)
    freqlabel.setText('')
    freqlabel.setMinimumSize(QtCore.QSize(90, 0))
    freqlabelname = f'{tabname}FreqLabel'
    freqlabel.setObjectName(freqlabelname)
    freqlabel.setAlignment(QtCore.Qt.AlignCenter)
    freqlabel.setIndent(6)
    topleftlayout.addWidget(freqlabel, 0, 0, 1, 1)
    layout.addLayout(topleftlayout, 0, 0, 1, 1)
    '''
    ADDING THE NUMBER OF PEAKS LABEL
    '''
    numpeakslabel = QtWidgets.QLabel(newtab)
    sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum,
                                       QtWidgets.QSizePolicy.Preferred)
    sizePolicy.setHorizontalStretch(0)
    sizePolicy.setVerticalStretch(0)
    sizePolicy.setHeightForWidth(
        numpeakslabel.sizePolicy().hasHeightForWidth())
    numpeakslabel.setSizePolicy(sizePolicy)
    numpeakslabel.setMaximumSize(QtCore.QSize(60, 16777215))
    numpeakslabel.setPalette(standardPalette())
    font = QtGui.QFont()
    font.setFamily("Bahnschrift SemiLight")
    font.setPointSize(11)
    font.setBold(False)
    font.setItalic(False)
    font.setWeight(50)
    numpeakslabel.setFont(font)
    numpeakslabel.setText('Peaks:')
    numpeakslabel.setMouseTracking(True)
    numpeakslabel.setAlignment(QtCore.Qt.AlignCenter)
    numpeakslabel.setIndent(0)
    numpeakslabel.setObjectName("numpeaks1Label")
    topcenterlayout.addWidget(numpeakslabel, 0, 0, 1, 1)
    '''
    SET UP THE SPINBOX FOR NUMBER OF PEAKS
    '''
    numpeaks = QtWidgets.QSpinBox(newtab)
    sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum,
                                       QtWidgets.QSizePolicy.Fixed)
    sizePolicy.setHorizontalStretch(0)
    sizePolicy.setVerticalStretch(0)
    sizePolicy.setHeightForWidth(numpeaks.sizePolicy().hasHeightForWidth())
    numpeaks.setSizePolicy(sizePolicy)
    numpeaks.setMaximumSize(QtCore.QSize(16777215, 16777215))
    numpeaks.setPalette(spinboxPalette())
    font = QtGui.QFont()
    font.setFamily('Bahnschrift SemiLight')
    font.setPointSize(11)
    font.setBold(False)
    font.setItalic(False)
    font.setWeight(50)
    numpeaks.setFont(font)
    numpeaks.setMouseTracking(True)
    numpeaks.setWrapping(False)
    numpeaks.setFrame(True)
    numpeaks.setAlignment(QtCore.Qt.AlignCenter)
    numpeaks.setButtonSymbols(QtWidgets.QAbstractSpinBox.UpDownArrows)
    numpeaks.setKeyboardTracking(False)
    numpeaks.setMinimum(1)
    numpeaks.setMaximum(99)
    numpeaks.setProperty('value', 10)
    numpeaksname = f'{tabname}NumPeaks'
    numpeaks.setObjectName(numpeaksname)
    topcenterlayout.addWidget(numpeaks, 0, 1, 1, 1)
    layout.addLayout(topcenterlayout, 0, 1, 1, 1)

    # Connect the spinbox the the manual frequency calculation function
    numpeaks.valueChanged.connect(lambda: guifuncs.manualFreqCalc(self, axes))
    '''
    ADDING THE T = LABEL
    '''
    tequals = QtWidgets.QLabel(newtab)
    sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding,
                                       QtWidgets.QSizePolicy.Preferred)
    sizePolicy.setHorizontalStretch(0)
    sizePolicy.setVerticalStretch(0)
    sizePolicy.setHeightForWidth(tequals.sizePolicy().hasHeightForWidth())
    tequals.setSizePolicy(sizePolicy)
    tequals.setMinimumSize(QtCore.QSize(45, 0))
    tequals.setText('')
    tequalsname = f'{tabname}TEqualsLabel'
    tequals.setObjectName(tequalsname)
    tequals.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing
                         | QtCore.Qt.AlignVCenter)
    toprightlayout.addWidget(tequals, 0, 0, 1, 1)
    layout.addLayout(toprightlayout, 0, 2, 1, 1)
    '''
    LABEL TO DISPLAY CURSOR POSITION
    '''
    tlabel = QtWidgets.QLabel(newtab)
    sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                       QtWidgets.QSizePolicy.Preferred)
    sizePolicy.setHorizontalStretch(0)
    sizePolicy.setVerticalStretch(0)
    sizePolicy.setHeightForWidth(tlabel.sizePolicy().hasHeightForWidth())
    tlabel.setSizePolicy(sizePolicy)
    tlabel.setMinimumSize(QtCore.QSize(45, 0))
    tlabel.setPalette(standardPalette())
    tlabel.setMouseTracking(True)
    tlabel.setText('')
    tlabelname = f'{tabname}TLabel'
    tlabel.setObjectName(tlabelname)
    tlabel.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft
                        | QtCore.Qt.AlignVCenter)
    tlabel.setIndent(-1)
    toprightlayout.addWidget(tlabel, 0, 1, 1, 1)
    '''
    ADDING THE PLOT WIDGET
    '''
    axes = PlotWidget(newtab)
    sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding,
                                       QtWidgets.QSizePolicy.MinimumExpanding)
    sizePolicy.setHeightForWidth(axes.sizePolicy().hasHeightForWidth())
    axes.setSizePolicy(sizePolicy)
    axes.setPalette(standardPalette())
    axes.setFrameShape(QtWidgets.QFrame.NoFrame)
    axes.setMouseTracking(True)
    axes_name = f'{tabname}Axes'
    axes.setObjectName(axes_name)
    tabwidget.addTab(newtab, '')
    tabnum_txt = str(tabnum).zfill(2)
    tabtext = f'Data {tabnum_txt}'
    tabwidget.setTabText(tabwidget.indexOf(newtab), tabtext)
    axes.setPalette(standardPalette())
    layout.addWidget(axes, 1, 0, 1, 3)

    return axes