Exemplo n.º 1
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(1133, 818)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.gridLayout = QtGui.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.imageView = ImageView(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.imageView.sizePolicy().hasHeightForWidth())
        self.imageView.setSizePolicy(sizePolicy)
        self.imageView.setBaseSize(QtCore.QSize(0, 0))
        self.imageView.setObjectName(_fromUtf8("imageView"))
        self.verticalLayout.addWidget(self.imageView)
        self.horizontalLayout0 = QtGui.QHBoxLayout()
        self.horizontalLayout0.setObjectName(_fromUtf8("horizontalLayout0"))
        self.backButton = QtGui.QPushButton(self.centralwidget)
        self.backButton.setObjectName(_fromUtf8("backButton"))
        self.horizontalLayout0.addWidget(self.backButton)
        self.forwardButton = QtGui.QPushButton(self.centralwidget)
        self.forwardButton.setObjectName(_fromUtf8("forwardButton"))
        self.horizontalLayout0.addWidget(self.forwardButton)
        self.playPauseButton = QtGui.QPushButton(self.centralwidget)
        self.playPauseButton.setObjectName(_fromUtf8("playPauseButton"))
        self.horizontalLayout0.addWidget(self.playPauseButton)
        self.verticalLayout.addLayout(self.horizontalLayout0)
        self.gridLayout.addLayout(self.verticalLayout, 0, 0, 1, 1)
        MainWindow.setCentralWidget(self.centralwidget)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)

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

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow", None))
        self.backButton.setText(_translate("MainWindow", "Back", None))
        self.forwardButton.setText(_translate("MainWindow", "Forward", None))
        self.playPauseButton.setText(_translate("MainWindow", "Play/Pause", None))
Exemplo n.º 2
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1057, 890)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName("gridLayout")
        self.frame = QtWidgets.QFrame(self.centralwidget)
        self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame.setObjectName("frame")
        self.horizontalLayout_9 = QtWidgets.QHBoxLayout(self.frame)
        self.horizontalLayout_9.setObjectName("horizontalLayout_9")
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.label_4 = QtWidgets.QLabel(self.frame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_4.sizePolicy().hasHeightForWidth())
        self.label_4.setSizePolicy(sizePolicy)
        self.label_4.setMaximumSize(QtCore.QSize(16777215, 27))
        font = QtGui.QFont()
        font.setFamily("URW Bookman [urw]")
        font.setPointSize(16)
        font.setBold(True)
        font.setWeight(75)
        self.label_4.setFont(font)
        self.label_4.setTextFormat(QtCore.Qt.AutoText)
        self.label_4.setAlignment(QtCore.Qt.AlignCenter)
        self.label_4.setObjectName("label_4")
        self.verticalLayout.addWidget(self.label_4)
        self.img1_view = ImageView(self.frame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.img1_view.sizePolicy().hasHeightForWidth())
        self.img1_view.setSizePolicy(sizePolicy)
        self.img1_view.setMinimumSize(QtCore.QSize(0, 0))
        self.img1_view.setObjectName("img1_view")
        self.verticalLayout.addWidget(self.img1_view)
        self.horizontalLayout_9.addLayout(self.verticalLayout)
        self.verticalLayout_2 = QtWidgets.QVBoxLayout()
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.comboBox = QtWidgets.QComboBox(self.frame)
        self.comboBox.setEnabled(False)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.comboBox.sizePolicy().hasHeightForWidth())
        self.comboBox.setSizePolicy(sizePolicy)
        self.comboBox.setMaximumSize(QtCore.QSize(16777215, 51))
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(12)
        self.comboBox.setFont(font)
        self.comboBox.setObjectName("comboBox")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.verticalLayout_2.addWidget(self.comboBox)
        self.img1_comp = ImageView(self.frame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.img1_comp.sizePolicy().hasHeightForWidth())
        self.img1_comp.setSizePolicy(sizePolicy)
        self.img1_comp.setMinimumSize(QtCore.QSize(0, 0))
        self.img1_comp.setObjectName("img1_comp")
        self.verticalLayout_2.addWidget(self.img1_comp)
        self.horizontalLayout_9.addLayout(self.verticalLayout_2)
        self.gridLayout.addWidget(self.frame, 0, 0, 1, 1)
        self.frame_4 = QtWidgets.QFrame(self.centralwidget)
        self.frame_4.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_4.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_4.setObjectName("frame_4")
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.frame_4)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.label_6 = QtWidgets.QLabel(self.frame_4)
        font = QtGui.QFont()
        font.setFamily("URW Bookman [urw]")
        font.setPointSize(16)
        self.label_6.setFont(font)
        self.label_6.setObjectName("label_6")
        self.horizontalLayout_4.addWidget(self.label_6)
        self.comboBox_3 = QtWidgets.QComboBox(self.frame_4)
        self.comboBox_3.setEnabled(False)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.comboBox_3.sizePolicy().hasHeightForWidth())
        self.comboBox_3.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.comboBox_3.setFont(font)
        self.comboBox_3.setObjectName("comboBox_3")
        self.comboBox_3.addItem("")
        self.comboBox_3.addItem("")
        self.horizontalLayout_4.addWidget(self.comboBox_3)
        self.verticalLayout_5.addLayout(self.horizontalLayout_4)
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.label_7 = QtWidgets.QLabel(self.frame_4)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_7.sizePolicy().hasHeightForWidth())
        self.label_7.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setFamily("URW Bookman [urw]")
        font.setPointSize(12)
        self.label_7.setFont(font)
        self.label_7.setObjectName("label_7")
        self.horizontalLayout_5.addWidget(self.label_7)
        self.comboBox_4 = QtWidgets.QComboBox(self.frame_4)
        self.comboBox_4.setEnabled(False)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.comboBox_4.sizePolicy().hasHeightForWidth())
        self.comboBox_4.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.comboBox_4.setFont(font)
        self.comboBox_4.setObjectName("comboBox_4")
        self.comboBox_4.addItem("")
        self.comboBox_4.addItem("")
        self.horizontalLayout_5.addWidget(self.comboBox_4)
        spacerItem = QtWidgets.QSpacerItem(50, 20, QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_5.addItem(spacerItem)
        self.horizontalSlider = QtWidgets.QSlider(self.frame_4)
        self.horizontalSlider.setEnabled(False)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.horizontalSlider.sizePolicy().hasHeightForWidth())
        self.horizontalSlider.setSizePolicy(sizePolicy)
        self.horizontalSlider.setMaximum(100)
        self.horizontalSlider.setProperty("value", 100)
        self.horizontalSlider.setOrientation(QtCore.Qt.Horizontal)
        self.horizontalSlider.setObjectName("horizontalSlider")
        self.horizontalLayout_5.addWidget(self.horizontalSlider)
        self.verticalLayout_5.addLayout(self.horizontalLayout_5)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        spacerItem1 = QtWidgets.QSpacerItem(334, 20,
                                            QtWidgets.QSizePolicy.Fixed,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem1)
        self.label_10 = QtWidgets.QLabel(self.frame_4)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_10.sizePolicy().hasHeightForWidth())
        self.label_10.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setFamily("URW Bookman [urw]")
        font.setPointSize(16)
        self.label_10.setFont(font)
        self.label_10.setAlignment(QtCore.Qt.AlignCenter)
        self.label_10.setObjectName("label_10")
        self.horizontalLayout_2.addWidget(self.label_10)
        self.verticalLayout_5.addLayout(self.horizontalLayout_2)
        self.horizontalLayout_8 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
        spacerItem2 = QtWidgets.QSpacerItem(120, 20,
                                            QtWidgets.QSizePolicy.Fixed,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_8.addItem(spacerItem2)
        self.comboBox_5 = QtWidgets.QComboBox(self.frame_4)
        self.comboBox_5.setEnabled(False)
        self.comboBox_5.setObjectName("comboBox_5")
        self.comboBox_5.addItem("")
        self.comboBox_5.addItem("")
        self.comboBox_5.addItem("")
        self.comboBox_5.addItem("")
        self.comboBox_5.addItem("")
        self.comboBox_5.addItem("")
        self.horizontalLayout_8.addWidget(self.comboBox_5)
        self.verticalLayout_5.addLayout(self.horizontalLayout_8)
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.label_8 = QtWidgets.QLabel(self.frame_4)
        font = QtGui.QFont()
        font.setFamily("URW Bookman [urw]")
        font.setPointSize(12)
        self.label_8.setFont(font)
        self.label_8.setObjectName("label_8")
        self.horizontalLayout_6.addWidget(self.label_8)
        self.comboBox_6 = QtWidgets.QComboBox(self.frame_4)
        self.comboBox_6.setEnabled(False)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.comboBox_6.sizePolicy().hasHeightForWidth())
        self.comboBox_6.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.comboBox_6.setFont(font)
        self.comboBox_6.setObjectName("comboBox_6")
        self.comboBox_6.addItem("")
        self.comboBox_6.addItem("")
        self.horizontalLayout_6.addWidget(self.comboBox_6)
        spacerItem3 = QtWidgets.QSpacerItem(50, 20,
                                            QtWidgets.QSizePolicy.Fixed,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_6.addItem(spacerItem3)
        self.horizontalSlider_2 = QtWidgets.QSlider(self.frame_4)
        self.horizontalSlider_2.setEnabled(False)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.horizontalSlider_2.sizePolicy().hasHeightForWidth())
        self.horizontalSlider_2.setSizePolicy(sizePolicy)
        self.horizontalSlider_2.setMaximum(100)
        self.horizontalSlider_2.setProperty("value", 100)
        self.horizontalSlider_2.setOrientation(QtCore.Qt.Horizontal)
        self.horizontalSlider_2.setObjectName("horizontalSlider_2")
        self.horizontalLayout_6.addWidget(self.horizontalSlider_2)
        self.verticalLayout_5.addLayout(self.horizontalLayout_6)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        spacerItem4 = QtWidgets.QSpacerItem(334, 20,
                                            QtWidgets.QSizePolicy.Fixed,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem4)
        self.label_11 = QtWidgets.QLabel(self.frame_4)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_11.sizePolicy().hasHeightForWidth())
        self.label_11.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setFamily("URW Bookman [urw]")
        font.setPointSize(16)
        self.label_11.setFont(font)
        self.label_11.setAlignment(QtCore.Qt.AlignCenter)
        self.label_11.setObjectName("label_11")
        self.horizontalLayout_3.addWidget(self.label_11)
        self.verticalLayout_5.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        spacerItem5 = QtWidgets.QSpacerItem(120, 20,
                                            QtWidgets.QSizePolicy.Fixed,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_7.addItem(spacerItem5)
        self.comboBox_7 = QtWidgets.QComboBox(self.frame_4)
        self.comboBox_7.setEnabled(False)
        self.comboBox_7.setObjectName("comboBox_7")
        self.comboBox_7.addItem("")
        self.comboBox_7.addItem("")
        self.comboBox_7.addItem("")
        self.comboBox_7.addItem("")
        self.comboBox_7.addItem("")
        self.comboBox_7.addItem("")
        self.horizontalLayout_7.addWidget(self.comboBox_7)
        self.verticalLayout_5.addLayout(self.horizontalLayout_7)
        self.gridLayout.addWidget(self.frame_4, 0, 1, 1, 1)
        self.frame_2 = QtWidgets.QFrame(self.centralwidget)
        self.frame_2.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_2.setObjectName("frame_2")
        self.horizontalLayout_10 = QtWidgets.QHBoxLayout(self.frame_2)
        self.horizontalLayout_10.setObjectName("horizontalLayout_10")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout()
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.label_3 = QtWidgets.QLabel(self.frame_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_3.sizePolicy().hasHeightForWidth())
        self.label_3.setSizePolicy(sizePolicy)
        self.label_3.setMaximumSize(QtCore.QSize(16777215, 27))
        font = QtGui.QFont()
        font.setFamily("URW Bookman [urw]")
        font.setPointSize(16)
        font.setBold(True)
        font.setWeight(75)
        self.label_3.setFont(font)
        self.label_3.setTextFormat(QtCore.Qt.AutoText)
        self.label_3.setAlignment(QtCore.Qt.AlignCenter)
        self.label_3.setObjectName("label_3")
        self.verticalLayout_3.addWidget(self.label_3)
        self.img2_view = ImageView(self.frame_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.img2_view.sizePolicy().hasHeightForWidth())
        self.img2_view.setSizePolicy(sizePolicy)
        self.img2_view.setMinimumSize(QtCore.QSize(0, 0))
        self.img2_view.setObjectName("img2_view")
        self.verticalLayout_3.addWidget(self.img2_view)
        self.horizontalLayout_10.addLayout(self.verticalLayout_3)
        self.verticalLayout_4 = QtWidgets.QVBoxLayout()
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.comboBox_2 = QtWidgets.QComboBox(self.frame_2)
        self.comboBox_2.setEnabled(False)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.comboBox_2.sizePolicy().hasHeightForWidth())
        self.comboBox_2.setSizePolicy(sizePolicy)
        self.comboBox_2.setSizeIncrement(QtCore.QSize(0, 20))
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(12)
        self.comboBox_2.setFont(font)
        self.comboBox_2.setObjectName("comboBox_2")
        self.comboBox_2.addItem("")
        self.comboBox_2.addItem("")
        self.comboBox_2.addItem("")
        self.comboBox_2.addItem("")
        self.verticalLayout_4.addWidget(self.comboBox_2)
        self.img2_comp = ImageView(self.frame_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.img2_comp.sizePolicy().hasHeightForWidth())
        self.img2_comp.setSizePolicy(sizePolicy)
        self.img2_comp.setMinimumSize(QtCore.QSize(0, 0))
        self.img2_comp.setObjectName("img2_comp")
        self.verticalLayout_4.addWidget(self.img2_comp)
        self.horizontalLayout_10.addLayout(self.verticalLayout_4)
        self.gridLayout.addWidget(self.frame_2, 1, 0, 1, 1)
        self.frame_3 = QtWidgets.QFrame(self.centralwidget)
        self.frame_3.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_3.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_3.setObjectName("frame_3")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.frame_3)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.verticalLayout_11 = QtWidgets.QVBoxLayout()
        self.verticalLayout_11.setObjectName("verticalLayout_11")
        self.label_5 = QtWidgets.QLabel(self.frame_3)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_5.sizePolicy().hasHeightForWidth())
        self.label_5.setSizePolicy(sizePolicy)
        self.label_5.setMaximumSize(QtCore.QSize(16777215, 27))
        font = QtGui.QFont()
        font.setFamily("URW Bookman [urw]")
        font.setPointSize(16)
        font.setBold(True)
        font.setWeight(75)
        self.label_5.setFont(font)
        self.label_5.setTextFormat(QtCore.Qt.AutoText)
        self.label_5.setAlignment(QtCore.Qt.AlignCenter)
        self.label_5.setObjectName("label_5")
        self.verticalLayout_11.addWidget(self.label_5)
        self.output1 = ImageView(self.frame_3)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.output1.sizePolicy().hasHeightForWidth())
        self.output1.setSizePolicy(sizePolicy)
        self.output1.setMinimumSize(QtCore.QSize(0, 0))
        self.output1.setObjectName("output1")
        self.verticalLayout_11.addWidget(self.output1)
        self.horizontalLayout.addLayout(self.verticalLayout_11)
        self.verticalLayout_10 = QtWidgets.QVBoxLayout()
        self.verticalLayout_10.setObjectName("verticalLayout_10")
        self.label_9 = QtWidgets.QLabel(self.frame_3)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_9.sizePolicy().hasHeightForWidth())
        self.label_9.setSizePolicy(sizePolicy)
        self.label_9.setMaximumSize(QtCore.QSize(16777215, 27))
        font = QtGui.QFont()
        font.setFamily("URW Bookman [urw]")
        font.setPointSize(16)
        font.setBold(True)
        font.setWeight(75)
        self.label_9.setFont(font)
        self.label_9.setTextFormat(QtCore.Qt.AutoText)
        self.label_9.setAlignment(QtCore.Qt.AlignCenter)
        self.label_9.setObjectName("label_9")
        self.verticalLayout_10.addWidget(self.label_9)
        self.output2 = ImageView(self.frame_3)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.output2.sizePolicy().hasHeightForWidth())
        self.output2.setSizePolicy(sizePolicy)
        self.output2.setMinimumSize(QtCore.QSize(0, 0))
        self.output2.setObjectName("output2")
        self.verticalLayout_10.addWidget(self.output2)
        self.horizontalLayout.addLayout(self.verticalLayout_10)
        self.gridLayout.addWidget(self.frame_3, 1, 1, 1, 1)
        self.pushButton = QtWidgets.QPushButton(self.centralwidget)
        self.pushButton.setEnabled(False)
        font = QtGui.QFont()
        font.setFamily("URW Bookman [urw]")
        font.setPointSize(14)
        self.pushButton.setFont(font)
        self.pushButton.setObjectName("pushButton")
        self.gridLayout.addWidget(self.pushButton, 2, 0, 1, 2)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1057, 22))
        self.menubar.setObjectName("menubar")
        self.menuFile = QtWidgets.QMenu(self.menubar)
        self.menuFile.setObjectName("menuFile")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.actionOpen = QtWidgets.QAction(MainWindow)
        self.actionOpen.setObjectName("actionOpen")
        self.menuFile.addAction(self.actionOpen)
        self.menubar.addAction(self.menuFile.menuAction())

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

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
        self.label_4.setText(_translate("MainWindow", "Image 1"))
        self.comboBox.setItemText(0, _translate("MainWindow", "Mag"))
        self.comboBox.setItemText(1, _translate("MainWindow", "Phase"))
        self.comboBox.setItemText(2, _translate("MainWindow", "Real"))
        self.comboBox.setItemText(3, _translate("MainWindow", "Imag"))
        self.label_6.setText(_translate("MainWindow", "Mixer output to:"))
        self.comboBox_3.setItemText(0, _translate("MainWindow", "Output 1"))
        self.comboBox_3.setItemText(1, _translate("MainWindow", "Output 2"))
        self.label_7.setText(_translate("MainWindow", "Component 1:"))
        self.comboBox_4.setItemText(0, _translate("MainWindow", "Img 1"))
        self.comboBox_4.setItemText(1, _translate("MainWindow", "Img 2"))
        self.label_10.setText(_translate("MainWindow", "100%"))
        self.comboBox_5.setItemText(0, _translate("MainWindow", "Mag"))
        self.comboBox_5.setItemText(1, _translate("MainWindow", "Phase"))
        self.comboBox_5.setItemText(2, _translate("MainWindow", "Real"))
        self.comboBox_5.setItemText(3, _translate("MainWindow", "Imag"))
        self.comboBox_5.setItemText(4, _translate("MainWindow", "uniMag"))
        self.comboBox_5.setItemText(5, _translate("MainWindow", "uniPhase"))
        self.label_8.setText(_translate("MainWindow", "Component 2:"))
        self.comboBox_6.setItemText(0, _translate("MainWindow", "Img 1"))
        self.comboBox_6.setItemText(1, _translate("MainWindow", "Img 2"))
        self.label_11.setText(_translate("MainWindow", "100%"))
        self.comboBox_7.setItemText(0, _translate("MainWindow", "Mag"))
        self.comboBox_7.setItemText(1, _translate("MainWindow", "Phase"))
        self.comboBox_7.setItemText(2, _translate("MainWindow", "Real"))
        self.comboBox_7.setItemText(3, _translate("MainWindow", "Imag"))
        self.comboBox_7.setItemText(4, _translate("MainWindow", "uniMag"))
        self.comboBox_7.setItemText(5, _translate("MainWindow", "uniPhase"))
        self.label_3.setText(_translate("MainWindow", "Image 2"))
        self.comboBox_2.setItemText(0, _translate("MainWindow", "Mag"))
        self.comboBox_2.setItemText(1, _translate("MainWindow", "Phase"))
        self.comboBox_2.setItemText(2, _translate("MainWindow", "Real"))
        self.comboBox_2.setItemText(3, _translate("MainWindow", "Imag"))
        self.label_5.setText(_translate("MainWindow", "Output 1"))
        self.label_9.setText(_translate("MainWindow", "Output 2"))
        self.pushButton.setText(_translate("MainWindow", "Reset"))
        self.menuFile.setTitle(_translate("MainWindow", "File"))
        self.actionOpen.setText(_translate("MainWindow", "Open"))
Exemplo n.º 3
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(1785, 1186)
        MainWindow.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        MainWindow.setLocale(QtCore.QLocale(QtCore.QLocale.French, QtCore.QLocale.France))
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.verticalLayoutWidget_2 = QtGui.QWidget(self.centralwidget)
        self.verticalLayoutWidget_2.setGeometry(QtCore.QRect(450, 10, 1321, 1141))
        self.verticalLayoutWidget_2.setObjectName(_fromUtf8("verticalLayoutWidget_2"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.verticalLayoutWidget_2)
        self.verticalLayout_2.setSizeConstraint(QtGui.QLayout.SetNoConstraint)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.imageView = ImageView(self.verticalLayoutWidget_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.imageView.sizePolicy().hasHeightForWidth())
        self.imageView.setSizePolicy(sizePolicy)
        self.imageView.setObjectName(_fromUtf8("imageView"))
        self.verticalLayout_2.addWidget(self.imageView)
        self.verticalLayoutWidget_3 = QtGui.QWidget(self.centralwidget)
        self.verticalLayoutWidget_3.setGeometry(QtCore.QRect(10, 720, 431, 431))
        self.verticalLayoutWidget_3.setObjectName(_fromUtf8("verticalLayoutWidget_3"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.verticalLayoutWidget_3)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.plotView = PlotWidget(self.verticalLayoutWidget_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.plotView.sizePolicy().hasHeightForWidth())
        self.plotView.setSizePolicy(sizePolicy)
        self.plotView.setObjectName(_fromUtf8("plotView"))
        self.verticalLayout_3.addWidget(self.plotView)
        self.labelFileName = QtGui.QLabel(self.centralwidget)
        self.labelFileName.setGeometry(QtCore.QRect(10, 588, 91, 21))
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Calibri"))
        font.setPointSize(14)
        font.setBold(False)
        font.setItalic(False)
        font.setWeight(50)
        self.labelFileName.setFont(font)
        self.labelFileName.setTextFormat(QtCore.Qt.AutoText)
        self.labelFileName.setObjectName(_fromUtf8("labelFileName"))
        self.chooseWorkDirectoryBtn = QtGui.QPushButton(self.centralwidget)
        self.chooseWorkDirectoryBtn.setGeometry(QtCore.QRect(120, 55, 215, 45))
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Cambria"))
        font.setPointSize(12)
        self.chooseWorkDirectoryBtn.setFont(font)
        self.chooseWorkDirectoryBtn.setAutoFillBackground(True)
        self.chooseWorkDirectoryBtn.setObjectName(_fromUtf8("chooseWorkDirectoryBtn"))
        self.verticalLayoutWidget = QtGui.QWidget(self.centralwidget)
        self.verticalLayoutWidget.setGeometry(QtCore.QRect(20, 155, 211, 191))
        self.verticalLayoutWidget.setObjectName(_fromUtf8("verticalLayoutWidget"))
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.verticalLayoutWidget)
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.load1FileBtn = QtGui.QPushButton(self.verticalLayoutWidget)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Cambria"))
        font.setPointSize(12)
        self.load1FileBtn.setFont(font)
        self.load1FileBtn.setObjectName(_fromUtf8("load1FileBtn"))
        self.verticalLayout_5.addWidget(self.load1FileBtn)
        self.load2FilesBtn = QtGui.QPushButton(self.verticalLayoutWidget)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Cambria"))
        font.setPointSize(12)
        self.load2FilesBtn.setFont(font)
        self.load2FilesBtn.setObjectName(_fromUtf8("load2FilesBtn"))
        self.verticalLayout_5.addWidget(self.load2FilesBtn)
        self.load4FilesBtn = QtGui.QPushButton(self.verticalLayoutWidget)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Cambria"))
        font.setPointSize(12)
        self.load4FilesBtn.setFont(font)
        self.load4FilesBtn.setObjectName(_fromUtf8("load4FilesBtn"))
        self.verticalLayout_5.addWidget(self.load4FilesBtn)
        self.showTIFFStackBtn = QtGui.QPushButton(self.verticalLayoutWidget)
        palette = QtGui.QPalette()
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 252, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 254, 127))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Light, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 253, 63))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Midlight, brush)
        brush = QtGui.QBrush(QtGui.QColor(127, 126, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Dark, brush)
        brush = QtGui.QBrush(QtGui.QColor(170, 168, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Mid, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.BrightText, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 252, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Shadow, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 253, 127))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.AlternateBase, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 220))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ToolTipBase, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ToolTipText, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 252, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 254, 127))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Light, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 253, 63))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Midlight, brush)
        brush = QtGui.QBrush(QtGui.QColor(127, 126, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Dark, brush)
        brush = QtGui.QBrush(QtGui.QColor(170, 168, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Mid, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.BrightText, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 252, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Shadow, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 253, 127))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.AlternateBase, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 220))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ToolTipBase, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ToolTipText, brush)
        brush = QtGui.QBrush(QtGui.QColor(127, 126, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 252, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 254, 127))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Light, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 253, 63))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Midlight, brush)
        brush = QtGui.QBrush(QtGui.QColor(127, 126, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Dark, brush)
        brush = QtGui.QBrush(QtGui.QColor(170, 168, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Mid, brush)
        brush = QtGui.QBrush(QtGui.QColor(127, 126, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.BrightText, brush)
        brush = QtGui.QBrush(QtGui.QColor(127, 126, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 252, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 252, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Shadow, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 252, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.AlternateBase, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 220))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ToolTipBase, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ToolTipText, brush)
        self.showTIFFStackBtn.setPalette(palette)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Cambria"))
        font.setPointSize(12)
        self.showTIFFStackBtn.setFont(font)
        self.showTIFFStackBtn.setAutoFillBackground(True)
        self.showTIFFStackBtn.setObjectName(_fromUtf8("showTIFFStackBtn"))
        self.verticalLayout_5.addWidget(self.showTIFFStackBtn)
        self.verticalLayoutWidget_4 = QtGui.QWidget(self.centralwidget)
        self.verticalLayoutWidget_4.setGeometry(QtCore.QRect(230, 155, 211, 191))
        self.verticalLayoutWidget_4.setObjectName(_fromUtf8("verticalLayoutWidget_4"))
        self.verticalLayout_6 = QtGui.QVBoxLayout(self.verticalLayoutWidget_4)
        self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6"))
        self.calcSingleSpectrumBtn = QtGui.QPushButton(self.verticalLayoutWidget_4)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Cambria"))
        font.setPointSize(12)
        self.calcSingleSpectrumBtn.setFont(font)
        self.calcSingleSpectrumBtn.setObjectName(_fromUtf8("calcSingleSpectrumBtn"))
        self.verticalLayout_6.addWidget(self.calcSingleSpectrumBtn)
        self.calcDiffSpectraBtn = QtGui.QPushButton(self.verticalLayoutWidget_4)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Cambria"))
        font.setPointSize(12)
        self.calcDiffSpectraBtn.setFont(font)
        self.calcDiffSpectraBtn.setObjectName(_fromUtf8("calcDiffSpectraBtn"))
        self.verticalLayout_6.addWidget(self.calcDiffSpectraBtn)
        self.calcDiffImagesBtn = QtGui.QPushButton(self.verticalLayoutWidget_4)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Cambria"))
        font.setPointSize(12)
        self.calcDiffImagesBtn.setFont(font)
        self.calcDiffImagesBtn.setCheckable(False)
        self.calcDiffImagesBtn.setObjectName(_fromUtf8("calcDiffImagesBtn"))
        self.verticalLayout_6.addWidget(self.calcDiffImagesBtn)
        self.calcDiff4ImagesBtn = QtGui.QPushButton(self.verticalLayoutWidget_4)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Cambria"))
        font.setPointSize(12)
        self.calcDiff4ImagesBtn.setFont(font)
        self.calcDiff4ImagesBtn.setCheckable(False)
        self.calcDiff4ImagesBtn.setObjectName(_fromUtf8("calcDiff4ImagesBtn"))
        self.verticalLayout_6.addWidget(self.calcDiff4ImagesBtn)
        self.layoutWidget = QtGui.QWidget(self.centralwidget)
        self.layoutWidget.setGeometry(QtCore.QRect(230, 445, 211, 81))
        self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.layoutWidget)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.loadNormFileBtn = QtGui.QPushButton(self.layoutWidget)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Cambria"))
        font.setPointSize(12)
        self.loadNormFileBtn.setFont(font)
        self.loadNormFileBtn.setObjectName(_fromUtf8("loadNormFileBtn"))
        self.verticalLayout_4.addWidget(self.loadNormFileBtn)
        self.normBtn = QtGui.QCheckBox(self.layoutWidget)
        palette = QtGui.QPalette()
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 254, 118))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(126, 255, 186))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Light, brush)
        brush = QtGui.QBrush(QtGui.QColor(63, 254, 152))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Midlight, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 127, 59))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Dark, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 169, 78))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Mid, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.BrightText, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 254, 118))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Shadow, brush)
        brush = QtGui.QBrush(QtGui.QColor(127, 254, 186))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.AlternateBase, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 220))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ToolTipBase, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ToolTipText, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 254, 118))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(126, 255, 186))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Light, brush)
        brush = QtGui.QBrush(QtGui.QColor(63, 254, 152))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Midlight, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 127, 59))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Dark, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 169, 78))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Mid, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.BrightText, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 254, 118))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Shadow, brush)
        brush = QtGui.QBrush(QtGui.QColor(127, 254, 186))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.AlternateBase, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 220))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ToolTipBase, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ToolTipText, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 127, 59))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 254, 118))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(126, 255, 186))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Light, brush)
        brush = QtGui.QBrush(QtGui.QColor(63, 254, 152))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Midlight, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 127, 59))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Dark, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 169, 78))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Mid, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 127, 59))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.BrightText, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 127, 59))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 254, 118))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 254, 118))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Shadow, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 254, 118))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.AlternateBase, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 220))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ToolTipBase, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ToolTipText, brush)
        self.normBtn.setPalette(palette)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Cambria"))
        font.setPointSize(12)
        self.normBtn.setFont(font)
        self.normBtn.setAutoFillBackground(True)
        self.normBtn.setObjectName(_fromUtf8("normBtn"))
        self.verticalLayout_4.addWidget(self.normBtn, QtCore.Qt.AlignHCenter)
        self.layoutWidget1 = QtGui.QWidget(self.centralwidget)
        self.layoutWidget1.setGeometry(QtCore.QRect(20, 445, 211, 81))
        self.layoutWidget1.setObjectName(_fromUtf8("layoutWidget1"))
        self.verticalLayout = QtGui.QVBoxLayout(self.layoutWidget1)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.pickROIBtn = QtGui.QPushButton(self.layoutWidget1)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Cambria"))
        font.setPointSize(12)
        self.pickROIBtn.setFont(font)
        self.pickROIBtn.setAutoFillBackground(False)
        self.pickROIBtn.setFlat(False)
        self.pickROIBtn.setObjectName(_fromUtf8("pickROIBtn"))
        self.verticalLayout.addWidget(self.pickROIBtn)
        self.calcROIBtn = QtGui.QCheckBox(self.layoutWidget1)
        self.calcROIBtn.setMaximumSize(QtCore.QSize(901, 21))
        palette = QtGui.QPalette()
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 178, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 217, 127))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Light, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 197, 63))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Midlight, brush)
        brush = QtGui.QBrush(QtGui.QColor(127, 89, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Dark, brush)
        brush = QtGui.QBrush(QtGui.QColor(170, 119, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Mid, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.BrightText, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 178, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Shadow, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 216, 127))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.AlternateBase, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 220))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ToolTipBase, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ToolTipText, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 178, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 217, 127))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Light, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 197, 63))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Midlight, brush)
        brush = QtGui.QBrush(QtGui.QColor(127, 89, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Dark, brush)
        brush = QtGui.QBrush(QtGui.QColor(170, 119, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Mid, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.BrightText, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 178, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Shadow, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 216, 127))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.AlternateBase, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 220))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ToolTipBase, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ToolTipText, brush)
        brush = QtGui.QBrush(QtGui.QColor(127, 89, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 178, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 217, 127))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Light, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 197, 63))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Midlight, brush)
        brush = QtGui.QBrush(QtGui.QColor(127, 89, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Dark, brush)
        brush = QtGui.QBrush(QtGui.QColor(170, 119, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Mid, brush)
        brush = QtGui.QBrush(QtGui.QColor(127, 89, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.BrightText, brush)
        brush = QtGui.QBrush(QtGui.QColor(127, 89, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 178, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 178, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Shadow, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 178, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.AlternateBase, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 220))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ToolTipBase, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ToolTipText, brush)
        self.calcROIBtn.setPalette(palette)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Cambria"))
        font.setPointSize(12)
        self.calcROIBtn.setFont(font)
        self.calcROIBtn.setAutoFillBackground(True)
        self.calcROIBtn.setObjectName(_fromUtf8("calcROIBtn"))
        self.verticalLayout.addWidget(self.calcROIBtn, QtCore.Qt.AlignHCenter)
        self.label = QtGui.QLabel(self.centralwidget)
        self.label.setGeometry(QtCore.QRect(100, 140, 81, 16))
        self.label.setObjectName(_fromUtf8("label"))
        self.label_2 = QtGui.QLabel(self.centralwidget)
        self.label_2.setGeometry(QtCore.QRect(290, 140, 91, 16))
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.label_3 = QtGui.QLabel(self.centralwidget)
        self.label_3.setGeometry(QtCore.QRect(70, 430, 131, 20))
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.label_4 = QtGui.QLabel(self.centralwidget)
        self.label_4.setGeometry(QtCore.QRect(270, 430, 141, 20))
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.verticalLayoutWidget_5 = QtGui.QWidget(self.centralwidget)
        self.verticalLayoutWidget_5.setGeometry(QtCore.QRect(10, 614, 231, 54))
        self.verticalLayoutWidget_5.setObjectName(_fromUtf8("verticalLayoutWidget_5"))
        self.verticalLayout_7 = QtGui.QVBoxLayout(self.verticalLayoutWidget_5)
        self.verticalLayout_7.setObjectName(_fromUtf8("verticalLayout_7"))
        self.switchStackShow1Btn = QtGui.QRadioButton(self.verticalLayoutWidget_5)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Cambria"))
        font.setPointSize(12)
        self.switchStackShow1Btn.setFont(font)
        self.switchStackShow1Btn.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.switchStackShow1Btn.setAutoFillBackground(False)
        self.switchStackShow1Btn.setAutoExclusive(True)
        self.switchStackShow1Btn.setObjectName(_fromUtf8("switchStackShow1Btn"))
        self.verticalLayout_7.addWidget(self.switchStackShow1Btn)
        self.switchStackShow2Btn = QtGui.QRadioButton(self.verticalLayoutWidget_5)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Cambria"))
        font.setPointSize(12)
        self.switchStackShow2Btn.setFont(font)
        self.switchStackShow2Btn.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.switchStackShow2Btn.setAutoFillBackground(False)
        self.switchStackShow2Btn.setAutoExclusive(True)
        self.switchStackShow2Btn.setObjectName(_fromUtf8("switchStackShow2Btn"))
        self.verticalLayout_7.addWidget(self.switchStackShow2Btn)
        self.actualFileName = QtGui.QLabel(self.centralwidget)
        self.actualFileName.setGeometry(QtCore.QRect(99, 588, 351, 21))
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Calibri"))
        font.setPointSize(14)
        font.setBold(False)
        font.setItalic(False)
        font.setWeight(50)
        self.actualFileName.setFont(font)
        self.actualFileName.setTextFormat(QtCore.Qt.AutoText)
        self.actualFileName.setObjectName(_fromUtf8("actualFileName"))
        self.lcdTimer = QtGui.QLCDNumber(self.centralwidget)
        self.lcdTimer.setGeometry(QtCore.QRect(340, 624, 91, 31))
        self.lcdTimer.setObjectName(_fromUtf8("lcdTimer"))
        self.label_5 = QtGui.QLabel(self.centralwidget)
        self.label_5.setGeometry(QtCore.QRect(250, 630, 81, 20))
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.horizontalLayoutWidget = QtGui.QWidget(self.centralwidget)
        self.horizontalLayoutWidget.setGeometry(QtCore.QRect(110, 360, 231, 61))
        self.horizontalLayoutWidget.setObjectName(_fromUtf8("horizontalLayoutWidget"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.horizontalLayoutWidget)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.label_6 = QtGui.QLabel(self.horizontalLayoutWidget)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.horizontalLayout.addWidget(self.label_6)
        self.upsamplingLine = QtGui.QLineEdit(self.horizontalLayoutWidget)
        self.upsamplingLine.setAlignment(QtCore.Qt.AlignCenter)
        self.upsamplingLine.setObjectName(_fromUtf8("upsamplingLine"))
        self.horizontalLayout.addWidget(self.upsamplingLine)
        MainWindow.setCentralWidget(self.centralwidget)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)
        self.actionLOAD_NXS = QtGui.QAction(MainWindow)
        self.actionLOAD_NXS.setObjectName(_fromUtf8("actionLOAD_NXS"))
        self.actionSAVE_TIFF = QtGui.QAction(MainWindow)
        self.actionSAVE_TIFF.setObjectName(_fromUtf8("actionSAVE_TIFF"))
        self.actionQUIT = QtGui.QAction(MainWindow)
        self.actionQUIT.setObjectName(_fromUtf8("actionQUIT"))

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

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(_translate("MainWindow", "XPEEM data reducer", None))
        self.labelFileName.setText(_translate("MainWindow", "<html><head/><body><p><span style=\" font-weight:600; text-decoration: underline; color:#000bff;\">File Name</span></p></body></html>", None))
        self.chooseWorkDirectoryBtn.setText(_translate("MainWindow", "PROCESSING DIRECTORY", None))
        self.load1FileBtn.setText(_translate("MainWindow", "LOAD 1 FILE", None))
        self.load2FilesBtn.setText(_translate("MainWindow", "LOAD 2 FILES", None))
        self.load4FilesBtn.setText(_translate("MainWindow", "LOAD 4 FILES", None))
        self.showTIFFStackBtn.setText(_translate("MainWindow", "SHOW TIFF STACK", None))
        self.calcSingleSpectrumBtn.setText(_translate("MainWindow", "CALC SPECTRUM", None))
        self.calcDiffSpectraBtn.setText(_translate("MainWindow", "CALC DIFF SPECTRA", None))
        self.calcDiffImagesBtn.setText(_translate("MainWindow", "CALC DIFF IMAGES", None))
        self.calcDiff4ImagesBtn.setText(_translate("MainWindow", "CALC DIFF 4 IMAGES", None))
        self.loadNormFileBtn.setText(_translate("MainWindow", "LOAD NORM FILE", None))
        self.normBtn.setText(_translate("MainWindow", "NORMALIZATION", None))
        self.pickROIBtn.setText(_translate("MainWindow", "PICK-UP THE ROI", None))
        self.calcROIBtn.setText(_translate("MainWindow", "CALC ROI", None))
        self.label.setText(_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:8pt; font-weight:400; font-style:normal;\">\n"
"<p align=\"center\" style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:12pt; font-weight:600; color:#000bff;\">INPUT</span></p></body></html>", None))
        self.label_2.setText(_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:8pt; font-weight:400; font-style:normal;\">\n"
"<p align=\"center\" style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:12pt; font-weight:600; color:#000bff;\">OUTPUT</span></p></body></html>", None))
        self.label_3.setText(_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:8pt; font-weight:400; font-style:normal;\">\n"
"<p align=\"center\" style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:12pt; font-weight:600; color:#000bff;\">ROI CONTROL</span></p></body></html>", None))
        self.label_4.setText(_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:8pt; font-weight:400; font-style:normal;\">\n"
"<p align=\"center\" style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:12pt; font-weight:600; color:#000bff;\">NORM CONTROL</span></p></body></html>", None))
        self.switchStackShow1Btn.setText(_translate("MainWindow", "SHOW CORRECTED STACK", None))
        self.switchStackShow2Btn.setText(_translate("MainWindow", "SHOW RESULT STACK", None))
        self.actualFileName.setText(_translate("MainWindow", "<html><head/><body><p><br/></p></body></html>", None))
        self.label_5.setText(_translate("MainWindow", "Elapsed time", None))
        self.label_6.setText(_translate("MainWindow", "<html><head/><body><p><span style=\" font-size:14pt; font-weight:600; color:#ff0000;\">Upsampling Factor =&gt;                   </span></p></body></html>", None))
        self.upsamplingLine.setText(_translate("MainWindow", "20", None))
        self.actionLOAD_NXS.setText(_translate("MainWindow", "LOAD NXS", None))
        self.actionLOAD_NXS.setToolTip(_translate("MainWindow", "LOAD NXS files", None))
        self.actionLOAD_NXS.setShortcut(_translate("MainWindow", "Ctrl+O", None))
        self.actionSAVE_TIFF.setText(_translate("MainWindow", "SAVE TIFF", None))
        self.actionQUIT.setText(_translate("MainWindow", "QUIT", None))
Exemplo n.º 4
0
class Ui_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(1169, 948)
        icon = QtGui.QIcon()
        icon.addPixmap(
            QtGui.QPixmap("F:/OneDrive/workspace/emeter_analysis/eps.png"),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        Dialog.setWindowIcon(icon)
        self.horizontalLayout = QtWidgets.QHBoxLayout(Dialog)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setContentsMargins(-1, -1, 6, -1)
        self.verticalLayout.setObjectName("verticalLayout")
        self.label_16 = QtWidgets.QLabel(Dialog)
        self.label_16.setObjectName("label_16")
        self.verticalLayout.addWidget(self.label_16)
        self.horizontalLayout_12 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_12.setContentsMargins(-1, 6, -1, -1)
        self.horizontalLayout_12.setObjectName("horizontalLayout_12")
        self.label_35 = QtWidgets.QLabel(Dialog)
        self.label_35.setObjectName("label_35")
        self.horizontalLayout_12.addWidget(self.label_35)
        self.dir_select_edit = QtWidgets.QLineEdit(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.dir_select_edit.sizePolicy().hasHeightForWidth())
        self.dir_select_edit.setSizePolicy(sizePolicy)
        self.dir_select_edit.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.dir_select_edit.setObjectName("dir_select_edit")
        self.horizontalLayout_12.addWidget(self.dir_select_edit)
        self.dir_select_button = QtWidgets.QPushButton(Dialog)
        self.dir_select_button.setMinimumSize(QtCore.QSize(25, 0))
        self.dir_select_button.setMaximumSize(QtCore.QSize(25, 16777215))
        self.dir_select_button.setObjectName("dir_select_button")
        self.horizontalLayout_12.addWidget(self.dir_select_button)
        self.verticalLayout.addLayout(self.horizontalLayout_12)
        self.dataset_treeview = QtWidgets.QTreeView(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(
            self.dataset_treeview.sizePolicy().hasHeightForWidth())
        self.dataset_treeview.setSizePolicy(sizePolicy)
        self.dataset_treeview.setObjectName("dataset_treeview")
        self.verticalLayout.addWidget(self.dataset_treeview)
        self.dataset_select_label = QtWidgets.QLabel(Dialog)
        self.dataset_select_label.setObjectName("dataset_select_label")
        self.verticalLayout.addWidget(self.dataset_select_label)
        self.file_listview = QtWidgets.QListView(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(2)
        sizePolicy.setHeightForWidth(
            self.file_listview.sizePolicy().hasHeightForWidth())
        self.file_listview.setSizePolicy(sizePolicy)
        self.file_listview.setObjectName("file_listview")
        self.verticalLayout.addWidget(self.file_listview)
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setContentsMargins(-1, -1, -1, 6)
        self.gridLayout.setObjectName("gridLayout")
        self.widget_5 = QtWidgets.QWidget(Dialog)
        self.widget_5.setObjectName("widget_5")
        self.horizontalLayout_11 = QtWidgets.QHBoxLayout(self.widget_5)
        self.horizontalLayout_11.setContentsMargins(-1, 0, -1, 0)
        self.horizontalLayout_11.setObjectName("horizontalLayout_11")
        self.auto_bkg_radiobutton = QtWidgets.QRadioButton(self.widget_5)
        self.auto_bkg_radiobutton.setChecked(True)
        self.auto_bkg_radiobutton.setObjectName("auto_bkg_radiobutton")
        self.horizontalLayout_11.addWidget(self.auto_bkg_radiobutton)
        self.radioButton = QtWidgets.QRadioButton(self.widget_5)
        self.radioButton.setObjectName("radioButton")
        self.horizontalLayout_11.addWidget(self.radioButton)
        self.gridLayout.addWidget(self.widget_5, 10, 1, 1, 1)
        self.label_33 = QtWidgets.QLabel(Dialog)
        self.label_33.setObjectName("label_33")
        self.gridLayout.addWidget(self.label_33, 10, 0, 1, 1)
        self.roi_height_spinbox = QtWidgets.QSpinBox(Dialog)
        self.roi_height_spinbox.setMaximum(3000)
        self.roi_height_spinbox.setProperty("value", 700)
        self.roi_height_spinbox.setObjectName("roi_height_spinbox")
        self.gridLayout.addWidget(self.roi_height_spinbox, 2, 1, 1, 1)
        self.mask_spinbox = QtWidgets.QSpinBox(Dialog)
        self.mask_spinbox.setSingleStep(2)
        self.mask_spinbox.setProperty("value", 25)
        self.mask_spinbox.setObjectName("mask_spinbox")
        self.gridLayout.addWidget(self.mask_spinbox, 12, 1, 1, 1)
        self.beamenergy_spinbox = QtWidgets.QDoubleSpinBox(Dialog)
        self.beamenergy_spinbox.setMaximum(20.0)
        self.beamenergy_spinbox.setProperty("value", 3.3)
        self.beamenergy_spinbox.setObjectName("beamenergy_spinbox")
        self.gridLayout.addWidget(self.beamenergy_spinbox, 17, 1, 1, 1)
        spacerItem = QtWidgets.QSpacerItem(20, 40,
                                           QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Fixed)
        self.gridLayout.addItem(spacerItem, 18, 0, 1, 1)
        self.label_13 = QtWidgets.QLabel(Dialog)
        self.label_13.setText("")
        self.label_13.setObjectName("label_13")
        self.gridLayout.addWidget(self.label_13, 13, 0, 1, 1)
        self.roi_top_spinbox = QtWidgets.QSpinBox(Dialog)
        self.roi_top_spinbox.setMaximum(3000)
        self.roi_top_spinbox.setProperty("value", 250)
        self.roi_top_spinbox.setObjectName("roi_top_spinbox")
        self.gridLayout.addWidget(self.roi_top_spinbox, 1, 1, 1, 1)
        self.label_4 = QtWidgets.QLabel(Dialog)
        self.label_4.setObjectName("label_4")
        self.gridLayout.addWidget(self.label_4, 3, 0, 1, 1)
        self.label_14 = QtWidgets.QLabel(Dialog)
        self.label_14.setObjectName("label_14")
        self.gridLayout.addWidget(self.label_14, 12, 0, 1, 1)
        self.rotation_spinbox = QtWidgets.QDoubleSpinBox(Dialog)
        self.rotation_spinbox.setMinimum(-180.0)
        self.rotation_spinbox.setMaximum(180.0)
        self.rotation_spinbox.setSingleStep(0.5)
        self.rotation_spinbox.setProperty("value", 3.12)
        self.rotation_spinbox.setObjectName("rotation_spinbox")
        self.gridLayout.addWidget(self.rotation_spinbox, 8, 1, 1, 1)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.bkg_spinbox = QtWidgets.QDoubleSpinBox(Dialog)
        self.bkg_spinbox.setMaximumSize(QtCore.QSize(16777209, 16777215))
        self.bkg_spinbox.setDecimals(1)
        self.bkg_spinbox.setMaximum(65000.0)
        self.bkg_spinbox.setProperty("value", 256.0)
        self.bkg_spinbox.setObjectName("bkg_spinbox")
        self.horizontalLayout_4.addWidget(self.bkg_spinbox)
        self.gridLayout.addLayout(self.horizontalLayout_4, 11, 1, 1, 1)
        self.image_size_label = QtWidgets.QLabel(Dialog)
        self.image_size_label.setObjectName("image_size_label")
        self.gridLayout.addWidget(self.image_size_label, 0, 1, 1, 1)
        self.label_8 = QtWidgets.QLabel(Dialog)
        self.label_8.setObjectName("label_8")
        self.gridLayout.addWidget(self.label_8, 0, 0, 1, 1)
        self.widget_4 = QtWidgets.QWidget(Dialog)
        self.widget_4.setObjectName("widget_4")
        self.horizontalLayout_10 = QtWidgets.QHBoxLayout(self.widget_4)
        self.horizontalLayout_10.setContentsMargins(-1, 0, -1, 0)
        self.horizontalLayout_10.setObjectName("horizontalLayout_10")
        self.sum_images_radiobutton = QtWidgets.QRadioButton(self.widget_4)
        self.sum_images_radiobutton.setChecked(True)
        self.sum_images_radiobutton.setObjectName("sum_images_radiobutton")
        self.horizontalLayout_10.addWidget(self.sum_images_radiobutton)
        self.each_image_radiobutton = QtWidgets.QRadioButton(self.widget_4)
        self.each_image_radiobutton.setObjectName("each_image_radiobutton")
        self.horizontalLayout_10.addWidget(self.each_image_radiobutton)
        self.gridLayout.addWidget(self.widget_4, 6, 1, 1, 1)
        self.label_5 = QtWidgets.QLabel(Dialog)
        self.label_5.setObjectName("label_5")
        self.gridLayout.addWidget(self.label_5, 4, 0, 1, 1)
        self.label_26 = QtWidgets.QLabel(Dialog)
        self.label_26.setObjectName("label_26")
        self.gridLayout.addWidget(self.label_26, 21, 0, 1, 1)
        self.label_2 = QtWidgets.QLabel(Dialog)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
        self.label_22 = QtWidgets.QLabel(Dialog)
        self.label_22.setObjectName("label_22")
        self.gridLayout.addWidget(self.label_22, 16, 0, 1, 1)
        self.slit_screen_distance_spinbox = QtWidgets.QDoubleSpinBox(Dialog)
        self.slit_screen_distance_spinbox.setMaximum(200.0)
        self.slit_screen_distance_spinbox.setProperty("value", 23.0)
        self.slit_screen_distance_spinbox.setObjectName(
            "slit_screen_distance_spinbox")
        self.gridLayout.addWidget(self.slit_screen_distance_spinbox, 16, 1, 1,
                                  1)
        self.label_21 = QtWidgets.QLabel(Dialog)
        self.label_21.setObjectName("label_21")
        self.gridLayout.addWidget(self.label_21, 15, 0, 1, 1)
        self.label_23 = QtWidgets.QLabel(Dialog)
        self.label_23.setObjectName("label_23")
        self.gridLayout.addWidget(self.label_23, 17, 0, 1, 1)
        self.label_34 = QtWidgets.QLabel(Dialog)
        self.label_34.setObjectName("label_34")
        self.gridLayout.addWidget(self.label_34, 7, 0, 1, 1)
        self.label_12 = QtWidgets.QLabel(Dialog)
        self.label_12.setText("")
        self.label_12.setObjectName("label_12")
        self.gridLayout.addWidget(self.label_12, 5, 0, 1, 1)
        self.pixelsize_spinbox = QtWidgets.QDoubleSpinBox(Dialog)
        self.pixelsize_spinbox.setSingleStep(1.0)
        self.pixelsize_spinbox.setProperty("value", 13.3)
        self.pixelsize_spinbox.setObjectName("pixelsize_spinbox")
        self.gridLayout.addWidget(self.pixelsize_spinbox, 15, 1, 1, 1)
        self.label_3 = QtWidgets.QLabel(Dialog)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 2, 0, 1, 1)
        self.medfilt_spinbox = QtWidgets.QSpinBox(Dialog)
        self.medfilt_spinbox.setMinimum(1)
        self.medfilt_spinbox.setMaximum(13)
        self.medfilt_spinbox.setProperty("value", 5)
        self.medfilt_spinbox.setObjectName("medfilt_spinbox")
        self.gridLayout.addWidget(self.medfilt_spinbox, 9, 1, 1, 1)
        self.roi_left_spinbox = QtWidgets.QSpinBox(Dialog)
        self.roi_left_spinbox.setMaximum(3000)
        self.roi_left_spinbox.setObjectName("roi_left_spinbox")
        self.gridLayout.addWidget(self.roi_left_spinbox, 3, 1, 1, 1)
        self.small_roi_spinbox = QtWidgets.QSpinBox(Dialog)
        self.small_roi_spinbox.setMaximum(9999)
        self.small_roi_spinbox.setProperty("value", 150)
        self.small_roi_spinbox.setObjectName("small_roi_spinbox")
        self.gridLayout.addWidget(self.small_roi_spinbox, 7, 1, 1, 1)
        self.label_32 = QtWidgets.QLabel(Dialog)
        self.label_32.setObjectName("label_32")
        self.gridLayout.addWidget(self.label_32, 6, 0, 1, 1)
        self.label = QtWidgets.QLabel(Dialog)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 9, 0, 1, 1)
        self.label_10 = QtWidgets.QLabel(Dialog)
        self.label_10.setObjectName("label_10")
        self.gridLayout.addWidget(self.label_10, 11, 0, 1, 1)
        self.roi_width_spinbox = QtWidgets.QSpinBox(Dialog)
        self.roi_width_spinbox.setMaximum(3000)
        self.roi_width_spinbox.setProperty("value", 1400)
        self.roi_width_spinbox.setObjectName("roi_width_spinbox")
        self.gridLayout.addWidget(self.roi_width_spinbox, 4, 1, 1, 1)
        self.label_18 = QtWidgets.QLabel(Dialog)
        self.label_18.setObjectName("label_18")
        self.gridLayout.addWidget(self.label_18, 8, 0, 1, 1)
        self.horizontalLayout_14 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_14.setObjectName("horizontalLayout_14")
        self.start_analysis_button = QtWidgets.QPushButton(Dialog)
        self.start_analysis_button.setObjectName("start_analysis_button")
        self.horizontalLayout_14.addWidget(self.start_analysis_button)
        self.cancel_pushbutton = QtWidgets.QPushButton(Dialog)
        self.cancel_pushbutton.setObjectName("cancel_pushbutton")
        self.horizontalLayout_14.addWidget(self.cancel_pushbutton)
        self.gridLayout.addLayout(self.horizontalLayout_14, 21, 1, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout)
        self.horizontalLayout.addLayout(self.verticalLayout)
        self.verticalLayout_2 = QtWidgets.QVBoxLayout()
        self.verticalLayout_2.setContentsMargins(-1, -1, 6, 6)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.image_widget = ImageView(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(2)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.image_widget.sizePolicy().hasHeightForWidth())
        self.image_widget.setSizePolicy(sizePolicy)
        self.image_widget.setObjectName("image_widget")
        self.verticalLayout_2.addWidget(self.image_widget)
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_5.setContentsMargins(-1, -1, 6, 6)
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.label_9 = QtWidgets.QLabel(Dialog)
        self.label_9.setObjectName("label_9")
        self.horizontalLayout_5.addWidget(self.label_9)
        self.widget_3 = QtWidgets.QWidget(Dialog)
        self.widget_3.setMinimumSize(QtCore.QSize(10, 0))
        self.widget_3.setObjectName("widget_3")
        self.horizontalLayout_9 = QtWidgets.QHBoxLayout(self.widget_3)
        self.horizontalLayout_9.setContentsMargins(-1, 0, -1, 0)
        self.horizontalLayout_9.setObjectName("horizontalLayout_9")
        self.file_radiobutton = QtWidgets.QRadioButton(self.widget_3)
        self.file_radiobutton.setChecked(True)
        self.file_radiobutton.setObjectName("file_radiobutton")
        self.horizontalLayout_9.addWidget(self.file_radiobutton)
        self.scan_radiobutton = QtWidgets.QRadioButton(self.widget_3)
        self.scan_radiobutton.setObjectName("scan_radiobutton")
        self.horizontalLayout_9.addWidget(self.scan_radiobutton)
        self.horizontalLayout_5.addWidget(self.widget_3)
        self.line_2 = QtWidgets.QFrame(Dialog)
        self.line_2.setFrameShape(QtWidgets.QFrame.VLine)
        self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_2.setObjectName("line_2")
        self.horizontalLayout_5.addWidget(self.line_2)
        self.widget = QtWidgets.QWidget(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.widget.sizePolicy().hasHeightForWidth())
        self.widget.setSizePolicy(sizePolicy)
        self.widget.setMinimumSize(QtCore.QSize(0, 0))
        self.widget.setObjectName("widget")
        self.horizontalLayout_8 = QtWidgets.QHBoxLayout(self.widget)
        self.horizontalLayout_8.setContentsMargins(-1, 0, -1, 0)
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
        self.raw_radiobutton = QtWidgets.QRadioButton(self.widget)
        self.raw_radiobutton.setObjectName("raw_radiobutton")
        self.horizontalLayout_8.addWidget(self.raw_radiobutton)
        self.processed_radiobutton = QtWidgets.QRadioButton(self.widget)
        self.processed_radiobutton.setChecked(False)
        self.processed_radiobutton.setObjectName("processed_radiobutton")
        self.horizontalLayout_8.addWidget(self.processed_radiobutton)
        self.tight_radiobutton = QtWidgets.QRadioButton(self.widget)
        self.tight_radiobutton.setChecked(True)
        self.tight_radiobutton.setObjectName("tight_radiobutton")
        self.horizontalLayout_8.addWidget(self.tight_radiobutton)
        self.horizontalLayout_5.addWidget(self.widget)
        self.line_3 = QtWidgets.QFrame(Dialog)
        self.line_3.setFrameShape(QtWidgets.QFrame.VLine)
        self.line_3.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_3.setObjectName("line_3")
        self.horizontalLayout_5.addWidget(self.line_3)
        self.image_slider = QtWidgets.QSlider(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.image_slider.sizePolicy().hasHeightForWidth())
        self.image_slider.setSizePolicy(sizePolicy)
        self.image_slider.setOrientation(QtCore.Qt.Horizontal)
        self.image_slider.setTickPosition(QtWidgets.QSlider.TicksBelow)
        self.image_slider.setObjectName("image_slider")
        self.horizontalLayout_5.addWidget(self.image_slider)
        self.image_ind_spinbox = QtWidgets.QSpinBox(Dialog)
        self.image_ind_spinbox.setMinimumSize(QtCore.QSize(50, 0))
        self.image_ind_spinbox.setMaximumSize(QtCore.QSize(50, 16777215))
        self.image_ind_spinbox.setMaximum(999)
        self.image_ind_spinbox.setProperty("value", 0)
        self.image_ind_spinbox.setObjectName("image_ind_spinbox")
        self.horizontalLayout_5.addWidget(self.image_ind_spinbox)
        self.image_sel_pos_label = QtWidgets.QLabel(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.image_sel_pos_label.sizePolicy().hasHeightForWidth())
        self.image_sel_pos_label.setSizePolicy(sizePolicy)
        self.image_sel_pos_label.setMinimumSize(QtCore.QSize(40, 0))
        self.image_sel_pos_label.setMaximumSize(QtCore.QSize(40, 16777215))
        self.image_sel_pos_label.setObjectName("image_sel_pos_label")
        self.horizontalLayout_5.addWidget(self.image_sel_pos_label)
        self.verticalLayout_2.addLayout(self.horizontalLayout_5)
        self.line = QtWidgets.QFrame(Dialog)
        self.line.setFrameShape(QtWidgets.QFrame.HLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.verticalLayout_2.addWidget(self.line)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setContentsMargins(-1, 6, -1, -1)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.plot_widget = PlotWidget(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.plot_widget.sizePolicy().hasHeightForWidth())
        self.plot_widget.setSizePolicy(sizePolicy)
        self.plot_widget.setObjectName("plot_widget")
        self.horizontalLayout_3.addWidget(self.plot_widget)
        self.verticalLayout_2.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_6.setContentsMargins(-1, -1, 6, 6)
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.label_20 = QtWidgets.QLabel(Dialog)
        self.label_20.setObjectName("label_20")
        self.horizontalLayout_6.addWidget(self.label_20)
        self.widget_2 = QtWidgets.QWidget(Dialog)
        self.widget_2.setMinimumSize(QtCore.QSize(10, 0))
        self.widget_2.setObjectName("widget_2")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.widget_2)
        self.horizontalLayout_2.setContentsMargins(-1, 0, -1, 0)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.charge_radiobutton = QtWidgets.QRadioButton(self.widget_2)
        self.charge_radiobutton.setChecked(True)
        self.charge_radiobutton.setObjectName("charge_radiobutton")
        self.horizontalLayout_2.addWidget(self.charge_radiobutton)
        self.line_radiobutton = QtWidgets.QRadioButton(self.widget_2)
        self.line_radiobutton.setObjectName("line_radiobutton")
        self.horizontalLayout_2.addWidget(self.line_radiobutton)
        self.xp_radiobutton = QtWidgets.QRadioButton(self.widget_2)
        self.xp_radiobutton.setObjectName("xp_radiobutton")
        self.horizontalLayout_2.addWidget(self.xp_radiobutton)
        self.xp2_radiobutton = QtWidgets.QRadioButton(self.widget_2)
        self.xp2_radiobutton.setObjectName("xp2_radiobutton")
        self.horizontalLayout_2.addWidget(self.xp2_radiobutton)
        self.horizontalLayout_6.addWidget(self.widget_2)
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.horizontalLayout_6.addLayout(self.horizontalLayout_7)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_6.addItem(spacerItem1)
        self.verticalLayout_2.addLayout(self.horizontalLayout_6)
        self.horizontalLayout.addLayout(self.verticalLayout_2)
        self.gridLayout_2 = QtWidgets.QGridLayout()
        self.gridLayout_2.setContentsMargins(6, -1, -1, -1)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.label_27 = QtWidgets.QLabel(Dialog)
        self.label_27.setObjectName("label_27")
        self.gridLayout_2.addWidget(self.label_27, 9, 0, 1, 1)
        self.bkg_label = QtWidgets.QLabel(Dialog)
        self.bkg_label.setMinimumSize(QtCore.QSize(50, 0))
        self.bkg_label.setObjectName("bkg_label")
        self.gridLayout_2.addWidget(self.bkg_label, 0, 1, 1, 1)
        self.moment_1_label = QtWidgets.QLabel(Dialog)
        self.moment_1_label.setObjectName("moment_1_label")
        self.gridLayout_2.addWidget(self.moment_1_label, 1, 1, 1, 1)
        self.label_24 = QtWidgets.QLabel(Dialog)
        self.label_24.setObjectName("label_24")
        self.gridLayout_2.addWidget(self.label_24, 13, 0, 1, 1)
        spacerItem2 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.gridLayout_2.addItem(spacerItem2, 6, 0, 1, 1)
        self.moment_2_label = QtWidgets.QLabel(Dialog)
        self.moment_2_label.setObjectName("moment_2_label")
        self.gridLayout_2.addWidget(self.moment_2_label, 2, 1, 1, 1)
        self.xp2_e_label = QtWidgets.QLabel(Dialog)
        self.xp2_e_label.setObjectName("xp2_e_label")
        self.gridLayout_2.addWidget(self.xp2_e_label, 10, 1, 1, 1)
        self.label_7 = QtWidgets.QLabel(Dialog)
        self.label_7.setObjectName("label_7")
        self.gridLayout_2.addWidget(self.label_7, 2, 0, 1, 1)
        self.analysis_progressbar = QtWidgets.QProgressBar(Dialog)
        self.analysis_progressbar.setProperty("value", 0)
        self.analysis_progressbar.setObjectName("analysis_progressbar")
        self.gridLayout_2.addWidget(self.analysis_progressbar, 7, 0, 1, 2)
        self.eps_n_label = QtWidgets.QLabel(Dialog)
        self.eps_n_label.setObjectName("eps_n_label")
        self.gridLayout_2.addWidget(self.eps_n_label, 14, 1, 1, 1)
        self.label_31 = QtWidgets.QLabel(Dialog)
        self.label_31.setObjectName("label_31")
        self.gridLayout_2.addWidget(self.label_31, 11, 0, 1, 1)
        self.label_17 = QtWidgets.QLabel(Dialog)
        self.label_17.setText("")
        self.label_17.setObjectName("label_17")
        self.gridLayout_2.addWidget(self.label_17, 4, 0, 1, 1)
        self.sigma_x_label = QtWidgets.QLabel(Dialog)
        self.sigma_x_label.setObjectName("sigma_x_label")
        self.gridLayout_2.addWidget(self.sigma_x_label, 8, 1, 1, 1)
        self.eps_label = QtWidgets.QLabel(Dialog)
        self.eps_label.setObjectName("eps_label")
        self.gridLayout_2.addWidget(self.eps_label, 13, 1, 1, 1)
        self.label_6 = QtWidgets.QLabel(Dialog)
        self.label_6.setObjectName("label_6")
        self.gridLayout_2.addWidget(self.label_6, 1, 0, 1, 1)
        self.xxp_e_label = QtWidgets.QLabel(Dialog)
        self.xxp_e_label.setObjectName("xxp_e_label")
        self.gridLayout_2.addWidget(self.xxp_e_label, 11, 1, 1, 1)
        self.label_29 = QtWidgets.QLabel(Dialog)
        self.label_29.setText("")
        self.label_29.setObjectName("label_29")
        self.gridLayout_2.addWidget(self.label_29, 12, 0, 1, 1)
        self.label_19 = QtWidgets.QLabel(Dialog)
        self.label_19.setObjectName("label_19")
        self.gridLayout_2.addWidget(self.label_19, 8, 0, 1, 1)
        self.label_28 = QtWidgets.QLabel(Dialog)
        self.label_28.setObjectName("label_28")
        self.gridLayout_2.addWidget(self.label_28, 14, 0, 1, 1)
        self.x2_e_label = QtWidgets.QLabel(Dialog)
        self.x2_e_label.setObjectName("x2_e_label")
        self.gridLayout_2.addWidget(self.x2_e_label, 9, 1, 1, 1)
        self.label_30 = QtWidgets.QLabel(Dialog)
        self.label_30.setObjectName("label_30")
        self.gridLayout_2.addWidget(self.label_30, 10, 0, 1, 1)
        self.charge_label = QtWidgets.QLabel(Dialog)
        self.charge_label.setObjectName("charge_label")
        self.gridLayout_2.addWidget(self.charge_label, 3, 1, 1, 1)
        self.label_15 = QtWidgets.QLabel(Dialog)
        self.label_15.setObjectName("label_15")
        self.gridLayout_2.addWidget(self.label_15, 3, 0, 1, 1)
        self.rejected_images_label = QtWidgets.QLabel(Dialog)
        self.rejected_images_label.setObjectName("rejected_images_label")
        self.gridLayout_2.addWidget(self.rejected_images_label, 5, 1, 1, 1)
        self.label_25 = QtWidgets.QLabel(Dialog)
        self.label_25.setObjectName("label_25")
        self.gridLayout_2.addWidget(self.label_25, 5, 0, 1, 1)
        self.label_11 = QtWidgets.QLabel(Dialog)
        self.label_11.setObjectName("label_11")
        self.gridLayout_2.addWidget(self.label_11, 0, 0, 1, 1)
        self.horizontalLayout.addLayout(self.gridLayout_2)

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

    def retranslateUi(self, Dialog):
        _translate = QtCore.QCoreApplication.translate
        Dialog.setWindowTitle(
            _translate("Dialog", "Emittance meter scan analysis"))
        self.label_16.setText(_translate("Dialog", "Dataset:"))
        self.label_35.setText(_translate("Dialog", "Path"))
        self.dir_select_edit.setText(_translate("Dialog", "./data"))
        self.dir_select_button.setText(_translate("Dialog", "..."))
        self.dataset_select_label.setText(
            _translate("Dialog", "Dataset: -- positions x -- images"))
        self.auto_bkg_radiobutton.setText(_translate("Dialog", "Auto"))
        self.radioButton.setText(_translate("Dialog", "Manual"))
        self.label_33.setText(_translate("Dialog", "Bkg cut method"))
        self.label_4.setText(_translate("Dialog", "ROI left"))
        self.label_14.setText(_translate("Dialog", "Mask kernel"))
        self.image_size_label.setText(_translate("Dialog", "-- x --"))
        self.label_8.setText(_translate("Dialog", "Image size"))
        self.sum_images_radiobutton.setText(_translate("Dialog", "Sum"))
        self.each_image_radiobutton.setText(_translate("Dialog", "Each"))
        self.label_5.setText(_translate("Dialog", "ROI width"))
        self.label_26.setText(_translate("Dialog", "Analyze scan"))
        self.label_2.setText(_translate("Dialog", "ROI top"))
        self.label_22.setText(
            _translate("Dialog", "Slit - screen distance / cm"))
        self.label_21.setText(_translate("Dialog", "Pixel size / um"))
        self.label_23.setText(_translate("Dialog", "Beam energy / MeV"))
        self.label_34.setText(_translate("Dialog", "Small ROI width"))
        self.label_3.setText(_translate("Dialog", "ROI height"))
        self.label_32.setText(_translate("Dialog", "Images at pos handling"))
        self.label.setText(_translate("Dialog", "Med filt kernel"))
        self.label_10.setText(_translate("Dialog", "Bkg cut manual level"))
        self.label_18.setText(_translate("Dialog", "Rotation / deg"))
        self.start_analysis_button.setText(_translate("Dialog", "Start"))
        self.cancel_pushbutton.setText(_translate("Dialog", "Cancel"))
        self.label_9.setText(_translate("Dialog", "Show"))
        self.file_radiobutton.setText(_translate("Dialog", "File"))
        self.scan_radiobutton.setText(_translate("Dialog", "Scan proc"))
        self.raw_radiobutton.setText(_translate("Dialog", "Raw"))
        self.processed_radiobutton.setText(_translate("Dialog", "Proc"))
        self.tight_radiobutton.setText(_translate("Dialog", "Tight"))
        self.image_sel_pos_label.setText(_translate("Dialog", "-.-- mm"))
        self.label_20.setText(_translate("Dialog", "Plot"))
        self.charge_radiobutton.setText(_translate("Dialog", "Charge"))
        self.line_radiobutton.setText(_translate("Dialog", "Image line"))
        self.xp_radiobutton.setText(_translate("Dialog", "x\'"))
        self.xp2_radiobutton.setText(_translate("Dialog", "x\'²"))
        self.label_27.setText(_translate("Dialog", "<x²>"))
        self.bkg_label.setText(_translate("Dialog", "-.-"))
        self.moment_1_label.setText(_translate("Dialog", "-.--"))
        self.label_24.setText(_translate("Dialog", "Emittance"))
        self.moment_2_label.setText(_translate("Dialog", "-.--"))
        self.xp2_e_label.setText(_translate("Dialog", "-.--"))
        self.label_7.setText(_translate("Dialog", "xp^2"))
        self.eps_n_label.setText(_translate("Dialog", "-.--"))
        self.label_31.setText(_translate("Dialog", "<xx\'>"))
        self.sigma_x_label.setText(_translate("Dialog", "-.--"))
        self.eps_label.setText(_translate("Dialog", "-.--"))
        self.label_6.setText(_translate("Dialog", "xp"))
        self.xxp_e_label.setText(_translate("Dialog", "-.--"))
        self.label_19.setText(_translate("Dialog", "σₓ / mm"))
        self.label_28.setText(_translate("Dialog", "Normalized emittance"))
        self.x2_e_label.setText(_translate("Dialog", "-.--"))
        self.label_30.setText(_translate("Dialog", "<x\'²>"))
        self.charge_label.setText(_translate("Dialog", "---"))
        self.label_15.setText(_translate("Dialog", "Charge"))
        self.rejected_images_label.setText(_translate("Dialog", "-"))
        self.label_25.setText(_translate("Dialog", "Rejected"))
        self.label_11.setText(_translate("Dialog", "Bkg level"))
Exemplo n.º 5
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.setWindowModality(QtCore.Qt.ApplicationModal)
        MainWindow.resize(923, 667)
        palette = QtGui.QPalette()
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush)
        brush = QtGui.QBrush(QtGui.QColor(46, 52, 54))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(69, 78, 81))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Light, brush)
        brush = QtGui.QBrush(QtGui.QColor(57, 65, 67))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Midlight, brush)
        brush = QtGui.QBrush(QtGui.QColor(23, 26, 27))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Dark, brush)
        brush = QtGui.QBrush(QtGui.QColor(30, 34, 36))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Mid, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.BrightText, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(46, 52, 54))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Shadow, brush)
        brush = QtGui.QBrush(QtGui.QColor(23, 26, 27))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.AlternateBase, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 220))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ToolTipBase, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ToolTipText, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush)
        brush = QtGui.QBrush(QtGui.QColor(46, 52, 54))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(69, 78, 81))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Light, brush)
        brush = QtGui.QBrush(QtGui.QColor(57, 65, 67))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Midlight, brush)
        brush = QtGui.QBrush(QtGui.QColor(23, 26, 27))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Dark, brush)
        brush = QtGui.QBrush(QtGui.QColor(30, 34, 36))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Mid, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.BrightText, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(46, 52, 54))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Shadow, brush)
        brush = QtGui.QBrush(QtGui.QColor(23, 26, 27))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.AlternateBase, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 220))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ToolTipBase, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ToolTipText, brush)
        brush = QtGui.QBrush(QtGui.QColor(23, 26, 27))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush)
        brush = QtGui.QBrush(QtGui.QColor(46, 52, 54))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(69, 78, 81))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Light, brush)
        brush = QtGui.QBrush(QtGui.QColor(57, 65, 67))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Midlight, brush)
        brush = QtGui.QBrush(QtGui.QColor(23, 26, 27))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Dark, brush)
        brush = QtGui.QBrush(QtGui.QColor(30, 34, 36))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Mid, brush)
        brush = QtGui.QBrush(QtGui.QColor(23, 26, 27))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.BrightText, brush)
        brush = QtGui.QBrush(QtGui.QColor(23, 26, 27))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, brush)
        brush = QtGui.QBrush(QtGui.QColor(46, 52, 54))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(46, 52, 54))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Shadow, brush)
        brush = QtGui.QBrush(QtGui.QColor(46, 52, 54))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.AlternateBase, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 220))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ToolTipBase, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ToolTipText, brush)
        MainWindow.setPalette(palette)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName("gridLayout")
        self.img1Layout = QtWidgets.QFrame(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.img1Layout.sizePolicy().hasHeightForWidth())
        self.img1Layout.setSizePolicy(sizePolicy)
        self.img1Layout.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.img1Layout.setFrameShadow(QtWidgets.QFrame.Raised)
        self.img1Layout.setObjectName("img1Layout")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.img1Layout)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.img1Label = QtWidgets.QLabel(self.img1Layout)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.img1Label.sizePolicy().hasHeightForWidth())
        self.img1Label.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(18)
        font.setBold(True)
        font.setWeight(75)
        self.img1Label.setFont(font)
        self.img1Label.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.img1Label.setObjectName("img1Label")
        self.horizontalLayout_2.addWidget(self.img1Label)
        self.img1ComboBox = QtWidgets.QComboBox(self.img1Layout)
        self.img1ComboBox.setEnabled(False)
        self.img1ComboBox.setObjectName("img1ComboBox")
        self.img1ComboBox.addItem("")
        self.img1ComboBox.addItem("")
        self.img1ComboBox.addItem("")
        self.img1ComboBox.addItem("")
        self.horizontalLayout_2.addWidget(self.img1ComboBox)
        self.verticalLayout_4.addLayout(self.horizontalLayout_2)
        self.img1line = QtWidgets.QFrame(self.img1Layout)
        self.img1line.setFrameShape(QtWidgets.QFrame.HLine)
        self.img1line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.img1line.setObjectName("img1line")
        self.verticalLayout_4.addWidget(self.img1line)
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.img1OriginalBox = QtWidgets.QGroupBox(self.img1Layout)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.img1OriginalBox.sizePolicy().hasHeightForWidth())
        self.img1OriginalBox.setSizePolicy(sizePolicy)
        self.img1OriginalBox.setFlat(True)
        self.img1OriginalBox.setObjectName("img1OriginalBox")
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.img1OriginalBox)
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.img1Original = ImageView(self.img1OriginalBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.img1Original.sizePolicy().hasHeightForWidth())
        self.img1Original.setSizePolicy(sizePolicy)
        self.img1Original.setObjectName("img1Original")
        self.horizontalLayout_5.addWidget(self.img1Original)
        self.horizontalLayout_7.addWidget(self.img1OriginalBox)
        self.img1ComponentBox = QtWidgets.QGroupBox(self.img1Layout)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.img1ComponentBox.sizePolicy().hasHeightForWidth())
        self.img1ComponentBox.setSizePolicy(sizePolicy)
        self.img1ComponentBox.setFlat(False)
        self.img1ComponentBox.setObjectName("img1ComponentBox")
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout(self.img1ComponentBox)
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.img1Component = ImageView(self.img1ComponentBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.img1Component.sizePolicy().hasHeightForWidth())
        self.img1Component.setSizePolicy(sizePolicy)
        self.img1Component.setObjectName("img1Component")
        self.horizontalLayout_6.addWidget(self.img1Component)
        self.horizontalLayout_7.addWidget(self.img1ComponentBox)
        self.verticalLayout_4.addLayout(self.horizontalLayout_7)
        self.gridLayout.addWidget(self.img1Layout, 0, 0, 1, 1)
        self.mixerLayout = QtWidgets.QFrame(self.centralwidget)
        self.mixerLayout.setEnabled(False)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.mixerLayout.sizePolicy().hasHeightForWidth())
        self.mixerLayout.setSizePolicy(sizePolicy)
        self.mixerLayout.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.mixerLayout.setFrameShadow(QtWidgets.QFrame.Raised)
        self.mixerLayout.setObjectName("mixerLayout")
        self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.mixerLayout)
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.horizontalLayout_10 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_10.setObjectName("horizontalLayout_10")
        self.mixerlabel = QtWidgets.QLabel(self.mixerLayout)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.mixerlabel.sizePolicy().hasHeightForWidth())
        self.mixerlabel.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(18)
        font.setBold(True)
        font.setWeight(75)
        self.mixerlabel.setFont(font)
        self.mixerlabel.setObjectName("mixerlabel")
        self.horizontalLayout_10.addWidget(self.mixerlabel)
        self.outputComboBox = QtWidgets.QComboBox(self.mixerLayout)
        self.outputComboBox.setObjectName("outputComboBox")
        self.outputComboBox.addItem("")
        self.outputComboBox.addItem("")
        self.horizontalLayout_10.addWidget(self.outputComboBox)
        self.verticalLayout_7.addLayout(self.horizontalLayout_10)
        self.mixerLine = QtWidgets.QFrame(self.mixerLayout)
        self.mixerLine.setFrameShape(QtWidgets.QFrame.HLine)
        self.mixerLine.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.mixerLine.setObjectName("mixerLine")
        self.verticalLayout_7.addWidget(self.mixerLine)
        self.horizontalLayout_12 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_12.setObjectName("horizontalLayout_12")
        self.comp1label = QtWidgets.QLabel(self.mixerLayout)
        font = QtGui.QFont()
        font.setPointSize(15)
        font.setUnderline(False)
        font.setStrikeOut(False)
        self.comp1label.setFont(font)
        self.comp1label.setObjectName("comp1label")
        self.horizontalLayout_12.addWidget(self.comp1label)
        self.verticalLayout_5 = QtWidgets.QVBoxLayout()
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.horizontalLayout_11 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_11.setObjectName("horizontalLayout_11")
        self.comp1CompoBox = QtWidgets.QComboBox(self.mixerLayout)
        self.comp1CompoBox.setObjectName("comp1CompoBox")
        self.comp1CompoBox.addItem("")
        self.comp1CompoBox.addItem("")
        self.horizontalLayout_11.addWidget(self.comp1CompoBox)
        self.comp1HorizontalSlider = QtWidgets.QSlider(self.mixerLayout)
        self.comp1HorizontalSlider.setMinimum(0)
        self.comp1HorizontalSlider.setMaximum(100)
        self.comp1HorizontalSlider.setOrientation(QtCore.Qt.Horizontal)
        self.comp1HorizontalSlider.setObjectName("comp1HorizontalSlider")
        self.horizontalLayout_11.addWidget(self.comp1HorizontalSlider)
        self.verticalLayout_5.addLayout(self.horizontalLayout_11)
        self.comp1ChoiceComboBox = QtWidgets.QComboBox(self.mixerLayout)
        self.comp1ChoiceComboBox.setObjectName("comp1ChoiceComboBox")
        self.comp1ChoiceComboBox.addItem("")
        self.comp1ChoiceComboBox.addItem("")
        self.comp1ChoiceComboBox.addItem("")
        self.comp1ChoiceComboBox.addItem("")
        self.comp1ChoiceComboBox.addItem("")
        self.comp1ChoiceComboBox.addItem("")
        self.verticalLayout_5.addWidget(self.comp1ChoiceComboBox)
        self.horizontalLayout_12.addLayout(self.verticalLayout_5)
        self.verticalLayout_7.addLayout(self.horizontalLayout_12)
        self.horizontalLayout_14 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_14.setObjectName("horizontalLayout_14")
        self.comp2label = QtWidgets.QLabel(self.mixerLayout)
        font = QtGui.QFont()
        font.setPointSize(15)
        self.comp2label.setFont(font)
        self.comp2label.setObjectName("comp2label")
        self.horizontalLayout_14.addWidget(self.comp2label)
        self.verticalLayout_6 = QtWidgets.QVBoxLayout()
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.horizontalLayout_13 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_13.setObjectName("horizontalLayout_13")
        self.comp2CompoBox = QtWidgets.QComboBox(self.mixerLayout)
        self.comp2CompoBox.setObjectName("comp2CompoBox")
        self.comp2CompoBox.addItem("")
        self.comp2CompoBox.addItem("")
        self.horizontalLayout_13.addWidget(self.comp2CompoBox)
        self.comp2HorizontalSlider = QtWidgets.QSlider(self.mixerLayout)
        self.comp2HorizontalSlider.setMinimum(0)
        self.comp2HorizontalSlider.setMaximum(100)
        self.comp2HorizontalSlider.setOrientation(QtCore.Qt.Horizontal)
        self.comp2HorizontalSlider.setObjectName("comp2HorizontalSlider")
        self.horizontalLayout_13.addWidget(self.comp2HorizontalSlider)
        self.verticalLayout_6.addLayout(self.horizontalLayout_13)
        self.comp2ChoiceComboBox = QtWidgets.QComboBox(self.mixerLayout)
        self.comp2ChoiceComboBox.setObjectName("comp2ChoiceComboBox")
        self.comp2ChoiceComboBox.addItem("")
        self.comp2ChoiceComboBox.addItem("")
        self.comp2ChoiceComboBox.addItem("")
        self.comp2ChoiceComboBox.addItem("")
        self.comp2ChoiceComboBox.addItem("")
        self.comp2ChoiceComboBox.addItem("")
        self.verticalLayout_6.addWidget(self.comp2ChoiceComboBox)
        self.horizontalLayout_14.addLayout(self.verticalLayout_6)
        self.verticalLayout_7.addLayout(self.horizontalLayout_14)
        self.gridLayout.addWidget(self.mixerLayout, 0, 1, 1, 1)
        self.img2Layout = QtWidgets.QFrame(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.img2Layout.sizePolicy().hasHeightForWidth())
        self.img2Layout.setSizePolicy(sizePolicy)
        self.img2Layout.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.img2Layout.setFrameShadow(QtWidgets.QFrame.Raised)
        self.img2Layout.setObjectName("img2Layout")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.img2Layout)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.img2Label = QtWidgets.QLabel(self.img2Layout)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.img2Label.sizePolicy().hasHeightForWidth())
        self.img2Label.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(18)
        font.setBold(True)
        font.setWeight(75)
        self.img2Label.setFont(font)
        self.img2Label.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.img2Label.setObjectName("img2Label")
        self.horizontalLayout_3.addWidget(self.img2Label)
        self.img2ComboBox = QtWidgets.QComboBox(self.img2Layout)
        self.img2ComboBox.setEnabled(False)
        self.img2ComboBox.setObjectName("img2ComboBox")
        self.img2ComboBox.addItem("")
        self.img2ComboBox.addItem("")
        self.img2ComboBox.addItem("")
        self.img2ComboBox.addItem("")
        self.horizontalLayout_3.addWidget(self.img2ComboBox)
        self.verticalLayout_3.addLayout(self.horizontalLayout_3)
        self.img2line = QtWidgets.QFrame(self.img2Layout)
        self.img2line.setFrameShape(QtWidgets.QFrame.HLine)
        self.img2line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.img2line.setObjectName("img2line")
        self.verticalLayout_3.addWidget(self.img2line)
        self.horizontalLayout_9 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_9.setObjectName("horizontalLayout_9")
        self.img2OriginalBox = QtWidgets.QGroupBox(self.img2Layout)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.img2OriginalBox.sizePolicy().hasHeightForWidth())
        self.img2OriginalBox.setSizePolicy(sizePolicy)
        self.img2OriginalBox.setAutoFillBackground(False)
        self.img2OriginalBox.setFlat(True)
        self.img2OriginalBox.setObjectName("img2OriginalBox")
        self.horizontalLayout_8 = QtWidgets.QHBoxLayout(self.img2OriginalBox)
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
        self.img2Original = ImageView(self.img2OriginalBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.img2Original.sizePolicy().hasHeightForWidth())
        self.img2Original.setSizePolicy(sizePolicy)
        self.img2Original.setObjectName("img2Original")
        self.horizontalLayout_8.addWidget(self.img2Original)
        self.horizontalLayout_9.addWidget(self.img2OriginalBox)
        self.img2ComponentBox = QtWidgets.QGroupBox(self.img2Layout)
        self.img2ComponentBox.setFlat(True)
        self.img2ComponentBox.setObjectName("img2ComponentBox")
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.img2ComponentBox)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.img2Component = ImageView(self.img2ComponentBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.img2Component.sizePolicy().hasHeightForWidth())
        self.img2Component.setSizePolicy(sizePolicy)
        self.img2Component.setObjectName("img2Component")
        self.horizontalLayout_4.addWidget(self.img2Component)
        self.horizontalLayout_9.addWidget(self.img2ComponentBox)
        self.verticalLayout_3.addLayout(self.horizontalLayout_9)
        self.gridLayout.addWidget(self.img2Layout, 1, 0, 1, 1)
        self.outputLayout = QtWidgets.QFrame(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.outputLayout.sizePolicy().hasHeightForWidth())
        self.outputLayout.setSizePolicy(sizePolicy)
        self.outputLayout.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.outputLayout.setFrameShadow(QtWidgets.QFrame.Raised)
        self.outputLayout.setObjectName("outputLayout")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.outputLayout)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.op1label = QtWidgets.QLabel(self.outputLayout)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.op1label.sizePolicy().hasHeightForWidth())
        self.op1label.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(18)
        font.setBold(True)
        font.setWeight(75)
        font.setKerning(True)
        self.op1label.setFont(font)
        self.op1label.setMouseTracking(False)
        self.op1label.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.op1label.setTextFormat(QtCore.Qt.AutoText)
        self.op1label.setScaledContents(False)
        self.op1label.setAlignment(QtCore.Qt.AlignCenter)
        self.op1label.setWordWrap(False)
        self.op1label.setObjectName("op1label")
        self.verticalLayout.addWidget(self.op1label)
        self.output1Img = ImageView(self.outputLayout)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(5)
        sizePolicy.setHeightForWidth(self.output1Img.sizePolicy().hasHeightForWidth())
        self.output1Img.setSizePolicy(sizePolicy)
        self.output1Img.setObjectName("output1Img")
        self.verticalLayout.addWidget(self.output1Img)
        self.horizontalLayout.addLayout(self.verticalLayout)
        self.verticalLayout_2 = QtWidgets.QVBoxLayout()
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.op2label_2 = QtWidgets.QLabel(self.outputLayout)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.op2label_2.sizePolicy().hasHeightForWidth())
        self.op2label_2.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(18)
        font.setBold(True)
        font.setWeight(75)
        self.op2label_2.setFont(font)
        self.op2label_2.setAlignment(QtCore.Qt.AlignCenter)
        self.op2label_2.setObjectName("op2label_2")
        self.verticalLayout_2.addWidget(self.op2label_2)
        self.output2Img = ImageView(self.outputLayout)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(5)
        sizePolicy.setHeightForWidth(self.output2Img.sizePolicy().hasHeightForWidth())
        self.output2Img.setSizePolicy(sizePolicy)
        self.output2Img.setObjectName("output2Img")
        self.verticalLayout_2.addWidget(self.output2Img)
        self.horizontalLayout.addLayout(self.verticalLayout_2)
        self.gridLayout.addWidget(self.outputLayout, 1, 1, 1, 1)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 923, 22))
        self.menubar.setObjectName("menubar")
        self.menuLoad = QtWidgets.QMenu(self.menubar)
        self.menuLoad.setObjectName("menuLoad")
        MainWindow.setMenuBar(self.menubar)
        self.actionLoadImage1 = QtWidgets.QAction(MainWindow)
        self.actionLoadImage1.setObjectName("actionLoadImage1")
        self.actionLoadImage2 = QtWidgets.QAction(MainWindow)
        self.actionLoadImage2.setObjectName("actionLoadImage2")
        self.menuLoad.addAction(self.actionLoadImage1)
        self.menuLoad.addAction(self.actionLoadImage2)
        self.menubar.addAction(self.menuLoad.menuAction())

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

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "Image Mixer"))
        self.img1Label.setText(_translate("MainWindow", "Image 1"))
        self.img1ComboBox.setItemText(0, _translate("MainWindow", "FT Magnitude"))
        self.img1ComboBox.setItemText(1, _translate("MainWindow", "FT Phase"))
        self.img1ComboBox.setItemText(2, _translate("MainWindow", "FT Real component"))
        self.img1ComboBox.setItemText(3, _translate("MainWindow", "FT Imaginary component"))
        self.img1OriginalBox.setTitle(_translate("MainWindow", "Original Image"))
        self.img1ComponentBox.setTitle(_translate("MainWindow", "Result"))
        self.mixerlabel.setText(_translate("MainWindow", "Mixer Output to : "))
        self.outputComboBox.setItemText(0, _translate("MainWindow", "Output 1"))
        self.outputComboBox.setItemText(1, _translate("MainWindow", "Output 2"))
        self.comp1label.setText(_translate("MainWindow", "Component 1:"))
        self.comp1CompoBox.setItemText(0, _translate("MainWindow", "Image 1"))
        self.comp1CompoBox.setItemText(1, _translate("MainWindow", "Image 2"))
        self.comp1ChoiceComboBox.setItemText(0, _translate("MainWindow", "Magnitude"))
        self.comp1ChoiceComboBox.setItemText(1, _translate("MainWindow", "Phase"))
        self.comp1ChoiceComboBox.setItemText(2, _translate("MainWindow", "Real component"))
        self.comp1ChoiceComboBox.setItemText(3, _translate("MainWindow", "Imaginary component"))
        self.comp1ChoiceComboBox.setItemText(4, _translate("MainWindow", "Uniform magnitude"))
        self.comp1ChoiceComboBox.setItemText(5, _translate("MainWindow", "Uniform phase"))
        self.comp2label.setText(_translate("MainWindow", "Component 2:"))
        self.comp2CompoBox.setItemText(0, _translate("MainWindow", "Image 1"))
        self.comp2CompoBox.setItemText(1, _translate("MainWindow", "Image 2"))
        self.comp2ChoiceComboBox.setItemText(0, _translate("MainWindow", "Magnitude"))
        self.comp2ChoiceComboBox.setItemText(1, _translate("MainWindow", "Phase"))
        self.comp2ChoiceComboBox.setItemText(2, _translate("MainWindow", "Real component"))
        self.comp2ChoiceComboBox.setItemText(3, _translate("MainWindow", "Imaginary component"))
        self.comp2ChoiceComboBox.setItemText(4, _translate("MainWindow", "Uniform magnitude"))
        self.comp2ChoiceComboBox.setItemText(5, _translate("MainWindow", "Uniform phase"))
        self.img2Label.setText(_translate("MainWindow", "Image 2"))
        self.img2ComboBox.setItemText(0, _translate("MainWindow", "FT Magnitude"))
        self.img2ComboBox.setItemText(1, _translate("MainWindow", "FT Phase"))
        self.img2ComboBox.setItemText(2, _translate("MainWindow", "FT Real component"))
        self.img2ComboBox.setItemText(3, _translate("MainWindow", "FT Imaginary component"))
        self.img2OriginalBox.setTitle(_translate("MainWindow", "Original Image"))
        self.img2ComponentBox.setTitle(_translate("MainWindow", "Result"))
        self.op1label.setText(_translate("MainWindow", "Output 1"))
        self.op2label_2.setText(_translate("MainWindow", "Output 2"))
        self.menuLoad.setTitle(_translate("MainWindow", "Load"))
        self.actionLoadImage1.setText(_translate("MainWindow", "Image 1"))
        self.actionLoadImage2.setText(_translate("MainWindow", "Image 2"))
Exemplo n.º 6
0
class Ui_MainWindow(QtWidgets.QMainWindow):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1075, 755)
        font = QtGui.QFont()
        font.setFamily("Georgia")
        MainWindow.setFont(font)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName("gridLayout")
        self.gridLayout_2 = QtWidgets.QGridLayout()
        self.gridLayout_2.setSizeConstraint(QtWidgets.QLayout.SetMinimumSize)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.label = QtWidgets.QLabel(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setFamily("Rockwell Nova Cond")
        font.setPointSize(14)
        font.setBold(True)
        font.setWeight(75)
        self.label.setFont(font)
        self.label.setAlignment(QtCore.Qt.AlignCenter)
        self.label.setObjectName("label")
        self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1)
        self.comboBox = QtWidgets.QComboBox(self.centralwidget)
        self.comboBox.setObjectName("comboBox")
        self.gridLayout_2.addWidget(self.comboBox, 0, 1, 1, 1)
        self.widget = ImageView(self.centralwidget)
        self.widget.setMinimumSize(QtCore.QSize(200, 200))

        self.widget.setObjectName("widget")
        self.gridLayout_2.addWidget(self.widget, 1, 0, 1, 1)
        self.widget_2 = ImageView(self.centralwidget)
        self.widget_2.setObjectName("widget_2")
        self.gridLayout_2.addWidget(self.widget_2, 1, 1, 1, 1)
        self.gridLayout.addLayout(self.gridLayout_2, 0, 0, 1, 1)
        spacerItem = QtWidgets.QSpacerItem(40, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem, 1, 0, 1, 1)
        spacerItem1 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem1, 2, 1, 1, 1)
        self.gridLayout_5 = QtWidgets.QGridLayout()
        self.gridLayout_5.setSizeConstraint(QtWidgets.QLayout.SetMaximumSize)
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.widget_6 = ImageView(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.MinimumExpanding,
            QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.widget_6.sizePolicy().hasHeightForWidth())
        self.widget_6.setSizePolicy(sizePolicy)
        self.widget_6.setMinimumSize(QtCore.QSize(200, 200))
        self.widget_6.setObjectName("widget_6")
        self.gridLayout_5.addWidget(self.widget_6, 1, 1, 1, 1)
        self.label_6 = QtWidgets.QLabel(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_6.sizePolicy().hasHeightForWidth())
        self.label_6.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setFamily("Franklin Gothic Medium")
        font.setPointSize(12)
        font.setBold(True)
        font.setWeight(75)
        self.label_6.setFont(font)
        self.label_6.setAlignment(QtCore.Qt.AlignCenter)
        self.label_6.setObjectName("label_6")
        self.gridLayout_5.addWidget(self.label_6, 0, 1, 1, 1)
        self.widget_5 = ImageView(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.MinimumExpanding,
            QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.widget_5.sizePolicy().hasHeightForWidth())
        self.widget_5.setSizePolicy(sizePolicy)
        self.widget_5.setMinimumSize(QtCore.QSize(200, 200))
        self.widget_5.setObjectName("widget_5")
        self.gridLayout_5.addWidget(self.widget_5, 1, 0, 1, 1)
        self.label_4 = QtWidgets.QLabel(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_4.sizePolicy().hasHeightForWidth())
        self.label_4.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setFamily("Franklin Gothic Medium")
        font.setPointSize(12)
        font.setBold(True)
        font.setWeight(75)
        font.setStrikeOut(False)
        self.label_4.setFont(font)
        self.label_4.setAlignment(QtCore.Qt.AlignCenter)
        self.label_4.setObjectName("label_4")
        self.gridLayout_5.addWidget(self.label_4, 0, 0, 1, 1)
        self.gridLayout.addLayout(self.gridLayout_5, 2, 2, 1, 1)
        self.gridLayout_3 = QtWidgets.QGridLayout()
        self.gridLayout_3.setSizeConstraint(QtWidgets.QLayout.SetMaximumSize)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.gridLayout_10 = QtWidgets.QGridLayout()
        self.gridLayout_10.setContentsMargins(-1, -1, 10, -1)
        self.gridLayout_10.setObjectName("gridLayout_10")
        self.label_5 = QtWidgets.QLabel(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_5.sizePolicy().hasHeightForWidth())
        self.label_5.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setFamily("Rockwell Nova Cond")
        font.setPointSize(11)
        font.setBold(True)
        font.setWeight(75)
        self.label_5.setFont(font)
        self.label_5.setObjectName("label_5")
        self.gridLayout_10.addWidget(self.label_5, 0, 0, 1, 1)
        self.comboBox_5 = QtWidgets.QComboBox(self.centralwidget)
        self.comboBox_5.setObjectName("comboBox_5")
        self.gridLayout_10.addWidget(self.comboBox_5, 1, 2, 1, 3)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.radioButton_3 = QtWidgets.QRadioButton(self.centralwidget)
        self.radioButton_3.setObjectName("radioButton_3")
        self.buttonGroup_2 = QtWidgets.QButtonGroup(MainWindow)
        self.buttonGroup_2.setObjectName("buttonGroup_2")
        self.buttonGroup_2.addButton(self.radioButton_3)
        self.horizontalLayout_3.addWidget(self.radioButton_3)
        self.radioButton_4 = QtWidgets.QRadioButton(self.centralwidget)
        self.radioButton_4.setChecked(True)
        self.radioButton_4.setObjectName("radioButton_4")
        self.buttonGroup_2.addButton(self.radioButton_4)
        self.horizontalLayout_3.addWidget(self.radioButton_4)
        self.gridLayout_10.addLayout(self.horizontalLayout_3, 1, 0, 1, 2)
        self.horizontalSlider_2 = QtWidgets.QSlider(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.horizontalSlider_2.sizePolicy().hasHeightForWidth())
        self.horizontalSlider_2.setSizePolicy(sizePolicy)
        self.horizontalSlider_2.setStyleSheet(
            "background-color: rgb(214, 57, 29);")
        self.horizontalSlider_2.setMaximum(100)
        self.horizontalSlider_2.setOrientation(QtCore.Qt.Horizontal)
        self.horizontalSlider_2.setTickPosition(QtWidgets.QSlider.TicksAbove)
        self.horizontalSlider_2.setObjectName("horizontalSlider_2")
        self.gridLayout_10.addWidget(self.horizontalSlider_2, 0, 1, 1, 3)
        self.label_9 = QtWidgets.QLabel(self.centralwidget)
        self.label_9.setObjectName("label_9")
        self.gridLayout_10.addWidget(self.label_9, 0, 4, 1, 1)
        self.gridLayout_3.addLayout(self.gridLayout_10, 2, 0, 1, 1)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.label_3 = QtWidgets.QLabel(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_3.sizePolicy().hasHeightForWidth())
        self.label_3.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setFamily("Franklin Gothic Medium")
        font.setPointSize(13)
        font.setBold(True)
        font.setWeight(75)
        self.label_3.setFont(font)
        self.label_3.setStyleSheet("")
        self.label_3.setObjectName("label_3")
        self.horizontalLayout.addWidget(self.label_3)
        self.comboBox_3 = QtWidgets.QComboBox(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum,
                                           QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.comboBox_3.sizePolicy().hasHeightForWidth())
        self.comboBox_3.setSizePolicy(sizePolicy)
        self.comboBox_3.setObjectName("comboBox_3")
        self.horizontalLayout.addWidget(self.comboBox_3)
        self.gridLayout_3.addLayout(self.horizontalLayout, 0, 0, 1, 1)
        self.gridLayout_11 = QtWidgets.QGridLayout()
        self.gridLayout_11.setContentsMargins(-1, -1, 10, -1)
        self.gridLayout_11.setObjectName("gridLayout_11")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.radioButton_2 = QtWidgets.QRadioButton(self.centralwidget)
        self.radioButton_2.setChecked(True)
        self.radioButton_2.setAutoExclusive(True)
        self.radioButton_2.setObjectName("radioButton_2")
        self.buttonGroup = QtWidgets.QButtonGroup(MainWindow)
        self.buttonGroup.setObjectName("buttonGroup")
        self.buttonGroup.addButton(self.radioButton_2)
        self.horizontalLayout_2.addWidget(self.radioButton_2)
        self.radioButton = QtWidgets.QRadioButton(self.centralwidget)
        self.radioButton.setAutoExclusive(True)
        self.radioButton.setObjectName("radioButton")
        self.buttonGroup.addButton(self.radioButton)
        self.horizontalLayout_2.addWidget(self.radioButton)
        self.gridLayout_11.addLayout(self.horizontalLayout_2, 1, 0, 1, 2)
        self.label_8 = QtWidgets.QLabel(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_8.sizePolicy().hasHeightForWidth())
        self.label_8.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setFamily("Rockwell Nova Cond")
        font.setPointSize(11)
        font.setBold(True)
        font.setWeight(75)
        self.label_8.setFont(font)
        self.label_8.setObjectName("label_8")
        self.gridLayout_11.addWidget(self.label_8, 0, 0, 1, 1)
        self.comboBox_6 = QtWidgets.QComboBox(self.centralwidget)
        self.comboBox_6.setObjectName("comboBox_6")
        self.gridLayout_11.addWidget(self.comboBox_6, 1, 2, 1, 3)
        self.horizontalSlider_3 = QtWidgets.QSlider(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.horizontalSlider_3.sizePolicy().hasHeightForWidth())
        self.horizontalSlider_3.setSizePolicy(sizePolicy)
        palette = QtGui.QPalette()
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(214, 57, 29))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 170, 127))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Light, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 127, 63))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Midlight, brush)
        brush = QtGui.QBrush(QtGui.QColor(127, 42, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Dark, brush)
        brush = QtGui.QBrush(QtGui.QColor(170, 56, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Mid, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.BrightText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(214, 57, 29))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(214, 57, 29))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Shadow, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 170, 127))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.AlternateBase,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 220))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ToolTipBase,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ToolTipText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(214, 57, 29))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 170, 127))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Light, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 127, 63))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Midlight,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(127, 42, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Dark, brush)
        brush = QtGui.QBrush(QtGui.QColor(170, 56, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Mid, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.BrightText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(214, 57, 29))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(214, 57, 29))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Shadow, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 170, 127))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.AlternateBase,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 220))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ToolTipBase,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ToolTipText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(127, 42, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(214, 57, 29))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 170, 127))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Light, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 127, 63))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Midlight,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(127, 42, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Dark, brush)
        brush = QtGui.QBrush(QtGui.QColor(170, 56, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Mid, brush)
        brush = QtGui.QBrush(QtGui.QColor(127, 42, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.BrightText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(127, 42, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(214, 57, 29))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(214, 57, 29))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Shadow, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 85, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.AlternateBase,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 220))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ToolTipBase,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ToolTipText,
                         brush)
        self.horizontalSlider_3.setPalette(palette)
        font = QtGui.QFont()
        font.setPointSize(28)
        font.setBold(True)
        font.setWeight(75)
        font.setStyleStrategy(QtGui.QFont.PreferAntialias)
        self.horizontalSlider_3.setFont(font)
        self.horizontalSlider_3.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor))
        self.horizontalSlider_3.setStyleSheet(
            "background-color: rgb(214, 57, 29);")
        self.horizontalSlider_3.setMaximum(100)
        self.horizontalSlider_3.setTracking(True)
        self.horizontalSlider_3.setOrientation(QtCore.Qt.Horizontal)
        self.horizontalSlider_3.setInvertedAppearance(False)
        self.horizontalSlider_3.setTickPosition(QtWidgets.QSlider.TicksAbove)
        self.horizontalSlider_3.setObjectName("horizontalSlider_3")
        self.gridLayout_11.addWidget(self.horizontalSlider_3, 0, 1, 1, 3)
        self.label_7 = QtWidgets.QLabel(self.centralwidget)
        self.label_7.setObjectName("label_7")
        self.gridLayout_11.addWidget(self.label_7, 0, 4, 1, 1)
        self.gridLayout_3.addLayout(self.gridLayout_11, 1, 0, 1, 1)
        self.gridLayout.addLayout(self.gridLayout_3, 0, 2, 1, 1)
        self.gridLayout_4 = QtWidgets.QGridLayout()
        self.gridLayout_4.setSizeConstraint(QtWidgets.QLayout.SetMinimumSize)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.label_2 = QtWidgets.QLabel(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_2.sizePolicy().hasHeightForWidth())
        self.label_2.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setFamily("Rockwell Nova Cond")
        font.setPointSize(14)
        font.setBold(True)
        font.setWeight(75)
        self.label_2.setFont(font)
        self.label_2.setAlignment(QtCore.Qt.AlignCenter)
        self.label_2.setObjectName("label_2")
        self.gridLayout_4.addWidget(self.label_2, 0, 0, 1, 1)
        self.comboBox_2 = QtWidgets.QComboBox(self.centralwidget)
        self.comboBox_2.setObjectName("comboBox_2")
        self.gridLayout_4.addWidget(self.comboBox_2, 0, 1, 1, 1)
        self.widget_3 = ImageView(self.centralwidget)
        self.widget_3.setMinimumSize(QtCore.QSize(200, 200))
        self.widget_3.setObjectName("widget_3")
        self.gridLayout_4.addWidget(self.widget_3, 1, 0, 1, 1)
        self.widget_4 = ImageView(self.centralwidget)
        self.widget_4.setMinimumSize(QtCore.QSize(200, 200))
        self.widget_4.setObjectName("widget_4")
        self.gridLayout_4.addWidget(self.widget_4, 1, 1, 1, 1)
        self.gridLayout.addLayout(self.gridLayout_4, 2, 0, 1, 1)
        MainWindow.setCentralWidget(self.centralwidget)
        self.FileMenubar = QtWidgets.QMenuBar(MainWindow)
        self.FileMenubar.setGeometry(QtCore.QRect(0, 0, 1075, 25))
        self.FileMenubar.setObjectName("FileMenubar")
        self.menuOpen = QtWidgets.QMenu(self.FileMenubar)
        self.menuOpen.setObjectName("menuOpen")
        MainWindow.setMenuBar(self.FileMenubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.actionOpen = QtWidgets.QAction(MainWindow)
        self.actionOpen.setObjectName("actionOpen")
        self.actionLoad_Image_2 = QtWidgets.QAction(MainWindow)
        self.actionLoad_Image_2.setObjectName("actionLoad_Image_2")
        self.menuOpen.addAction(self.actionOpen)
        self.menuOpen.addAction(self.actionLoad_Image_2)
        self.FileMenubar.addAction(self.menuOpen.menuAction())

        self.retranslateUi(MainWindow)
        self.horizontalSlider_2.valueChanged['int'].connect(
            self.label_9.setNum)
        self.horizontalSlider_3.valueChanged['int'].connect(
            self.label_7.setNum)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "Images Mixer"))
        MainWindow.setWindowIcon(QtGui.QIcon('results/user-interface.png'))
        self.label.setText(_translate("MainWindow", "Image 1"))
        self.label_6.setText(
            _translate(
                "MainWindow",
                "<html><head/><body><p><span style=\" color:#d6391d;\">Output 2</span></p></body></html>"
            ))
        self.label_4.setText(
            _translate(
                "MainWindow",
                "<html><head/><body><p><span style=\" color:#d6391d;\">Output 1</span></p></body></html>"
            ))
        self.label_5.setText(_translate("MainWindow", "Component 2"))
        self.radioButton_3.setText(_translate("MainWindow", "Image 1"))
        self.radioButton_4.setText(_translate("MainWindow", "Image 2"))
        self.label_9.setText(_translate("MainWindow", "%"))
        self.label_3.setText(
            _translate(
                "MainWindow",
                "<html><head/><body><p><span style=\" color:#d6391d;\">Mixer Output to:</span></p></body></html>"
            ))
        self.radioButton_2.setText(_translate("MainWindow", "Image 1"))
        self.radioButton.setText(_translate("MainWindow", "Image 2"))
        self.label_8.setText(_translate("MainWindow", "Component 1"))
        self.label_7.setText(_translate("MainWindow", "%"))
        self.label_2.setText(_translate("MainWindow", "Image 2"))
        self.menuOpen.setTitle(_translate("MainWindow", "File"))
        self.actionOpen.setText(_translate("MainWindow", "Load Image 1"))
        self.actionOpen.setShortcut(_translate("MainWindow", "Ctrl+1"))
        self.actionLoad_Image_2.setText(
            _translate("MainWindow", "Load Image 2"))
        self.actionLoad_Image_2.setShortcut(_translate("MainWindow", "Ctrl+2"))
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1247, 810)
        MainWindow.setStyleSheet("background-color: qlineargradient(spread:reflect, x1:0, y1:0, x2:0.995025, y2:1, stop:0 rgba(230, 230, 220, 255), stop:0.915423 rgba(255, 255, 255, 255));")
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName("gridLayout")
        self.verticalLayout_10 = QtWidgets.QVBoxLayout()
        self.verticalLayout_10.setObjectName("verticalLayout_10")
        self.gridLayout.addLayout(self.verticalLayout_10, 0, 0, 2, 2)
        self.verticalLayout_12 = QtWidgets.QVBoxLayout()
        self.verticalLayout_12.setObjectName("verticalLayout_12")
        self.horizontalLayout_9 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_9.setObjectName("horizontalLayout_9")
        self.frame = QtWidgets.QFrame(self.centralwidget)
        self.frame.setFrameShape(QtWidgets.QFrame.Panel)
        self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame.setLineWidth(2)
        self.frame.setObjectName("frame")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.frame)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.image1Btn = QtWidgets.QPushButton(self.frame)
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setWeight(75)
        self.image1Btn.setFont(font)
        self.image1Btn.setObjectName("image1Btn")
        self.horizontalLayout_6.addWidget(self.image1Btn)
        self.remove1Btn = QtWidgets.QPushButton(self.frame)
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setWeight(75)
        self.remove1Btn.setFont(font)
        self.remove1Btn.setObjectName("remove1Btn")
        self.horizontalLayout_6.addWidget(self.remove1Btn)
        self.verticalLayout_3.addLayout(self.horizontalLayout_6)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.image1_org = ImageView(self.frame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.image1_org.sizePolicy().hasHeightForWidth())
        self.image1_org.setSizePolicy(sizePolicy)
        self.image1_org.setObjectName("image1_org")
        self.horizontalLayout.addWidget(self.image1_org)
        self.frame1 = QtWidgets.QFrame(self.frame)
        self.frame1.setFrameShape(QtWidgets.QFrame.Panel)
        self.frame1.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame1.setObjectName("frame1")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.frame1)
        self.verticalLayout.setObjectName("verticalLayout")
        self.combo_edit1 = QtWidgets.QComboBox(self.frame1)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.combo_edit1.setFont(font)
        self.combo_edit1.setObjectName("combo_edit1")
        self.combo_edit1.addItem("")
        self.combo_edit1.addItem("")
        self.combo_edit1.addItem("")
        self.combo_edit1.addItem("")
        self.combo_edit1.addItem("")
        self.verticalLayout.addWidget(self.combo_edit1)
        self.image1_edit = ImageView(self.frame1)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.image1_edit.sizePolicy().hasHeightForWidth())
        self.image1_edit.setSizePolicy(sizePolicy)
        self.image1_edit.setObjectName("image1_edit")
        self.verticalLayout.addWidget(self.image1_edit)
        self.horizontalLayout.addWidget(self.frame1)
        self.verticalLayout_3.addLayout(self.horizontalLayout)
        self.horizontalLayout_9.addWidget(self.frame)
        self.frame2 = QtWidgets.QFrame(self.centralwidget)
        self.frame2.setFrameShape(QtWidgets.QFrame.Panel)
        self.frame2.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame2.setLineWidth(2)
        self.frame2.setObjectName("frame2")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.frame2)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.horizontalLayout_10 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_10.setObjectName("horizontalLayout_10")
        self.image2Btn = QtWidgets.QPushButton(self.frame2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.image2Btn.sizePolicy().hasHeightForWidth())
        self.image2Btn.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setWeight(75)
        self.image2Btn.setFont(font)
        self.image2Btn.setObjectName("image2Btn")
        self.horizontalLayout_10.addWidget(self.image2Btn)
        self.remove2Btn = QtWidgets.QPushButton(self.frame2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.remove2Btn.sizePolicy().hasHeightForWidth())
        self.remove2Btn.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setWeight(75)
        self.remove2Btn.setFont(font)
        self.remove2Btn.setObjectName("remove2Btn")
        self.horizontalLayout_10.addWidget(self.remove2Btn)
        self.verticalLayout_4.addLayout(self.horizontalLayout_10)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.image2_org = ImageView(self.frame2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.image2_org.sizePolicy().hasHeightForWidth())
        self.image2_org.setSizePolicy(sizePolicy)
        self.image2_org.setObjectName("image2_org")
        self.horizontalLayout_3.addWidget(self.image2_org)
        self.frame3 = QtWidgets.QFrame(self.frame2)
        self.frame3.setFrameShape(QtWidgets.QFrame.Panel)
        self.frame3.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame3.setObjectName("frame3")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.frame3)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.combo_edit2 = QtWidgets.QComboBox(self.frame3)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.combo_edit2.sizePolicy().hasHeightForWidth())
        self.combo_edit2.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.combo_edit2.setFont(font)
        self.combo_edit2.setObjectName("combo_edit2")
        self.combo_edit2.addItem("")
        self.combo_edit2.addItem("")
        self.combo_edit2.addItem("")
        self.combo_edit2.addItem("")
        self.combo_edit2.addItem("")
        self.verticalLayout_2.addWidget(self.combo_edit2)
        self.image2_edit = ImageView(self.frame3)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.image2_edit.sizePolicy().hasHeightForWidth())
        self.image2_edit.setSizePolicy(sizePolicy)
        self.image2_edit.setObjectName("image2_edit")
        self.verticalLayout_2.addWidget(self.image2_edit)
        self.horizontalLayout_3.addWidget(self.frame3)
        self.verticalLayout_4.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_9.addWidget(self.frame2)
        self.verticalLayout_12.addLayout(self.horizontalLayout_9)
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.verticalLayout_7 = QtWidgets.QVBoxLayout()
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.compo_output = QtWidgets.QComboBox(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.compo_output.sizePolicy().hasHeightForWidth())
        self.compo_output.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.compo_output.setFont(font)
        self.compo_output.setStyleSheet("background-color: qlineargradient(spread:reflect, x1:0, y1:0, x2:0.995025, y2:1, stop:0 rgba(85, 255, 255, 255), stop:0.915423 rgba(255, 255, 255, 255));\n"
"background-color: qlineargradient(spread:reflect, x1:0, y1:0, x2:0.995025, y2:1, stop:0 rgba(161, 172, 197, 255), stop:0.915423 rgba(255, 255, 255, 255));")
        self.compo_output.setObjectName("compo_output")
        self.compo_output.addItem("")
        self.compo_output.addItem("")
        self.compo_output.addItem("")
        self.verticalLayout_7.addWidget(self.compo_output)
        self.frame4 = QtWidgets.QFrame(self.centralwidget)
        self.frame4.setFrameShape(QtWidgets.QFrame.Box)
        self.frame4.setLineWidth(1)
        self.frame4.setObjectName("frame4")
        self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.frame4)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.frame5 = QtWidgets.QFrame(self.frame4)
        self.frame5.setFrameShape(QtWidgets.QFrame.Panel)
        self.frame5.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.frame5.setObjectName("frame5")
        self.verticalLayout_11 = QtWidgets.QVBoxLayout(self.frame5)
        self.verticalLayout_11.setObjectName("verticalLayout_11")
        self.frame6 = QtWidgets.QFrame(self.frame5)
        self.frame6.setObjectName("frame6")
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.frame6)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.lineEdit_3 = QtWidgets.QLineEdit(self.frame6)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.lineEdit_3.sizePolicy().hasHeightForWidth())
        self.lineEdit_3.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setWeight(75)
        self.lineEdit_3.setFont(font)
        self.lineEdit_3.setReadOnly(False)
        self.lineEdit_3.setObjectName("lineEdit_3")
        self.horizontalLayout_4.addWidget(self.lineEdit_3)
        self.compo_comp1 = QtWidgets.QComboBox(self.frame6)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.compo_comp1.sizePolicy().hasHeightForWidth())
        self.compo_comp1.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.compo_comp1.setFont(font)
        self.compo_comp1.setObjectName("compo_comp1")
        self.compo_comp1.addItem("")
        self.compo_comp1.addItem("")
        self.compo_comp1.addItem("")
        self.horizontalLayout_4.addWidget(self.compo_comp1)
        self.verticalLayout_11.addWidget(self.frame6)
        self.Slider1 = QtWidgets.QSlider(self.frame5)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.Slider1.sizePolicy().hasHeightForWidth())
        self.Slider1.setSizePolicy(sizePolicy)
        self.Slider1.setStyleSheet("color: rgb(0, 0, 0);")
        self.Slider1.setMaximum(100)
        self.Slider1.setOrientation(QtCore.Qt.Horizontal)
        self.Slider1.setTickPosition(QtWidgets.QSlider.TicksBothSides)
        self.Slider1.setObjectName("Slider1")
        self.verticalLayout_11.addWidget(self.Slider1)
        self.frame7 = QtWidgets.QFrame(self.frame5)
        self.frame7.setObjectName("frame7")
        self.horizontalLayout_11 = QtWidgets.QHBoxLayout(self.frame7)
        self.horizontalLayout_11.setObjectName("horizontalLayout_11")
        self.combo_mix1 = QtWidgets.QComboBox(self.frame7)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.combo_mix1.sizePolicy().hasHeightForWidth())
        self.combo_mix1.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.combo_mix1.setFont(font)
        self.combo_mix1.setObjectName("combo_mix1")
        self.combo_mix1.addItem("")
        self.combo_mix1.addItem("")
        self.combo_mix1.addItem("")
        self.combo_mix1.addItem("")
        self.combo_mix1.addItem("")
        self.combo_mix1.addItem("")
        self.combo_mix1.addItem("")
        self.horizontalLayout_11.addWidget(self.combo_mix1)
        self.slider_box1 = QtWidgets.QLineEdit(self.frame7)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.slider_box1.sizePolicy().hasHeightForWidth())
        self.slider_box1.setSizePolicy(sizePolicy)
        self.slider_box1.setAlignment(QtCore.Qt.AlignCenter)
        self.slider_box1.setReadOnly(True)
        self.slider_box1.setObjectName("slider_box1")
        self.horizontalLayout_11.addWidget(self.slider_box1)
        self.verticalLayout_11.addWidget(self.frame7)
        self.verticalLayout_6.addWidget(self.frame5)
        self.verticalLayout_7.addWidget(self.frame4)
        self.frame8 = QtWidgets.QFrame(self.centralwidget)
        self.frame8.setFrameShape(QtWidgets.QFrame.Box)
        self.frame8.setObjectName("frame8")
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.frame8)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.verticalFrame = QtWidgets.QFrame(self.frame8)
        self.verticalFrame.setFrameShape(QtWidgets.QFrame.Panel)
        self.verticalFrame.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.verticalFrame.setObjectName("verticalFrame")
        self.verticalLayout_13 = QtWidgets.QVBoxLayout(self.verticalFrame)
        self.verticalLayout_13.setObjectName("verticalLayout_13")
        self.frame9 = QtWidgets.QFrame(self.verticalFrame)
        self.frame9.setObjectName("frame9")
        self.horizontalLayout_8 = QtWidgets.QHBoxLayout(self.frame9)
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
        self.lineEdit = QtWidgets.QLineEdit(self.frame9)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.lineEdit.sizePolicy().hasHeightForWidth())
        self.lineEdit.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setWeight(75)
        self.lineEdit.setFont(font)
        self.lineEdit.setReadOnly(True)
        self.lineEdit.setObjectName("lineEdit")
        self.horizontalLayout_8.addWidget(self.lineEdit)
        self.compo_comp2 = QtWidgets.QComboBox(self.frame9)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.compo_comp2.sizePolicy().hasHeightForWidth())
        self.compo_comp2.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.compo_comp2.setFont(font)
        self.compo_comp2.setObjectName("compo_comp2")
        self.compo_comp2.addItem("")
        self.compo_comp2.addItem("")
        self.compo_comp2.addItem("")
        self.horizontalLayout_8.addWidget(self.compo_comp2)
        self.verticalLayout_13.addWidget(self.frame9)
        self.Slider2 = QtWidgets.QSlider(self.verticalFrame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.Slider2.sizePolicy().hasHeightForWidth())
        self.Slider2.setSizePolicy(sizePolicy)
        self.Slider2.setStyleSheet("color: rgb(0, 0, 0);")
        self.Slider2.setMaximum(100)
        self.Slider2.setOrientation(QtCore.Qt.Horizontal)
        self.Slider2.setInvertedAppearance(False)
        self.Slider2.setInvertedControls(False)
        self.Slider2.setTickPosition(QtWidgets.QSlider.TicksBothSides)
        self.Slider2.setObjectName("Slider2")
        self.verticalLayout_13.addWidget(self.Slider2)
        self.frame10 = QtWidgets.QFrame(self.verticalFrame)
        self.frame10.setObjectName("frame10")
        self.horizontalLayout_12 = QtWidgets.QHBoxLayout(self.frame10)
        self.horizontalLayout_12.setObjectName("horizontalLayout_12")
        self.combo_mix2 = QtWidgets.QComboBox(self.frame10)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.combo_mix2.sizePolicy().hasHeightForWidth())
        self.combo_mix2.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.combo_mix2.setFont(font)
        self.combo_mix2.setObjectName("combo_mix2")
        self.combo_mix2.addItem("")
        self.combo_mix2.addItem("")
        self.combo_mix2.addItem("")
        self.combo_mix2.addItem("")
        self.combo_mix2.addItem("")
        self.combo_mix2.addItem("")
        self.combo_mix2.addItem("")
        self.horizontalLayout_12.addWidget(self.combo_mix2)
        self.slider_box2 = QtWidgets.QLineEdit(self.frame10)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.slider_box2.sizePolicy().hasHeightForWidth())
        self.slider_box2.setSizePolicy(sizePolicy)
        self.slider_box2.setAlignment(QtCore.Qt.AlignCenter)
        self.slider_box2.setReadOnly(True)
        self.slider_box2.setObjectName("slider_box2")
        self.horizontalLayout_12.addWidget(self.slider_box2)
        self.verticalLayout_13.addWidget(self.frame10)
        self.verticalLayout_5.addWidget(self.verticalFrame)
        self.verticalLayout_7.addWidget(self.frame8)
        self.horizontalLayout_5.addLayout(self.verticalLayout_7)
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.verticalFrame1 = QtWidgets.QFrame(self.centralwidget)
        self.verticalFrame1.setFrameShape(QtWidgets.QFrame.Box)
        self.verticalFrame1.setFrameShadow(QtWidgets.QFrame.Raised)
        self.verticalFrame1.setObjectName("verticalFrame1")
        self.verticalLayout_8 = QtWidgets.QVBoxLayout(self.verticalFrame1)
        self.verticalLayout_8.setObjectName("verticalLayout_8")
        self.text_op1 = QtWidgets.QLineEdit(self.verticalFrame1)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.text_op1.sizePolicy().hasHeightForWidth())
        self.text_op1.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.text_op1.setFont(font)
        self.text_op1.setAlignment(QtCore.Qt.AlignCenter)
        self.text_op1.setReadOnly(True)
        self.text_op1.setObjectName("text_op1")
        self.verticalLayout_8.addWidget(self.text_op1)
        self.output1_img = ImageView(self.verticalFrame1)
        self.output1_img.setObjectName("output1_img")
        self.verticalLayout_8.addWidget(self.output1_img)
        self.horizontalLayout_7.addWidget(self.verticalFrame1)
        self.verticalFrame2 = QtWidgets.QFrame(self.centralwidget)
        self.verticalFrame2.setFrameShape(QtWidgets.QFrame.Box)
        self.verticalFrame2.setFrameShadow(QtWidgets.QFrame.Raised)
        self.verticalFrame2.setObjectName("verticalFrame2")
        self.verticalLayout_9 = QtWidgets.QVBoxLayout(self.verticalFrame2)
        self.verticalLayout_9.setObjectName("verticalLayout_9")
        self.text_op2 = QtWidgets.QLineEdit(self.verticalFrame2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.text_op2.sizePolicy().hasHeightForWidth())
        self.text_op2.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.text_op2.setFont(font)
        self.text_op2.setAlignment(QtCore.Qt.AlignCenter)
        self.text_op2.setReadOnly(True)
        self.text_op2.setObjectName("text_op2")
        self.verticalLayout_9.addWidget(self.text_op2)
        self.output2_img = ImageView(self.verticalFrame2)
        self.output2_img.setObjectName("output2_img")
        self.verticalLayout_9.addWidget(self.output2_img)
        self.horizontalLayout_7.addWidget(self.verticalFrame2)
        self.horizontalLayout_5.addLayout(self.horizontalLayout_7)
        self.verticalLayout_12.addLayout(self.horizontalLayout_5)
        self.gridLayout.addLayout(self.verticalLayout_12, 1, 1, 1, 1)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1247, 26))
        self.menubar.setObjectName("menubar")
        self.menuFile = QtWidgets.QMenu(self.menubar)
        self.menuFile.setObjectName("menuFile")
        self.menuInsert = QtWidgets.QMenu(self.menuFile)
        self.menuInsert.setObjectName("menuInsert")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.actionImage_one = QtWidgets.QAction(MainWindow)
        self.actionImage_one.setObjectName("actionImage_one")
        self.actionImage_two = QtWidgets.QAction(MainWindow)
        self.actionImage_two.setObjectName("actionImage_two")
        self.menuInsert.addAction(self.actionImage_one)
        self.menuInsert.addAction(self.actionImage_two)
        self.menuFile.addAction(self.menuInsert.menuAction())
        self.menubar.addAction(self.menuFile.menuAction())

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

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
        self.image1Btn.setText(_translate("MainWindow", "Image one "))
        self.remove1Btn.setText(_translate("MainWindow", "Remove"))
        self.combo_edit1.setItemText(0, _translate("MainWindow", "Component"))
        self.combo_edit1.setItemText(1, _translate("MainWindow", "Magnitude"))
        self.combo_edit1.setItemText(2, _translate("MainWindow", "Phase"))
        self.combo_edit1.setItemText(3, _translate("MainWindow", "Real"))
        self.combo_edit1.setItemText(4, _translate("MainWindow", "Imaginary"))
        self.image2Btn.setText(_translate("MainWindow", "Image two"))
        self.remove2Btn.setText(_translate("MainWindow", "Remove"))
        self.combo_edit2.setItemText(0, _translate("MainWindow", "Component"))
        self.combo_edit2.setItemText(1, _translate("MainWindow", "Magnitude"))
        self.combo_edit2.setItemText(2, _translate("MainWindow", "Phase"))
        self.combo_edit2.setItemText(3, _translate("MainWindow", "Real"))
        self.combo_edit2.setItemText(4, _translate("MainWindow", "Imaginary"))
        self.compo_output.setItemText(0, _translate("MainWindow", "Select O/P"))
        self.compo_output.setItemText(1, _translate("MainWindow", "Output1"))
        self.compo_output.setItemText(2, _translate("MainWindow", "Output2"))
        self.lineEdit_3.setText(_translate("MainWindow", "Component 1"))
        self.compo_comp1.setItemText(0, _translate("MainWindow", "Image no"))
        self.compo_comp1.setItemText(1, _translate("MainWindow", "Image1"))
        self.compo_comp1.setItemText(2, _translate("MainWindow", "Image2"))
        self.combo_mix1.setItemText(0, _translate("MainWindow", "Component"))
        self.combo_mix1.setItemText(1, _translate("MainWindow", "Magnitude"))
        self.combo_mix1.setItemText(2, _translate("MainWindow", "Phase"))
        self.combo_mix1.setItemText(3, _translate("MainWindow", "Real"))
        self.combo_mix1.setItemText(4, _translate("MainWindow", "Imaginary"))
        self.combo_mix1.setItemText(5, _translate("MainWindow", "Uniform_mag"))
        self.combo_mix1.setItemText(6, _translate("MainWindow", "Uniform_phase"))
        self.lineEdit.setText(_translate("MainWindow", "Component 2"))
        self.compo_comp2.setItemText(0, _translate("MainWindow", "Image no"))
        self.compo_comp2.setItemText(1, _translate("MainWindow", "Image1"))
        self.compo_comp2.setItemText(2, _translate("MainWindow", "Image2"))
        self.combo_mix2.setItemText(0, _translate("MainWindow", "Component"))
        self.combo_mix2.setItemText(1, _translate("MainWindow", "Magnitude"))
        self.combo_mix2.setItemText(2, _translate("MainWindow", "Phase"))
        self.combo_mix2.setItemText(3, _translate("MainWindow", "Real"))
        self.combo_mix2.setItemText(4, _translate("MainWindow", "Imaginary"))
        self.combo_mix2.setItemText(5, _translate("MainWindow", "Uniform_mag"))
        self.combo_mix2.setItemText(6, _translate("MainWindow", "Uniform_phase"))
        self.text_op1.setText(_translate("MainWindow", "Output1"))
        self.text_op2.setText(_translate("MainWindow", "Output2"))
        self.menuFile.setTitle(_translate("MainWindow", "File"))
        self.menuInsert.setTitle(_translate("MainWindow", "Insert"))
        self.actionImage_one.setText(_translate("MainWindow", "Image one"))
        self.actionImage_two.setText(_translate("MainWindow", "Image two"))
class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(965, 670)
        self.gridLayout_2 = QtWidgets.QGridLayout(Form)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.groupBoxCenterFinder = QtWidgets.QGroupBox(Form)
        self.groupBoxCenterFinder.setObjectName("groupBoxCenterFinder")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBoxCenterFinder)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.comboBoxThresholdMethod = QtWidgets.QComboBox(
            self.groupBoxCenterFinder)
        self.comboBoxThresholdMethod.setEditable(False)
        self.comboBoxThresholdMethod.setCurrentText("")
        self.comboBoxThresholdMethod.setObjectName("comboBoxThresholdMethod")
        self.horizontalLayout_6.addWidget(self.comboBoxThresholdMethod)
        self.gridLayout_3.addLayout(self.horizontalLayout_6, 10, 0, 1, 1)
        self.pushButtonRedoCenter = QtWidgets.QPushButton(
            self.groupBoxCenterFinder)
        self.pushButtonRedoCenter.setObjectName("pushButtonRedoCenter")
        self.gridLayout_3.addWidget(self.pushButtonRedoCenter, 11, 0, 1, 1)
        self.horizontalLayout_8 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
        self.label_6 = QtWidgets.QLabel(self.groupBoxCenterFinder)
        self.label_6.setObjectName("label_6")
        self.horizontalLayout_8.addWidget(self.label_6)
        self.spinBoxIterations = QtWidgets.QSpinBox(self.groupBoxCenterFinder)
        self.spinBoxIterations.setProperty("value", 1)
        self.spinBoxIterations.setObjectName("spinBoxIterations")
        self.horizontalLayout_8.addWidget(self.spinBoxIterations)
        self.gridLayout_3.addLayout(self.horizontalLayout_8, 6, 0, 1, 1)
        self.horizontalLayout_9 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_9.setObjectName("horizontalLayout_9")
        self.label_7 = QtWidgets.QLabel(self.groupBoxCenterFinder)
        self.label_7.setObjectName("label_7")
        self.horizontalLayout_9.addWidget(self.label_7)
        self.spinBoxContrastWeight = QtWidgets.QDoubleSpinBox(
            self.groupBoxCenterFinder)
        self.spinBoxContrastWeight.setSingleStep(0.1)
        self.spinBoxContrastWeight.setProperty("value", 2.5)
        self.spinBoxContrastWeight.setObjectName("spinBoxContrastWeight")
        self.horizontalLayout_9.addWidget(self.spinBoxContrastWeight)
        self.gridLayout_3.addLayout(self.horizontalLayout_9, 8, 0, 1, 1)
        self.horizontalLayout_10 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_10.setObjectName("horizontalLayout_10")
        self.label_8 = QtWidgets.QLabel(self.groupBoxCenterFinder)
        self.label_8.setObjectName("label_8")
        self.horizontalLayout_10.addWidget(self.label_8)
        self.spinBoxGamma = QtWidgets.QDoubleSpinBox(self.groupBoxCenterFinder)
        self.spinBoxGamma.setSingleStep(0.1)
        self.spinBoxGamma.setProperty("value", 1.0)
        self.spinBoxGamma.setObjectName("spinBoxGamma")
        self.horizontalLayout_10.addWidget(self.spinBoxGamma)
        self.gridLayout_3.addLayout(self.horizontalLayout_10, 7, 0, 1, 1)
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.label_5 = QtWidgets.QLabel(self.groupBoxCenterFinder)
        self.label_5.setObjectName("label_5")
        self.horizontalLayout_5.addWidget(self.label_5)
        self.spinBoxThreshold = QtWidgets.QSpinBox(self.groupBoxCenterFinder)
        self.spinBoxThreshold.setMaximum(255)
        self.spinBoxThreshold.setProperty("value", 127)
        self.spinBoxThreshold.setObjectName("spinBoxThreshold")
        self.horizontalLayout_5.addWidget(self.spinBoxThreshold)
        self.gridLayout_3.addLayout(self.horizontalLayout_5, 9, 0, 1, 1)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.label_3 = QtWidgets.QLabel(self.groupBoxCenterFinder)
        self.label_3.setObjectName("label_3")
        self.horizontalLayout_3.addWidget(self.label_3)
        self.spinBoxparam1 = QtWidgets.QSpinBox(self.groupBoxCenterFinder)
        self.spinBoxparam1.setMaximum(999)
        self.spinBoxparam1.setProperty("value", 50)
        self.spinBoxparam1.setObjectName("spinBoxparam1")
        self.horizontalLayout_3.addWidget(self.spinBoxparam1)
        self.gridLayout_3.addLayout(self.horizontalLayout_3, 4, 0, 1, 1)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.label_4 = QtWidgets.QLabel(self.groupBoxCenterFinder)
        self.label_4.setObjectName("label_4")
        self.horizontalLayout_4.addWidget(self.label_4)
        self.spinBoxparam2 = QtWidgets.QSpinBox(self.groupBoxCenterFinder)
        self.spinBoxparam2.setMaximum(999)
        self.spinBoxparam2.setProperty("value", 20)
        self.spinBoxparam2.setObjectName("spinBoxparam2")
        self.horizontalLayout_4.addWidget(self.spinBoxparam2)
        self.gridLayout_3.addLayout(self.horizontalLayout_4, 5, 0, 1, 1)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.label = QtWidgets.QLabel(self.groupBoxCenterFinder)
        self.label.setObjectName("label")
        self.horizontalLayout.addWidget(self.label)
        self.spinBoxminRadius = QtWidgets.QSpinBox(self.groupBoxCenterFinder)
        self.spinBoxminRadius.setMaximum(999)
        self.spinBoxminRadius.setProperty("value", 450)
        self.spinBoxminRadius.setObjectName("spinBoxminRadius")
        self.horizontalLayout.addWidget(self.spinBoxminRadius)
        self.gridLayout_3.addLayout(self.horizontalLayout, 2, 0, 1, 1)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.label_2 = QtWidgets.QLabel(self.groupBoxCenterFinder)
        self.label_2.setObjectName("label_2")
        self.horizontalLayout_2.addWidget(self.label_2)
        self.spinBoxmaxRadius = QtWidgets.QSpinBox(self.groupBoxCenterFinder)
        self.spinBoxmaxRadius.setMaximum(999)
        self.spinBoxmaxRadius.setProperty("value", 510)
        self.spinBoxmaxRadius.setObjectName("spinBoxmaxRadius")
        self.horizontalLayout_2.addWidget(self.spinBoxmaxRadius)
        self.gridLayout_3.addLayout(self.horizontalLayout_2, 3, 0, 1, 1)
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.gridLayout_3.addLayout(self.horizontalLayout_7, 12, 0, 1, 1)
        self.horizontalLayout_11 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_11.setObjectName("horizontalLayout_11")
        self.checkBoxOverwrite = QtWidgets.QCheckBox(self.groupBoxCenterFinder)
        self.checkBoxOverwrite.setLayoutDirection(QtCore.Qt.RightToLeft)
        self.checkBoxOverwrite.setObjectName("checkBoxOverwrite")
        self.horizontalLayout_11.addWidget(self.checkBoxOverwrite)
        self.pushButtonOverwrite = QtWidgets.QPushButton(
            self.groupBoxCenterFinder)
        self.pushButtonOverwrite.setEnabled(False)
        self.pushButtonOverwrite.setObjectName("pushButtonOverwrite")
        self.horizontalLayout_11.addWidget(self.pushButtonOverwrite)
        self.gridLayout_3.addLayout(self.horizontalLayout_11, 1, 0, 1, 1)
        self.verticalLayout.addWidget(self.groupBoxCenterFinder)
        self.groupBox = QtWidgets.QGroupBox(Form)
        self.groupBox.setObjectName("groupBox")
        self.gridLayout = QtWidgets.QGridLayout(self.groupBox)
        self.gridLayout.setObjectName("gridLayout")
        self.pushButtonStartStop = QtWidgets.QPushButton(self.groupBox)
        self.pushButtonStartStop.setCheckable(True)
        self.pushButtonStartStop.setObjectName("pushButtonStartStop")
        self.gridLayout.addWidget(self.pushButtonStartStop, 0, 0, 1, 1)
        self.verticalLayout.addWidget(self.groupBox)
        self.groupBox_2 = QtWidgets.QGroupBox(Form)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Minimum,
            QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.groupBox_2.sizePolicy().hasHeightForWidth())
        self.groupBox_2.setSizePolicy(sizePolicy)
        self.groupBox_2.setObjectName("groupBox_2")
        self.gridLayout_4 = QtWidgets.QGridLayout(self.groupBox_2)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.listWidgetVideos = QtWidgets.QListWidget(self.groupBox_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.listWidgetVideos.sizePolicy().hasHeightForWidth())
        self.listWidgetVideos.setSizePolicy(sizePolicy)
        self.listWidgetVideos.setObjectName("listWidgetVideos")
        self.gridLayout_4.addWidget(self.listWidgetVideos, 0, 0, 1, 1)
        self.verticalLayout.addWidget(self.groupBox_2)
        self.gridLayout_2.addLayout(self.verticalLayout, 0, 0, 1, 1)
        self.graphicsView = ImageView(Form)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.MinimumExpanding,
            QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.graphicsView.sizePolicy().hasHeightForWidth())
        self.graphicsView.setSizePolicy(sizePolicy)
        self.graphicsView.setObjectName("graphicsView")
        self.gridLayout_2.addWidget(self.graphicsView, 0, 1, 1, 1)

        self.retranslateUi(Form)
        self.comboBoxThresholdMethod.setCurrentIndex(-1)
        QtCore.QMetaObject.connectSlotsByName(Form)

    def retranslateUi(self, Form):
        _translate = QtCore.QCoreApplication.translate
        Form.setWindowTitle(_translate("Form", "Form"))
        self.groupBoxCenterFinder.setTitle(
            _translate("Form", "CenterFinder Settings"))
        self.pushButtonRedoCenter.setToolTip(
            _translate(
                "Form",
                "<html><head/><body><p>Redo current analysis.</p><p>Overwrite determined by checkbox.</p><p><br/></p><p>Shortkey: &lt;Shift&gt;</p><p><br/></p></body></html>"
            ))
        self.pushButtonRedoCenter.setText(_translate("Form", "Redo"))
        self.label_6.setText(_translate("Form", "Iterations"))
        self.label_7.setText(_translate("Form", "ContrastWeight"))
        self.label_8.setText(_translate("Form", "Gamma"))
        self.label_5.setText(_translate("Form", "Threshold"))
        self.label_3.setText(_translate("Form", "Param1"))
        self.label_4.setText(_translate("Form", "Param2"))
        self.label.setText(_translate("Form", "min Radius"))
        self.label_2.setText(_translate("Form", "max Radius"))
        self.checkBoxOverwrite.setText(
            _translate("Form", "Overwrite Previous Results Automatically"))
        self.pushButtonOverwrite.setToolTip(
            _translate(
                "Form",
                "<html><head/><body><p>Overwrites current result.</p><p>Shortkey: &lt;Enter&gt;</p></body></html>"
            ))
        self.pushButtonOverwrite.setText(_translate("Form", "Overwrite"))
        self.groupBox.setTitle(_translate("Form", "Automatic"))
        self.pushButtonStartStop.setToolTip(
            _translate(
                "Form",
                "<html><head/><body><p>Start automatic parsing.</p><p>Overwrite determined by checkbox.</p><p><br/></p></body></html>"
            ))
        self.pushButtonStartStop.setText(_translate("Form", "Start"))
        self.groupBox_2.setTitle(_translate("Form", "Loaded Videos"))
        self.listWidgetVideos.setToolTip(
            _translate(
                "Form",
                "<html><head/><body><p>Available Shortkeys:</p><p>&lt;Enter&gt;: Overwrite<br/>&lt;Shift&gt;: Redo Circlefinding<br/>&lt;Delete&gt;: Flag item and delete center info<br/>&lt;Backspace&gt;: Flag iten but keep center info</p><p>Item Color:</p><p>White : No center information present<br/>Blue: Center information already in path<br/>Green: New center calculated<br/>Red: Center flagged as incorrect, files deleted<br/>Orange: Center flagged as incorrect.</p></body></html>"
            ))
Exemplo n.º 9
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(762, 481)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout_2.setContentsMargins(0, 0, 0, 2)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.frame = QtWidgets.QFrame(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.frame.sizePolicy().hasHeightForWidth())
        self.frame.setSizePolicy(sizePolicy)
        self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame.setObjectName("frame")
        self.gridLayout = QtWidgets.QGridLayout(self.frame)
        self.gridLayout.setContentsMargins(2, 2, 2, 2)
        self.gridLayout.setSpacing(2)
        self.gridLayout.setObjectName("gridLayout")
        self.label = QtWidgets.QLabel(self.frame)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 1, 0, 1, 1)
        self.label_3 = QtWidgets.QLabel(self.frame)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 0, 0, 1, 1)
        self.label_2 = QtWidgets.QLabel(self.frame)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 2, 0, 1, 1)
        self.labelC = QtWidgets.QLabel(self.frame)
        self.labelC.setObjectName("labelC")
        self.gridLayout.addWidget(self.labelC, 0, 2, 1, 1)
        self.countB = QtWidgets.QLCDNumber(self.frame)
        font = QtGui.QFont()
        font.setPointSize(16)
        self.countB.setFont(font)
        self.countB.setDigitCount(6)
        self.countB.setObjectName("countB")
        self.gridLayout.addWidget(self.countB, 2, 1, 1, 1)
        self.countA = QtWidgets.QLCDNumber(self.frame)
        font = QtGui.QFont()
        font.setPointSize(16)
        font.setItalic(True)
        self.countA.setFont(font)
        self.countA.setDigitCount(6)
        self.countA.setObjectName("countA")
        self.gridLayout.addWidget(self.countA, 1, 1, 1, 1)
        self.labelA = QtWidgets.QLabel(self.frame)
        self.labelA.setObjectName("labelA")
        self.gridLayout.addWidget(self.labelA, 1, 2, 1, 1)
        self.labelB = QtWidgets.QLabel(self.frame)
        self.labelB.setObjectName("labelB")
        self.gridLayout.addWidget(self.labelB, 2, 2, 1, 1)
        self.countC = QtWidgets.QLCDNumber(self.frame)
        font = QtGui.QFont()
        font.setPointSize(16)
        font.setItalic(True)
        self.countC.setFont(font)
        self.countC.setDigitCount(6)
        self.countC.setObjectName("countC")
        self.gridLayout.addWidget(self.countC, 0, 1, 1, 1)
        self.gridLayout_2.addWidget(self.frame, 2, 0, 1, 4)
        self.scaleZSlider = QtWidgets.QSlider(self.centralwidget)
        self.scaleZSlider.setMinimum(0)
        self.scaleZSlider.setMaximum(1000)
        self.scaleZSlider.setSingleStep(1)
        self.scaleZSlider.setPageStep(100)
        self.scaleZSlider.setProperty("value", 1)
        self.scaleZSlider.setOrientation(QtCore.Qt.Vertical)
        self.scaleZSlider.setTickPosition(QtWidgets.QSlider.TicksBelow)
        self.scaleZSlider.setObjectName("scaleZSlider")
        self.gridLayout_2.addWidget(self.scaleZSlider, 0, 3, 2, 1)
        self.plotView = GLViewWidget(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.MinimumExpanding,
            QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.plotView.sizePolicy().hasHeightForWidth())
        self.plotView.setSizePolicy(sizePolicy)
        self.plotView.setObjectName("plotView")
        self.gridLayout_2.addWidget(self.plotView, 0, 2, 2, 1)
        self.imageView = ImageView(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.MinimumExpanding,
            QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.imageView.sizePolicy().hasHeightForWidth())
        self.imageView.setSizePolicy(sizePolicy)
        self.imageView.setObjectName("imageView")
        self.gridLayout_2.addWidget(self.imageView, 0, 1, 2, 1)
        MainWindow.setCentralWidget(self.centralwidget)

        self.retranslateUi(MainWindow)
        self.scaleZSlider.valueChanged['int'].connect(MainWindow.scaleZ)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(
            _translate("MainWindow",
                       "Coincidence Plots: Heat Map and 3D Surface View"))
        self.label.setText(_translate("MainWindow", "Spectrometer A"))
        self.label_3.setText(_translate("MainWindow", "Coincident Events"))
        self.label_2.setText(_translate("MainWindow", "Spectrometer B"))
        self.labelC.setText(_translate("MainWindow", "-"))
        self.labelA.setText(_translate("MainWindow", "TextLabel"))
        self.labelB.setText(_translate("MainWindow", "TextLabel"))
class Ui_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(1100, 948)
        self.horizontalLayout = QtWidgets.QHBoxLayout(Dialog)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setContentsMargins(-1, -1, 6, -1)
        self.verticalLayout.setObjectName("verticalLayout")
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setContentsMargins(-1, -1, -1, 6)
        self.gridLayout.setObjectName("gridLayout")
        self.label_3 = QtWidgets.QLabel(Dialog)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 2, 0, 1, 1)
        self.label_2 = QtWidgets.QLabel(Dialog)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
        self.bkg_label = QtWidgets.QLabel(Dialog)
        self.bkg_label.setObjectName("bkg_label")
        self.gridLayout.addWidget(self.bkg_label, 14, 1, 1, 1)
        self.label_5 = QtWidgets.QLabel(Dialog)
        self.label_5.setObjectName("label_5")
        self.gridLayout.addWidget(self.label_5, 4, 0, 1, 1)
        self.label_10 = QtWidgets.QLabel(Dialog)
        self.label_10.setObjectName("label_10")
        self.gridLayout.addWidget(self.label_10, 7, 0, 1, 1)
        self.label_11 = QtWidgets.QLabel(Dialog)
        self.label_11.setObjectName("label_11")
        self.gridLayout.addWidget(self.label_11, 14, 0, 1, 1)
        self.label = QtWidgets.QLabel(Dialog)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 6, 0, 1, 1)
        self.bkg_spinbox = QtWidgets.QSpinBox(Dialog)
        self.bkg_spinbox.setMaximumSize(QtCore.QSize(16777209, 16777215))
        self.bkg_spinbox.setMaximum(65000)
        self.bkg_spinbox.setProperty("value", 7)
        self.bkg_spinbox.setObjectName("bkg_spinbox")
        self.gridLayout.addWidget(self.bkg_spinbox, 7, 1, 1, 1)
        self.moment_2_label = QtWidgets.QLabel(Dialog)
        self.moment_2_label.setObjectName("moment_2_label")
        self.gridLayout.addWidget(self.moment_2_label, 16, 1, 1, 1)
        self.label_4 = QtWidgets.QLabel(Dialog)
        self.label_4.setObjectName("label_4")
        self.gridLayout.addWidget(self.label_4, 3, 0, 1, 1)
        self.roi_height_spinbox = QtWidgets.QSpinBox(Dialog)
        self.roi_height_spinbox.setMaximum(3000)
        self.roi_height_spinbox.setProperty("value", 700)
        self.roi_height_spinbox.setObjectName("roi_height_spinbox")
        self.gridLayout.addWidget(self.roi_height_spinbox, 2, 1, 1, 1)
        self.roi_left_spinbox = QtWidgets.QSpinBox(Dialog)
        self.roi_left_spinbox.setMaximum(3000)
        self.roi_left_spinbox.setObjectName("roi_left_spinbox")
        self.gridLayout.addWidget(self.roi_left_spinbox, 3, 1, 1, 1)
        self.label_12 = QtWidgets.QLabel(Dialog)
        self.label_12.setText("")
        self.label_12.setObjectName("label_12")
        self.gridLayout.addWidget(self.label_12, 5, 0, 1, 1)
        self.label_7 = QtWidgets.QLabel(Dialog)
        self.label_7.setObjectName("label_7")
        self.gridLayout.addWidget(self.label_7, 16, 0, 1, 1)
        self.label_6 = QtWidgets.QLabel(Dialog)
        self.label_6.setObjectName("label_6")
        self.gridLayout.addWidget(self.label_6, 15, 0, 1, 1)
        self.moment_1_label = QtWidgets.QLabel(Dialog)
        self.moment_1_label.setObjectName("moment_1_label")
        self.gridLayout.addWidget(self.moment_1_label, 15, 1, 1, 1)
        self.label_8 = QtWidgets.QLabel(Dialog)
        self.label_8.setObjectName("label_8")
        self.gridLayout.addWidget(self.label_8, 10, 0, 1, 1)
        self.label_9 = QtWidgets.QLabel(Dialog)
        self.label_9.setObjectName("label_9")
        self.gridLayout.addWidget(self.label_9, 11, 0, 1, 1)
        self.roi_top_spinbox = QtWidgets.QSpinBox(Dialog)
        self.roi_top_spinbox.setMaximum(3000)
        self.roi_top_spinbox.setProperty("value", 250)
        self.roi_top_spinbox.setObjectName("roi_top_spinbox")
        self.gridLayout.addWidget(self.roi_top_spinbox, 1, 1, 1, 1)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setContentsMargins(-1, -1, -1, 6)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.raw_radiobutton = QtWidgets.QRadioButton(Dialog)
        self.raw_radiobutton.setObjectName("raw_radiobutton")
        self.horizontalLayout_2.addWidget(self.raw_radiobutton)
        self.processed_radiobutton = QtWidgets.QRadioButton(Dialog)
        self.processed_radiobutton.setChecked(True)
        self.processed_radiobutton.setObjectName("processed_radiobutton")
        self.horizontalLayout_2.addWidget(self.processed_radiobutton)
        self.tight_radiobutton = QtWidgets.QRadioButton(Dialog)
        self.tight_radiobutton.setObjectName("tight_radiobutton")
        self.horizontalLayout_2.addWidget(self.tight_radiobutton)
        self.gridLayout.addLayout(self.horizontalLayout_2, 11, 1, 1, 1)
        self.label_13 = QtWidgets.QLabel(Dialog)
        self.label_13.setText("")
        self.label_13.setObjectName("label_13")
        self.gridLayout.addWidget(self.label_13, 9, 0, 1, 1)
        self.image_size_label = QtWidgets.QLabel(Dialog)
        self.image_size_label.setObjectName("image_size_label")
        self.gridLayout.addWidget(self.image_size_label, 10, 1, 1, 1)
        self.roi_width_spinbox = QtWidgets.QSpinBox(Dialog)
        self.roi_width_spinbox.setMaximum(3000)
        self.roi_width_spinbox.setProperty("value", 1400)
        self.roi_width_spinbox.setObjectName("roi_width_spinbox")
        self.gridLayout.addWidget(self.roi_width_spinbox, 4, 1, 1, 1)
        self.medfilt_spinbox = QtWidgets.QSpinBox(Dialog)
        self.medfilt_spinbox.setMinimum(1)
        self.medfilt_spinbox.setMaximum(13)
        self.medfilt_spinbox.setProperty("value", 5)
        self.medfilt_spinbox.setObjectName("medfilt_spinbox")
        self.gridLayout.addWidget(self.medfilt_spinbox, 6, 1, 1, 1)
        spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        self.gridLayout.addItem(spacerItem, 12, 0, 1, 1)
        self.label_14 = QtWidgets.QLabel(Dialog)
        self.label_14.setObjectName("label_14")
        self.gridLayout.addWidget(self.label_14, 8, 0, 1, 1)
        self.mask_spinbox = QtWidgets.QSpinBox(Dialog)
        self.mask_spinbox.setSingleStep(2)
        self.mask_spinbox.setProperty("value", 25)
        self.mask_spinbox.setObjectName("mask_spinbox")
        self.gridLayout.addWidget(self.mask_spinbox, 8, 1, 1, 1)
        self.label_15 = QtWidgets.QLabel(Dialog)
        self.label_15.setObjectName("label_15")
        self.gridLayout.addWidget(self.label_15, 17, 0, 1, 1)
        self.charge_label = QtWidgets.QLabel(Dialog)
        self.charge_label.setObjectName("charge_label")
        self.gridLayout.addWidget(self.charge_label, 17, 1, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout)
        self.file_listview = QtWidgets.QListView(Dialog)
        self.file_listview.setObjectName("file_listview")
        self.verticalLayout.addWidget(self.file_listview)
        self.horizontalLayout.addLayout(self.verticalLayout)
        self.image_widget = ImageView(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(2)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.image_widget.sizePolicy().hasHeightForWidth())
        self.image_widget.setSizePolicy(sizePolicy)
        self.image_widget.setObjectName("image_widget")
        self.horizontalLayout.addWidget(self.image_widget)

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

    def retranslateUi(self, Dialog):
        _translate = QtCore.QCoreApplication.translate
        Dialog.setWindowTitle(_translate("Dialog", "Dialog"))
        self.label_3.setText(_translate("Dialog", "ROI height"))
        self.label_2.setText(_translate("Dialog", "ROI top"))
        self.bkg_label.setText(_translate("Dialog", "-.-"))
        self.label_5.setText(_translate("Dialog", "ROI width"))
        self.label_10.setText(_translate("Dialog", "Bkg cut"))
        self.label_11.setText(_translate("Dialog", "Bkg level"))
        self.label.setText(_translate("Dialog", "Med filt kernel"))
        self.moment_2_label.setText(_translate("Dialog", "-.--"))
        self.label_4.setText(_translate("Dialog", "ROI left"))
        self.label_7.setText(_translate("Dialog", "2nd moment"))
        self.label_6.setText(_translate("Dialog", "1st moment"))
        self.moment_1_label.setText(_translate("Dialog", "-.--"))
        self.label_8.setText(_translate("Dialog", "Image size"))
        self.label_9.setText(_translate("Dialog", "Show"))
        self.raw_radiobutton.setText(_translate("Dialog", "Raw"))
        self.processed_radiobutton.setText(_translate("Dialog", "Proc"))
        self.tight_radiobutton.setText(_translate("Dialog", "Tight"))
        self.image_size_label.setText(_translate("Dialog", "-- x --"))
        self.label_14.setText(_translate("Dialog", "Mask kernel"))
        self.label_15.setText(_translate("Dialog", "Charge"))
        self.charge_label.setText(_translate("Dialog", "---"))
Exemplo n.º 11
0
class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(459, 831)
        self.verticalLayout_6 = QtWidgets.QVBoxLayout(Form)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.image_view = ImageView(Form)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding
        )
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(80)
        sizePolicy.setHeightForWidth(self.image_view.sizePolicy().hasHeightForWidth())
        self.image_view.setSizePolicy(sizePolicy)
        self.image_view.setObjectName("image_view")
        self.horizontalLayout.addWidget(self.image_view)
        self.verticalLayout_5 = QtWidgets.QVBoxLayout()
        self.verticalLayout_5.setSizeConstraint(QtWidgets.QLayout.SetFixedSize)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.label_3 = QtWidgets.QLabel(Form)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred
        )
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_3.sizePolicy().hasHeightForWidth())
        self.label_3.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(12)
        font.setUnderline(True)
        self.label_3.setFont(font)
        self.label_3.setAlignment(QtCore.Qt.AlignCenter)
        self.label_3.setObjectName("label_3")
        self.verticalLayout.addWidget(self.label_3)
        self.rec_blobs = QtWidgets.QLabel(Form)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred
        )
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.rec_blobs.sizePolicy().hasHeightForWidth())
        self.rec_blobs.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(16)
        self.rec_blobs.setFont(font)
        self.rec_blobs.setAlignment(QtCore.Qt.AlignCenter)
        self.rec_blobs.setObjectName("rec_blobs")
        self.verticalLayout.addWidget(self.rec_blobs)
        self.verticalLayout_5.addLayout(self.verticalLayout)
        self.verticalLayout_2 = QtWidgets.QVBoxLayout()
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.label_4 = QtWidgets.QLabel(Form)
        font = QtGui.QFont()
        font.setPointSize(12)
        font.setUnderline(True)
        self.label_4.setFont(font)
        self.label_4.setAlignment(QtCore.Qt.AlignCenter)
        self.label_4.setObjectName("label_4")
        self.verticalLayout_2.addWidget(self.label_4)
        self.int_blobs = QtWidgets.QLabel(Form)
        font = QtGui.QFont()
        font.setPointSize(16)
        self.int_blobs.setFont(font)
        self.int_blobs.setAlignment(QtCore.Qt.AlignCenter)
        self.int_blobs.setObjectName("int_blobs")
        self.verticalLayout_2.addWidget(self.int_blobs)
        self.verticalLayout_5.addLayout(self.verticalLayout_2)
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.trig_avg_spin = QtWidgets.QSpinBox(Form)
        self.trig_avg_spin.setMaximum(10)
        self.trig_avg_spin.setSingleStep(1)
        self.trig_avg_spin.setProperty("value", 0)
        self.trig_avg_spin.setObjectName("trig_avg_spin")
        self.gridLayout.addWidget(self.trig_avg_spin, 2, 0, 1, 1)
        self.avg_roi = QtWidgets.QCheckBox(Form)
        self.avg_roi.setObjectName("avg_roi")
        self.gridLayout.addWidget(self.avg_roi, 2, 1, 1, 1)
        self.int_blobs_roi = QtWidgets.QLabel(Form)
        font = QtGui.QFont()
        font.setPointSize(16)
        self.int_blobs_roi.setFont(font)
        self.int_blobs_roi.setAlignment(QtCore.Qt.AlignCenter)
        self.int_blobs_roi.setObjectName("int_blobs_roi")
        self.gridLayout.addWidget(self.int_blobs_roi, 3, 0, 1, 2)
        self.label_int_blobs_roi = QtWidgets.QLabel(Form)
        font = QtGui.QFont()
        font.setPointSize(12)
        font.setUnderline(True)
        self.label_int_blobs_roi.setFont(font)
        self.label_int_blobs_roi.setAlignment(QtCore.Qt.AlignCenter)
        self.label_int_blobs_roi.setObjectName("label_int_blobs_roi")
        self.gridLayout.addWidget(self.label_int_blobs_roi, 0, 0, 1, 2)
        self.verticalLayout_5.addLayout(self.gridLayout)
        self.verticalLayout_3 = QtWidgets.QVBoxLayout()
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.label_5 = QtWidgets.QLabel(Form)
        font = QtGui.QFont()
        font.setPointSize(12)
        font.setUnderline(True)
        self.label_5.setFont(font)
        self.label_5.setAlignment(QtCore.Qt.AlignCenter)
        self.label_5.setObjectName("label_5")
        self.verticalLayout_3.addWidget(self.label_5)
        self.cos_theta = QtWidgets.QLabel(Form)
        font = QtGui.QFont()
        font.setPointSize(16)
        self.cos_theta.setFont(font)
        self.cos_theta.setAlignment(QtCore.Qt.AlignCenter)
        self.cos_theta.setObjectName("cos_theta")
        self.verticalLayout_3.addWidget(self.cos_theta)
        self.verticalLayout_5.addLayout(self.verticalLayout_3)
        self.verticalLayout_4 = QtWidgets.QVBoxLayout()
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.label_9 = QtWidgets.QLabel(Form)
        font = QtGui.QFont()
        font.setPointSize(12)
        font.setUnderline(True)
        self.label_9.setFont(font)
        self.label_9.setAlignment(QtCore.Qt.AlignCenter)
        self.label_9.setObjectName("label_9")
        self.verticalLayout_4.addWidget(self.label_9)
        self.cos2_theta = QtWidgets.QLabel(Form)
        font = QtGui.QFont()
        font.setPointSize(16)
        self.cos2_theta.setFont(font)
        self.cos2_theta.setAlignment(QtCore.Qt.AlignCenter)
        self.cos2_theta.setObjectName("cos2_theta")
        self.verticalLayout_4.addWidget(self.cos2_theta)
        self.verticalLayout_5.addLayout(self.verticalLayout_4)
        spacerItem = QtWidgets.QSpacerItem(
            17, 13, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding
        )
        self.verticalLayout_5.addItem(spacerItem)
        self.checkBox = QtWidgets.QCheckBox(Form)
        self.checkBox.setObjectName("checkBox")
        self.verticalLayout_5.addWidget(self.checkBox)
        self.label = QtWidgets.QLabel(Form)
        self.label.setObjectName("label")
        self.verticalLayout_5.addWidget(self.label)
        self.histo_binning = QtWidgets.QSpinBox(Form)
        self.histo_binning.setMinimum(8)
        self.histo_binning.setMaximum(1024)
        self.histo_binning.setProperty("value", 256)
        self.histo_binning.setDisplayIntegerBase(10)
        self.histo_binning.setObjectName("histo_binning")
        self.verticalLayout_5.addWidget(self.histo_binning)
        self.x0_label = QtWidgets.QLabel(Form)
        self.x0_label.setObjectName("x0_label")
        self.verticalLayout_5.addWidget(self.x0_label)
        self.x0_spin = QtWidgets.QSpinBox(Form)
        self.x0_spin.setMaximum(255)
        self.x0_spin.setProperty("value", 127)
        self.x0_spin.setObjectName("x0_spin")
        self.verticalLayout_5.addWidget(self.x0_spin)
        self.y0_label = QtWidgets.QLabel(Form)
        self.y0_label.setObjectName("y0_label")
        self.verticalLayout_5.addWidget(self.y0_label)
        self.y0_spin = QtWidgets.QSpinBox(Form)
        self.y0_spin.setMaximum(255)
        self.y0_spin.setProperty("value", 127)
        self.y0_spin.setObjectName("y0_spin")
        self.verticalLayout_5.addWidget(self.y0_spin)
        self.radius_label = QtWidgets.QLabel(Form)
        self.radius_label.setObjectName("radius_label")
        self.verticalLayout_5.addWidget(self.radius_label)
        self.r_inner = QtWidgets.QSpinBox(Form)
        self.r_inner.setMinimum(0)
        self.r_inner.setMaximum(255)
        self.r_inner.setProperty("value", 0)
        self.r_inner.setObjectName("r_inner")
        self.verticalLayout_5.addWidget(self.r_inner)
        self.label_2 = QtWidgets.QLabel(Form)
        self.label_2.setObjectName("label_2")
        self.verticalLayout_5.addWidget(self.label_2)
        self.r_outer = QtWidgets.QSpinBox(Form)
        self.r_outer.setMaximum(300)
        self.r_outer.setProperty("value", 300)
        self.r_outer.setObjectName("r_outer")
        self.verticalLayout_5.addWidget(self.r_outer)
        self.horizontalLayout.addLayout(self.verticalLayout_5)
        self.verticalLayout_6.addLayout(self.horizontalLayout)
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.blob_trend_check = QtWidgets.QCheckBox(Form)
        self.blob_trend_check.setEnabled(True)
        self.blob_trend_check.setChecked(True)
        self.blob_trend_check.setObjectName("blob_trend_check")
        self.horizontalLayout_6.addWidget(self.blob_trend_check)
        self.roi_trend_check = QtWidgets.QCheckBox(Form)
        self.roi_trend_check.setChecked(True)
        self.roi_trend_check.setObjectName("roi_trend_check")
        self.horizontalLayout_6.addWidget(self.roi_trend_check)
        self.show_center = QtWidgets.QCheckBox(Form)
        self.show_center.setObjectName("show_center")
        self.horizontalLayout_6.addWidget(self.show_center)
        self.verticalLayout_6.addLayout(self.horizontalLayout_6)
        self.horizontalLayout_61 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_61.setObjectName("horizontalLayout_61")
        self.blob_trend = PlotWidget(Form)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding
        )
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.blob_trend.sizePolicy().hasHeightForWidth())
        self.blob_trend.setSizePolicy(sizePolicy)
        self.blob_trend.setMaximumSize(QtCore.QSize(1100000, 3000))
        self.blob_trend.setObjectName("blob_trend")
        self.horizontalLayout_61.addWidget(self.blob_trend)
        self.blob_trend_roi = PlotWidget(Form)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding
        )
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.blob_trend_roi.sizePolicy().hasHeightForWidth()
        )
        self.blob_trend_roi.setSizePolicy(sizePolicy)
        self.blob_trend_roi.setMaximumSize(QtCore.QSize(1100000, 3000))
        self.blob_trend_roi.setObjectName("blob_trend_roi")
        self.horizontalLayout_61.addWidget(self.blob_trend_roi)
        self.verticalLayout_6.addLayout(self.horizontalLayout_61)

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

    def retranslateUi(self, Form):
        _translate = QtCore.QCoreApplication.translate
        Form.setWindowTitle(_translate("Form", "Form"))
        self.label_3.setText(_translate("Form", "Blobs per shot"))
        self.rec_blobs.setText(_translate("Form", "0"))
        self.label_4.setText(_translate("Form", "Integrated Blobs"))
        self.int_blobs.setText(_translate("Form", "0"))
        self.avg_roi.setText(_translate("Form", "avg"))
        self.int_blobs_roi.setText(_translate("Form", "0"))
        self.label_int_blobs_roi.setText(_translate("Form", "Int. Blobs ROI"))
        self.label_5.setText(_translate("Form", "cos theta"))
        self.cos_theta.setText(_translate("Form", "0"))
        self.label_9.setText(_translate("Form", "cos2 theta"))
        self.cos2_theta.setText(_translate("Form", "0"))
        self.checkBox.setText(_translate("Form", "Histogram"))
        self.label.setText(_translate("Form", "Binning"))
        self.x0_label.setText(_translate("Form", "y0"))
        self.y0_label.setText(_translate("Form", "x0"))
        self.radius_label.setText(_translate("Form", "inner-radius"))
        self.label_2.setText(_translate("Form", "outer-radius"))
        self.blob_trend_check.setText(_translate("Form", "Show Blob Trend"))
        self.roi_trend_check.setText(_translate("Form", "Show ROI trend"))
        self.show_center.setText(_translate("Form", "Show Crosshair"))
Exemplo n.º 12
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1015, 588)
        font = QtGui.QFont()
        font.setPointSize(8)
        MainWindow.setFont(font)
        MainWindow.setStyleSheet("background-color: rgb(255, 242, 238);")
        MainWindow.setDocumentMode(False)
        MainWindow.setTabShape(QtWidgets.QTabWidget.Rounded)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.MinimumExpanding,
            QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.centralwidget.sizePolicy().hasHeightForWidth())
        self.centralwidget.setSizePolicy(sizePolicy)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName("gridLayout")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.gridLayout_3 = QtWidgets.QGridLayout()
        self.gridLayout_3.setSizeConstraint(
            QtWidgets.QLayout.SetDefaultConstraint)
        self.gridLayout_3.setContentsMargins(15, -1, 15, 0)
        self.gridLayout_3.setHorizontalSpacing(2)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.label = QtWidgets.QLabel(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setFamily("Arial Nova Cond")
        font.setPointSize(14)
        font.setBold(True)
        font.setWeight(75)
        self.label.setFont(font)
        self.label.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor))
        self.label.setObjectName("label")
        self.gridLayout_3.addWidget(self.label, 0, 0, 1, 1,
                                    QtCore.Qt.AlignRight)
        self.label_2 = QtWidgets.QLabel(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_2.sizePolicy().hasHeightForWidth())
        self.label_2.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setFamily("Arial Nova Cond")
        font.setPointSize(14)
        font.setBold(True)
        font.setWeight(75)
        self.label_2.setFont(font)
        self.label_2.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor))
        self.label_2.setObjectName("label_2")
        self.gridLayout_3.addWidget(self.label_2, 0, 3, 1, 1,
                                    QtCore.Qt.AlignLeft)
        self.pushButton_2 = QtWidgets.QPushButton(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.pushButton_2.sizePolicy().hasHeightForWidth())
        self.pushButton_2.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setFamily("Myriad Pro Light")
        font.setPointSize(12)
        font.setBold(True)
        font.setWeight(75)
        self.pushButton_2.setFont(font)
        self.pushButton_2.setCursor(QtGui.QCursor(
            QtCore.Qt.PointingHandCursor))
        self.pushButton_2.setStyleSheet(
            "   border-style: outset;\n"
            "    border-width: 2px;\n"
            "    border-radius: 10px;\n"
            "    border-color: green;\n"
            "    min-width: 10em;\n"
            "    padding: 6px;\n"
            "background-color: rgb(255, 162, 115);")
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap("images/photo.png"), QtGui.QIcon.Normal,
                       QtGui.QIcon.Off)
        self.pushButton_2.setIcon(icon)
        self.pushButton_2.setIconSize(QtCore.QSize(30, 35))
        self.pushButton_2.setAutoDefault(False)
        self.pushButton_2.setFlat(False)
        self.pushButton_2.setObjectName("pushButton_2")
        self.gridLayout_3.addWidget(self.pushButton_2, 0, 1, 1, 2,
                                    QtCore.Qt.AlignHCenter)
        self.horizontalLayout_9 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_9.setSizeConstraint(
            QtWidgets.QLayout.SetDefaultConstraint)
        self.horizontalLayout_9.setContentsMargins(-1, -1, 0, -1)
        self.horizontalLayout_9.setObjectName("horizontalLayout_9")
        self.horizontalLayout_10 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_10.setObjectName("horizontalLayout_10")
        self.graphicsView = ImageView(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.graphicsView.sizePolicy().hasHeightForWidth())
        self.graphicsView.setSizePolicy(sizePolicy)
        self.graphicsView.setMaximumSize(QtCore.QSize(457, 244))
        self.graphicsView.setObjectName("graphicsView")
        self.horizontalLayout_10.addWidget(self.graphicsView)
        self.horizontalLayout_9.addLayout(self.horizontalLayout_10)
        self.line = QtWidgets.QFrame(self.centralwidget)
        self.line.setFrameShape(QtWidgets.QFrame.VLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.horizontalLayout_9.addWidget(self.line)
        self.horizontalLayout_12 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_12.setObjectName("horizontalLayout_12")
        self.graphicsView_2 = ImageView(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.graphicsView_2.sizePolicy().hasHeightForWidth())
        self.graphicsView_2.setSizePolicy(sizePolicy)
        self.graphicsView_2.setMaximumSize(QtCore.QSize(457, 244))
        self.graphicsView_2.setObjectName("graphicsView_2")
        self.horizontalLayout_12.addWidget(self.graphicsView_2)
        self.horizontalLayout_9.addLayout(self.horizontalLayout_12)
        self.gridLayout_3.addLayout(self.horizontalLayout_9, 1, 0, 1, 4)
        self.horizontalLayout_2.addLayout(self.gridLayout_3)
        self.gridLayout.addLayout(self.horizontalLayout_2, 2, 0, 1, 1)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.gridLayout_2 = QtWidgets.QGridLayout()
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.graphicsView3 = FigureCanvas(Figure())
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.MinimumExpanding,
            QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.graphicsView3.sizePolicy().hasHeightForWidth())
        self.graphicsView3.setSizePolicy(sizePolicy)
        self.graphicsView3.setMinimumSize(QtCore.QSize(0, 192))
        self.graphicsView3.setObjectName("graphicsView3")
        self.gridLayout_2.addWidget(self.graphicsView3, 3, 4, 1, 1)
        self.line_3 = QtWidgets.QFrame(self.centralwidget)
        self.line_3.setStyleSheet("background-color: rgb(255, 242, 238);\n"
                                  "color: rgb(0, 0, 127);")
        self.line_3.setFrameShape(QtWidgets.QFrame.VLine)
        self.line_3.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_3.setObjectName("line_3")
        self.gridLayout_2.addWidget(self.line_3, 3, 3, 1, 1)
        self.line_2 = QtWidgets.QFrame(self.centralwidget)
        self.line_2.setStyleSheet("background-color: rgb(255, 242, 238);")
        self.line_2.setFrameShape(QtWidgets.QFrame.VLine)
        self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_2.setObjectName("line_2")
        self.gridLayout_2.addWidget(self.line_2, 3, 1, 1, 1)
        self.graphicsView1 = FigureCanvas(Figure())
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.MinimumExpanding,
            QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.graphicsView1.sizePolicy().hasHeightForWidth())
        self.graphicsView1.setSizePolicy(sizePolicy)
        self.graphicsView1.setMinimumSize(QtCore.QSize(0, 192))
        self.graphicsView1.setObjectName("graphicsView1")
        self.gridLayout_2.addWidget(self.graphicsView1, 3, 0, 1, 1)
        self.graphicsView2 = FigureCanvas(Figure())
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.MinimumExpanding,
            QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.graphicsView2.sizePolicy().hasHeightForWidth())
        self.graphicsView2.setSizePolicy(sizePolicy)
        self.graphicsView2.setMinimumSize(QtCore.QSize(0, 192))
        self.graphicsView2.setObjectName("graphicsView2")
        self.gridLayout_2.addWidget(self.graphicsView2, 3, 2, 1, 1)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.label_3 = QtWidgets.QLabel(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_3.sizePolicy().hasHeightForWidth())
        self.label_3.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setFamily("Rockwell Nova")
        font.setPointSize(8)
        font.setBold(True)
        font.setWeight(75)
        self.label_3.setFont(font)
        self.label_3.setAlignment(QtCore.Qt.AlignCenter)
        self.label_3.setObjectName("label_3")
        self.horizontalLayout_4.addWidget(self.label_3)
        spacerItem = QtWidgets.QSpacerItem(20, 40,
                                           QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_4.addItem(spacerItem)
        self.label_4 = QtWidgets.QLabel(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_4.sizePolicy().hasHeightForWidth())
        self.label_4.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setFamily("Rockwell Nova")
        font.setPointSize(8)
        font.setBold(True)
        font.setWeight(75)
        self.label_4.setFont(font)
        self.label_4.setAlignment(QtCore.Qt.AlignCenter)
        self.label_4.setWordWrap(False)
        self.label_4.setObjectName("label_4")
        self.horizontalLayout_4.addWidget(self.label_4)
        spacerItem1 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_4.addItem(spacerItem1)
        self.label_5 = QtWidgets.QLabel(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_5.sizePolicy().hasHeightForWidth())
        self.label_5.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setFamily("Rockwell Nova")
        font.setPointSize(8)
        font.setBold(True)
        font.setWeight(75)
        self.label_5.setFont(font)
        self.label_5.setAlignment(QtCore.Qt.AlignCenter)
        self.label_5.setWordWrap(False)
        self.label_5.setObjectName("label_5")
        self.horizontalLayout_4.addWidget(self.label_5)
        self.gridLayout_2.addLayout(self.horizontalLayout_4, 0, 2, 1, 3)
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.pushButton = QtWidgets.QPushButton(self.centralwidget)
        self.pushButton.setEnabled(True)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.pushButton.sizePolicy().hasHeightForWidth())
        self.pushButton.setSizePolicy(sizePolicy)
        self.pushButton.setMinimumSize(QtCore.QSize(296, 0))
        palette = QtGui.QPalette()
        brush = QtGui.QBrush(QtGui.QColor(255, 162, 115))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 162, 115))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 162, 115))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 162, 115))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 162, 115))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 162, 115))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 162, 115))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 162, 115))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 162, 115))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush)
        self.pushButton.setPalette(palette)
        font = QtGui.QFont()
        font.setFamily("Myriad Pro Light")
        font.setPointSize(12)
        font.setBold(True)
        font.setWeight(75)
        self.pushButton.setFont(font)
        self.pushButton.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.pushButton.setMouseTracking(True)
        self.pushButton.setFocusPolicy(QtCore.Qt.ClickFocus)
        self.pushButton.setAcceptDrops(False)
        self.pushButton.setToolTip("")
        self.pushButton.setToolTipDuration(-1)
        self.pushButton.setStatusTip("")
        self.pushButton.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.pushButton.setAutoFillBackground(False)
        self.pushButton.setStyleSheet("   border-style: outset;\n"
                                      "    border-width: 2px;\n"
                                      "    border-radius: 10px;\n"
                                      "    border-color: green;\n"
                                      "    min-width: 20em;\n"
                                      "    padding: 6px;\n"
                                      "background-color: rgb(255, 162, 115);")
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap("images/icons8-plot-80.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.pushButton.setIcon(icon1)
        self.pushButton.setIconSize(QtCore.QSize(40, 35))
        self.pushButton.setDefault(False)
        self.pushButton.setFlat(False)
        self.pushButton.setObjectName("pushButton")
        self.horizontalLayout_5.addWidget(self.pushButton)
        self.gridLayout_2.addLayout(self.horizontalLayout_5, 0, 0, 1, 1)
        self.horizontalLayout.addLayout(self.gridLayout_2)
        self.gridLayout.addLayout(self.horizontalLayout, 0, 0, 1, 1)
        spacerItem2 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem2, 1, 0, 1, 1)
        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", "MainWindow"))
        self.label.setText(_translate("MainWindow", "Original Image "))
        self.label_2.setText(_translate("MainWindow", "K-Space"))
        self.pushButton_2.setToolTip(
            _translate(
                "MainWindow",
                "<html><head/><body><p align=\"center\">load image to be transformed to k-space</p></body></html>"
            ))
        self.pushButton_2.setText(_translate("MainWindow", "Load Image"))
        self.label_3.setText(_translate("MainWindow", "No Change : W= 63 MHz"))
        self.label_4.setText(
            _translate("MainWindow", "Positive Change(+1T) : W= 105 MHz"))
        self.label_5.setText(
            _translate("MainWindow", "Negative Change(-1T) : W= 21 MHz"))
        self.pushButton.setText(
            _translate("MainWindow", "Plot Non-Uniformity Trajectory"))
Exemplo n.º 13
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(1785, 1186)
        MainWindow.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        MainWindow.setLocale(
            QtCore.QLocale(QtCore.QLocale.French, QtCore.QLocale.France))
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.verticalLayoutWidget_2 = QtGui.QWidget(self.centralwidget)
        self.verticalLayoutWidget_2.setGeometry(
            QtCore.QRect(450, 10, 1321, 1141))
        self.verticalLayoutWidget_2.setObjectName(
            _fromUtf8("verticalLayoutWidget_2"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.verticalLayoutWidget_2)
        self.verticalLayout_2.setSizeConstraint(QtGui.QLayout.SetNoConstraint)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.imageView = ImageView(self.verticalLayoutWidget_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.imageView.sizePolicy().hasHeightForWidth())
        self.imageView.setSizePolicy(sizePolicy)
        self.imageView.setObjectName(_fromUtf8("imageView"))
        self.verticalLayout_2.addWidget(self.imageView)
        self.verticalLayoutWidget_3 = QtGui.QWidget(self.centralwidget)
        self.verticalLayoutWidget_3.setGeometry(QtCore.QRect(
            10, 720, 431, 431))
        self.verticalLayoutWidget_3.setObjectName(
            _fromUtf8("verticalLayoutWidget_3"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.verticalLayoutWidget_3)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.plotView = PlotWidget(self.verticalLayoutWidget_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.plotView.sizePolicy().hasHeightForWidth())
        self.plotView.setSizePolicy(sizePolicy)
        self.plotView.setObjectName(_fromUtf8("plotView"))
        self.verticalLayout_3.addWidget(self.plotView)
        self.labelFileName = QtGui.QLabel(self.centralwidget)
        self.labelFileName.setGeometry(QtCore.QRect(10, 588, 91, 21))
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Calibri"))
        font.setPointSize(14)
        font.setBold(False)
        font.setItalic(False)
        font.setWeight(50)
        self.labelFileName.setFont(font)
        self.labelFileName.setTextFormat(QtCore.Qt.AutoText)
        self.labelFileName.setObjectName(_fromUtf8("labelFileName"))
        self.chooseWorkDirectoryBtn = QtGui.QPushButton(self.centralwidget)
        self.chooseWorkDirectoryBtn.setGeometry(QtCore.QRect(120, 55, 215, 45))
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Cambria"))
        font.setPointSize(12)
        self.chooseWorkDirectoryBtn.setFont(font)
        self.chooseWorkDirectoryBtn.setAutoFillBackground(True)
        self.chooseWorkDirectoryBtn.setObjectName(
            _fromUtf8("chooseWorkDirectoryBtn"))
        self.verticalLayoutWidget = QtGui.QWidget(self.centralwidget)
        self.verticalLayoutWidget.setGeometry(QtCore.QRect(20, 155, 211, 191))
        self.verticalLayoutWidget.setObjectName(
            _fromUtf8("verticalLayoutWidget"))
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.verticalLayoutWidget)
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.load1FileBtn = QtGui.QPushButton(self.verticalLayoutWidget)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Cambria"))
        font.setPointSize(12)
        self.load1FileBtn.setFont(font)
        self.load1FileBtn.setObjectName(_fromUtf8("load1FileBtn"))
        self.verticalLayout_5.addWidget(self.load1FileBtn)
        self.load2FilesBtn = QtGui.QPushButton(self.verticalLayoutWidget)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Cambria"))
        font.setPointSize(12)
        self.load2FilesBtn.setFont(font)
        self.load2FilesBtn.setObjectName(_fromUtf8("load2FilesBtn"))
        self.verticalLayout_5.addWidget(self.load2FilesBtn)
        self.load4FilesBtn = QtGui.QPushButton(self.verticalLayoutWidget)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Cambria"))
        font.setPointSize(12)
        self.load4FilesBtn.setFont(font)
        self.load4FilesBtn.setObjectName(_fromUtf8("load4FilesBtn"))
        self.verticalLayout_5.addWidget(self.load4FilesBtn)
        self.showTIFFStackBtn = QtGui.QPushButton(self.verticalLayoutWidget)
        palette = QtGui.QPalette()
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 252, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 254, 127))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Light, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 253, 63))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Midlight, brush)
        brush = QtGui.QBrush(QtGui.QColor(127, 126, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Dark, brush)
        brush = QtGui.QBrush(QtGui.QColor(170, 168, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Mid, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.BrightText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 252, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Shadow, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 253, 127))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.AlternateBase,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 220))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ToolTipBase,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ToolTipText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 252, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 254, 127))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Light, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 253, 63))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Midlight,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(127, 126, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Dark, brush)
        brush = QtGui.QBrush(QtGui.QColor(170, 168, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Mid, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.BrightText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 252, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Shadow, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 253, 127))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.AlternateBase,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 220))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ToolTipBase,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ToolTipText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(127, 126, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 252, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 254, 127))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Light, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 253, 63))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Midlight,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(127, 126, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Dark, brush)
        brush = QtGui.QBrush(QtGui.QColor(170, 168, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Mid, brush)
        brush = QtGui.QBrush(QtGui.QColor(127, 126, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.BrightText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(127, 126, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 252, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 252, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Shadow, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 252, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.AlternateBase,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 220))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ToolTipBase,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ToolTipText,
                         brush)
        self.showTIFFStackBtn.setPalette(palette)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Cambria"))
        font.setPointSize(12)
        self.showTIFFStackBtn.setFont(font)
        self.showTIFFStackBtn.setAutoFillBackground(True)
        self.showTIFFStackBtn.setObjectName(_fromUtf8("showTIFFStackBtn"))
        self.verticalLayout_5.addWidget(self.showTIFFStackBtn)
        self.verticalLayoutWidget_4 = QtGui.QWidget(self.centralwidget)
        self.verticalLayoutWidget_4.setGeometry(
            QtCore.QRect(230, 155, 211, 191))
        self.verticalLayoutWidget_4.setObjectName(
            _fromUtf8("verticalLayoutWidget_4"))
        self.verticalLayout_6 = QtGui.QVBoxLayout(self.verticalLayoutWidget_4)
        self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6"))
        self.calcSingleSpectrumBtn = QtGui.QPushButton(
            self.verticalLayoutWidget_4)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Cambria"))
        font.setPointSize(12)
        self.calcSingleSpectrumBtn.setFont(font)
        self.calcSingleSpectrumBtn.setObjectName(
            _fromUtf8("calcSingleSpectrumBtn"))
        self.verticalLayout_6.addWidget(self.calcSingleSpectrumBtn)
        self.calcDiffSpectraBtn = QtGui.QPushButton(
            self.verticalLayoutWidget_4)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Cambria"))
        font.setPointSize(12)
        self.calcDiffSpectraBtn.setFont(font)
        self.calcDiffSpectraBtn.setObjectName(_fromUtf8("calcDiffSpectraBtn"))
        self.verticalLayout_6.addWidget(self.calcDiffSpectraBtn)
        self.calcDiffImagesBtn = QtGui.QPushButton(self.verticalLayoutWidget_4)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Cambria"))
        font.setPointSize(12)
        self.calcDiffImagesBtn.setFont(font)
        self.calcDiffImagesBtn.setCheckable(False)
        self.calcDiffImagesBtn.setObjectName(_fromUtf8("calcDiffImagesBtn"))
        self.verticalLayout_6.addWidget(self.calcDiffImagesBtn)
        self.calcDiff4ImagesBtn = QtGui.QPushButton(
            self.verticalLayoutWidget_4)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Cambria"))
        font.setPointSize(12)
        self.calcDiff4ImagesBtn.setFont(font)
        self.calcDiff4ImagesBtn.setCheckable(False)
        self.calcDiff4ImagesBtn.setObjectName(_fromUtf8("calcDiff4ImagesBtn"))
        self.verticalLayout_6.addWidget(self.calcDiff4ImagesBtn)
        self.layoutWidget = QtGui.QWidget(self.centralwidget)
        self.layoutWidget.setGeometry(QtCore.QRect(230, 445, 211, 81))
        self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.layoutWidget)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.loadNormFileBtn = QtGui.QPushButton(self.layoutWidget)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Cambria"))
        font.setPointSize(12)
        self.loadNormFileBtn.setFont(font)
        self.loadNormFileBtn.setObjectName(_fromUtf8("loadNormFileBtn"))
        self.verticalLayout_4.addWidget(self.loadNormFileBtn)
        self.normBtn = QtGui.QCheckBox(self.layoutWidget)
        palette = QtGui.QPalette()
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 254, 118))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(126, 255, 186))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Light, brush)
        brush = QtGui.QBrush(QtGui.QColor(63, 254, 152))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Midlight, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 127, 59))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Dark, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 169, 78))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Mid, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.BrightText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 254, 118))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Shadow, brush)
        brush = QtGui.QBrush(QtGui.QColor(127, 254, 186))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.AlternateBase,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 220))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ToolTipBase,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ToolTipText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 254, 118))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(126, 255, 186))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Light, brush)
        brush = QtGui.QBrush(QtGui.QColor(63, 254, 152))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Midlight,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 127, 59))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Dark, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 169, 78))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Mid, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.BrightText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 254, 118))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Shadow, brush)
        brush = QtGui.QBrush(QtGui.QColor(127, 254, 186))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.AlternateBase,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 220))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ToolTipBase,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ToolTipText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 127, 59))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 254, 118))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(126, 255, 186))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Light, brush)
        brush = QtGui.QBrush(QtGui.QColor(63, 254, 152))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Midlight,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 127, 59))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Dark, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 169, 78))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Mid, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 127, 59))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.BrightText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 127, 59))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 254, 118))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 254, 118))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Shadow, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 254, 118))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.AlternateBase,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 220))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ToolTipBase,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ToolTipText,
                         brush)
        self.normBtn.setPalette(palette)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Cambria"))
        font.setPointSize(12)
        self.normBtn.setFont(font)
        self.normBtn.setAutoFillBackground(True)
        self.normBtn.setObjectName(_fromUtf8("normBtn"))
        self.verticalLayout_4.addWidget(self.normBtn, QtCore.Qt.AlignHCenter)
        self.layoutWidget1 = QtGui.QWidget(self.centralwidget)
        self.layoutWidget1.setGeometry(QtCore.QRect(20, 445, 211, 81))
        self.layoutWidget1.setObjectName(_fromUtf8("layoutWidget1"))
        self.verticalLayout = QtGui.QVBoxLayout(self.layoutWidget1)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.pickROIBtn = QtGui.QPushButton(self.layoutWidget1)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Cambria"))
        font.setPointSize(12)
        self.pickROIBtn.setFont(font)
        self.pickROIBtn.setAutoFillBackground(False)
        self.pickROIBtn.setFlat(False)
        self.pickROIBtn.setObjectName(_fromUtf8("pickROIBtn"))
        self.verticalLayout.addWidget(self.pickROIBtn)
        self.calcROIBtn = QtGui.QCheckBox(self.layoutWidget1)
        self.calcROIBtn.setMaximumSize(QtCore.QSize(901, 21))
        palette = QtGui.QPalette()
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 178, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 217, 127))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Light, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 197, 63))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Midlight, brush)
        brush = QtGui.QBrush(QtGui.QColor(127, 89, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Dark, brush)
        brush = QtGui.QBrush(QtGui.QColor(170, 119, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Mid, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.BrightText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 178, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Shadow, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 216, 127))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.AlternateBase,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 220))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ToolTipBase,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ToolTipText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 178, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 217, 127))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Light, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 197, 63))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Midlight,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(127, 89, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Dark, brush)
        brush = QtGui.QBrush(QtGui.QColor(170, 119, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Mid, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.BrightText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 178, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Shadow, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 216, 127))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.AlternateBase,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 220))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ToolTipBase,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ToolTipText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(127, 89, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 178, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 217, 127))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Light, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 197, 63))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Midlight,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(127, 89, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Dark, brush)
        brush = QtGui.QBrush(QtGui.QColor(170, 119, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Mid, brush)
        brush = QtGui.QBrush(QtGui.QColor(127, 89, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.BrightText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(127, 89, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 178, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 178, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Shadow, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 178, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.AlternateBase,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 220))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ToolTipBase,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ToolTipText,
                         brush)
        self.calcROIBtn.setPalette(palette)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Cambria"))
        font.setPointSize(12)
        self.calcROIBtn.setFont(font)
        self.calcROIBtn.setAutoFillBackground(True)
        self.calcROIBtn.setObjectName(_fromUtf8("calcROIBtn"))
        self.verticalLayout.addWidget(self.calcROIBtn, QtCore.Qt.AlignHCenter)
        self.label = QtGui.QLabel(self.centralwidget)
        self.label.setGeometry(QtCore.QRect(100, 140, 81, 16))
        self.label.setObjectName(_fromUtf8("label"))
        self.label_2 = QtGui.QLabel(self.centralwidget)
        self.label_2.setGeometry(QtCore.QRect(290, 140, 91, 16))
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.label_3 = QtGui.QLabel(self.centralwidget)
        self.label_3.setGeometry(QtCore.QRect(70, 430, 131, 20))
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.label_4 = QtGui.QLabel(self.centralwidget)
        self.label_4.setGeometry(QtCore.QRect(270, 430, 141, 20))
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.verticalLayoutWidget_5 = QtGui.QWidget(self.centralwidget)
        self.verticalLayoutWidget_5.setGeometry(QtCore.QRect(10, 614, 231, 54))
        self.verticalLayoutWidget_5.setObjectName(
            _fromUtf8("verticalLayoutWidget_5"))
        self.verticalLayout_7 = QtGui.QVBoxLayout(self.verticalLayoutWidget_5)
        self.verticalLayout_7.setObjectName(_fromUtf8("verticalLayout_7"))
        self.switchStackShow1Btn = QtGui.QRadioButton(
            self.verticalLayoutWidget_5)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Cambria"))
        font.setPointSize(12)
        self.switchStackShow1Btn.setFont(font)
        self.switchStackShow1Btn.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.switchStackShow1Btn.setAutoFillBackground(False)
        self.switchStackShow1Btn.setAutoExclusive(True)
        self.switchStackShow1Btn.setObjectName(
            _fromUtf8("switchStackShow1Btn"))
        self.verticalLayout_7.addWidget(self.switchStackShow1Btn)
        self.switchStackShow2Btn = QtGui.QRadioButton(
            self.verticalLayoutWidget_5)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Cambria"))
        font.setPointSize(12)
        self.switchStackShow2Btn.setFont(font)
        self.switchStackShow2Btn.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.switchStackShow2Btn.setAutoFillBackground(False)
        self.switchStackShow2Btn.setAutoExclusive(True)
        self.switchStackShow2Btn.setObjectName(
            _fromUtf8("switchStackShow2Btn"))
        self.verticalLayout_7.addWidget(self.switchStackShow2Btn)
        self.actualFileName = QtGui.QLabel(self.centralwidget)
        self.actualFileName.setGeometry(QtCore.QRect(99, 588, 351, 21))
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Calibri"))
        font.setPointSize(14)
        font.setBold(False)
        font.setItalic(False)
        font.setWeight(50)
        self.actualFileName.setFont(font)
        self.actualFileName.setTextFormat(QtCore.Qt.AutoText)
        self.actualFileName.setObjectName(_fromUtf8("actualFileName"))
        self.lcdTimer = QtGui.QLCDNumber(self.centralwidget)
        self.lcdTimer.setGeometry(QtCore.QRect(340, 624, 91, 31))
        self.lcdTimer.setObjectName(_fromUtf8("lcdTimer"))
        self.label_5 = QtGui.QLabel(self.centralwidget)
        self.label_5.setGeometry(QtCore.QRect(250, 630, 81, 20))
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.horizontalLayoutWidget = QtGui.QWidget(self.centralwidget)
        self.horizontalLayoutWidget.setGeometry(QtCore.QRect(
            110, 360, 231, 61))
        self.horizontalLayoutWidget.setObjectName(
            _fromUtf8("horizontalLayoutWidget"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.horizontalLayoutWidget)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.label_6 = QtGui.QLabel(self.horizontalLayoutWidget)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.horizontalLayout.addWidget(self.label_6)
        self.upsamplingLine = QtGui.QLineEdit(self.horizontalLayoutWidget)
        self.upsamplingLine.setAlignment(QtCore.Qt.AlignCenter)
        self.upsamplingLine.setObjectName(_fromUtf8("upsamplingLine"))
        self.horizontalLayout.addWidget(self.upsamplingLine)
        MainWindow.setCentralWidget(self.centralwidget)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)
        self.actionLOAD_NXS = QtGui.QAction(MainWindow)
        self.actionLOAD_NXS.setObjectName(_fromUtf8("actionLOAD_NXS"))
        self.actionSAVE_TIFF = QtGui.QAction(MainWindow)
        self.actionSAVE_TIFF.setObjectName(_fromUtf8("actionSAVE_TIFF"))
        self.actionQUIT = QtGui.QAction(MainWindow)
        self.actionQUIT.setObjectName(_fromUtf8("actionQUIT"))

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

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(
            _translate("MainWindow", "XPEEM data reducer", None))
        self.labelFileName.setText(
            _translate(
                "MainWindow",
                "<html><head/><body><p><span style=\" font-weight:600; text-decoration: underline; color:#000bff;\">File Name</span></p></body></html>",
                None))
        self.chooseWorkDirectoryBtn.setText(
            _translate("MainWindow", "PROCESSING DIRECTORY", None))
        self.load1FileBtn.setText(_translate("MainWindow", "LOAD 1 FILE",
                                             None))
        self.load2FilesBtn.setText(
            _translate("MainWindow", "LOAD 2 FILES", None))
        self.load4FilesBtn.setText(
            _translate("MainWindow", "LOAD 4 FILES", None))
        self.showTIFFStackBtn.setText(
            _translate("MainWindow", "SHOW TIFF STACK", None))
        self.calcSingleSpectrumBtn.setText(
            _translate("MainWindow", "CALC SPECTRUM", None))
        self.calcDiffSpectraBtn.setText(
            _translate("MainWindow", "CALC DIFF SPECTRA", None))
        self.calcDiffImagesBtn.setText(
            _translate("MainWindow", "CALC DIFF IMAGES", None))
        self.calcDiff4ImagesBtn.setText(
            _translate("MainWindow", "CALC DIFF 4 IMAGES", None))
        self.loadNormFileBtn.setText(
            _translate("MainWindow", "LOAD NORM FILE", None))
        self.normBtn.setText(_translate("MainWindow", "NORMALIZATION", None))
        self.pickROIBtn.setText(
            _translate("MainWindow", "PICK-UP THE ROI", None))
        self.calcROIBtn.setText(_translate("MainWindow", "CALC ROI", None))
        self.label.setText(
            _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:8pt; font-weight:400; font-style:normal;\">\n"
                "<p align=\"center\" style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:12pt; font-weight:600; color:#000bff;\">INPUT</span></p></body></html>",
                None))
        self.label_2.setText(
            _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:8pt; font-weight:400; font-style:normal;\">\n"
                "<p align=\"center\" style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:12pt; font-weight:600; color:#000bff;\">OUTPUT</span></p></body></html>",
                None))
        self.label_3.setText(
            _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:8pt; font-weight:400; font-style:normal;\">\n"
                "<p align=\"center\" style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:12pt; font-weight:600; color:#000bff;\">ROI CONTROL</span></p></body></html>",
                None))
        self.label_4.setText(
            _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:8pt; font-weight:400; font-style:normal;\">\n"
                "<p align=\"center\" style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:12pt; font-weight:600; color:#000bff;\">NORM CONTROL</span></p></body></html>",
                None))
        self.switchStackShow1Btn.setText(
            _translate("MainWindow", "SHOW CORRECTED STACK", None))
        self.switchStackShow2Btn.setText(
            _translate("MainWindow", "SHOW RESULT STACK", None))
        self.actualFileName.setText(
            _translate("MainWindow",
                       "<html><head/><body><p><br/></p></body></html>", None))
        self.label_5.setText(_translate("MainWindow", "Elapsed time", None))
        self.label_6.setText(
            _translate(
                "MainWindow",
                "<html><head/><body><p><span style=\" font-size:14pt; font-weight:600; color:#ff0000;\">Upsampling Factor =&gt;                   </span></p></body></html>",
                None))
        self.upsamplingLine.setText(_translate("MainWindow", "20", None))
        self.actionLOAD_NXS.setText(_translate("MainWindow", "LOAD NXS", None))
        self.actionLOAD_NXS.setToolTip(
            _translate("MainWindow", "LOAD NXS files", None))
        self.actionLOAD_NXS.setShortcut(
            _translate("MainWindow", "Ctrl+O", None))
        self.actionSAVE_TIFF.setText(
            _translate("MainWindow", "SAVE TIFF", None))
        self.actionQUIT.setText(_translate("MainWindow", "QUIT", None))
Exemplo n.º 14
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1102, 703)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            MainWindow.sizePolicy().hasHeightForWidth())
        MainWindow.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setFamily("更纱黑体 UI SC")
        font.setPointSize(10)
        MainWindow.setFont(font)
        MainWindow.setDocumentMode(False)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.centralwidget.sizePolicy().hasHeightForWidth())
        self.centralwidget.setSizePolicy(sizePolicy)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.label_3 = QtWidgets.QLabel(self.centralwidget)
        self.label_3.setObjectName("label_3")
        self.horizontalLayout_7.addWidget(self.label_3)
        self.lineEdit = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEdit.setMinimumSize(QtCore.QSize(0, 0))
        self.lineEdit.setReadOnly(True)
        self.lineEdit.setObjectName("lineEdit")
        self.horizontalLayout_7.addWidget(self.lineEdit)
        self.browse_tif_button = QtWidgets.QPushButton(self.centralwidget)
        self.browse_tif_button.setObjectName("browse_tif_button")
        self.horizontalLayout_7.addWidget(self.browse_tif_button)
        self.browse_folder_button = QtWidgets.QPushButton(self.centralwidget)
        self.browse_folder_button.setObjectName("browse_folder_button")
        self.horizontalLayout_7.addWidget(self.browse_folder_button)
        self.verticalLayout.addLayout(self.horizontalLayout_7)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.groupBox = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox.setMinimumSize(QtCore.QSize(0, 120))
        self.groupBox.setObjectName("groupBox")
        self.horizontalLayout_9 = QtWidgets.QHBoxLayout(self.groupBox)
        self.horizontalLayout_9.setSizeConstraint(
            QtWidgets.QLayout.SetMinimumSize)
        self.horizontalLayout_9.setObjectName("horizontalLayout_9")
        self.gridLayout_4 = QtWidgets.QGridLayout()
        self.gridLayout_4.setSizeConstraint(QtWidgets.QLayout.SetMinimumSize)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.label_6 = QtWidgets.QLabel(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_6.sizePolicy().hasHeightForWidth())
        self.label_6.setSizePolicy(sizePolicy)
        self.label_6.setMinimumSize(QtCore.QSize(0, 14))
        self.label_6.setObjectName("label_6")
        self.gridLayout_4.addWidget(self.label_6, 0, 0, 1, 1)
        self.mag_spin_box = QtWidgets.QDoubleSpinBox(self.groupBox)
        self.mag_spin_box.setMinimumSize(QtCore.QSize(0, 14))
        self.mag_spin_box.setMinimum(2.0)
        self.mag_spin_box.setMaximum(20.0)
        self.mag_spin_box.setSingleStep(0.5)
        self.mag_spin_box.setProperty("value", 4.0)
        self.mag_spin_box.setObjectName("mag_spin_box")
        self.gridLayout_4.addWidget(self.mag_spin_box, 0, 1, 1, 1)
        self.label_7 = QtWidgets.QLabel(self.groupBox)
        self.label_7.setMinimumSize(QtCore.QSize(0, 14))
        self.label_7.setObjectName("label_7")
        self.gridLayout_4.addWidget(self.label_7, 1, 0, 1, 1)
        self.rad_spin_box = QtWidgets.QDoubleSpinBox(self.groupBox)
        self.rad_spin_box.setMinimumSize(QtCore.QSize(0, 14))
        self.rad_spin_box.setMinimum(0.1)
        self.rad_spin_box.setMaximum(20.0)
        self.rad_spin_box.setSingleStep(0.1)
        self.rad_spin_box.setProperty("value", 0.4)
        self.rad_spin_box.setObjectName("rad_spin_box")
        self.gridLayout_4.addWidget(self.rad_spin_box, 1, 1, 1, 1)
        self.label_9 = QtWidgets.QLabel(self.groupBox)
        self.label_9.setMinimumSize(QtCore.QSize(0, 14))
        self.label_9.setObjectName("label_9")
        self.gridLayout_4.addWidget(self.label_9, 2, 0, 1, 1)
        self.axes_spin_box = QtWidgets.QSpinBox(self.groupBox)
        self.axes_spin_box.setMinimumSize(QtCore.QSize(0, 14))
        self.axes_spin_box.setMinimum(2)
        self.axes_spin_box.setMaximum(12)
        self.axes_spin_box.setProperty("value", 6)
        self.axes_spin_box.setObjectName("axes_spin_box")
        self.gridLayout_4.addWidget(self.axes_spin_box, 2, 1, 1, 1)
        self.label_10 = QtWidgets.QLabel(self.groupBox)
        self.label_10.setMinimumSize(QtCore.QSize(0, 14))
        self.label_10.setObjectName("label_10")
        self.gridLayout_4.addWidget(self.label_10, 3, 0, 1, 1)
        self.n_frame_spin_box = QtWidgets.QSpinBox(self.groupBox)
        self.n_frame_spin_box.setMinimumSize(QtCore.QSize(0, 14))
        self.n_frame_spin_box.setMinimum(1)
        self.n_frame_spin_box.setMaximum(10000)
        self.n_frame_spin_box.setProperty("value", 1)
        self.n_frame_spin_box.setObjectName("n_frame_spin_box")
        self.gridLayout_4.addWidget(self.n_frame_spin_box, 3, 1, 1, 1)
        self.horizontalLayout_9.addLayout(self.gridLayout_4)
        spacerItem = QtWidgets.QSpacerItem(13, 21,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_9.addItem(spacerItem)
        self.verticalLayout_3 = QtWidgets.QVBoxLayout()
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.dc_checkbox = QtWidgets.QCheckBox(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.dc_checkbox.sizePolicy().hasHeightForWidth())
        self.dc_checkbox.setSizePolicy(sizePolicy)
        self.dc_checkbox.setObjectName("dc_checkbox")
        self.verticalLayout_3.addWidget(self.dc_checkbox)
        self.iw_checkbox = QtWidgets.QCheckBox(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.iw_checkbox.sizePolicy().hasHeightForWidth())
        self.iw_checkbox.setSizePolicy(sizePolicy)
        self.iw_checkbox.setChecked(True)
        self.iw_checkbox.setObjectName("iw_checkbox")
        self.verticalLayout_3.addWidget(self.iw_checkbox)
        self.gw_checkbox = QtWidgets.QCheckBox(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.gw_checkbox.sizePolicy().hasHeightForWidth())
        self.gw_checkbox.setSizePolicy(sizePolicy)
        self.gw_checkbox.setObjectName("gw_checkbox")
        self.verticalLayout_3.addWidget(self.gw_checkbox)
        self.horizontalLayout_9.addLayout(self.verticalLayout_3)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_9.addItem(spacerItem1)
        self.horizontalLayout.addWidget(self.groupBox)
        self.groupBox1 = QtWidgets.QGroupBox(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.groupBox1.sizePolicy().hasHeightForWidth())
        self.groupBox1.setSizePolicy(sizePolicy)
        self.groupBox1.setMinimumSize(QtCore.QSize(0, 80))
        self.groupBox1.setObjectName("groupBox1")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBox1)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.trac_order_spin_box = QtWidgets.QSpinBox(self.groupBox1)
        self.trac_order_spin_box.setMinimum(2)
        self.trac_order_spin_box.setMaximum(4)
        self.trac_order_spin_box.setObjectName("trac_order_spin_box")
        self.gridLayout_3.addWidget(self.trac_order_spin_box, 0, 3, 1, 1)
        self.label_13 = QtWidgets.QLabel(self.groupBox1)
        self.label_13.setObjectName("label_13")
        self.gridLayout_3.addWidget(self.label_13, 0, 2, 1, 1)
        self.label_14 = QtWidgets.QLabel(self.groupBox1)
        self.label_14.setObjectName("label_14")
        self.gridLayout_3.addWidget(self.label_14, 1, 2, 1, 1)
        spacerItem2 = QtWidgets.QSpacerItem(71, 17,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.gridLayout_3.addItem(spacerItem2, 0, 1, 1, 1)
        self.tra_radio_button = QtWidgets.QRadioButton(self.groupBox1)
        self.tra_radio_button.setObjectName("tra_radio_button")
        self.gridLayout_3.addWidget(self.tra_radio_button, 0, 0, 1, 1)
        self.trac_delay_spin_box = QtWidgets.QSpinBox(self.groupBox1)
        self.trac_delay_spin_box.setMinimum(0)
        self.trac_delay_spin_box.setMaximum(100)
        self.trac_delay_spin_box.setProperty("value", 1)
        self.trac_delay_spin_box.setObjectName("trac_delay_spin_box")
        self.gridLayout_3.addWidget(self.trac_delay_spin_box, 1, 3, 1, 1)
        self.trac_radio_button = QtWidgets.QRadioButton(self.groupBox1)
        self.trac_radio_button.setCheckable(True)
        self.trac_radio_button.setChecked(True)
        self.trac_radio_button.setObjectName("trac_radio_button")
        self.gridLayout_3.addWidget(self.trac_radio_button, 1, 0, 1, 1)
        spacerItem3 = QtWidgets.QSpacerItem(31, 17,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.gridLayout_3.addItem(spacerItem3, 0, 4, 1, 1)
        self.horizontalLayout.addWidget(self.groupBox1)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.pyqtimv = ImageView(self.centralwidget)
        self.pyqtimv.setEnabled(True)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.pyqtimv.sizePolicy().hasHeightForWidth())
        self.pyqtimv.setSizePolicy(sizePolicy)
        self.pyqtimv.setMinimumSize(QtCore.QSize(256, 256))
        self.pyqtimv.setObjectName("pyqtimv")
        self.horizontalLayout_4.addWidget(self.pyqtimv)
        self.pyqtimv_2 = ImageView(self.centralwidget)
        self.pyqtimv_2.setEnabled(True)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.pyqtimv_2.sizePolicy().hasHeightForWidth())
        self.pyqtimv_2.setSizePolicy(sizePolicy)
        self.pyqtimv_2.setMinimumSize(QtCore.QSize(256, 256))
        self.pyqtimv_2.setObjectName("pyqtimv_2")
        self.horizontalLayout_4.addWidget(self.pyqtimv_2)
        self.verticalLayout.addLayout(self.horizontalLayout_4)
        self.progressBar = QtWidgets.QProgressBar(self.centralwidget)
        self.progressBar.setEnabled(False)
        self.progressBar.setMinimumSize(QtCore.QSize(0, 24))
        self.progressBar.setMaximumSize(QtCore.QSize(16777215, 24))
        self.progressBar.setProperty("value", 0)
        self.progressBar.setTextVisible(False)
        self.progressBar.setOrientation(QtCore.Qt.Horizontal)
        self.progressBar.setInvertedAppearance(False)
        self.progressBar.setTextDirection(QtWidgets.QProgressBar.TopToBottom)
        self.progressBar.setObjectName("progressBar")
        self.verticalLayout.addWidget(self.progressBar)
        self.horizontalLayout_8 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
        spacerItem4 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_8.addItem(spacerItem4)
        self.reset_button = QtWidgets.QPushButton(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.reset_button.sizePolicy().hasHeightForWidth())
        self.reset_button.setSizePolicy(sizePolicy)
        self.reset_button.setMaximumSize(QtCore.QSize(100, 16777215))
        self.reset_button.setBaseSize(QtCore.QSize(0, 0))
        self.reset_button.setContextMenuPolicy(QtCore.Qt.DefaultContextMenu)
        self.reset_button.setObjectName("reset_button")
        self.horizontalLayout_8.addWidget(self.reset_button)
        self.start_button = QtWidgets.QPushButton(self.centralwidget)
        self.start_button.setEnabled(False)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.start_button.sizePolicy().hasHeightForWidth())
        self.start_button.setSizePolicy(sizePolicy)
        self.start_button.setMaximumSize(QtCore.QSize(100, 16777215))
        self.start_button.setBaseSize(QtCore.QSize(0, 0))
        self.start_button.setContextMenuPolicy(QtCore.Qt.DefaultContextMenu)
        self.start_button.setObjectName("start_button")
        self.horizontalLayout_8.addWidget(self.start_button)
        self.save_button = QtWidgets.QPushButton(self.centralwidget)
        self.save_button.setEnabled(False)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.save_button.sizePolicy().hasHeightForWidth())
        self.save_button.setSizePolicy(sizePolicy)
        self.save_button.setMaximumSize(QtCore.QSize(100, 16777215))
        self.save_button.setBaseSize(QtCore.QSize(0, 0))
        self.save_button.setContextMenuPolicy(QtCore.Qt.DefaultContextMenu)
        self.save_button.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.save_button.setObjectName("save_button")
        self.horizontalLayout_8.addWidget(self.save_button)
        self.verticalLayout.addLayout(self.horizontalLayout_8)
        MainWindow.setCentralWidget(self.centralwidget)

        self.retranslateUi(MainWindow)
        self.tra_radio_button.clicked['bool'].connect(
            self.trac_order_spin_box.setDisabled)
        self.trac_radio_button.clicked['bool'].connect(
            self.trac_delay_spin_box.setEnabled)
        self.trac_radio_button.clicked['bool'].connect(
            self.trac_order_spin_box.setEnabled)
        self.tra_radio_button.clicked['bool'].connect(
            self.trac_delay_spin_box.setDisabled)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "SRRF_cupy"))
        self.label_3.setText(_translate("MainWindow", "File"))
        self.browse_tif_button.setText(_translate("MainWindow", "Open TIF"))
        self.browse_folder_button.setText(
            _translate("MainWindow", "Open Folder"))
        self.groupBox.setTitle(_translate("MainWindow", "Spacial Analysis"))
        self.label_6.setText(
            _translate("MainWindow", "Radiality Magnification"))
        self.label_7.setText(_translate("MainWindow", "Ring radius(px)"))
        self.label_9.setText(_translate("MainWindow", "Axes in Ring"))
        self.label_10.setText(_translate("MainWindow",
                                         "Sum up every n frames"))
        self.dc_checkbox.setText(
            _translate("MainWindow",
                       "Do Drift-Correction(slow, for high density)"))
        self.iw_checkbox.setText(
            _translate("MainWindow", "Do Intensity Weighting"))
        self.gw_checkbox.setText(
            _translate("MainWindow", "Do Gradient Weighting(for low density)"))
        self.groupBox1.setTitle(_translate("MainWindow", "Temporal Analysis"))
        self.label_13.setText(_translate("MainWindow", "TRAC Order"))
        self.label_14.setText(_translate("MainWindow", "TRAC Delay"))
        self.tra_radio_button.setText(
            _translate("MainWindow", "Temporal Radiality Average(TRA)"))
        self.trac_radio_button.setText(
            _translate("MainWindow",
                       "Temporal Radiality Auto-Correlations(TRAC)"))
        self.reset_button.setText(_translate("MainWindow", "Reset"))
        self.start_button.setText(_translate("MainWindow", "Start"))
        self.save_button.setText(_translate("MainWindow", "Save"))
Exemplo n.º 15
0
class Ui_starlightCapture(object):
    def setupUi(self, starlightCapture):
        starlightCapture.setObjectName(_fromUtf8("starlightCapture"))
        starlightCapture.resize(964, 623)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8("icon.png")),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        starlightCapture.setWindowIcon(icon)
        self.gridLayout = QtGui.QGridLayout(starlightCapture)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setSpacing(5)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.autolevelsBox = QtGui.QCheckBox(starlightCapture)
        self.autolevelsBox.setChecked(True)
        self.autolevelsBox.setObjectName(_fromUtf8("autolevelsBox"))
        self.verticalLayout_2.addWidget(self.autolevelsBox)
        self.eqHistBox = QtGui.QCheckBox(starlightCapture)
        self.eqHistBox.setObjectName(_fromUtf8("eqHistBox"))
        self.verticalLayout_2.addWidget(self.eqHistBox)
        self.horizFlipCheckBox = QtGui.QCheckBox(starlightCapture)
        self.horizFlipCheckBox.setObjectName(_fromUtf8("horizFlipCheckBox"))
        self.verticalLayout_2.addWidget(self.horizFlipCheckBox)
        self.vertFlipCheckBox = QtGui.QCheckBox(starlightCapture)
        self.vertFlipCheckBox.setObjectName(_fromUtf8("vertFlipCheckBox"))
        self.verticalLayout_2.addWidget(self.vertFlipCheckBox)
        self.crossLinesCheckBox = QtGui.QCheckBox(starlightCapture)
        self.crossLinesCheckBox.setEnabled(True)
        self.crossLinesCheckBox.setChecked(False)
        self.crossLinesCheckBox.setObjectName(_fromUtf8("crossLinesCheckBox"))
        self.verticalLayout_2.addWidget(self.crossLinesCheckBox)
        self.crossLinesMaxCheckBox = QtGui.QCheckBox(starlightCapture)
        self.crossLinesMaxCheckBox.setObjectName(
            _fromUtf8("crossLinesMaxCheckBox"))
        self.verticalLayout_2.addWidget(self.crossLinesMaxCheckBox)
        self.setCrossLinesToMaxButton = QtGui.QPushButton(starlightCapture)
        self.setCrossLinesToMaxButton.setObjectName(
            _fromUtf8("setCrossLinesToMaxButton"))
        self.verticalLayout_2.addWidget(self.setCrossLinesToMaxButton)
        self.verticalLayout.addLayout(self.verticalLayout_2)
        self.gridLayout_2 = QtGui.QGridLayout()
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.lcdAmplitude = QtGui.QLCDNumber(starlightCapture)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.lcdAmplitude.sizePolicy().hasHeightForWidth())
        self.lcdAmplitude.setSizePolicy(sizePolicy)
        self.lcdAmplitude.setMinimumSize(QtCore.QSize(0, 50))
        self.lcdAmplitude.setObjectName(_fromUtf8("lcdAmplitude"))
        self.gridLayout_2.addWidget(self.lcdAmplitude, 0, 1, 1, 1)
        self.label_7 = QtGui.QLabel(starlightCapture)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_7.setFont(font)
        self.label_7.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.gridLayout_2.addWidget(self.label_7, 0, 0, 1, 1)
        self.lcdFwhm = QtGui.QLCDNumber(starlightCapture)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.lcdFwhm.sizePolicy().hasHeightForWidth())
        self.lcdFwhm.setSizePolicy(sizePolicy)
        self.lcdFwhm.setMinimumSize(QtCore.QSize(0, 50))
        self.lcdFwhm.setProperty("value", 0.0)
        self.lcdFwhm.setObjectName(_fromUtf8("lcdFwhm"))
        self.gridLayout_2.addWidget(self.lcdFwhm, 1, 1, 1, 1)
        self.label_8 = QtGui.QLabel(starlightCapture)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_8.setFont(font)
        self.label_8.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.gridLayout_2.addWidget(self.label_8, 1, 0, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout_2)
        self.satIndicator = QtGui.QLabel(starlightCapture)
        font = QtGui.QFont()
        font.setPointSize(26)
        self.satIndicator.setFont(font)
        self.satIndicator.setAlignment(QtCore.Qt.AlignCenter)
        self.satIndicator.setObjectName(_fromUtf8("satIndicator"))
        self.verticalLayout.addWidget(self.satIndicator)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem)
        self.formLayout = QtGui.QFormLayout()
        self.formLayout.setSizeConstraint(QtGui.QLayout.SetFixedSize)
        self.formLayout.setFieldGrowthPolicy(
            QtGui.QFormLayout.FieldsStayAtSizeHint)
        self.formLayout.setSpacing(5)
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.label_2 = QtGui.QLabel(starlightCapture)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_2)
        self.cameraID = QtGui.QSpinBox(starlightCapture)
        self.cameraID.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.cameraID.setObjectName(_fromUtf8("cameraID"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole,
                                  self.cameraID)
        self.label_4 = QtGui.QLabel(starlightCapture)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_4)
        self.modelName = QtGui.QLineEdit(starlightCapture)
        self.modelName.setEnabled(False)
        self.modelName.setObjectName(_fromUtf8("modelName"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole,
                                  self.modelName)
        self.label = QtGui.QLabel(starlightCapture)
        self.label.setObjectName(_fromUtf8("label"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.label)
        self.exposureTime = QtGui.QDoubleSpinBox(starlightCapture)
        self.exposureTime.setDecimals(3)
        self.exposureTime.setMinimum(0.001)
        self.exposureTime.setMaximum(3600.0)
        self.exposureTime.setSingleStep(0.1)
        self.exposureTime.setProperty("value", 0.01)
        self.exposureTime.setObjectName(_fromUtf8("exposureTime"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole,
                                  self.exposureTime)
        self.label_5 = QtGui.QLabel(starlightCapture)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.formLayout.setWidget(4, QtGui.QFormLayout.LabelRole, self.label_5)
        self.ilAcq = QtGui.QCheckBox(starlightCapture)
        self.ilAcq.setEnabled(False)
        self.ilAcq.setText(_fromUtf8(""))
        self.ilAcq.setObjectName(_fromUtf8("ilAcq"))
        self.formLayout.setWidget(4, QtGui.QFormLayout.FieldRole, self.ilAcq)
        self.label_6 = QtGui.QLabel(starlightCapture)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.formLayout.setWidget(5, QtGui.QFormLayout.LabelRole, self.label_6)
        self.ilDoubleExpo = QtGui.QCheckBox(starlightCapture)
        self.ilDoubleExpo.setEnabled(False)
        self.ilDoubleExpo.setText(_fromUtf8(""))
        self.ilDoubleExpo.setObjectName(_fromUtf8("ilDoubleExpo"))
        self.formLayout.setWidget(5, QtGui.QFormLayout.FieldRole,
                                  self.ilDoubleExpo)
        spacerItem1 = QtGui.QSpacerItem(20, 10, QtGui.QSizePolicy.Minimum,
                                        QtGui.QSizePolicy.Maximum)
        self.formLayout.setItem(3, QtGui.QFormLayout.FieldRole, spacerItem1)
        self.verticalLayout.addLayout(self.formLayout)
        spacerItem2 = QtGui.QSpacerItem(20, 1, QtGui.QSizePolicy.Minimum,
                                        QtGui.QSizePolicy.Maximum)
        self.verticalLayout.addItem(spacerItem2)
        self.verticalLayout_3 = QtGui.QVBoxLayout()
        self.verticalLayout_3.setSpacing(0)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.label_3 = QtGui.QLabel(starlightCapture)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_3.sizePolicy().hasHeightForWidth())
        self.label_3.setSizePolicy(sizePolicy)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.verticalLayout_3.addWidget(self.label_3)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setSizeConstraint(QtGui.QLayout.SetFixedSize)
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.selectFileLineEdit = QtGui.QLineEdit(starlightCapture)
        self.selectFileLineEdit.setObjectName(_fromUtf8("selectFileLineEdit"))
        self.horizontalLayout_3.addWidget(self.selectFileLineEdit)
        self.selectFileBut = QtGui.QPushButton(starlightCapture)
        self.selectFileBut.setMinimumSize(QtCore.QSize(60, 0))
        self.selectFileBut.setMaximumSize(QtCore.QSize(50, 16777215))
        self.selectFileBut.setObjectName(_fromUtf8("selectFileBut"))
        self.horizontalLayout_3.addWidget(self.selectFileBut)
        self.verticalLayout_3.addLayout(self.horizontalLayout_3)
        self.verticalLayout.addLayout(self.verticalLayout_3)
        self.captureBox = QtGui.QCheckBox(starlightCapture)
        self.captureBox.setObjectName(_fromUtf8("captureBox"))
        self.verticalLayout.addWidget(self.captureBox)
        spacerItem3 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                        QtGui.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem3)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.startBut = QtGui.QPushButton(starlightCapture)
        self.startBut.setObjectName(_fromUtf8("startBut"))
        self.horizontalLayout_2.addWidget(self.startBut)
        self.stopBut = QtGui.QPushButton(starlightCapture)
        self.stopBut.setObjectName(_fromUtf8("stopBut"))
        self.horizontalLayout_2.addWidget(self.stopBut)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.progressBar = QtGui.QProgressBar(starlightCapture)
        self.progressBar.setEnabled(True)
        self.progressBar.setMinimumSize(QtCore.QSize(0, 15))
        self.progressBar.setMaximumSize(QtCore.QSize(16777215, 15))
        self.progressBar.setStyleSheet(_fromUtf8(""))
        self.progressBar.setProperty("value", 0)
        self.progressBar.setTextVisible(True)
        self.progressBar.setInvertedAppearance(False)
        self.progressBar.setObjectName(_fromUtf8("progressBar"))
        self.verticalLayout.addWidget(self.progressBar)
        self.gridLayout.addLayout(self.verticalLayout, 0, 0, 1, 1)
        self.image = ImageView(starlightCapture)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(
            self.image.sizePolicy().hasHeightForWidth())
        self.image.setSizePolicy(sizePolicy)
        self.image.setMinimumSize(QtCore.QSize(600, 450))
        self.image.setObjectName(_fromUtf8("image"))
        self.gridLayout.addWidget(self.image, 0, 2, 1, 1)

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

    def retranslateUi(self, starlightCapture):
        starlightCapture.setWindowTitle(
            _translate("starlightCapture", "Starlight Capture", None))
        self.autolevelsBox.setText(
            _translate("starlightCapture", "Auto-levels", None))
        self.eqHistBox.setText(
            _translate("starlightCapture", "Equalize histogram", None))
        self.horizFlipCheckBox.setText(
            _translate("starlightCapture", "Horizontal flipping", None))
        self.vertFlipCheckBox.setText(
            _translate("starlightCapture", "Vertical flipping", None))
        self.crossLinesCheckBox.setText(
            _translate("starlightCapture", "Cross lines (manual marker)",
                       None))
        self.crossLinesMaxCheckBox.setText(
            _translate("starlightCapture", "Cross lines (auto center of mass)",
                       None))
        self.setCrossLinesToMaxButton.setText(
            _translate("starlightCapture", "Set marker to center of mass",
                       None))
        self.label_7.setText(_translate("starlightCapture", "MAX - MIN", None))
        self.label_8.setText(_translate("starlightCapture", "FWHM", None))
        self.satIndicator.setText(
            _translate("starlightCapture", "SATURATING", None))
        self.label_2.setText(
            _translate("starlightCapture", "Camera ID number:", None))
        self.label_4.setText(
            _translate("starlightCapture", "Camera model:", None))
        self.label.setText(
            _translate("starlightCapture", "Exposure time (s):", None))
        self.label_5.setText(
            _translate("starlightCapture", "InterLacing acq.:", None))
        self.label_6.setText(
            _translate("starlightCapture", "IL corr double expo:", None))
        self.label_3.setText(
            _translate("starlightCapture", "Saving directory:", None))
        self.selectFileBut.setText(
            _translate("starlightCapture", "Select", None))
        self.captureBox.setText(_translate("starlightCapture", "Capture",
                                           None))
        self.startBut.setText(_translate("starlightCapture", "Start", None))
        self.stopBut.setText(_translate("starlightCapture", "Stop", None))
Exemplo n.º 16
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(1133, 818)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.gridLayout = QtGui.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.splitter = QtGui.QSplitter(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.splitter.sizePolicy().hasHeightForWidth())
        self.splitter.setSizePolicy(sizePolicy)
        self.splitter.setOrientation(QtCore.Qt.Horizontal)
        self.splitter.setObjectName(_fromUtf8("splitter"))
        self.layoutWidget = QtGui.QWidget(self.splitter)
        self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
        self.verticalLayout0 = QtGui.QVBoxLayout(self.layoutWidget)
        self.verticalLayout0.setObjectName(_fromUtf8("verticalLayout0"))
        self.imageView = ImageView(self.layoutWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.imageView.sizePolicy().hasHeightForWidth())
        self.imageView.setSizePolicy(sizePolicy)
        self.imageView.setBaseSize(QtCore.QSize(0, 0))
        self.imageView.setObjectName(_fromUtf8("imageView"))
        self.verticalLayout0.addWidget(self.imageView)
        self.horizontalLayout0 = QtGui.QHBoxLayout()
        self.horizontalLayout0.setObjectName(_fromUtf8("horizontalLayout0"))
        self.backButton = QtGui.QPushButton(self.layoutWidget)
        self.backButton.setObjectName(_fromUtf8("backButton"))
        self.horizontalLayout0.addWidget(self.backButton)
        self.forwardButton = QtGui.QPushButton(self.layoutWidget)
        self.forwardButton.setObjectName(_fromUtf8("forwardButton"))
        self.horizontalLayout0.addWidget(self.forwardButton)
        self.randomButton = QtGui.QPushButton(self.layoutWidget)
        self.randomButton.setObjectName(_fromUtf8("randomButton"))
        self.horizontalLayout0.addWidget(self.randomButton)
        self.showHidePeaksCheckBox = QtGui.QCheckBox(self.layoutWidget)
        self.showHidePeaksCheckBox.setChecked(True)
        self.showHidePeaksCheckBox.setObjectName(_fromUtf8("showHidePeaksCheckBox"))
        self.horizontalLayout0.addWidget(self.showHidePeaksCheckBox)
        self.verticalLayout0.addLayout(self.horizontalLayout0)
        self.verticalLayoutWidget = QtGui.QWidget(self.splitter)
        self.verticalLayoutWidget.setObjectName(_fromUtf8("verticalLayoutWidget"))
        self.verticalLayout1 = QtGui.QVBoxLayout(self.verticalLayoutWidget)
        self.verticalLayout1.setSizeConstraint(QtGui.QLayout.SetDefaultConstraint)
        self.verticalLayout1.setObjectName(_fromUtf8("verticalLayout1"))
        spacerItem = QtGui.QSpacerItem(20, 732, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout1.addItem(spacerItem)
        self.hitLabel = QtGui.QLabel(self.verticalLayoutWidget)
        self.hitLabel.setObjectName(_fromUtf8("hitLabel"))
        self.verticalLayout1.addWidget(self.hitLabel)
        self.resolutionRingsCheckBox = QtGui.QCheckBox(self.verticalLayoutWidget)
        self.resolutionRingsCheckBox.setChecked(True)
        self.resolutionRingsCheckBox.setObjectName(_fromUtf8("resolutionRingsCheckBox"))
        self.verticalLayout1.addWidget(self.resolutionRingsCheckBox)
        self.horizontalLayout1 = QtGui.QHBoxLayout()
        self.horizontalLayout1.setObjectName(_fromUtf8("horizontalLayout1"))
        self.lastClickedPositionLabel = QtGui.QLabel(self.verticalLayoutWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.lastClickedPositionLabel.sizePolicy().hasHeightForWidth())
        self.lastClickedPositionLabel.setSizePolicy(sizePolicy)
        self.lastClickedPositionLabel.setObjectName(_fromUtf8("lastClickedPositionLabel"))
        self.horizontalLayout1.addWidget(self.lastClickedPositionLabel)
        self.lastClickedPixelValueLabel = QtGui.QLabel(self.verticalLayoutWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.lastClickedPixelValueLabel.sizePolicy().hasHeightForWidth())
        self.lastClickedPixelValueLabel.setSizePolicy(sizePolicy)
        self.lastClickedPixelValueLabel.setObjectName(_fromUtf8("lastClickedPixelValueLabel"))
        self.horizontalLayout1.addWidget(self.lastClickedPixelValueLabel)
        self.verticalLayout1.addLayout(self.horizontalLayout1)
        self.gridLayout.addWidget(self.splitter, 0, 0, 1, 1)
        MainWindow.setCentralWidget(self.centralwidget)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)

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

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow", None))
        self.backButton.setText(_translate("MainWindow", "Back", None))
        self.forwardButton.setText(_translate("MainWindow", "Forward", None))
        self.randomButton.setText(_translate("MainWindow", "Random", None))
        self.showHidePeaksCheckBox.setText(_translate("MainWindow", "Show/Hide Peaks", None))
        self.hitLabel.setText(_translate("MainWindow", "Hit: - (- peaks)", None))
        self.resolutionRingsCheckBox.setText(_translate("MainWindow", "Min and max resolution rings", None))
        self.lastClickedPositionLabel.setText(_translate("MainWindow", "Last clicked position: - ", None))
        self.lastClickedPixelValueLabel.setText(_translate("MainWindow", "Pixel value: - ", None))
Exemplo n.º 17
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1237, 838)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth())
        MainWindow.setSizePolicy(sizePolicy)
        MainWindow.setMinimumSize(QtCore.QSize(1237, 811))
        palette = QtGui.QPalette()
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush)
        brush = QtGui.QBrush(QtGui.QColor(46, 52, 54))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(69, 78, 81))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Light, brush)
        brush = QtGui.QBrush(QtGui.QColor(57, 65, 67))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Midlight, brush)
        brush = QtGui.QBrush(QtGui.QColor(23, 26, 27))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Dark, brush)
        brush = QtGui.QBrush(QtGui.QColor(30, 34, 36))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Mid, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.BrightText, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(46, 52, 54))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Shadow, brush)
        brush = QtGui.QBrush(QtGui.QColor(23, 26, 27))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.AlternateBase, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 220))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ToolTipBase, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ToolTipText, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush)
        brush = QtGui.QBrush(QtGui.QColor(46, 52, 54))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(69, 78, 81))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Light, brush)
        brush = QtGui.QBrush(QtGui.QColor(57, 65, 67))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Midlight, brush)
        brush = QtGui.QBrush(QtGui.QColor(23, 26, 27))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Dark, brush)
        brush = QtGui.QBrush(QtGui.QColor(30, 34, 36))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Mid, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.BrightText, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(46, 52, 54))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Shadow, brush)
        brush = QtGui.QBrush(QtGui.QColor(23, 26, 27))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.AlternateBase, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 220))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ToolTipBase, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ToolTipText, brush)
        brush = QtGui.QBrush(QtGui.QColor(23, 26, 27))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush)
        brush = QtGui.QBrush(QtGui.QColor(46, 52, 54))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(69, 78, 81))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Light, brush)
        brush = QtGui.QBrush(QtGui.QColor(57, 65, 67))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Midlight, brush)
        brush = QtGui.QBrush(QtGui.QColor(23, 26, 27))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Dark, brush)
        brush = QtGui.QBrush(QtGui.QColor(30, 34, 36))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Mid, brush)
        brush = QtGui.QBrush(QtGui.QColor(23, 26, 27))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.BrightText, brush)
        brush = QtGui.QBrush(QtGui.QColor(23, 26, 27))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, brush)
        brush = QtGui.QBrush(QtGui.QColor(46, 52, 54))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(46, 52, 54))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Shadow, brush)
        brush = QtGui.QBrush(QtGui.QColor(46, 52, 54))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.AlternateBase, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 220))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ToolTipBase, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ToolTipText, brush)
        MainWindow.setPalette(palette)
        font = QtGui.QFont()
        font.setFamily("Sarai")
        font.setPointSize(16)
        MainWindow.setFont(font)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap("Icons/icons8-mixer-logo-512.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        icon.addPixmap(QtGui.QPixmap("Icons/icons8-mixer-logo-512.png"), QtGui.QIcon.Normal, QtGui.QIcon.On)
        MainWindow.setWindowIcon(icon)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setObjectName("verticalLayout")
        self.frame = QtWidgets.QFrame(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.frame.sizePolicy().hasHeightForWidth())
        self.frame.setSizePolicy(sizePolicy)
        self.frame.setFrameShape(QtWidgets.QFrame.Box)
        self.frame.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.frame.setObjectName("frame")
        self.gridLayout = QtWidgets.QGridLayout(self.frame)
        self.gridLayout.setObjectName("gridLayout")
        self.gridLayout_5 = QtWidgets.QGridLayout()
        self.gridLayout_5.setSizeConstraint(QtWidgets.QLayout.SetMinAndMaxSize)
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.img2Load = QtWidgets.QPushButton(self.frame)
        self.img2Load.setText("")
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap("Icons/icons8-file-256.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.img2Load.setIcon(icon1)
        self.img2Load.setIconSize(QtCore.QSize(20, 20))
        self.img2Load.setFlat(True)
        self.img2Load.setProperty("image", 2)
        self.img2Load.setObjectName("img2Load")
        self.gridLayout_5.addWidget(self.img2Load, 2, 1, 1, 1)
        self.imageOneOrigin = ImageView(self.frame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.imageOneOrigin.sizePolicy().hasHeightForWidth())
        self.imageOneOrigin.setSizePolicy(sizePolicy)
        self.imageOneOrigin.setMinimumSize(QtCore.QSize(0, 0))
        self.imageOneOrigin.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.imageOneOrigin.setSizeIncrement(QtCore.QSize(0, 0))
        self.imageOneOrigin.setObjectName("imageOneOrigin")
        self.gridLayout_5.addWidget(self.imageOneOrigin, 1, 0, 1, 1)
        self.imageOneMods = ImageView(self.frame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.imageOneMods.sizePolicy().hasHeightForWidth())
        self.imageOneMods.setSizePolicy(sizePolicy)
        self.imageOneMods.setMinimumSize(QtCore.QSize(0, 0))
        self.imageOneMods.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.imageOneMods.setSizeIncrement(QtCore.QSize(0, 0))
        self.imageOneMods.setObjectName("imageOneMods")
        self.gridLayout_5.addWidget(self.imageOneMods, 1, 2, 1, 1)
        self.label_2 = QtWidgets.QLabel(self.frame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth())
        self.label_2.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setFamily("Sarai")
        font.setPointSize(20)
        font.setBold(False)
        font.setItalic(False)
        font.setWeight(50)
        self.label_2.setFont(font)
        self.label_2.setFrameShape(QtWidgets.QFrame.Box)
        self.label_2.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.label_2.setObjectName("label_2")
        self.gridLayout_5.addWidget(self.label_2, 2, 0, 1, 1)
        self.image2Cmbx = QtWidgets.QComboBox(self.frame)
        font = QtGui.QFont()
        font.setFamily("Sarai")
        self.image2Cmbx.setFont(font)
        self.image2Cmbx.setProperty("image", 2)
        self.image2Cmbx.setObjectName("image2Cmbx")
        self.image2Cmbx.addItem("")
        self.image2Cmbx.addItem("")
        self.image2Cmbx.addItem("")
        self.image2Cmbx.addItem("")
        self.gridLayout_5.addWidget(self.image2Cmbx, 2, 2, 1, 1)
        self.image1Cmbx = QtWidgets.QComboBox(self.frame)
        font = QtGui.QFont()
        font.setFamily("Sarai")
        self.image1Cmbx.setFont(font)
        self.image1Cmbx.setProperty("image", 1)
        self.image1Cmbx.setObjectName("image1Cmbx")
        self.image1Cmbx.addItem("")
        self.image1Cmbx.addItem("")
        self.image1Cmbx.addItem("")
        self.image1Cmbx.addItem("")
        self.gridLayout_5.addWidget(self.image1Cmbx, 0, 2, 1, 1)
        spacerItem = QtWidgets.QSpacerItem(13, 201, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.gridLayout_5.addItem(spacerItem, 1, 1, 1, 1)
        self.label = QtWidgets.QLabel(self.frame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setFamily("Sarai")
        font.setPointSize(20)
        self.label.setFont(font)
        self.label.setMouseTracking(True)
        self.label.setFrameShape(QtWidgets.QFrame.Box)
        self.label.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.label.setTextFormat(QtCore.Qt.RichText)
        self.label.setObjectName("label")
        self.gridLayout_5.addWidget(self.label, 0, 0, 1, 1)
        self.img1Load = QtWidgets.QPushButton(self.frame)
        self.img1Load.setText("")
        self.img1Load.setIcon(icon1)
        self.img1Load.setIconSize(QtCore.QSize(20, 20))
        self.img1Load.setFlat(True)
        self.img1Load.setProperty("image", 1)
        self.img1Load.setObjectName("img1Load")
        self.gridLayout_5.addWidget(self.img1Load, 0, 1, 1, 1)
        self.imageTwoOrigin = ImageView(self.frame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.imageTwoOrigin.sizePolicy().hasHeightForWidth())
        self.imageTwoOrigin.setSizePolicy(sizePolicy)
        self.imageTwoOrigin.setMinimumSize(QtCore.QSize(0, 0))
        self.imageTwoOrigin.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.imageTwoOrigin.setSizeIncrement(QtCore.QSize(0, 0))
        self.imageTwoOrigin.setObjectName("imageTwoOrigin")
        self.gridLayout_5.addWidget(self.imageTwoOrigin, 3, 0, 1, 1)
        spacerItem1 = QtWidgets.QSpacerItem(13, 200, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.gridLayout_5.addItem(spacerItem1, 3, 1, 1, 1)
        self.imageTwoMods = ImageView(self.frame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.imageTwoMods.sizePolicy().hasHeightForWidth())
        self.imageTwoMods.setSizePolicy(sizePolicy)
        self.imageTwoMods.setMinimumSize(QtCore.QSize(0, 0))
        self.imageTwoMods.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.imageTwoMods.setSizeIncrement(QtCore.QSize(0, 0))
        self.imageTwoMods.setObjectName("imageTwoMods")
        self.gridLayout_5.addWidget(self.imageTwoMods, 3, 2, 1, 1)
        self.gridLayout.addLayout(self.gridLayout_5, 0, 0, 1, 1)
        self.line_2 = QtWidgets.QFrame(self.frame)
        self.line_2.setFrameShape(QtWidgets.QFrame.VLine)
        self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_2.setObjectName("line_2")
        self.gridLayout.addWidget(self.line_2, 0, 1, 1, 1)
        self.gridLayout_2 = QtWidgets.QGridLayout()
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.gridLayout_3 = QtWidgets.QGridLayout()
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.slider1 = QtWidgets.QSlider(self.frame)
        self.slider1.setMinimum(0)
        self.slider1.setMaximum(10)
        self.slider1.setPageStep(1)
        self.slider1.setProperty("value", 9)
        self.slider1.setSliderPosition(9)
        self.slider1.setOrientation(QtCore.Qt.Horizontal)
        self.slider1.setObjectName("slider1")
        self.gridLayout_3.addWidget(self.slider1, 0, 2, 1, 1)
        self.mixerCmbx1 = QtWidgets.QComboBox(self.frame)
        font = QtGui.QFont()
        font.setFamily("Sarai")
        self.mixerCmbx1.setFont(font)
        self.mixerCmbx1.setObjectName("mixerCmbx1")
        self.mixerCmbx1.addItem("")
        self.mixerCmbx1.addItem("")
        self.gridLayout_3.addWidget(self.mixerCmbx1, 0, 1, 1, 1)
        self.label_4 = QtWidgets.QLabel(self.frame)
        font = QtGui.QFont()
        font.setFamily("Sarai")
        self.label_4.setFont(font)
        self.label_4.setFrameShape(QtWidgets.QFrame.Box)
        self.label_4.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.label_4.setObjectName("label_4")
        self.gridLayout_3.addWidget(self.label_4, 0, 0, 1, 1)
        self.component1 = QtWidgets.QComboBox(self.frame)
        font = QtGui.QFont()
        font.setFamily("Sarai")
        self.component1.setFont(font)
        self.component1.setObjectName("component1")
        self.component1.addItem("")
        self.component1.addItem("")
        self.component1.addItem("")
        self.gridLayout_3.addWidget(self.component1, 1, 2, 1, 1)
        self.gridLayout_2.addLayout(self.gridLayout_3, 1, 1, 1, 1)
        self.mixerOutput = QtWidgets.QComboBox(self.frame)
        font = QtGui.QFont()
        font.setFamily("Sarai")
        self.mixerOutput.setFont(font)
        self.mixerOutput.setObjectName("mixerOutput")
        self.mixerOutput.addItem("")
        self.mixerOutput.addItem("")
        self.gridLayout_2.addWidget(self.mixerOutput, 0, 1, 1, 1)
        self.label_3 = QtWidgets.QLabel(self.frame)
        font = QtGui.QFont()
        font.setFamily("Sarai")
        self.label_3.setFont(font)
        self.label_3.setFrameShape(QtWidgets.QFrame.Box)
        self.label_3.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.label_3.setObjectName("label_3")
        self.gridLayout_2.addWidget(self.label_3, 0, 0, 1, 1)
        self.gridLayout_4 = QtWidgets.QGridLayout()
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.label_8 = QtWidgets.QLabel(self.frame)
        font = QtGui.QFont()
        font.setFamily("Sarai")
        self.label_8.setFont(font)
        self.label_8.setFrameShape(QtWidgets.QFrame.Box)
        self.label_8.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.label_8.setObjectName("label_8")
        self.gridLayout_4.addWidget(self.label_8, 0, 0, 1, 1)
        self.mixerCmbx2 = QtWidgets.QComboBox(self.frame)
        font = QtGui.QFont()
        font.setFamily("Sarai")
        self.mixerCmbx2.setFont(font)
        self.mixerCmbx2.setObjectName("mixerCmbx2")
        self.mixerCmbx2.addItem("")
        self.mixerCmbx2.addItem("")
        self.gridLayout_4.addWidget(self.mixerCmbx2, 0, 1, 1, 1)
        self.slider2 = QtWidgets.QSlider(self.frame)
        self.slider2.setMinimum(0)
        self.slider2.setMaximum(10)
        self.slider2.setPageStep(1)
        self.slider2.setProperty("value", 9)
        self.slider2.setSliderPosition(9)
        self.slider2.setOrientation(QtCore.Qt.Horizontal)
        self.slider2.setObjectName("slider2")
        self.gridLayout_4.addWidget(self.slider2, 0, 2, 1, 1)
        self.component2 = QtWidgets.QComboBox(self.frame)
        font = QtGui.QFont()
        font.setFamily("Sarai")
        self.component2.setFont(font)
        self.component2.setObjectName("component2")
        self.component2.addItem("")
        self.component2.addItem("")
        self.component2.addItem("")
        self.gridLayout_4.addWidget(self.component2, 1, 2, 1, 1)
        self.gridLayout_2.addLayout(self.gridLayout_4, 2, 1, 1, 1)
        spacerItem2 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.gridLayout_2.addItem(spacerItem2, 1, 0, 1, 1)
        spacerItem3 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.gridLayout_2.addItem(spacerItem3, 2, 0, 1, 1)
        self.gridLayout.addLayout(self.gridLayout_2, 0, 2, 1, 1)
        self.verticalLayout.addWidget(self.frame)
        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.frame1 = QtWidgets.QFrame(self.centralwidget)
        self.frame1.setFrameShape(QtWidgets.QFrame.Box)
        self.frame1.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.frame1.setObjectName("frame1")
        self.gridLayout_6 = QtWidgets.QGridLayout(self.frame1)
        self.gridLayout_6.setSizeConstraint(QtWidgets.QLayout.SetMinimumSize)
        self.gridLayout_6.setObjectName("gridLayout_6")
        self.label_6 = QtWidgets.QLabel(self.frame1)
        self.label_6.setMaximumSize(QtCore.QSize(16777215, 20))
        font = QtGui.QFont()
        font.setFamily("Sarai")
        font.setPointSize(20)
        self.label_6.setFont(font)
        self.label_6.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.label_6.setFrameShadow(QtWidgets.QFrame.Plain)
        self.label_6.setAlignment(QtCore.Qt.AlignCenter)
        self.label_6.setObjectName("label_6")
        self.gridLayout_6.addWidget(self.label_6, 0, 1, 1, 1)
        self.label_5 = QtWidgets.QLabel(self.frame1)
        self.label_5.setMaximumSize(QtCore.QSize(16777215, 20))
        font = QtGui.QFont()
        font.setFamily("Sarai")
        font.setPointSize(20)
        self.label_5.setFont(font)
        self.label_5.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.label_5.setFrameShadow(QtWidgets.QFrame.Plain)
        self.label_5.setAlignment(QtCore.Qt.AlignCenter)
        self.label_5.setObjectName("label_5")
        self.gridLayout_6.addWidget(self.label_5, 0, 0, 1, 1)
        self.output2 = ImageView(self.frame1)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.output2.sizePolicy().hasHeightForWidth())
        self.output2.setSizePolicy(sizePolicy)
        self.output2.setMinimumSize(QtCore.QSize(0, 0))
        self.output2.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.output2.setObjectName("output2")
        self.gridLayout_6.addWidget(self.output2, 1, 1, 1, 1)
        self.output1 = ImageView(self.frame1)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.output1.sizePolicy().hasHeightForWidth())
        self.output1.setSizePolicy(sizePolicy)
        self.output1.setMinimumSize(QtCore.QSize(0, 0))
        self.output1.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.output1.setObjectName("output1")
        self.gridLayout_6.addWidget(self.output1, 1, 0, 1, 1)
        self.verticalLayout.addWidget(self.frame1)
        MainWindow.setCentralWidget(self.centralwidget)

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

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "PhaseMonster"))
        self.label_2.setText(_translate("MainWindow", "Image 2 "))
        self.image2Cmbx.setItemText(0, _translate("MainWindow", "Magnitude"))
        self.image2Cmbx.setItemText(1, _translate("MainWindow", "Phase"))
        self.image2Cmbx.setItemText(2, _translate("MainWindow", "Real Component"))
        self.image2Cmbx.setItemText(3, _translate("MainWindow", "Imaginary Component"))
        self.image1Cmbx.setItemText(0, _translate("MainWindow", "Magnitude"))
        self.image1Cmbx.setItemText(1, _translate("MainWindow", "Phase"))
        self.image1Cmbx.setItemText(2, _translate("MainWindow", "Real Component"))
        self.image1Cmbx.setItemText(3, _translate("MainWindow", "Imaginary Component"))
        self.label.setText(_translate("MainWindow", "Image 1"))
        self.mixerCmbx1.setItemText(0, _translate("MainWindow", "Image 1"))
        self.mixerCmbx1.setItemText(1, _translate("MainWindow", "Image 2 "))
        self.label_4.setText(_translate("MainWindow", "Component 1"))
        self.component1.setItemText(0, _translate("MainWindow", "Magnitude"))
        self.component1.setItemText(1, _translate("MainWindow", "Real Component"))
        self.component1.setItemText(2, _translate("MainWindow", "Uniform Magnitude"))
        self.mixerOutput.setItemText(0, _translate("MainWindow", "Output 1"))
        self.mixerOutput.setItemText(1, _translate("MainWindow", "Output 2"))
        self.label_3.setText(_translate("MainWindow", "Mixer Output"))
        self.label_8.setText(_translate("MainWindow", "Component 2"))
        self.mixerCmbx2.setItemText(0, _translate("MainWindow", "Image 1"))
        self.mixerCmbx2.setItemText(1, _translate("MainWindow", "Image 2 "))
        self.component2.setItemText(0, _translate("MainWindow", "Phase"))
        self.component2.setItemText(1, _translate("MainWindow", "Imaginary Component"))
        self.component2.setItemText(2, _translate("MainWindow", "Uniform Phase "))
        self.label_6.setText(_translate("MainWindow", "Output 2"))
        self.label_5.setText(_translate("MainWindow", "Output 1"))
Exemplo n.º 18
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1489, 773)
        MainWindow.setStyleSheet("QGroupBox::title{\n" "    left: 7px\n" "}")
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout.setContentsMargins(15, 15, 15, 15)
        self.gridLayout.setObjectName("gridLayout")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.gridLayout_4 = QtWidgets.QGridLayout()
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.groupBox_4 = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox_4.setObjectName("groupBox_4")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBox_4)
        self.gridLayout_3.setSizeConstraint(QtWidgets.QLayout.SetMinimumSize)
        self.gridLayout_3.setVerticalSpacing(6)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.formLayout_3 = QtWidgets.QFormLayout()
        self.formLayout_3.setSizeConstraint(QtWidgets.QLayout.SetNoConstraint)
        self.formLayout_3.setFormAlignment(QtCore.Qt.AlignLeading
                                           | QtCore.Qt.AlignLeft
                                           | QtCore.Qt.AlignVCenter)
        self.formLayout_3.setContentsMargins(6, -1, 6, -1)
        self.formLayout_3.setObjectName("formLayout_3")
        self.label = QtWidgets.QLabel(self.groupBox_4)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Preferred,
            QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        self.label.setObjectName("label")
        self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.LabelRole,
                                    self.label)
        self.camtrackUpper1 = QtWidgets.QSpinBox(self.groupBox_4)
        self.camtrackUpper1.setAlignment(QtCore.Qt.AlignCenter)
        self.camtrackUpper1.setMinimum(1)
        self.camtrackUpper1.setMaximum(1024)
        self.camtrackUpper1.setProperty("value", 198)
        self.camtrackUpper1.setObjectName("camtrackUpper1")
        self.formLayout_3.setWidget(1, QtWidgets.QFormLayout.FieldRole,
                                    self.camtrackUpper1)
        self.buttonCamtrackUpdate = QtWidgets.QPushButton(self.groupBox_4)
        self.buttonCamtrackUpdate.setObjectName("buttonCamtrackUpdate")
        self.formLayout_3.setWidget(2, QtWidgets.QFormLayout.SpanningRole,
                                    self.buttonCamtrackUpdate)
        self.camtrackLower1 = QtWidgets.QSpinBox(self.groupBox_4)
        self.camtrackLower1.setAlignment(QtCore.Qt.AlignCenter)
        self.camtrackLower1.setMinimum(1)
        self.camtrackLower1.setMaximum(1024)
        self.camtrackLower1.setProperty("value", 165)
        self.camtrackLower1.setObjectName("camtrackLower1")
        self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.FieldRole,
                                    self.camtrackLower1)
        self.label_2 = QtWidgets.QLabel(self.groupBox_4)
        self.label_2.setObjectName("label_2")
        self.formLayout_3.setWidget(1, QtWidgets.QFormLayout.LabelRole,
                                    self.label_2)
        self.gridLayout_3.addLayout(self.formLayout_3, 0, 0, 1, 1)
        self.formLayout_4 = QtWidgets.QFormLayout()
        self.formLayout_4.setFormAlignment(QtCore.Qt.AlignLeading
                                           | QtCore.Qt.AlignLeft
                                           | QtCore.Qt.AlignVCenter)
        self.formLayout_4.setContentsMargins(6, -1, 6, -1)
        self.formLayout_4.setObjectName("formLayout_4")
        self.label_3 = QtWidgets.QLabel(self.groupBox_4)
        self.label_3.setObjectName("label_3")
        self.formLayout_4.setWidget(0, QtWidgets.QFormLayout.LabelRole,
                                    self.label_3)
        self.buttonCamtrackView = QtWidgets.QPushButton(self.groupBox_4)
        self.buttonCamtrackView.setObjectName("buttonCamtrackView")
        self.formLayout_4.setWidget(2, QtWidgets.QFormLayout.SpanningRole,
                                    self.buttonCamtrackView)
        self.camtrackUpper2 = QtWidgets.QSpinBox(self.groupBox_4)
        self.camtrackUpper2.setAlignment(QtCore.Qt.AlignCenter)
        self.camtrackUpper2.setMinimum(1)
        self.camtrackUpper2.setMaximum(1024)
        self.camtrackUpper2.setProperty("value", 244)
        self.camtrackUpper2.setObjectName("camtrackUpper2")
        self.formLayout_4.setWidget(1, QtWidgets.QFormLayout.FieldRole,
                                    self.camtrackUpper2)
        self.camtrackLower2 = QtWidgets.QSpinBox(self.groupBox_4)
        self.camtrackLower2.setAlignment(QtCore.Qt.AlignCenter)
        self.camtrackLower2.setMinimum(1)
        self.camtrackLower2.setMaximum(1024)
        self.camtrackLower2.setProperty("value", 211)
        self.camtrackLower2.setObjectName("camtrackLower2")
        self.formLayout_4.setWidget(0, QtWidgets.QFormLayout.FieldRole,
                                    self.camtrackLower2)
        self.label_4 = QtWidgets.QLabel(self.groupBox_4)
        self.label_4.setObjectName("label_4")
        self.formLayout_4.setWidget(1, QtWidgets.QFormLayout.LabelRole,
                                    self.label_4)
        self.gridLayout_3.addLayout(self.formLayout_4, 0, 2, 1, 1)
        spacerItem = QtWidgets.QSpacerItem(40, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.gridLayout_3.addItem(spacerItem, 0, 1, 1, 1)
        self.gridLayout_3.setColumnStretch(0, 47)
        self.gridLayout_3.setColumnStretch(1, 6)
        self.gridLayout_3.setColumnStretch(2, 47)
        self.gridLayout_4.addWidget(self.groupBox_4, 1, 0, 1, 1)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.gridLayout_4.addItem(spacerItem1, 3, 3, 1, 1)
        spacerItem2 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.gridLayout_4.addItem(spacerItem2, 3, 5, 1, 1)
        self.groupBox_5 = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox_5.setObjectName("groupBox_5")
        self.gridLayout_8 = QtWidgets.QGridLayout(self.groupBox_5)
        self.gridLayout_8.setObjectName("gridLayout_8")
        self.formLayout_8 = QtWidgets.QFormLayout()
        self.formLayout_8.setFormAlignment(QtCore.Qt.AlignLeading
                                           | QtCore.Qt.AlignLeft
                                           | QtCore.Qt.AlignVCenter)
        self.formLayout_8.setContentsMargins(6, -1, 6, -1)
        self.formLayout_8.setObjectName("formLayout_8")
        self.label_7 = QtWidgets.QLabel(self.groupBox_5)
        self.label_7.setObjectName("label_7")
        self.formLayout_8.setWidget(0, QtWidgets.QFormLayout.LabelRole,
                                    self.label_7)
        self.label_8 = QtWidgets.QLabel(self.groupBox_5)
        self.label_8.setObjectName("label_8")
        self.formLayout_8.setWidget(1, QtWidgets.QFormLayout.LabelRole,
                                    self.label_8)
        self.buttonSpectralStart = QtWidgets.QPushButton(self.groupBox_5)
        self.buttonSpectralStart.setObjectName("buttonSpectralStart")
        self.formLayout_8.setWidget(2, QtWidgets.QFormLayout.SpanningRole,
                                    self.buttonSpectralStart)
        self.spectralBackgroundFrames = QtWidgets.QSpinBox(self.groupBox_5)
        self.spectralBackgroundFrames.setAlignment(QtCore.Qt.AlignCenter)
        self.spectralBackgroundFrames.setMinimum(1)
        self.spectralBackgroundFrames.setMaximum(999)
        self.spectralBackgroundFrames.setProperty("value", 50)
        self.spectralBackgroundFrames.setObjectName("spectralBackgroundFrames")
        self.formLayout_8.setWidget(0, QtWidgets.QFormLayout.FieldRole,
                                    self.spectralBackgroundFrames)
        self.spectralFrames = QtWidgets.QSpinBox(self.groupBox_5)
        self.spectralFrames.setAlignment(QtCore.Qt.AlignCenter)
        self.spectralFrames.setMaximum(999)
        self.spectralFrames.setProperty("value", 100)
        self.spectralFrames.setObjectName("spectralFrames")
        self.formLayout_8.setWidget(1, QtWidgets.QFormLayout.FieldRole,
                                    self.spectralFrames)
        self.gridLayout_8.addLayout(self.formLayout_8, 0, 2, 1, 1)
        self.formLayout_7 = QtWidgets.QFormLayout()
        self.formLayout_7.setFormAlignment(QtCore.Qt.AlignLeading
                                           | QtCore.Qt.AlignLeft
                                           | QtCore.Qt.AlignVCenter)
        self.formLayout_7.setContentsMargins(6, -1, 6, -1)
        self.formLayout_7.setObjectName("formLayout_7")
        self.label_5 = QtWidgets.QLabel(self.groupBox_5)
        self.label_5.setObjectName("label_5")
        self.formLayout_7.setWidget(0, QtWidgets.QFormLayout.LabelRole,
                                    self.label_5)
        self.label_6 = QtWidgets.QLabel(self.groupBox_5)
        self.label_6.setObjectName("label_6")
        self.formLayout_7.setWidget(1, QtWidgets.QFormLayout.LabelRole,
                                    self.label_6)
        self.buttonSpectralUpdate = QtWidgets.QPushButton(self.groupBox_5)
        self.buttonSpectralUpdate.setObjectName("buttonSpectralUpdate")
        self.formLayout_7.setWidget(2, QtWidgets.QFormLayout.SpanningRole,
                                    self.buttonSpectralUpdate)
        self.spectralRequiredTime = QtWidgets.QDoubleSpinBox(self.groupBox_5)
        self.spectralRequiredTime.setAlignment(QtCore.Qt.AlignCenter)
        self.spectralRequiredTime.setMinimum(0.01)
        self.spectralRequiredTime.setMaximum(10.0)
        self.spectralRequiredTime.setSingleStep(0.01)
        self.spectralRequiredTime.setProperty("value", 0.05)
        self.spectralRequiredTime.setObjectName("spectralRequiredTime")
        self.formLayout_7.setWidget(0, QtWidgets.QFormLayout.FieldRole,
                                    self.spectralRequiredTime)
        self.spectralActualTime = QtWidgets.QLineEdit(self.groupBox_5)
        self.spectralActualTime.setAlignment(QtCore.Qt.AlignCenter)
        self.spectralActualTime.setReadOnly(True)
        self.spectralActualTime.setObjectName("spectralActualTime")
        self.formLayout_7.setWidget(1, QtWidgets.QFormLayout.FieldRole,
                                    self.spectralActualTime)
        self.gridLayout_8.addLayout(self.formLayout_7, 0, 0, 1, 1)
        spacerItem3 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.gridLayout_8.addItem(spacerItem3, 0, 1, 1, 1)
        self.gridLayout_8.setColumnStretch(0, 47)
        self.gridLayout_8.setColumnStretch(1, 6)
        self.gridLayout_8.setColumnStretch(2, 47)
        self.gridLayout_4.addWidget(self.groupBox_5, 1, 2, 1, 1)
        self.groupBox = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox.setObjectName("groupBox")
        self.gridLayout_9 = QtWidgets.QGridLayout(self.groupBox)
        self.gridLayout_9.setObjectName("gridLayout_9")
        self.dialGain = QtWidgets.QDial(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Ignored,
                                           QtWidgets.QSizePolicy.Ignored)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.dialGain.sizePolicy().hasHeightForWidth())
        self.dialGain.setSizePolicy(sizePolicy)
        self.dialGain.setMaximum(300)
        self.dialGain.setProperty("value", 0)
        self.dialGain.setInvertedAppearance(False)
        self.dialGain.setWrapping(False)
        self.dialGain.setNotchesVisible(True)
        self.dialGain.setObjectName("dialGain")
        self.gridLayout_9.addWidget(self.dialGain, 0, 0, 1, 1)
        self.buttonGain = QtWidgets.QPushButton(self.groupBox)
        self.buttonGain.setObjectName("buttonGain")
        self.gridLayout_9.addWidget(self.buttonGain, 1, 0, 1, 1)
        self.gridLayout_4.addWidget(self.groupBox, 1, 6, 1, 1)
        self.groupBox_7 = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox_7.setObjectName("groupBox_7")
        self.gridLayout_7 = QtWidgets.QGridLayout(self.groupBox_7)
        self.gridLayout_7.setObjectName("gridLayout_7")
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.buttonHyperspectralTime = QtWidgets.QPushButton(self.groupBox_7)
        self.buttonHyperspectralTime.setObjectName("buttonHyperspectralTime")
        self.horizontalLayout_7.addWidget(self.buttonHyperspectralTime)
        self.buttonHyperspectralStart = QtWidgets.QPushButton(self.groupBox_7)
        self.buttonHyperspectralStart.setObjectName("buttonHyperspectralStart")
        self.horizontalLayout_7.addWidget(self.buttonHyperspectralStart)
        self.gridLayout_7.addLayout(self.horizontalLayout_7, 1, 0, 1, 2)
        self.formLayout_10 = QtWidgets.QFormLayout()
        self.formLayout_10.setContentsMargins(6, -1, 6, -1)
        self.formLayout_10.setObjectName("formLayout_10")
        self.label_13 = QtWidgets.QLabel(self.groupBox_7)
        self.label_13.setObjectName("label_13")
        self.formLayout_10.setWidget(0, QtWidgets.QFormLayout.LabelRole,
                                     self.label_13)
        self.label_14 = QtWidgets.QLabel(self.groupBox_7)
        self.label_14.setObjectName("label_14")
        self.formLayout_10.setWidget(1, QtWidgets.QFormLayout.LabelRole,
                                     self.label_14)
        self.label_15 = QtWidgets.QLabel(self.groupBox_7)
        self.label_15.setObjectName("label_15")
        self.formLayout_10.setWidget(2, QtWidgets.QFormLayout.LabelRole,
                                     self.label_15)
        self.label_16 = QtWidgets.QLabel(self.groupBox_7)
        self.label_16.setObjectName("label_16")
        self.formLayout_10.setWidget(3, QtWidgets.QFormLayout.LabelRole,
                                     self.label_16)
        self.hyperspectralBackgroundFrames = QtWidgets.QSpinBox(
            self.groupBox_7)
        self.hyperspectralBackgroundFrames.setAlignment(QtCore.Qt.AlignCenter)
        self.hyperspectralBackgroundFrames.setMinimum(1)
        self.hyperspectralBackgroundFrames.setMaximum(999)
        self.hyperspectralBackgroundFrames.setProperty("value", 50)
        self.hyperspectralBackgroundFrames.setObjectName(
            "hyperspectralBackgroundFrames")
        self.formLayout_10.setWidget(0, QtWidgets.QFormLayout.FieldRole,
                                     self.hyperspectralBackgroundFrames)
        self.hyperspectralXYStep = QtWidgets.QDoubleSpinBox(self.groupBox_7)
        self.hyperspectralXYStep.setAlignment(QtCore.Qt.AlignCenter)
        self.hyperspectralXYStep.setMinimum(0.01)
        self.hyperspectralXYStep.setMaximum(1.0)
        self.hyperspectralXYStep.setSingleStep(0.01)
        self.hyperspectralXYStep.setProperty("value", 0.3)
        self.hyperspectralXYStep.setObjectName("hyperspectralXYStep")
        self.formLayout_10.setWidget(1, QtWidgets.QFormLayout.FieldRole,
                                     self.hyperspectralXYStep)
        self.hyperspectralZStep = QtWidgets.QDoubleSpinBox(self.groupBox_7)
        self.hyperspectralZStep.setAlignment(QtCore.Qt.AlignCenter)
        self.hyperspectralZStep.setMinimum(0.01)
        self.hyperspectralZStep.setMaximum(1.0)
        self.hyperspectralZStep.setSingleStep(0.01)
        self.hyperspectralZStep.setProperty("value", 0.5)
        self.hyperspectralZStep.setObjectName("hyperspectralZStep")
        self.formLayout_10.setWidget(2, QtWidgets.QFormLayout.FieldRole,
                                     self.hyperspectralZStep)
        self.hyperspectralEstTime = QtWidgets.QLineEdit(self.groupBox_7)
        self.hyperspectralEstTime.setAlignment(QtCore.Qt.AlignCenter)
        self.hyperspectralEstTime.setReadOnly(True)
        self.hyperspectralEstTime.setObjectName("hyperspectralEstTime")
        self.formLayout_10.setWidget(3, QtWidgets.QFormLayout.FieldRole,
                                     self.hyperspectralEstTime)
        self.gridLayout_7.addLayout(self.formLayout_10, 0, 1, 1, 1)
        self.formLayout_9 = QtWidgets.QFormLayout()
        self.formLayout_9.setContentsMargins(6, -1, 6, -1)
        self.formLayout_9.setObjectName("formLayout_9")
        self.label_9 = QtWidgets.QLabel(self.groupBox_7)
        self.label_9.setObjectName("label_9")
        self.formLayout_9.setWidget(0, QtWidgets.QFormLayout.LabelRole,
                                    self.label_9)
        self.label_10 = QtWidgets.QLabel(self.groupBox_7)
        self.label_10.setObjectName("label_10")
        self.formLayout_9.setWidget(1, QtWidgets.QFormLayout.LabelRole,
                                    self.label_10)
        self.label_11 = QtWidgets.QLabel(self.groupBox_7)
        self.label_11.setObjectName("label_11")
        self.formLayout_9.setWidget(2, QtWidgets.QFormLayout.LabelRole,
                                    self.label_11)
        self.label_12 = QtWidgets.QLabel(self.groupBox_7)
        self.label_12.setObjectName("label_12")
        self.formLayout_9.setWidget(3, QtWidgets.QFormLayout.LabelRole,
                                    self.label_12)
        self.hyperspectralRequiredTime = QtWidgets.QDoubleSpinBox(
            self.groupBox_7)
        self.hyperspectralRequiredTime.setAlignment(QtCore.Qt.AlignCenter)
        self.hyperspectralRequiredTime.setMinimum(0.01)
        self.hyperspectralRequiredTime.setMaximum(10.0)
        self.hyperspectralRequiredTime.setSingleStep(0.01)
        self.hyperspectralRequiredTime.setProperty("value", 0.05)
        self.hyperspectralRequiredTime.setObjectName(
            "hyperspectralRequiredTime")
        self.formLayout_9.setWidget(0, QtWidgets.QFormLayout.FieldRole,
                                    self.hyperspectralRequiredTime)
        self.hyperspectralXPix = QtWidgets.QSpinBox(self.groupBox_7)
        self.hyperspectralXPix.setAlignment(QtCore.Qt.AlignCenter)
        self.hyperspectralXPix.setMinimum(1)
        self.hyperspectralXPix.setMaximum(999)
        self.hyperspectralXPix.setProperty("value", 100)
        self.hyperspectralXPix.setObjectName("hyperspectralXPix")
        self.formLayout_9.setWidget(1, QtWidgets.QFormLayout.FieldRole,
                                    self.hyperspectralXPix)
        self.hyperspectralYPix = QtWidgets.QSpinBox(self.groupBox_7)
        self.hyperspectralYPix.setAlignment(QtCore.Qt.AlignCenter)
        self.hyperspectralYPix.setMinimum(1)
        self.hyperspectralYPix.setMaximum(999)
        self.hyperspectralYPix.setProperty("value", 100)
        self.hyperspectralYPix.setObjectName("hyperspectralYPix")
        self.formLayout_9.setWidget(2, QtWidgets.QFormLayout.FieldRole,
                                    self.hyperspectralYPix)
        self.hyperspectralZPix = QtWidgets.QSpinBox(self.groupBox_7)
        self.hyperspectralZPix.setAlignment(QtCore.Qt.AlignCenter)
        self.hyperspectralZPix.setMinimum(1)
        self.hyperspectralZPix.setMaximum(999)
        self.hyperspectralZPix.setProperty("value", 1)
        self.hyperspectralZPix.setObjectName("hyperspectralZPix")
        self.formLayout_9.setWidget(3, QtWidgets.QFormLayout.FieldRole,
                                    self.hyperspectralZPix)
        self.gridLayout_7.addLayout(self.formLayout_9, 0, 0, 1, 1)
        self.gridLayout_7.setColumnStretch(0, 50)
        self.gridLayout_7.setColumnStretch(1, 50)
        self.gridLayout_7.setRowStretch(0, 80)
        self.gridLayout_7.setRowStretch(1, 20)
        self.gridLayout_4.addWidget(self.groupBox_7, 3, 2, 1, 1)
        self.groupBox_6 = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox_6.setObjectName("groupBox_6")
        self.gridLayout_6 = QtWidgets.QGridLayout(self.groupBox_6)
        self.gridLayout_6.setObjectName("gridLayout_6")
        self.eventLogger = QtWidgets.QPlainTextEdit(self.groupBox_6)
        self.eventLogger.setReadOnly(True)
        self.eventLogger.setObjectName("eventLogger")
        self.gridLayout_6.addWidget(self.eventLogger, 0, 0, 1, 1)
        self.gridLayout_4.addWidget(self.groupBox_6, 3, 0, 1, 1)
        self.groupBox_9 = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox_9.setObjectName("groupBox_9")
        self.formLayout_14 = QtWidgets.QFormLayout(self.groupBox_9)
        self.formLayout_14.setFormAlignment(QtCore.Qt.AlignLeading
                                            | QtCore.Qt.AlignLeft
                                            | QtCore.Qt.AlignVCenter)
        self.formLayout_14.setHorizontalSpacing(1)
        self.formLayout_14.setObjectName("formLayout_14")
        self.grating150 = QtWidgets.QRadioButton(self.groupBox_9)
        self.grating150.setChecked(True)
        self.grating150.setObjectName("grating150")
        self.formLayout_14.setWidget(0, QtWidgets.QFormLayout.SpanningRole,
                                     self.grating150)
        self.label_20 = QtWidgets.QLabel(self.groupBox_9)
        self.label_20.setObjectName("label_20")
        self.formLayout_14.setWidget(2, QtWidgets.QFormLayout.LabelRole,
                                     self.label_20)
        self.gratingRequiredWavelength = QtWidgets.QSpinBox(self.groupBox_9)
        self.gratingRequiredWavelength.setAlignment(QtCore.Qt.AlignCenter)
        self.gratingRequiredWavelength.setMinimum(300)
        self.gratingRequiredWavelength.setMaximum(999)
        self.gratingRequiredWavelength.setProperty("value", 682)
        self.gratingRequiredWavelength.setObjectName(
            "gratingRequiredWavelength")
        self.formLayout_14.setWidget(2, QtWidgets.QFormLayout.FieldRole,
                                     self.gratingRequiredWavelength)
        self.label_17 = QtWidgets.QLabel(self.groupBox_9)
        self.label_17.setObjectName("label_17")
        self.formLayout_14.setWidget(3, QtWidgets.QFormLayout.LabelRole,
                                     self.label_17)
        self.gratingActualWavelength = QtWidgets.QLineEdit(self.groupBox_9)
        self.gratingActualWavelength.setAlignment(QtCore.Qt.AlignCenter)
        self.gratingActualWavelength.setReadOnly(True)
        self.gratingActualWavelength.setObjectName("gratingActualWavelength")
        self.formLayout_14.setWidget(3, QtWidgets.QFormLayout.FieldRole,
                                     self.gratingActualWavelength)
        self.buttonGratingUpdate = QtWidgets.QPushButton(self.groupBox_9)
        self.buttonGratingUpdate.setObjectName("buttonGratingUpdate")
        self.formLayout_14.setWidget(4, QtWidgets.QFormLayout.LabelRole,
                                     self.buttonGratingUpdate)
        self.buttonGratingState = QtWidgets.QPushButton(self.groupBox_9)
        self.buttonGratingState.setObjectName("buttonGratingState")
        self.formLayout_14.setWidget(4, QtWidgets.QFormLayout.FieldRole,
                                     self.buttonGratingState)
        self.grating600 = QtWidgets.QRadioButton(self.groupBox_9)
        self.grating600.setObjectName("grating600")
        self.formLayout_14.setWidget(1, QtWidgets.QFormLayout.SpanningRole,
                                     self.grating600)
        self.gridLayout_4.addWidget(self.groupBox_9, 3, 4, 1, 1)
        self.groupBox_2 = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox_2.setObjectName("groupBox_2")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.groupBox_2)
        self.verticalLayout.setObjectName("verticalLayout")
        self.userName = QtWidgets.QLineEdit(self.groupBox_2)
        self.userName.setAlignment(QtCore.Qt.AlignCenter)
        self.userName.setReadOnly(True)
        self.userName.setObjectName("userName")
        self.verticalLayout.addWidget(self.userName)
        self.userDropdown = QtWidgets.QComboBox(self.groupBox_2)
        self.userDropdown.setModelColumn(0)
        self.userDropdown.setObjectName("userDropdown")
        self.userDropdown.addItem("")
        self.userDropdown.addItem("")
        self.userDropdown.addItem("")
        self.verticalLayout.addWidget(self.userDropdown)
        self.buttonUserChange = QtWidgets.QPushButton(self.groupBox_2)
        self.buttonUserChange.setObjectName("buttonUserChange")
        self.verticalLayout.addWidget(self.buttonUserChange)
        self.buttonUserOpen = QtWidgets.QPushButton(self.groupBox_2)
        self.buttonUserOpen.setObjectName("buttonUserOpen")
        self.verticalLayout.addWidget(self.buttonUserOpen)
        self.gridLayout_4.addWidget(self.groupBox_2, 3, 6, 1, 1)
        self.groupBox_10 = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox_10.setObjectName("groupBox_10")
        self.formLayout_13 = QtWidgets.QFormLayout(self.groupBox_10)
        self.formLayout_13.setObjectName("formLayout_13")
        self.buttonCameratempCooler = QtWidgets.QPushButton(self.groupBox_10)
        self.buttonCameratempCooler.setObjectName("buttonCameratempCooler")
        self.formLayout_13.setWidget(2, QtWidgets.QFormLayout.SpanningRole,
                                     self.buttonCameratempCooler)
        self.label_19 = QtWidgets.QLabel(self.groupBox_10)
        self.label_19.setObjectName("label_19")
        self.formLayout_13.setWidget(0, QtWidgets.QFormLayout.LabelRole,
                                     self.label_19)
        self.cameratempRequiredTemp = QtWidgets.QSpinBox(self.groupBox_10)
        self.cameratempRequiredTemp.setAlignment(QtCore.Qt.AlignCenter)
        self.cameratempRequiredTemp.setMinimum(-100)
        self.cameratempRequiredTemp.setMaximum(30)
        self.cameratempRequiredTemp.setProperty("value", -80)
        self.cameratempRequiredTemp.setObjectName("cameratempRequiredTemp")
        self.formLayout_13.setWidget(0, QtWidgets.QFormLayout.FieldRole,
                                     self.cameratempRequiredTemp)
        self.cameratempActualTemp = QtWidgets.QLineEdit(self.groupBox_10)
        self.cameratempActualTemp.setAlignment(QtCore.Qt.AlignCenter)
        self.cameratempActualTemp.setReadOnly(True)
        self.cameratempActualTemp.setObjectName("cameratempActualTemp")
        self.formLayout_13.setWidget(1, QtWidgets.QFormLayout.SpanningRole,
                                     self.cameratempActualTemp)
        self.gridLayout_4.addWidget(self.groupBox_10, 1, 4, 1, 1)
        spacerItem4 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.gridLayout_4.addItem(spacerItem4, 3, 1, 1, 1)
        spacerItem5 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.gridLayout_4.addItem(spacerItem5, 2, 2, 1, 1)
        self.gridLayout_4.setColumnStretch(0, 45)
        self.gridLayout_4.setColumnStretch(2, 25)
        self.gridLayout_4.setColumnStretch(4, 15)
        self.gridLayout_4.setColumnStretch(6, 15)
        self.horizontalLayout_3.addLayout(self.gridLayout_4)
        self.gridLayout_5 = QtWidgets.QGridLayout()
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.specwinPrevious = PlotWidget(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.specwinPrevious.sizePolicy().hasHeightForWidth())
        self.specwinPrevious.setSizePolicy(sizePolicy)
        self.specwinPrevious.setObjectName("specwinPrevious")
        self.gridLayout_5.addWidget(self.specwinPrevious, 0, 1, 1, 1)
        self.imagewinMain = ImageView(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.imagewinMain.sizePolicy().hasHeightForWidth())
        self.imagewinMain.setSizePolicy(sizePolicy)
        self.imagewinMain.setObjectName("imagewinMain")
        self.gridLayout_5.addWidget(self.imagewinMain, 0, 0, 1, 1)
        self.gridLayout_5.setColumnStretch(0, 40)
        self.gridLayout_5.setColumnStretch(1, 60)
        self.gridLayout_5.setRowStretch(0, 98)
        self.horizontalLayout_3.addLayout(self.gridLayout_5)
        self.horizontalLayout_3.setStretch(0, 45)
        self.horizontalLayout_3.setStretch(1, 55)
        self.gridLayout.addLayout(self.horizontalLayout_3, 3, 1, 1, 2)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.buttonMainStartAcquisition = QtWidgets.QPushButton(
            self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.buttonMainStartAcquisition.sizePolicy().hasHeightForWidth())
        self.buttonMainStartAcquisition.setSizePolicy(sizePolicy)
        self.buttonMainStartAcquisition.setToolTip("")
        self.buttonMainStartAcquisition.setObjectName(
            "buttonMainStartAcquisition")
        self.horizontalLayout_2.addWidget(self.buttonMainStartAcquisition)
        self.buttonMainShutdown = QtWidgets.QPushButton(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.buttonMainShutdown.sizePolicy().hasHeightForWidth())
        self.buttonMainShutdown.setSizePolicy(sizePolicy)
        self.buttonMainShutdown.setObjectName("buttonMainShutdown")
        self.horizontalLayout_2.addWidget(self.buttonMainShutdown)
        self.mainStatus = QtWidgets.QLineEdit(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mainStatus.sizePolicy().hasHeightForWidth())
        self.mainStatus.setSizePolicy(sizePolicy)
        self.mainStatus.setAlignment(QtCore.Qt.AlignCenter)
        self.mainStatus.setReadOnly(True)
        self.mainStatus.setObjectName("mainStatus")
        self.horizontalLayout_2.addWidget(self.mainStatus)
        self.buttonDialogsDifference = QtWidgets.QPushButton(
            self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.buttonDialogsDifference.sizePolicy().hasHeightForWidth())
        self.buttonDialogsDifference.setSizePolicy(sizePolicy)
        self.buttonDialogsDifference.setObjectName("buttonDialogsDifference")
        self.horizontalLayout_2.addWidget(self.buttonDialogsDifference)
        self.buttonDialogsSum = QtWidgets.QPushButton(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.buttonDialogsSum.sizePolicy().hasHeightForWidth())
        self.buttonDialogsSum.setSizePolicy(sizePolicy)
        self.buttonDialogsSum.setObjectName("buttonDialogsSum")
        self.horizontalLayout_2.addWidget(self.buttonDialogsSum)
        self.horizontalLayout_2.setStretch(0, 10)
        self.horizontalLayout_2.setStretch(1, 10)
        self.horizontalLayout_2.setStretch(2, 70)
        self.horizontalLayout_2.setStretch(3, 5)
        self.horizontalLayout_2.setStretch(4, 5)
        self.gridLayout.addLayout(self.horizontalLayout_2, 1, 1, 1, 2)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout()
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.specwinMain = PlotWidget(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.specwinMain.sizePolicy().hasHeightForWidth())
        self.specwinMain.setSizePolicy(sizePolicy)
        self.specwinMain.setObjectName("specwinMain")
        self.verticalLayout_3.addWidget(self.specwinMain)
        self.horizontalLayout_4.addLayout(self.verticalLayout_3)
        self.horizontalLayout_4.setStretch(0, 95)
        self.gridLayout.addLayout(self.horizontalLayout_4, 0, 1, 1, 2)
        self.progressbar = QtWidgets.QProgressBar(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.progressbar.sizePolicy().hasHeightForWidth())
        self.progressbar.setSizePolicy(sizePolicy)
        self.progressbar.setProperty("value", 64)
        self.progressbar.setObjectName("progressbar")
        self.gridLayout.addWidget(self.progressbar, 4, 1, 1, 2)
        self.gridLayout.setRowStretch(0, 66)
        self.gridLayout.setRowStretch(1, 4)
        self.gridLayout.setRowStretch(3, 30)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1489, 21))
        self.menubar.setObjectName("menubar")
        self.menuFile = QtWidgets.QMenu(self.menubar)
        self.menuFile.setObjectName("menuFile")
        MainWindow.setMenuBar(self.menubar)
        self.actionOpen_Hyperspectral_Viewer = QtWidgets.QAction(MainWindow)
        self.actionOpen_Hyperspectral_Viewer.setObjectName(
            "actionOpen_Hyperspectral_Viewer")
        self.actionOpen_Sum_Spectrum = QtWidgets.QAction(MainWindow)
        self.actionOpen_Sum_Spectrum.setObjectName("actionOpen_Sum_Spectrum")
        self.actionOpen_Difference_Spectrum = QtWidgets.QAction(MainWindow)
        self.actionOpen_Difference_Spectrum.setObjectName(
            "actionOpen_Difference_Spectrum")
        self.actionExit = QtWidgets.QAction(MainWindow)
        self.actionExit.setObjectName("actionExit")
        self.actionOpen_Data_Folder = QtWidgets.QAction(MainWindow)
        self.actionOpen_Data_Folder.setObjectName("actionOpen_Data_Folder")
        self.actionOpen_Hyperspectral_View = QtWidgets.QAction(MainWindow)
        self.actionOpen_Hyperspectral_View.setObjectName(
            "actionOpen_Hyperspectral_View")
        self.menuFile.addAction(self.actionOpen_Data_Folder)
        self.menuFile.addAction(self.actionOpen_Hyperspectral_View)
        self.menubar.addAction(self.menuFile.menuAction())

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
        MainWindow.setTabOrder(self.specwinMain,
                               self.buttonMainStartAcquisition)
        MainWindow.setTabOrder(self.buttonMainStartAcquisition,
                               self.mainStatus)
        MainWindow.setTabOrder(self.mainStatus, self.camtrackLower1)
        MainWindow.setTabOrder(self.camtrackLower1, self.camtrackUpper1)
        MainWindow.setTabOrder(self.camtrackUpper1, self.camtrackLower2)
        MainWindow.setTabOrder(self.camtrackLower2, self.camtrackUpper2)
        MainWindow.setTabOrder(self.camtrackUpper2, self.buttonCamtrackUpdate)
        MainWindow.setTabOrder(self.buttonCamtrackUpdate,
                               self.buttonCamtrackView)
        MainWindow.setTabOrder(self.buttonCamtrackView,
                               self.spectralRequiredTime)
        MainWindow.setTabOrder(self.spectralRequiredTime,
                               self.spectralBackgroundFrames)
        MainWindow.setTabOrder(self.spectralBackgroundFrames,
                               self.spectralActualTime)
        MainWindow.setTabOrder(self.spectralActualTime, self.spectralFrames)
        MainWindow.setTabOrder(self.spectralFrames, self.buttonSpectralUpdate)
        MainWindow.setTabOrder(self.buttonSpectralUpdate,
                               self.buttonSpectralStart)
        MainWindow.setTabOrder(self.buttonSpectralStart,
                               self.cameratempRequiredTemp)
        MainWindow.setTabOrder(self.cameratempRequiredTemp,
                               self.cameratempActualTemp)
        MainWindow.setTabOrder(self.cameratempActualTemp,
                               self.buttonCameratempCooler)
        MainWindow.setTabOrder(self.buttonCameratempCooler, self.eventLogger)
        MainWindow.setTabOrder(self.eventLogger,
                               self.hyperspectralRequiredTime)
        MainWindow.setTabOrder(self.hyperspectralRequiredTime,
                               self.hyperspectralBackgroundFrames)
        MainWindow.setTabOrder(self.hyperspectralBackgroundFrames,
                               self.hyperspectralXPix)
        MainWindow.setTabOrder(self.hyperspectralXPix,
                               self.hyperspectralXYStep)
        MainWindow.setTabOrder(self.hyperspectralXYStep,
                               self.hyperspectralYPix)
        MainWindow.setTabOrder(self.hyperspectralYPix, self.hyperspectralZStep)
        MainWindow.setTabOrder(self.hyperspectralZStep, self.hyperspectralZPix)
        MainWindow.setTabOrder(self.hyperspectralZPix,
                               self.hyperspectralEstTime)
        MainWindow.setTabOrder(self.hyperspectralEstTime,
                               self.buttonHyperspectralTime)
        MainWindow.setTabOrder(self.buttonHyperspectralTime,
                               self.buttonHyperspectralStart)
        MainWindow.setTabOrder(self.buttonHyperspectralStart, self.grating150)
        MainWindow.setTabOrder(self.grating150, self.grating600)
        MainWindow.setTabOrder(self.grating600, self.gratingRequiredWavelength)
        MainWindow.setTabOrder(self.gratingRequiredWavelength,
                               self.gratingActualWavelength)
        MainWindow.setTabOrder(self.gratingActualWavelength,
                               self.buttonGratingUpdate)
        MainWindow.setTabOrder(self.buttonGratingUpdate,
                               self.buttonGratingState)
        MainWindow.setTabOrder(self.buttonGratingState, self.imagewinMain)
        MainWindow.setTabOrder(self.imagewinMain, self.specwinPrevious)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
        self.groupBox_4.setTitle(
            _translate("MainWindow", "Camera Track Options"))
        self.label.setText(_translate("MainWindow", "Lower (1):"))
        self.buttonCamtrackUpdate.setText(
            _translate("MainWindow", "Update Tracks"))
        self.label_2.setText(_translate("MainWindow", "Upper (1):"))
        self.label_3.setText(_translate("MainWindow", "Lower (2):"))
        self.buttonCamtrackView.setText(
            _translate("MainWindow", "View CCD Tracks"))
        self.label_4.setText(_translate("MainWindow", "Upper (2):"))
        self.groupBox_5.setTitle(
            _translate("MainWindow", "Spectral Acquisition"))
        self.label_7.setText(_translate("MainWindow", "Background frames:"))
        self.label_8.setText(_translate("MainWindow", "Spectral frames:"))
        self.buttonSpectralStart.setText(
            _translate("MainWindow", "Start Spectral Acquisition"))
        self.label_5.setText(_translate("MainWindow", "Exposure Time (s):"))
        self.label_6.setText(_translate("MainWindow", "Actual Exp. Time (s):"))
        self.buttonSpectralUpdate.setText(
            _translate("MainWindow", "Update Time"))
        self.groupBox.setTitle(_translate("MainWindow", "Camera Gain"))
        self.buttonGain.setText(_translate("MainWindow", "0: Update"))
        self.groupBox_7.setTitle(
            _translate("MainWindow", "Hyperspectral Acquisition"))
        self.buttonHyperspectralTime.setText(
            _translate("MainWindow", "Update Est. Time"))
        self.buttonHyperspectralStart.setText(
            _translate("MainWindow", "Start Hyperspectral Acquisition"))
        self.label_13.setText(_translate("MainWindow", "Background frames: "))
        self.label_14.setText(_translate("MainWindow", "XY Step Size (μm): "))
        self.label_15.setText(_translate("MainWindow", "Z Step Size (μm):"))
        self.label_16.setText(
            _translate("MainWindow", "Estimated Time (min): "))
        self.label_9.setText(_translate("MainWindow", "Exposure Time (s):  "))
        self.label_10.setText(_translate("MainWindow", "No. of X Pixels:"))
        self.label_11.setText(_translate("MainWindow", "No. of Y Pixels:"))
        self.label_12.setText(_translate("MainWindow", "No. of Z Pixels:"))
        self.groupBox_6.setTitle(_translate("MainWindow", "Event Logger"))
        self.groupBox_9.setTitle(
            _translate("MainWindow", "Spectrometer Grating"))
        self.grating150.setText(_translate("MainWindow", "150 lines/mm"))
        self.label_20.setText(_translate("MainWindow", "Req. λ (nm):"))
        self.label_17.setText(_translate("MainWindow", "Actual λ (nm):"))
        self.buttonGratingUpdate.setText(_translate("MainWindow", "Update"))
        self.buttonGratingState.setText(_translate("MainWindow", "Turn Off"))
        self.grating600.setText(_translate("MainWindow", "600 lines/mm"))
        self.groupBox_2.setTitle(_translate("MainWindow", "User Details"))
        self.userDropdown.setItemText(0, _translate("MainWindow", "Guest"))
        self.userDropdown.setItemText(1, _translate("MainWindow", "Priyank"))
        self.userDropdown.setItemText(2, _translate("MainWindow", "Tao"))
        self.buttonUserChange.setText(_translate("MainWindow", "Change User"))
        self.buttonUserOpen.setText(_translate("MainWindow", "Open Folder"))
        self.groupBox_10.setTitle(
            _translate("MainWindow", "Camera Temperature"))
        self.buttonCameratempCooler.setText(
            _translate("MainWindow", "Cooler On"))
        self.label_19.setText(_translate("MainWindow", "Temp:"))
        self.buttonMainStartAcquisition.setText(
            _translate("MainWindow", "Start Acquisition"))
        self.buttonMainShutdown.setText(_translate("MainWindow", "Shut Down"))
        self.buttonDialogsDifference.setText(
            _translate("MainWindow", "Difference Plot"))
        self.buttonDialogsSum.setText(_translate("MainWindow", "Sum Plot"))
        self.menuFile.setTitle(_translate("MainWindow", "File"))
        self.actionOpen_Hyperspectral_Viewer.setText(
            _translate("MainWindow", "Open Hyperspectral Viewer"))
        self.actionOpen_Hyperspectral_Viewer.setShortcut(
            _translate("MainWindow", "Ctrl+H"))
        self.actionOpen_Sum_Spectrum.setText(
            _translate("MainWindow", "Open Sum Spectrum"))
        self.actionOpen_Difference_Spectrum.setText(
            _translate("MainWindow", "Open Difference Spectrum"))
        self.actionExit.setText(_translate("MainWindow", "Exit"))
        self.actionOpen_Data_Folder.setText(
            _translate("MainWindow", "Open Data Folder"))
        self.actionOpen_Hyperspectral_View.setText(
            _translate("MainWindow", "Open Hyperspectral Viewer"))
Exemplo n.º 19
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1134, 846)
        MainWindow.setMinimumSize(QtCore.QSize(1000, 800))
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout_40 = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout_40.setObjectName("gridLayout_40")
        self.gridLayout_39 = QtWidgets.QGridLayout()
        self.gridLayout_39.setObjectName("gridLayout_39")
        self.gridLayout_38 = QtWidgets.QGridLayout()
        self.gridLayout_38.setObjectName("gridLayout_38")
        self.groupBox = QtWidgets.QGroupBox(self.centralwidget)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.groupBox.setFont(font)
        self.groupBox.setTitle("")
        self.groupBox.setFlat(False)
        self.groupBox.setObjectName("groupBox")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBox)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.gridLayout_10 = QtWidgets.QGridLayout()
        self.gridLayout_10.setObjectName("gridLayout_10")
        self.groupBox_3 = QtWidgets.QGroupBox(self.groupBox)
        self.groupBox_3.setObjectName("groupBox_3")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox_3)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.img1_original = ImageView(self.groupBox_3)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.img1_original.sizePolicy().hasHeightForWidth())
        self.img1_original.setSizePolicy(sizePolicy)
        self.img1_original.setMinimumSize(QtCore.QSize(0, 0))
        self.img1_original.setObjectName("img1_original")
        self.gridLayout_2.addWidget(self.img1_original, 0, 0, 1, 1)
        self.gridLayout_10.addWidget(self.groupBox_3, 0, 0, 1, 1)
        self.groupBox_2 = QtWidgets.QGroupBox(self.groupBox)
        self.groupBox_2.setObjectName("groupBox_2")
        self.gridLayout = QtWidgets.QGridLayout(self.groupBox_2)
        self.gridLayout.setObjectName("gridLayout")
        self.img1_updated = ImageView(self.groupBox_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.img1_updated.sizePolicy().hasHeightForWidth())
        self.img1_updated.setSizePolicy(sizePolicy)
        self.img1_updated.setMinimumSize(QtCore.QSize(0, 0))
        self.img1_updated.setObjectName("img1_updated")
        self.gridLayout.addWidget(self.img1_updated, 0, 0, 1, 1)
        self.gridLayout_10.addWidget(self.groupBox_2, 0, 1, 1, 1)
        self.gridLayout_3.addLayout(self.gridLayout_10, 2, 0, 1, 1)
        self.gridLayout_16 = QtWidgets.QGridLayout()
        self.gridLayout_16.setSizeConstraint(
            QtWidgets.QLayout.SetDefaultConstraint)
        self.gridLayout_16.setObjectName("gridLayout_16")
        self.label_img1 = QtWidgets.QLabel(self.groupBox)
        font = QtGui.QFont()
        font.setPointSize(14)
        self.label_img1.setFont(font)
        self.label_img1.setStyleSheet("")
        self.label_img1.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.label_img1.setFrameShadow(QtWidgets.QFrame.Raised)
        self.label_img1.setObjectName("label_img1")
        self.gridLayout_16.addWidget(self.label_img1, 0, 0, 1, 1)
        self.combo_input1 = QtWidgets.QComboBox(self.groupBox)
        self.combo_input1.setEnabled(False)
        self.combo_input1.setMinimumSize(QtCore.QSize(200, 30))
        self.combo_input1.setAcceptDrops(False)
        self.combo_input1.setIconSize(QtCore.QSize(20, 20))
        self.combo_input1.setObjectName("combo_input1")
        self.combo_input1.addItem("")
        self.combo_input1.addItem("")
        self.combo_input1.addItem("")
        self.combo_input1.addItem("")
        self.combo_input1.addItem("")
        self.gridLayout_16.addWidget(self.combo_input1, 0, 1, 1, 1)
        self.gridLayout_3.addLayout(self.gridLayout_16, 0, 0, 1, 1)
        self.line = QtWidgets.QFrame(self.groupBox)
        self.line.setFrameShape(QtWidgets.QFrame.HLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.gridLayout_3.addWidget(self.line, 1, 0, 1, 1)
        self.gridLayout_38.addWidget(self.groupBox, 0, 0, 1, 1)
        self.groupBox_4 = QtWidgets.QGroupBox(self.centralwidget)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.groupBox_4.setFont(font)
        self.groupBox_4.setTitle("")
        self.groupBox_4.setFlat(False)
        self.groupBox_4.setObjectName("groupBox_4")
        self.gridLayout_4 = QtWidgets.QGridLayout(self.groupBox_4)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.line_2 = QtWidgets.QFrame(self.groupBox_4)
        self.line_2.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_2.setObjectName("line_2")
        self.gridLayout_4.addWidget(self.line_2, 1, 0, 1, 1)
        self.gridLayout_14 = QtWidgets.QGridLayout()
        self.gridLayout_14.setObjectName("gridLayout_14")
        self.groupBox_5 = QtWidgets.QGroupBox(self.groupBox_4)
        self.groupBox_5.setObjectName("groupBox_5")
        self.gridLayout_5 = QtWidgets.QGridLayout(self.groupBox_5)
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.img2_original = ImageView(self.groupBox_5)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.img2_original.sizePolicy().hasHeightForWidth())
        self.img2_original.setSizePolicy(sizePolicy)
        self.img2_original.setMinimumSize(QtCore.QSize(0, 0))
        self.img2_original.setObjectName("img2_original")
        self.gridLayout_5.addWidget(self.img2_original, 0, 0, 1, 1)
        self.gridLayout_14.addWidget(self.groupBox_5, 0, 0, 1, 1)
        self.groupBox_6 = QtWidgets.QGroupBox(self.groupBox_4)
        self.groupBox_6.setObjectName("groupBox_6")
        self.gridLayout_6 = QtWidgets.QGridLayout(self.groupBox_6)
        self.gridLayout_6.setObjectName("gridLayout_6")
        self.img2_updated = ImageView(self.groupBox_6)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.img2_updated.sizePolicy().hasHeightForWidth())
        self.img2_updated.setSizePolicy(sizePolicy)
        self.img2_updated.setMinimumSize(QtCore.QSize(0, 0))
        self.img2_updated.setObjectName("img2_updated")
        self.gridLayout_6.addWidget(self.img2_updated, 0, 0, 1, 1)
        self.gridLayout_14.addWidget(self.groupBox_6, 0, 1, 1, 1)
        self.gridLayout_4.addLayout(self.gridLayout_14, 2, 0, 1, 1)
        self.gridLayout_19 = QtWidgets.QGridLayout()
        self.gridLayout_19.setSizeConstraint(
            QtWidgets.QLayout.SetDefaultConstraint)
        self.gridLayout_19.setObjectName("gridLayout_19")
        self.label_img2 = QtWidgets.QLabel(self.groupBox_4)
        font = QtGui.QFont()
        font.setPointSize(14)
        self.label_img2.setFont(font)
        self.label_img2.setStyleSheet("")
        self.label_img2.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.label_img2.setFrameShadow(QtWidgets.QFrame.Raised)
        self.label_img2.setObjectName("label_img2")
        self.gridLayout_19.addWidget(self.label_img2, 0, 0, 1, 1)
        self.combo_input2 = QtWidgets.QComboBox(self.groupBox_4)
        self.combo_input2.setEnabled(False)
        self.combo_input2.setMinimumSize(QtCore.QSize(200, 30))
        self.combo_input2.setAcceptDrops(False)
        self.combo_input2.setIconSize(QtCore.QSize(20, 20))
        self.combo_input2.setObjectName("combo_input2")
        self.combo_input2.addItem("")
        self.combo_input2.addItem("")
        self.combo_input2.addItem("")
        self.combo_input2.addItem("")
        self.combo_input2.addItem("")
        self.gridLayout_19.addWidget(self.combo_input2, 0, 1, 1, 1)
        self.gridLayout_4.addLayout(self.gridLayout_19, 0, 0, 1, 1)
        self.gridLayout_38.addWidget(self.groupBox_4, 1, 0, 1, 1)
        self.gridLayout_39.addLayout(self.gridLayout_38, 0, 0, 1, 1)
        self.gridLayout_9 = QtWidgets.QGridLayout()
        self.gridLayout_9.setObjectName("gridLayout_9")
        self.groupBox_7 = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox_7.setTitle("")
        self.groupBox_7.setObjectName("groupBox_7")
        self.gridLayout_20 = QtWidgets.QGridLayout(self.groupBox_7)
        self.gridLayout_20.setObjectName("gridLayout_20")
        self.gridLayout_21 = QtWidgets.QGridLayout()
        self.gridLayout_21.setObjectName("gridLayout_21")
        self.label = QtWidgets.QLabel(self.groupBox_7)
        font = QtGui.QFont()
        font.setPointSize(16)
        self.label.setFont(font)
        self.label.setObjectName("label")
        self.gridLayout_21.addWidget(self.label, 0, 0, 1, 1)
        self.combo_output = QtWidgets.QComboBox(self.groupBox_7)
        self.combo_output.setEnabled(False)
        self.combo_output.setMinimumSize(QtCore.QSize(30, 30))
        self.combo_output.setAcceptDrops(False)
        self.combo_output.setIconSize(QtCore.QSize(20, 20))
        self.combo_output.setObjectName("combo_output")
        self.combo_output.addItem("")
        self.combo_output.addItem("")
        self.gridLayout_21.addWidget(self.combo_output, 0, 1, 1, 1)
        self.gridLayout_20.addLayout(self.gridLayout_21, 0, 0, 1, 1)
        self.line_3 = QtWidgets.QFrame(self.groupBox_7)
        self.line_3.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_3.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_3.setObjectName("line_3")
        self.gridLayout_20.addWidget(self.line_3, 1, 0, 1, 1)
        self.gridLayout_22 = QtWidgets.QGridLayout()
        self.gridLayout_22.setObjectName("gridLayout_22")
        self.gridLayout_23 = QtWidgets.QGridLayout()
        self.gridLayout_23.setObjectName("gridLayout_23")
        spacerItem = QtWidgets.QSpacerItem(
            20, 10, QtWidgets.QSizePolicy.Minimum,
            QtWidgets.QSizePolicy.MinimumExpanding)
        self.gridLayout_23.addItem(spacerItem, 0, 0, 1, 1)
        self.label_comp1 = QtWidgets.QLabel(self.groupBox_7)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_comp1.setFont(font)
        self.label_comp1.setObjectName("label_comp1")
        self.gridLayout_23.addWidget(self.label_comp1, 1, 0, 1, 1)
        spacerItem1 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.gridLayout_23.addItem(spacerItem1, 2, 0, 1, 1)
        self.gridLayout_22.addLayout(self.gridLayout_23, 0, 0, 1, 1)
        self.gridLayout_32 = QtWidgets.QGridLayout()
        self.gridLayout_32.setObjectName("gridLayout_32")
        self.gridLayout_33 = QtWidgets.QGridLayout()
        self.gridLayout_33.setObjectName("gridLayout_33")
        self.gridLayout_34 = QtWidgets.QGridLayout()
        self.gridLayout_34.setObjectName("gridLayout_34")
        spacerItem2 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.gridLayout_34.addItem(spacerItem2, 0, 0, 1, 1)
        self.combo_select_img1 = QtWidgets.QComboBox(self.groupBox_7)
        self.combo_select_img1.setEnabled(False)
        self.combo_select_img1.setMinimumSize(QtCore.QSize(0, 30))
        self.combo_select_img1.setAcceptDrops(False)
        self.combo_select_img1.setIconSize(QtCore.QSize(20, 20))
        self.combo_select_img1.setObjectName("combo_select_img1")
        self.combo_select_img1.addItem("")
        self.combo_select_img1.addItem("")
        self.gridLayout_34.addWidget(self.combo_select_img1, 1, 0, 1, 1)
        self.gridLayout_33.addLayout(self.gridLayout_34, 0, 0, 1, 1)
        self.gridLayout_35 = QtWidgets.QGridLayout()
        self.gridLayout_35.setObjectName("gridLayout_35")
        self.gridLayout_36 = QtWidgets.QGridLayout()
        self.gridLayout_36.setObjectName("gridLayout_36")
        spacerItem3 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.gridLayout_36.addItem(spacerItem3, 0, 0, 1, 1)
        self.gridLayout_37 = QtWidgets.QGridLayout()
        self.gridLayout_37.setObjectName("gridLayout_37")
        self.label_6 = QtWidgets.QLabel(self.groupBox_7)
        self.label_6.setObjectName("label_6")
        self.gridLayout_37.addWidget(self.label_6, 0, 0, 1, 1)
        spacerItem4 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.gridLayout_37.addItem(spacerItem4, 0, 1, 1, 1)
        self.label_7 = QtWidgets.QLabel(self.groupBox_7)
        self.label_7.setObjectName("label_7")
        self.gridLayout_37.addWidget(self.label_7, 0, 2, 1, 1)
        self.gridLayout_36.addLayout(self.gridLayout_37, 1, 0, 1, 1)
        self.slider_comp1 = QtWidgets.QSlider(self.groupBox_7)
        self.slider_comp1.setEnabled(False)
        self.slider_comp1.setMaximum(100)
        self.slider_comp1.setSingleStep(10)
        self.slider_comp1.setOrientation(QtCore.Qt.Horizontal)
        self.slider_comp1.setTickPosition(QtWidgets.QSlider.TicksAbove)
        self.slider_comp1.setObjectName("slider_comp1")
        self.gridLayout_36.addWidget(self.slider_comp1, 3, 0, 1, 1)
        self.gridLayout_35.addLayout(self.gridLayout_36, 0, 0, 1, 1)
        self.gridLayout_33.addLayout(self.gridLayout_35, 0, 1, 1, 1)
        self.gridLayout_32.addLayout(self.gridLayout_33, 0, 0, 1, 1)
        self.combo_select_mode1 = QtWidgets.QComboBox(self.groupBox_7)
        self.combo_select_mode1.setEnabled(False)
        self.combo_select_mode1.setMinimumSize(QtCore.QSize(0, 30))
        self.combo_select_mode1.setAcceptDrops(False)
        self.combo_select_mode1.setIconSize(QtCore.QSize(20, 20))
        self.combo_select_mode1.setObjectName("combo_select_mode1")
        self.combo_select_mode1.addItem("")
        self.combo_select_mode1.addItem("")
        self.combo_select_mode1.addItem("")
        self.combo_select_mode1.addItem("")
        self.combo_select_mode1.addItem("")
        self.combo_select_mode1.addItem("")
        self.combo_select_mode1.addItem("")
        self.gridLayout_32.addWidget(self.combo_select_mode1, 1, 0, 1, 1)
        self.gridLayout_22.addLayout(self.gridLayout_32, 0, 1, 1, 1)
        self.gridLayout_20.addLayout(self.gridLayout_22, 2, 0, 1, 1)
        self.gridLayout_24 = QtWidgets.QGridLayout()
        self.gridLayout_24.setObjectName("gridLayout_24")
        self.gridLayout_25 = QtWidgets.QGridLayout()
        self.gridLayout_25.setObjectName("gridLayout_25")
        spacerItem5 = QtWidgets.QSpacerItem(
            20, 10, QtWidgets.QSizePolicy.Minimum,
            QtWidgets.QSizePolicy.MinimumExpanding)
        self.gridLayout_25.addItem(spacerItem5, 0, 0, 1, 1)
        self.label_comp2 = QtWidgets.QLabel(self.groupBox_7)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_comp2.setFont(font)
        self.label_comp2.setObjectName("label_comp2")
        self.gridLayout_25.addWidget(self.label_comp2, 1, 0, 1, 1)
        spacerItem6 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.gridLayout_25.addItem(spacerItem6, 2, 0, 1, 1)
        self.gridLayout_24.addLayout(self.gridLayout_25, 0, 0, 1, 1)
        self.gridLayout_26 = QtWidgets.QGridLayout()
        self.gridLayout_26.setObjectName("gridLayout_26")
        self.gridLayout_27 = QtWidgets.QGridLayout()
        self.gridLayout_27.setObjectName("gridLayout_27")
        self.gridLayout_28 = QtWidgets.QGridLayout()
        self.gridLayout_28.setObjectName("gridLayout_28")
        spacerItem7 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.gridLayout_28.addItem(spacerItem7, 0, 0, 1, 1)
        self.combo_select_img2 = QtWidgets.QComboBox(self.groupBox_7)
        self.combo_select_img2.setEnabled(False)
        self.combo_select_img2.setMinimumSize(QtCore.QSize(0, 30))
        self.combo_select_img2.setAcceptDrops(False)
        self.combo_select_img2.setIconSize(QtCore.QSize(20, 20))
        self.combo_select_img2.setObjectName("combo_select_img2")
        self.combo_select_img2.addItem("")
        self.combo_select_img2.addItem("")
        self.gridLayout_28.addWidget(self.combo_select_img2, 1, 0, 1, 1)
        self.gridLayout_27.addLayout(self.gridLayout_28, 0, 0, 1, 1)
        self.gridLayout_29 = QtWidgets.QGridLayout()
        self.gridLayout_29.setObjectName("gridLayout_29")
        self.gridLayout_30 = QtWidgets.QGridLayout()
        self.gridLayout_30.setObjectName("gridLayout_30")
        spacerItem8 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.gridLayout_30.addItem(spacerItem8, 0, 0, 1, 1)
        self.gridLayout_31 = QtWidgets.QGridLayout()
        self.gridLayout_31.setObjectName("gridLayout_31")
        self.label_8 = QtWidgets.QLabel(self.groupBox_7)
        self.label_8.setObjectName("label_8")
        self.gridLayout_31.addWidget(self.label_8, 0, 0, 1, 1)
        spacerItem9 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.gridLayout_31.addItem(spacerItem9, 0, 1, 1, 1)
        self.label_9 = QtWidgets.QLabel(self.groupBox_7)
        self.label_9.setObjectName("label_9")
        self.gridLayout_31.addWidget(self.label_9, 0, 2, 1, 1)
        self.gridLayout_30.addLayout(self.gridLayout_31, 1, 0, 1, 1)
        self.slider_comp2 = QtWidgets.QSlider(self.groupBox_7)
        self.slider_comp2.setEnabled(False)
        self.slider_comp2.setMaximum(100)
        self.slider_comp2.setSingleStep(10)
        self.slider_comp2.setOrientation(QtCore.Qt.Horizontal)
        self.slider_comp2.setTickPosition(QtWidgets.QSlider.TicksAbove)
        self.slider_comp2.setObjectName("slider_comp2")
        self.gridLayout_30.addWidget(self.slider_comp2, 2, 0, 1, 1)
        self.gridLayout_29.addLayout(self.gridLayout_30, 0, 0, 1, 1)
        self.gridLayout_27.addLayout(self.gridLayout_29, 0, 1, 1, 1)
        self.gridLayout_26.addLayout(self.gridLayout_27, 0, 0, 1, 1)
        self.combo_select_mode2 = QtWidgets.QComboBox(self.groupBox_7)
        self.combo_select_mode2.setEnabled(False)
        self.combo_select_mode2.setMinimumSize(QtCore.QSize(0, 30))
        self.combo_select_mode2.setAcceptDrops(False)
        self.combo_select_mode2.setIconSize(QtCore.QSize(20, 20))
        self.combo_select_mode2.setObjectName("combo_select_mode2")
        self.combo_select_mode2.addItem("")
        self.combo_select_mode2.addItem("")
        self.combo_select_mode2.addItem("")
        self.combo_select_mode2.addItem("")
        self.combo_select_mode2.addItem("")
        self.combo_select_mode2.addItem("")
        self.combo_select_mode2.addItem("")
        self.gridLayout_26.addWidget(self.combo_select_mode2, 1, 0, 1, 1)
        self.gridLayout_24.addLayout(self.gridLayout_26, 0, 1, 1, 1)
        self.gridLayout_20.addLayout(self.gridLayout_24, 4, 0, 1, 1)
        spacerItem10 = QtWidgets.QSpacerItem(20, 40,
                                             QtWidgets.QSizePolicy.Minimum,
                                             QtWidgets.QSizePolicy.Expanding)
        self.gridLayout_20.addItem(spacerItem10, 3, 0, 1, 1)
        self.gridLayout_9.addWidget(self.groupBox_7, 0, 0, 1, 1)
        self.groupBox_10 = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox_10.setTitle("")
        self.groupBox_10.setObjectName("groupBox_10")
        self.gridLayout_11 = QtWidgets.QGridLayout(self.groupBox_10)
        self.gridLayout_11.setObjectName("gridLayout_11")
        self.gridLayout_12 = QtWidgets.QGridLayout()
        self.gridLayout_12.setObjectName("gridLayout_12")
        self.gridLayout_13 = QtWidgets.QGridLayout()
        self.gridLayout_13.setObjectName("gridLayout_13")
        self.label_output1 = QtWidgets.QLabel(self.groupBox_10)
        font = QtGui.QFont()
        font.setPointSize(14)
        self.label_output1.setFont(font)
        self.label_output1.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.label_output1.setAlignment(QtCore.Qt.AlignCenter)
        self.label_output1.setObjectName("label_output1")
        self.gridLayout_13.addWidget(self.label_output1, 0, 0, 1, 1)
        self.groupBox_8 = QtWidgets.QGroupBox(self.groupBox_10)
        self.groupBox_8.setTitle("")
        self.groupBox_8.setObjectName("groupBox_8")
        self.gridLayout_7 = QtWidgets.QGridLayout(self.groupBox_8)
        self.gridLayout_7.setObjectName("gridLayout_7")
        self.gridLayout_17 = QtWidgets.QGridLayout()
        self.gridLayout_17.setObjectName("gridLayout_17")
        self.output_img1 = ImageView(self.groupBox_8)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.output_img1.sizePolicy().hasHeightForWidth())
        self.output_img1.setSizePolicy(sizePolicy)
        self.output_img1.setMinimumSize(QtCore.QSize(0, 0))
        self.output_img1.setObjectName("output_img1")
        self.gridLayout_17.addWidget(self.output_img1, 0, 0, 1, 1)
        self.gridLayout_7.addLayout(self.gridLayout_17, 0, 0, 1, 1)
        self.gridLayout_13.addWidget(self.groupBox_8, 1, 0, 1, 1)
        self.gridLayout_12.addLayout(self.gridLayout_13, 0, 0, 1, 1)
        self.gridLayout_15 = QtWidgets.QGridLayout()
        self.gridLayout_15.setObjectName("gridLayout_15")
        self.label_output2 = QtWidgets.QLabel(self.groupBox_10)
        font = QtGui.QFont()
        font.setPointSize(14)
        self.label_output2.setFont(font)
        self.label_output2.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.label_output2.setAlignment(QtCore.Qt.AlignCenter)
        self.label_output2.setObjectName("label_output2")
        self.gridLayout_15.addWidget(self.label_output2, 0, 0, 1, 1)
        self.groupBox_9 = QtWidgets.QGroupBox(self.groupBox_10)
        self.groupBox_9.setTitle("")
        self.groupBox_9.setObjectName("groupBox_9")
        self.gridLayout_8 = QtWidgets.QGridLayout(self.groupBox_9)
        self.gridLayout_8.setObjectName("gridLayout_8")
        self.gridLayout_18 = QtWidgets.QGridLayout()
        self.gridLayout_18.setObjectName("gridLayout_18")
        self.output_img2 = ImageView(self.groupBox_9)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.output_img2.sizePolicy().hasHeightForWidth())
        self.output_img2.setSizePolicy(sizePolicy)
        self.output_img2.setMinimumSize(QtCore.QSize(0, 0))
        self.output_img2.setObjectName("output_img2")
        self.gridLayout_18.addWidget(self.output_img2, 0, 0, 1, 1)
        self.gridLayout_8.addLayout(self.gridLayout_18, 0, 0, 1, 1)
        self.gridLayout_15.addWidget(self.groupBox_9, 1, 0, 1, 1)
        self.gridLayout_12.addLayout(self.gridLayout_15, 0, 2, 1, 1)
        spacerItem11 = QtWidgets.QSpacerItem(20, 40,
                                             QtWidgets.QSizePolicy.Minimum,
                                             QtWidgets.QSizePolicy.Expanding)
        self.gridLayout_12.addItem(spacerItem11, 0, 1, 1, 1)
        self.gridLayout_11.addLayout(self.gridLayout_12, 1, 0, 1, 1)
        spacerItem12 = QtWidgets.QSpacerItem(500, 20,
                                             QtWidgets.QSizePolicy.Fixed,
                                             QtWidgets.QSizePolicy.Minimum)
        self.gridLayout_11.addItem(spacerItem12, 0, 0, 1, 1)
        self.gridLayout_9.addWidget(self.groupBox_10, 1, 0, 1, 1)
        self.gridLayout_39.addLayout(self.gridLayout_9, 0, 1, 1, 1)
        self.gridLayout_40.addLayout(self.gridLayout_39, 0, 0, 1, 1)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1134, 26))
        self.menubar.setObjectName("menubar")
        self.menuLoad = QtWidgets.QMenu(self.menubar)
        self.menuLoad.setObjectName("menuLoad")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.actionImage1 = QtWidgets.QAction(MainWindow)
        self.actionImage1.setObjectName("actionImage1")
        self.actionImage2 = QtWidgets.QAction(MainWindow)
        self.actionImage2.setObjectName("actionImage2")
        self.menuLoad.addAction(self.actionImage1)
        self.menuLoad.addAction(self.actionImage2)
        self.menubar.addAction(self.menuLoad.menuAction())

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

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
        self.groupBox_3.setTitle(_translate("MainWindow", "Original Image"))
        self.groupBox_2.setTitle(_translate("MainWindow", "Updated Image"))
        self.label_img1.setText(_translate("MainWindow", "Image 1"))
        self.combo_input1.setItemText(
            0, _translate("MainWindow", "Choose FT Component"))
        self.combo_input1.setItemText(1, _translate("MainWindow", "Magnitude"))
        self.combo_input1.setItemText(2, _translate("MainWindow", "Phase"))
        self.combo_input1.setItemText(3, _translate("MainWindow", "Real"))
        self.combo_input1.setItemText(4, _translate("MainWindow", "Imaginary"))
        self.groupBox_5.setTitle(_translate("MainWindow", "Original Image"))
        self.groupBox_6.setTitle(_translate("MainWindow", "Updated Image"))
        self.label_img2.setText(_translate("MainWindow", "Image 2"))
        self.combo_input2.setItemText(
            0, _translate("MainWindow", "Choose FT Component"))
        self.combo_input2.setItemText(1, _translate("MainWindow", "Magnitude"))
        self.combo_input2.setItemText(2, _translate("MainWindow", "Phase"))
        self.combo_input2.setItemText(3, _translate("MainWindow", "Real"))
        self.combo_input2.setItemText(4, _translate("MainWindow", "Imaginary"))
        self.label.setText(_translate("MainWindow", "Mixer Output to:"))
        self.combo_output.setItemText(0, _translate("MainWindow", "Output1"))
        self.combo_output.setItemText(1, _translate("MainWindow", "Output2"))
        self.label_comp1.setText(_translate("MainWindow", "Component 1:"))
        self.combo_select_img1.setItemText(0,
                                           _translate("MainWindow", "Image1"))
        self.combo_select_img1.setItemText(1,
                                           _translate("MainWindow", "Image2"))
        self.label_6.setText(_translate("MainWindow", "0%"))
        self.label_7.setText(_translate("MainWindow", "100%"))
        self.combo_select_mode1.setItemText(
            0, _translate("MainWindow", "Choose Component"))
        self.combo_select_mode1.setItemText(
            1, _translate("MainWindow", "Magnitude"))
        self.combo_select_mode1.setItemText(2,
                                            _translate("MainWindow", "Phase"))
        self.combo_select_mode1.setItemText(3,
                                            _translate("MainWindow", "Real"))
        self.combo_select_mode1.setItemText(
            4, _translate("MainWindow", "Imaginary"))
        self.combo_select_mode1.setItemText(
            5, _translate("MainWindow", "Uniform Magnitude"))
        self.combo_select_mode1.setItemText(
            6, _translate("MainWindow", "Uniform Phase"))
        self.label_comp2.setText(_translate("MainWindow", "Component 2:"))
        self.combo_select_img2.setItemText(0,
                                           _translate("MainWindow", "Image1"))
        self.combo_select_img2.setItemText(1,
                                           _translate("MainWindow", "Image2"))
        self.label_8.setText(_translate("MainWindow", "0%"))
        self.label_9.setText(_translate("MainWindow", "100%"))
        self.combo_select_mode2.setItemText(
            0, _translate("MainWindow", "Choose Component"))
        self.combo_select_mode2.setItemText(
            1, _translate("MainWindow", "Magnitude"))
        self.combo_select_mode2.setItemText(2,
                                            _translate("MainWindow", "Phase"))
        self.combo_select_mode2.setItemText(3,
                                            _translate("MainWindow", "Real"))
        self.combo_select_mode2.setItemText(
            4, _translate("MainWindow", "Imaginary"))
        self.combo_select_mode2.setItemText(
            5, _translate("MainWindow", "Uniform Magnitude"))
        self.combo_select_mode2.setItemText(
            6, _translate("MainWindow", "Uniform Phase"))
        self.label_output1.setText(_translate("MainWindow", "Output 1"))
        self.label_output2.setText(_translate("MainWindow", "Output 2"))
        self.menuLoad.setTitle(_translate("MainWindow", "Load"))
        self.actionImage1.setText(_translate("MainWindow", "Image1"))
        self.actionImage2.setText(_translate("MainWindow", "Image2"))