def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.setEnabled(True)
        MainWindow.resize(681, 650)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8("horsey.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        MainWindow.setWindowIcon(icon)
        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.verticalLayout_3 = QtGui.QVBoxLayout()
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.label = QtGui.QLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.label.setFont(font)
        self.label.setObjectName(_fromUtf8("label"))
        self.verticalLayout_3.addWidget(self.label)
        self.horizontalLayout_Open = QtGui.QHBoxLayout()
        self.horizontalLayout_Open.setObjectName(_fromUtf8("horizontalLayout_Open"))
        self.lineEdit_file_name = QtGui.QLineEdit(self.centralwidget)
        self.lineEdit_file_name.setObjectName(_fromUtf8("lineEdit_file_name"))
        self.horizontalLayout_Open.addWidget(self.lineEdit_file_name)
        self.pushButton_browse = QtGui.QPushButton(self.centralwidget)
        self.pushButton_browse.setObjectName(_fromUtf8("pushButton_browse"))
        self.horizontalLayout_Open.addWidget(self.pushButton_browse)
        self.verticalLayout_3.addLayout(self.horizontalLayout_Open)
        self.gridLayout_4 = QtGui.QGridLayout()
        self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
        self.label_comments = QtGui.QLabel(self.centralwidget)
        self.label_comments.setEnabled(False)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.label_comments.setFont(font)
        self.label_comments.setObjectName(_fromUtf8("label_comments"))
        self.gridLayout_4.addWidget(self.label_comments, 0, 3, 1, 1)
        self.label_test_num = QtGui.QLabel(self.centralwidget)
        self.label_test_num.setEnabled(False)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.label_test_num.setFont(font)
        self.label_test_num.setObjectName(_fromUtf8("label_test_num"))
        self.gridLayout_4.addWidget(self.label_test_num, 0, 0, 1, 1)
        self.comboBox_test_num = QtGui.QComboBox(self.centralwidget)
        self.comboBox_test_num.setEnabled(False)
        self.comboBox_test_num.setObjectName(_fromUtf8("comboBox_test_num"))
        self.gridLayout_4.addWidget(self.comboBox_test_num, 1, 0, 1, 1)
        self.lineEdit_comments = QtGui.QLineEdit(self.centralwidget)
        self.lineEdit_comments.setEnabled(False)
        self.lineEdit_comments.setReadOnly(True)
        self.lineEdit_comments.setObjectName(_fromUtf8("lineEdit_comments"))
        self.gridLayout_4.addWidget(self.lineEdit_comments, 1, 3, 1, 1)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum)
        self.gridLayout_4.addItem(spacerItem, 1, 1, 1, 1)
        self.verticalLayout_3.addLayout(self.gridLayout_4)
        self.horizontalLayout_Test = QtGui.QHBoxLayout()
        self.horizontalLayout_Test.setObjectName(_fromUtf8("horizontalLayout_Test"))
        self.verticalLayout_3.addLayout(self.horizontalLayout_Test)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.verticalLayout_Trace = QtGui.QVBoxLayout()
        self.verticalLayout_Trace.setObjectName(_fromUtf8("verticalLayout_Trace"))
        self.label_trace = QtGui.QLabel(self.centralwidget)
        self.label_trace.setEnabled(False)
        self.label_trace.setObjectName(_fromUtf8("label_trace"))
        self.verticalLayout_Trace.addWidget(self.label_trace)
        self.horizontalLayout_14 = QtGui.QHBoxLayout()
        self.horizontalLayout_14.setObjectName(_fromUtf8("horizontalLayout_14"))
        self.comboBox_trace = QtGui.QComboBox(self.centralwidget)
        self.comboBox_trace.setEnabled(False)
        self.comboBox_trace.setObjectName(_fromUtf8("comboBox_trace"))
        self.horizontalLayout_14.addWidget(self.comboBox_trace)
        self.verticalLayout_Trace.addLayout(self.horizontalLayout_14)
        self.horizontalLayout_4.addLayout(self.verticalLayout_Trace)
        self.verticalLayout_Repetition = QtGui.QVBoxLayout()
        self.verticalLayout_Repetition.setObjectName(_fromUtf8("verticalLayout_Repetition"))
        self.label_rep = QtGui.QLabel(self.centralwidget)
        self.label_rep.setEnabled(False)
        self.label_rep.setObjectName(_fromUtf8("label_rep"))
        self.verticalLayout_Repetition.addWidget(self.label_rep)
        self.horizontalLayout_12 = QtGui.QHBoxLayout()
        self.horizontalLayout_12.setObjectName(_fromUtf8("horizontalLayout_12"))
        self.comboBox_rep = QtGui.QComboBox(self.centralwidget)
        self.comboBox_rep.setEnabled(False)
        self.comboBox_rep.setObjectName(_fromUtf8("comboBox_rep"))
        self.horizontalLayout_12.addWidget(self.comboBox_rep)
        self.verticalLayout_Repetition.addLayout(self.horizontalLayout_12)
        self.horizontalLayout_4.addLayout(self.verticalLayout_Repetition)
        self.verticalLayout_Channel = QtGui.QVBoxLayout()
        self.verticalLayout_Channel.setObjectName(_fromUtf8("verticalLayout_Channel"))
        self.label_channel = QtGui.QLabel(self.centralwidget)
        self.label_channel.setEnabled(False)
        self.label_channel.setObjectName(_fromUtf8("label_channel"))
        self.verticalLayout_Channel.addWidget(self.label_channel)
        self.horizontalLayout_9 = QtGui.QHBoxLayout()
        self.horizontalLayout_9.setObjectName(_fromUtf8("horizontalLayout_9"))
        self.comboBox_channel = QtGui.QComboBox(self.centralwidget)
        self.comboBox_channel.setEnabled(False)
        self.comboBox_channel.setObjectName(_fromUtf8("comboBox_channel"))
        self.horizontalLayout_9.addWidget(self.comboBox_channel)
        self.verticalLayout_Channel.addLayout(self.horizontalLayout_9)
        self.horizontalLayout_4.addLayout(self.verticalLayout_Channel)
        self.verticalLayout_3.addLayout(self.horizontalLayout_4)
        self.gridLayout_2 = QtGui.QGridLayout()
        self.gridLayout_2.setContentsMargins(-1, 10, -1, 10)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.view = TraceWidget(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.view.sizePolicy().hasHeightForWidth())
        self.view.setSizePolicy(sizePolicy)
        self.view.setObjectName(_fromUtf8("view"))
        self.gridLayout_2.addWidget(self.view, 0, 0, 1, 1)
        self.verticalLayout_3.addLayout(self.gridLayout_2)
        self.verticalLayout.addLayout(self.verticalLayout_3)
        self.gridLayout.addLayout(self.verticalLayout, 1, 0, 1, 1)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem1)
        self.Title = QtGui.QLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(12)
        font.setBold(True)
        font.setWeight(75)
        self.Title.setFont(font)
        self.Title.setObjectName(_fromUtf8("Title"))
        self.horizontalLayout.addWidget(self.Title)
        spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem2)
        self.gridLayout.addLayout(self.horizontalLayout, 0, 0, 1, 1)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.verticalLayout_5 = QtGui.QVBoxLayout()
        self.verticalLayout_5.setContentsMargins(-1, -1, 10, -1)
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.checkBox_custom_window = QtGui.QCheckBox(self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.checkBox_custom_window.setFont(font)
        self.checkBox_custom_window.setObjectName(_fromUtf8("checkBox_custom_window"))
        self.verticalLayout_5.addWidget(self.checkBox_custom_window)
        self.line = QtGui.QFrame(self.centralwidget)
        self.line.setFrameShape(QtGui.QFrame.HLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName(_fromUtf8("line"))
        self.verticalLayout_5.addWidget(self.line)
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.verticalLayout_7 = QtGui.QVBoxLayout()
        self.verticalLayout_7.setObjectName(_fromUtf8("verticalLayout_7"))
        self.label_xmax = QtGui.QLabel(self.centralwidget)
        self.label_xmax.setEnabled(False)
        self.label_xmax.setAlignment(QtCore.Qt.AlignCenter)
        self.label_xmax.setObjectName(_fromUtf8("label_xmax"))
        self.verticalLayout_7.addWidget(self.label_xmax)
        self.doubleSpinBox_xmax = QtGui.QDoubleSpinBox(self.centralwidget)
        self.doubleSpinBox_xmax.setEnabled(False)
        self.doubleSpinBox_xmax.setDecimals(4)
        self.doubleSpinBox_xmax.setMinimum(-1.0)
        self.doubleSpinBox_xmax.setMaximum(100.0)
        self.doubleSpinBox_xmax.setSingleStep(0.001)
        self.doubleSpinBox_xmax.setProperty("value", 0.2)
        self.doubleSpinBox_xmax.setObjectName(_fromUtf8("doubleSpinBox_xmax"))
        self.verticalLayout_7.addWidget(self.doubleSpinBox_xmax)
        self.doubleSpinBox_xmin = QtGui.QDoubleSpinBox(self.centralwidget)
        self.doubleSpinBox_xmin.setEnabled(False)
        self.doubleSpinBox_xmin.setDecimals(4)
        self.doubleSpinBox_xmin.setMinimum(-1.0)
        self.doubleSpinBox_xmin.setMaximum(100.0)
        self.doubleSpinBox_xmin.setSingleStep(0.001)
        self.doubleSpinBox_xmin.setProperty("value", 0.0)
        self.doubleSpinBox_xmin.setObjectName(_fromUtf8("doubleSpinBox_xmin"))
        self.verticalLayout_7.addWidget(self.doubleSpinBox_xmin)
        self.label_xmin = QtGui.QLabel(self.centralwidget)
        self.label_xmin.setEnabled(False)
        self.label_xmin.setAlignment(QtCore.Qt.AlignCenter)
        self.label_xmin.setObjectName(_fromUtf8("label_xmin"))
        self.verticalLayout_7.addWidget(self.label_xmin)
        self.horizontalLayout_5.addLayout(self.verticalLayout_7)
        self.verticalLayout_6 = QtGui.QVBoxLayout()
        self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6"))
        self.label_ymax = QtGui.QLabel(self.centralwidget)
        self.label_ymax.setEnabled(False)
        self.label_ymax.setAlignment(QtCore.Qt.AlignCenter)
        self.label_ymax.setObjectName(_fromUtf8("label_ymax"))
        self.verticalLayout_6.addWidget(self.label_ymax)
        self.doubleSpinBox_ymax = QtGui.QDoubleSpinBox(self.centralwidget)
        self.doubleSpinBox_ymax.setEnabled(False)
        self.doubleSpinBox_ymax.setDecimals(4)
        self.doubleSpinBox_ymax.setMinimum(-100.0)
        self.doubleSpinBox_ymax.setMaximum(100.0)
        self.doubleSpinBox_ymax.setSingleStep(0.001)
        self.doubleSpinBox_ymax.setProperty("value", 0.1)
        self.doubleSpinBox_ymax.setObjectName(_fromUtf8("doubleSpinBox_ymax"))
        self.verticalLayout_6.addWidget(self.doubleSpinBox_ymax)
        self.doubleSpinBox_ymin = QtGui.QDoubleSpinBox(self.centralwidget)
        self.doubleSpinBox_ymin.setEnabled(False)
        self.doubleSpinBox_ymin.setDecimals(4)
        self.doubleSpinBox_ymin.setMinimum(-100.0)
        self.doubleSpinBox_ymin.setMaximum(100.0)
        self.doubleSpinBox_ymin.setSingleStep(0.001)
        self.doubleSpinBox_ymin.setProperty("value", -0.1)
        self.doubleSpinBox_ymin.setObjectName(_fromUtf8("doubleSpinBox_ymin"))
        self.verticalLayout_6.addWidget(self.doubleSpinBox_ymin)
        self.label_ymin = QtGui.QLabel(self.centralwidget)
        self.label_ymin.setEnabled(False)
        self.label_ymin.setAlignment(QtCore.Qt.AlignCenter)
        self.label_ymin.setObjectName(_fromUtf8("label_ymin"))
        self.verticalLayout_6.addWidget(self.label_ymin)
        self.horizontalLayout_5.addLayout(self.verticalLayout_6)
        self.verticalLayout_5.addLayout(self.horizontalLayout_5)
        self.horizontalLayout_2.addLayout(self.verticalLayout_5)
        self.line_4 = QtGui.QFrame(self.centralwidget)
        self.line_4.setFrameShape(QtGui.QFrame.VLine)
        self.line_4.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_4.setObjectName(_fromUtf8("line_4"))
        self.horizontalLayout_2.addWidget(self.line_4)
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setContentsMargins(10, -1, 10, -1)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.label_2 = QtGui.QLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.label_2.setFont(font)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.verticalLayout_2.addWidget(self.label_2)
        self.line_2 = QtGui.QFrame(self.centralwidget)
        self.line_2.setFrameShape(QtGui.QFrame.HLine)
        self.line_2.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_2.setObjectName(_fromUtf8("line_2"))
        self.verticalLayout_2.addWidget(self.line_2)
        self.horizontalLayout_Threshold = QtGui.QHBoxLayout()
        self.horizontalLayout_Threshold.setObjectName(_fromUtf8("horizontalLayout_Threshold"))
        self.doubleSpinBox_threshold = QtGui.QDoubleSpinBox(self.centralwidget)
        self.doubleSpinBox_threshold.setDecimals(4)
        self.doubleSpinBox_threshold.setMinimum(-100.0)
        self.doubleSpinBox_threshold.setMaximum(100.0)
        self.doubleSpinBox_threshold.setSingleStep(0.001)
        self.doubleSpinBox_threshold.setObjectName(_fromUtf8("doubleSpinBox_threshold"))
        self.horizontalLayout_Threshold.addWidget(self.doubleSpinBox_threshold)
        self.pushButton_auto_threshold = QtGui.QPushButton(self.centralwidget)
        self.pushButton_auto_threshold.setObjectName(_fromUtf8("pushButton_auto_threshold"))
        self.horizontalLayout_Threshold.addWidget(self.pushButton_auto_threshold)
        self.verticalLayout_2.addLayout(self.horizontalLayout_Threshold)
        self.label_5 = QtGui.QLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.label_5.setFont(font)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.verticalLayout_2.addWidget(self.label_5)
        self.line_3 = QtGui.QFrame(self.centralwidget)
        self.line_3.setFrameShape(QtGui.QFrame.HLine)
        self.line_3.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_3.setObjectName(_fromUtf8("line_3"))
        self.verticalLayout_2.addWidget(self.line_3)
        self.horizontalLayout_Polarity = QtGui.QHBoxLayout()
        self.horizontalLayout_Polarity.setObjectName(_fromUtf8("horizontalLayout_Polarity"))
        self.radioButton_normal = QtGui.QRadioButton(self.centralwidget)
        self.radioButton_normal.setChecked(True)
        self.radioButton_normal.setObjectName(_fromUtf8("radioButton_normal"))
        self.horizontalLayout_Polarity.addWidget(self.radioButton_normal)
        self.radioButton_inverse = QtGui.QRadioButton(self.centralwidget)
        self.radioButton_inverse.setObjectName(_fromUtf8("radioButton_inverse"))
        self.horizontalLayout_Polarity.addWidget(self.radioButton_inverse)
        self.verticalLayout_2.addLayout(self.horizontalLayout_Polarity)
        self.horizontalLayout_2.addLayout(self.verticalLayout_2)
        self.line_5 = QtGui.QFrame(self.centralwidget)
        self.line_5.setFrameShape(QtGui.QFrame.VLine)
        self.line_5.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_5.setObjectName(_fromUtf8("line_5"))
        self.horizontalLayout_2.addWidget(self.line_5)
        self.gridLayout_5 = QtGui.QGridLayout()
        self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5"))
        self.label_3 = QtGui.QLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.label_3.setFont(font)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout_5.addWidget(self.label_3, 0, 0, 1, 1)
        self.label_stim_type = QtGui.QLabel(self.centralwidget)
        self.label_stim_type.setObjectName(_fromUtf8("label_stim_type"))
        self.gridLayout_5.addWidget(self.label_stim_type, 0, 1, 1, 1)
        self.textEdit = QtGui.QTextEdit(self.centralwidget)
        self.textEdit.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.textEdit.sizePolicy().hasHeightForWidth())
        self.textEdit.setSizePolicy(sizePolicy)
        self.textEdit.setMinimumSize(QtCore.QSize(150, 0))
        self.textEdit.setObjectName(_fromUtf8("textEdit"))
        self.gridLayout_5.addWidget(self.textEdit, 2, 0, 1, 2)
        self.line_6 = QtGui.QFrame(self.centralwidget)
        self.line_6.setFrameShape(QtGui.QFrame.HLine)
        self.line_6.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_6.setObjectName(_fromUtf8("line_6"))
        self.gridLayout_5.addWidget(self.line_6, 1, 0, 1, 2)
        self.horizontalLayout_2.addLayout(self.gridLayout_5)
        spacerItem3 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem3)
        self.gridLayout_3 = QtGui.QGridLayout()
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.pushButton_historgram = QtGui.QPushButton(self.centralwidget)
        self.pushButton_historgram.setObjectName(_fromUtf8("pushButton_historgram"))
        self.gridLayout_3.addWidget(self.pushButton_historgram, 1, 0, 1, 1)
        self.pushButton_tuning_curve = QtGui.QPushButton(self.centralwidget)
        self.pushButton_tuning_curve.setObjectName(_fromUtf8("pushButton_tuning_curve"))
        self.gridLayout_3.addWidget(self.pushButton_tuning_curve, 2, 0, 1, 1)
        self.pushButton_raster = QtGui.QPushButton(self.centralwidget)
        self.pushButton_raster.setStatusTip(_fromUtf8(""))
        self.pushButton_raster.setWhatsThis(_fromUtf8(""))
        self.pushButton_raster.setObjectName(_fromUtf8("pushButton_raster"))
        self.gridLayout_3.addWidget(self.pushButton_raster, 0, 0, 1, 1)
        self.pushButton_io_test = QtGui.QPushButton(self.centralwidget)
        self.pushButton_io_test.setObjectName(_fromUtf8("pushButton_io_test"))
        self.gridLayout_3.addWidget(self.pushButton_io_test, 3, 0, 1, 1)
        self.pushButton_spike_rates = QtGui.QPushButton(self.centralwidget)
        self.pushButton_spike_rates.setObjectName(_fromUtf8("pushButton_spike_rates"))
        self.gridLayout_3.addWidget(self.pushButton_spike_rates, 4, 0, 1, 1)
        self.pushButton_abr = QtGui.QPushButton(self.centralwidget)
        self.pushButton_abr.setObjectName(_fromUtf8("pushButton_abr"))
        self.gridLayout_3.addWidget(self.pushButton_abr, 5, 0, 1, 1)
        self.horizontalLayout_2.addLayout(self.gridLayout_3)
        self.gridLayout.addLayout(self.horizontalLayout_2, 2, 0, 1, 1)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 681, 21))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)
        QtCore.QObject.connect(self.checkBox_custom_window, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.label_xmax.setEnabled)
        QtCore.QObject.connect(self.checkBox_custom_window, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.doubleSpinBox_xmax.setEnabled)
        QtCore.QObject.connect(self.checkBox_custom_window, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.doubleSpinBox_xmin.setEnabled)
        QtCore.QObject.connect(self.checkBox_custom_window, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.label_xmin.setEnabled)
        QtCore.QObject.connect(self.checkBox_custom_window, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.label_ymax.setEnabled)
        QtCore.QObject.connect(self.checkBox_custom_window, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.doubleSpinBox_ymax.setEnabled)
        QtCore.QObject.connect(self.checkBox_custom_window, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.doubleSpinBox_ymin.setEnabled)
        QtCore.QObject.connect(self.checkBox_custom_window, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.label_ymin.setEnabled)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
Beispiel #2
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(982, 746)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.gridLayout = QtGui.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.gridLayout_top = QtGui.QGridLayout()
        self.gridLayout_top.setObjectName(_fromUtf8("gridLayout_top"))
        self.label = QtGui.QLabel(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.label.setFont(font)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout_top.addWidget(self.label, 0, 0, 1, 1)
        self.lineEdit_file_name = QtGui.QLineEdit(self.centralwidget)
        self.lineEdit_file_name.setObjectName(_fromUtf8("lineEdit_file_name"))
        self.gridLayout_top.addWidget(self.lineEdit_file_name, 1, 0, 1, 1)
        self.pushButton_browse = QtGui.QPushButton(self.centralwidget)
        self.pushButton_browse.setObjectName(_fromUtf8("pushButton_browse"))
        self.gridLayout_top.addWidget(self.pushButton_browse, 1, 1, 1, 1)
        self.gridLayout.addLayout(self.gridLayout_top, 0, 0, 1, 2)
        self.tabWidget = QtGui.QTabWidget(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.tabWidget.sizePolicy().hasHeightForWidth())
        self.tabWidget.setSizePolicy(sizePolicy)
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.widget = QtGui.QWidget()
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.widget.sizePolicy().hasHeightForWidth())
        self.widget.setSizePolicy(sizePolicy)
        self.widget.setObjectName(_fromUtf8("widget"))
        self.gridLayout_19 = QtGui.QGridLayout(self.widget)
        self.gridLayout_19.setObjectName(_fromUtf8("gridLayout_19"))
        self.gridLayout_2 = QtGui.QGridLayout()
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.groupBox_stimulus = QtGui.QGroupBox(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.groupBox_stimulus.sizePolicy().hasHeightForWidth())
        self.groupBox_stimulus.setSizePolicy(sizePolicy)
        self.groupBox_stimulus.setMaximumSize(QtCore.QSize(300, 16777215))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.groupBox_stimulus.setFont(font)
        self.groupBox_stimulus.setFlat(True)
        self.groupBox_stimulus.setObjectName(_fromUtf8("groupBox_stimulus"))
        self.gridLayout_12 = QtGui.QGridLayout(self.groupBox_stimulus)
        self.gridLayout_12.setObjectName(_fromUtf8("gridLayout_12"))
        self.label_stim_type = QtGui.QLabel(self.groupBox_stimulus)
        self.label_stim_type.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setPointSize(8)
        self.label_stim_type.setFont(font)
        self.label_stim_type.setObjectName(_fromUtf8("label_stim_type"))
        self.gridLayout_12.addWidget(self.label_stim_type, 0, 0, 1, 1)
        self.gridLayout_2.addWidget(self.groupBox_stimulus, 1, 1, 1, 1)
        self.groupBox_threshold = QtGui.QGroupBox(self.widget)
        self.groupBox_threshold.setMaximumSize(QtCore.QSize(300, 16777215))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.groupBox_threshold.setFont(font)
        self.groupBox_threshold.setFlat(True)
        self.groupBox_threshold.setObjectName(_fromUtf8("groupBox_threshold"))
        self.gridLayout_4 = QtGui.QGridLayout(self.groupBox_threshold)
        self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
        self.doubleSpinBox_threshold = QtGui.QDoubleSpinBox(
            self.groupBox_threshold)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.doubleSpinBox_threshold.sizePolicy().hasHeightForWidth())
        self.doubleSpinBox_threshold.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.doubleSpinBox_threshold.setFont(font)
        self.doubleSpinBox_threshold.setDecimals(4)
        self.doubleSpinBox_threshold.setMinimum(-100.0)
        self.doubleSpinBox_threshold.setMaximum(100.0)
        self.doubleSpinBox_threshold.setSingleStep(0.001)
        self.doubleSpinBox_threshold.setObjectName(
            _fromUtf8("doubleSpinBox_threshold"))
        self.gridLayout_4.addWidget(self.doubleSpinBox_threshold, 0, 0, 1, 1)
        self.pushButton_auto_threshold = QtGui.QPushButton(
            self.groupBox_threshold)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.pushButton_auto_threshold.setFont(font)
        self.pushButton_auto_threshold.setObjectName(
            _fromUtf8("pushButton_auto_threshold"))
        self.gridLayout_4.addWidget(self.pushButton_auto_threshold, 0, 1, 1, 1)
        self.gridLayout_2.addWidget(self.groupBox_threshold, 2, 1, 1, 1)
        self.groupBox_color = QtGui.QGroupBox(self.widget)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.groupBox_color.setFont(font)
        self.groupBox_color.setFlat(True)
        self.groupBox_color.setObjectName(_fromUtf8("groupBox_color"))
        self.gridLayout_3 = QtGui.QGridLayout(self.groupBox_color)
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.spinBox_blue = QtGui.QSpinBox(self.groupBox_color)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.spinBox_blue.sizePolicy().hasHeightForWidth())
        self.spinBox_blue.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.spinBox_blue.setFont(font)
        self.spinBox_blue.setAlignment(QtCore.Qt.AlignRight
                                       | QtCore.Qt.AlignTrailing
                                       | QtCore.Qt.AlignVCenter)
        self.spinBox_blue.setMaximum(255)
        self.spinBox_blue.setProperty("value", 0)
        self.spinBox_blue.setObjectName(_fromUtf8("spinBox_blue"))
        self.gridLayout_3.addWidget(self.spinBox_blue, 0, 6, 1, 1)
        self.spinBox_red = QtGui.QSpinBox(self.groupBox_color)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.spinBox_red.sizePolicy().hasHeightForWidth())
        self.spinBox_red.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.spinBox_red.setFont(font)
        self.spinBox_red.setAlignment(QtCore.Qt.AlignRight
                                      | QtCore.Qt.AlignTrailing
                                      | QtCore.Qt.AlignVCenter)
        self.spinBox_red.setMaximum(255)
        self.spinBox_red.setObjectName(_fromUtf8("spinBox_red"))
        self.gridLayout_3.addWidget(self.spinBox_red, 0, 1, 1, 1)
        self.label_red = QtGui.QLabel(self.groupBox_color)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_red.sizePolicy().hasHeightForWidth())
        self.label_red.setSizePolicy(sizePolicy)
        self.label_red.setObjectName(_fromUtf8("label_red"))
        self.gridLayout_3.addWidget(self.label_red, 0, 0, 1, 1)
        self.label_green = QtGui.QLabel(self.groupBox_color)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_green.sizePolicy().hasHeightForWidth())
        self.label_green.setSizePolicy(sizePolicy)
        self.label_green.setObjectName(_fromUtf8("label_green"))
        self.gridLayout_3.addWidget(self.label_green, 0, 2, 1, 1)
        self.spinBox_green = QtGui.QSpinBox(self.groupBox_color)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.spinBox_green.sizePolicy().hasHeightForWidth())
        self.spinBox_green.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.spinBox_green.setFont(font)
        self.spinBox_green.setAlignment(QtCore.Qt.AlignRight
                                        | QtCore.Qt.AlignTrailing
                                        | QtCore.Qt.AlignVCenter)
        self.spinBox_green.setMaximum(255)
        self.spinBox_green.setObjectName(_fromUtf8("spinBox_green"))
        self.gridLayout_3.addWidget(self.spinBox_green, 0, 3, 1, 1)
        self.label_blue = QtGui.QLabel(self.groupBox_color)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_blue.sizePolicy().hasHeightForWidth())
        self.label_blue.setSizePolicy(sizePolicy)
        self.label_blue.setObjectName(_fromUtf8("label_blue"))
        self.gridLayout_3.addWidget(self.label_blue, 0, 4, 1, 1)
        self.gridLayout_2.addWidget(self.groupBox_color, 3, 1, 1, 1)
        self.dockWidget_preview = QtGui.QDockWidget(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(
            self.dockWidget_preview.sizePolicy().hasHeightForWidth())
        self.dockWidget_preview.setSizePolicy(sizePolicy)
        self.dockWidget_preview.setMinimumSize(QtCore.QSize(300, 150))
        self.dockWidget_preview.setFeatures(
            QtGui.QDockWidget.AllDockWidgetFeatures)
        self.dockWidget_preview.setObjectName(_fromUtf8("dockWidget_preview"))
        self.dockWidgetContents_2 = QtGui.QWidget()
        self.dockWidgetContents_2.setObjectName(
            _fromUtf8("dockWidgetContents_2"))
        self.gridLayout_13 = QtGui.QGridLayout(self.dockWidgetContents_2)
        self.gridLayout_13.setObjectName(_fromUtf8("gridLayout_13"))
        self.preview = TraceWidget(self.dockWidgetContents_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.preview.sizePolicy().hasHeightForWidth())
        self.preview.setSizePolicy(sizePolicy)
        self.preview.setObjectName(_fromUtf8("preview"))
        self.gridLayout_13.addWidget(self.preview, 0, 0, 1, 1)
        self.dockWidget_preview.setWidget(self.dockWidgetContents_2)
        self.gridLayout_2.addWidget(self.dockWidget_preview, 1, 0, 3, 1)
        self.gridLayout_19.addLayout(self.gridLayout_2, 2, 0, 1, 4)
        self.groupBox_raster_comments = QtGui.QGroupBox(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.groupBox_raster_comments.sizePolicy().hasHeightForWidth())
        self.groupBox_raster_comments.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.groupBox_raster_comments.setFont(font)
        self.groupBox_raster_comments.setFlat(True)
        self.groupBox_raster_comments.setObjectName(
            _fromUtf8("groupBox_raster_comments"))
        self.gridLayout_18 = QtGui.QGridLayout(self.groupBox_raster_comments)
        self.gridLayout_18.setObjectName(_fromUtf8("gridLayout_18"))
        self.lineEdit_comments = QtGui.QLineEdit(self.groupBox_raster_comments)
        self.lineEdit_comments.setEnabled(False)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.lineEdit_comments.sizePolicy().hasHeightForWidth())
        self.lineEdit_comments.setSizePolicy(sizePolicy)
        self.lineEdit_comments.setMinimumSize(QtCore.QSize(0, 20))
        font = QtGui.QFont()
        font.setPointSize(8)
        self.lineEdit_comments.setFont(font)
        self.lineEdit_comments.setReadOnly(True)
        self.lineEdit_comments.setObjectName(_fromUtf8("lineEdit_comments"))
        self.gridLayout_18.addWidget(self.lineEdit_comments, 0, 0, 1, 1)
        self.gridLayout_19.addWidget(self.groupBox_raster_comments, 0, 3, 1, 1)
        self.groupBox_raster_test = QtGui.QGroupBox(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.groupBox_raster_test.sizePolicy().hasHeightForWidth())
        self.groupBox_raster_test.setSizePolicy(sizePolicy)
        self.groupBox_raster_test.setMinimumSize(QtCore.QSize(125, 0))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.groupBox_raster_test.setFont(font)
        self.groupBox_raster_test.setAlignment(QtCore.Qt.AlignLeading
                                               | QtCore.Qt.AlignLeft
                                               | QtCore.Qt.AlignVCenter)
        self.groupBox_raster_test.setFlat(True)
        self.groupBox_raster_test.setObjectName(
            _fromUtf8("groupBox_raster_test"))
        self.gridLayout_14 = QtGui.QGridLayout(self.groupBox_raster_test)
        self.gridLayout_14.setObjectName(_fromUtf8("gridLayout_14"))
        self.comboBox_test_num = QtGui.QComboBox(self.groupBox_raster_test)
        self.comboBox_test_num.setEnabled(False)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.comboBox_test_num.sizePolicy().hasHeightForWidth())
        self.comboBox_test_num.setSizePolicy(sizePolicy)
        self.comboBox_test_num.setMinimumSize(QtCore.QSize(75, 20))
        self.comboBox_test_num.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setPointSize(8)
        self.comboBox_test_num.setFont(font)
        self.comboBox_test_num.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.comboBox_test_num.setObjectName(_fromUtf8("comboBox_test_num"))
        self.gridLayout_14.addWidget(self.comboBox_test_num, 0, 0, 1, 1)
        self.gridLayout_19.addWidget(self.groupBox_raster_test, 0, 0, 1, 1)
        spacerItem = QtGui.QSpacerItem(34, 20, QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Minimum)
        self.gridLayout_19.addItem(spacerItem, 0, 2, 1, 1)
        self.pushButtonAdd = QtGui.QPushButton(self.widget)
        self.pushButtonAdd.setObjectName(_fromUtf8("pushButtonAdd"))
        self.gridLayout_19.addWidget(self.pushButtonAdd, 5, 0, 1, 4)
        self.horizontalLayout_raster = QtGui.QHBoxLayout()
        self.horizontalLayout_raster.setObjectName(
            _fromUtf8("horizontalLayout_raster"))
        self.groupBox_raster_trace = QtGui.QGroupBox(self.widget)
        self.groupBox_raster_trace.setMinimumSize(QtCore.QSize(125, 0))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.groupBox_raster_trace.setFont(font)
        self.groupBox_raster_trace.setAlignment(QtCore.Qt.AlignLeading
                                                | QtCore.Qt.AlignLeft
                                                | QtCore.Qt.AlignVCenter)
        self.groupBox_raster_trace.setFlat(True)
        self.groupBox_raster_trace.setObjectName(
            _fromUtf8("groupBox_raster_trace"))
        self.gridLayout_15 = QtGui.QGridLayout(self.groupBox_raster_trace)
        self.gridLayout_15.setObjectName(_fromUtf8("gridLayout_15"))
        self.comboBox_trace = QtGui.QComboBox(self.groupBox_raster_trace)
        self.comboBox_trace.setEnabled(False)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.comboBox_trace.sizePolicy().hasHeightForWidth())
        self.comboBox_trace.setSizePolicy(sizePolicy)
        self.comboBox_trace.setMinimumSize(QtCore.QSize(75, 20))
        self.comboBox_trace.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setPointSize(8)
        self.comboBox_trace.setFont(font)
        self.comboBox_trace.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.comboBox_trace.setObjectName(_fromUtf8("comboBox_trace"))
        self.gridLayout_15.addWidget(self.comboBox_trace, 0, 0, 1, 1)
        self.horizontalLayout_raster.addWidget(self.groupBox_raster_trace)
        self.groupBox_raster_channel = QtGui.QGroupBox(self.widget)
        self.groupBox_raster_channel.setMinimumSize(QtCore.QSize(125, 0))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.groupBox_raster_channel.setFont(font)
        self.groupBox_raster_channel.setAlignment(QtCore.Qt.AlignLeading
                                                  | QtCore.Qt.AlignLeft
                                                  | QtCore.Qt.AlignVCenter)
        self.groupBox_raster_channel.setFlat(True)
        self.groupBox_raster_channel.setObjectName(
            _fromUtf8("groupBox_raster_channel"))
        self.gridLayout_17 = QtGui.QGridLayout(self.groupBox_raster_channel)
        self.gridLayout_17.setObjectName(_fromUtf8("gridLayout_17"))
        self.comboBox_channel = QtGui.QComboBox(self.groupBox_raster_channel)
        self.comboBox_channel.setEnabled(False)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.comboBox_channel.sizePolicy().hasHeightForWidth())
        self.comboBox_channel.setSizePolicy(sizePolicy)
        self.comboBox_channel.setMinimumSize(QtCore.QSize(75, 20))
        self.comboBox_channel.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setPointSize(8)
        self.comboBox_channel.setFont(font)
        self.comboBox_channel.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.comboBox_channel.setObjectName(_fromUtf8("comboBox_channel"))
        self.gridLayout_17.addWidget(self.comboBox_channel, 0, 0, 1, 1)
        self.horizontalLayout_raster.addWidget(self.groupBox_raster_channel)
        self.gridLayout_19.addLayout(self.horizontalLayout_raster, 1, 0, 1, 4)
        self.tabWidget.addTab(self.widget, _fromUtf8(""))
        self.gridLayout.addWidget(self.tabWidget, 1, 0, 2, 2)
        self.gridLayout_bottom = QtGui.QGridLayout()
        self.gridLayout_bottom.setObjectName(_fromUtf8("gridLayout_bottom"))
        self.pushButtonReset = QtGui.QPushButton(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.pushButtonReset.sizePolicy().hasHeightForWidth())
        self.pushButtonReset.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.pushButtonReset.setFont(font)
        self.pushButtonReset.setObjectName(_fromUtf8("pushButtonReset"))
        self.gridLayout_bottom.addWidget(self.pushButtonReset, 0, 0, 1, 2)
        self.gridLayout.addLayout(self.gridLayout_bottom, 5, 0, 1, 2)
        self.dockWidget_view = QtGui.QDockWidget(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(
            self.dockWidget_view.sizePolicy().hasHeightForWidth())
        self.dockWidget_view.setSizePolicy(sizePolicy)
        self.dockWidget_view.setMinimumSize(QtCore.QSize(300, 150))
        self.dockWidget_view.setFeatures(
            QtGui.QDockWidget.AllDockWidgetFeatures)
        self.dockWidget_view.setObjectName(_fromUtf8("dockWidget_view"))
        self.dockWidgetContents = QtGui.QWidget()
        self.dockWidgetContents.setObjectName(_fromUtf8("dockWidgetContents"))
        self.gridLayout_10 = QtGui.QGridLayout(self.dockWidgetContents)
        self.gridLayout_10.setObjectName(_fromUtf8("gridLayout_10"))
        self.view = TraceWidget(self.dockWidgetContents)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.view.sizePolicy().hasHeightForWidth())
        self.view.setSizePolicy(sizePolicy)
        self.view.setObjectName(_fromUtf8("view"))
        self.gridLayout_10.addWidget(self.view, 0, 0, 1, 1)
        self.dockWidget_view.setWidget(self.dockWidgetContents)
        self.gridLayout.addWidget(self.dockWidget_view, 4, 0, 1, 2)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 982, 21))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        self.menuView = QtGui.QMenu(self.menubar)
        self.menuView.setObjectName(_fromUtf8("menuView"))
        self.menuShow = QtGui.QMenu(self.menuView)
        self.menuShow.setObjectName(_fromUtf8("menuShow"))
        self.menuHide = QtGui.QMenu(self.menuView)
        self.menuHide.setObjectName(_fromUtf8("menuHide"))
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)
        self.actionReset = QtGui.QAction(MainWindow)
        self.actionReset.setObjectName(_fromUtf8("actionReset"))
        self.actionView = QtGui.QAction(MainWindow)
        self.actionView.setCheckable(False)
        self.actionView.setChecked(False)
        self.actionView.setObjectName(_fromUtf8("actionView"))
        self.actionAttributes = QtGui.QAction(MainWindow)
        self.actionAttributes.setCheckable(False)
        self.actionAttributes.setChecked(False)
        self.actionAttributes.setAutoRepeat(True)
        self.actionAttributes.setMenuRole(QtGui.QAction.AboutQtRole)
        self.actionAttributes.setObjectName(_fromUtf8("actionAttributes"))
        self.actionLog = QtGui.QAction(MainWindow)
        self.actionLog.setCheckable(False)
        self.actionLog.setChecked(False)
        self.actionLog.setObjectName(_fromUtf8("actionLog"))
        self.actionAll_show = QtGui.QAction(MainWindow)
        self.actionAll_show.setObjectName(_fromUtf8("actionAll_show"))
        self.actionAttributes_show = QtGui.QAction(MainWindow)
        self.actionAttributes_show.setObjectName(
            _fromUtf8("actionAttributes_show"))
        self.actionLog_show = QtGui.QAction(MainWindow)
        self.actionLog_show.setObjectName(_fromUtf8("actionLog_show"))
        self.actionView_show = QtGui.QAction(MainWindow)
        self.actionView_show.setObjectName(_fromUtf8("actionView_show"))
        self.actionAll_hide = QtGui.QAction(MainWindow)
        self.actionAll_hide.setObjectName(_fromUtf8("actionAll_hide"))
        self.actionAttributes_hide = QtGui.QAction(MainWindow)
        self.actionAttributes_hide.setObjectName(
            _fromUtf8("actionAttributes_hide"))
        self.actionLog_hide = QtGui.QAction(MainWindow)
        self.actionLog_hide.setObjectName(_fromUtf8("actionLog_hide"))
        self.actionView_hide = QtGui.QAction(MainWindow)
        self.actionView_hide.setObjectName(_fromUtf8("actionView_hide"))
        self.actionPreview_show = QtGui.QAction(MainWindow)
        self.actionPreview_show.setObjectName(_fromUtf8("actionPreview_show"))
        self.actionPreview_hide = QtGui.QAction(MainWindow)
        self.actionPreview_hide.setObjectName(_fromUtf8("actionPreview_hide"))
        self.menuShow.addAction(self.actionAll_show)
        self.menuShow.addSeparator()
        self.menuShow.addAction(self.actionAttributes_show)
        self.menuShow.addAction(self.actionLog_show)
        self.menuShow.addAction(self.actionView_show)
        self.menuShow.addAction(self.actionPreview_show)
        self.menuHide.addAction(self.actionAll_hide)
        self.menuHide.addSeparator()
        self.menuHide.addAction(self.actionAttributes_hide)
        self.menuHide.addAction(self.actionLog_hide)
        self.menuHide.addAction(self.actionView_hide)
        self.menuHide.addAction(self.actionPreview_hide)
        self.menuView.addAction(self.actionReset)
        self.menuView.addSeparator()
        self.menuView.addAction(self.menuShow.menuAction())
        self.menuView.addAction(self.menuHide.menuAction())
        self.menubar.addAction(self.menuView.menuAction())

        self.retranslateUi(MainWindow)
        self.tabWidget.setCurrentIndex(0)
        QtCore.QObject.connect(self.actionReset,
                               QtCore.SIGNAL(_fromUtf8("triggered()")),
                               self.dockWidget_view.show)
        QtCore.QObject.connect(self.actionView_show,
                               QtCore.SIGNAL(_fromUtf8("triggered()")),
                               self.dockWidget_view.show)
        QtCore.QObject.connect(self.actionView_hide,
                               QtCore.SIGNAL(_fromUtf8("triggered()")),
                               self.dockWidget_view.hide)
        QtCore.QObject.connect(self.actionAll_show,
                               QtCore.SIGNAL(_fromUtf8("triggered()")),
                               self.dockWidget_view.show)
        QtCore.QObject.connect(self.actionAll_hide,
                               QtCore.SIGNAL(_fromUtf8("triggered()")),
                               self.dockWidget_view.hide)
        QtCore.QObject.connect(self.actionAll_show,
                               QtCore.SIGNAL(_fromUtf8("triggered()")),
                               self.dockWidget_preview.show)
        QtCore.QObject.connect(self.actionAll_hide,
                               QtCore.SIGNAL(_fromUtf8("triggered()")),
                               self.dockWidget_preview.hide)
        QtCore.QObject.connect(self.actionPreview_show,
                               QtCore.SIGNAL(_fromUtf8("triggered()")),
                               self.dockWidget_preview.show)
        QtCore.QObject.connect(self.actionPreview_hide,
                               QtCore.SIGNAL(_fromUtf8("triggered()")),
                               self.dockWidget_preview.hide)
        QtCore.QObject.connect(self.actionReset,
                               QtCore.SIGNAL(_fromUtf8("triggered()")),
                               self.dockWidget_preview.show)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
    def setupUi(self, Form_tuning_curves):
        Form_tuning_curves.setObjectName(_fromUtf8("Form_tuning_curves"))
        Form_tuning_curves.setEnabled(True)
        Form_tuning_curves.resize(680, 707)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(Form_tuning_curves.sizePolicy().hasHeightForWidth())
        Form_tuning_curves.setSizePolicy(sizePolicy)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8("horsey.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        Form_tuning_curves.setWindowIcon(icon)
        self.centralwidget = QtGui.QWidget(Form_tuning_curves)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.gridLayout = QtGui.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setContentsMargins(-1, -1, -1, 0)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.gridLayout_4 = QtGui.QGridLayout()
        self.gridLayout_4.setContentsMargins(-1, -1, -1, 0)
        self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
        self.groupBox_comments = QtGui.QGroupBox(self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.groupBox_comments.setFont(font)
        self.groupBox_comments.setFlat(True)
        self.groupBox_comments.setObjectName(_fromUtf8("groupBox_comments"))
        self.gridLayout_13 = QtGui.QGridLayout(self.groupBox_comments)
        self.gridLayout_13.setObjectName(_fromUtf8("gridLayout_13"))
        self.lineEdit_comments = QtGui.QLineEdit(self.groupBox_comments)
        self.lineEdit_comments.setEnabled(False)
        self.lineEdit_comments.setMinimumSize(QtCore.QSize(0, 20))
        font = QtGui.QFont()
        font.setPointSize(8)
        self.lineEdit_comments.setFont(font)
        self.lineEdit_comments.setReadOnly(True)
        self.lineEdit_comments.setObjectName(_fromUtf8("lineEdit_comments"))
        self.gridLayout_13.addWidget(self.lineEdit_comments, 0, 0, 1, 1)
        self.gridLayout_4.addWidget(self.groupBox_comments, 0, 2, 2, 1)
        self.groupBox_test = QtGui.QGroupBox(self.centralwidget)
        self.groupBox_test.setMinimumSize(QtCore.QSize(125, 0))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.groupBox_test.setFont(font)
        self.groupBox_test.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter)
        self.groupBox_test.setFlat(True)
        self.groupBox_test.setObjectName(_fromUtf8("groupBox_test"))
        self.gridLayout_10 = QtGui.QGridLayout(self.groupBox_test)
        self.gridLayout_10.setObjectName(_fromUtf8("gridLayout_10"))
        self.comboBox_test_num = QtGui.QComboBox(self.groupBox_test)
        self.comboBox_test_num.setEnabled(False)
        self.comboBox_test_num.setMinimumSize(QtCore.QSize(75, 20))
        self.comboBox_test_num.setMaximumSize(QtCore.QSize(77, 16777215))
        font = QtGui.QFont()
        font.setPointSize(8)
        self.comboBox_test_num.setFont(font)
        self.comboBox_test_num.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.comboBox_test_num.setObjectName(_fromUtf8("comboBox_test_num"))
        self.gridLayout_10.addWidget(self.comboBox_test_num, 0, 0, 1, 1, QtCore.Qt.AlignLeft)
        self.gridLayout_4.addWidget(self.groupBox_test, 0, 0, 2, 1)
        self.groupBox_channel = QtGui.QGroupBox(self.centralwidget)
        self.groupBox_channel.setMinimumSize(QtCore.QSize(125, 0))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.groupBox_channel.setFont(font)
        self.groupBox_channel.setFlat(True)
        self.groupBox_channel.setObjectName(_fromUtf8("groupBox_channel"))
        self.gridLayout_2 = QtGui.QGridLayout(self.groupBox_channel)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.comboBox_channel = QtGui.QComboBox(self.groupBox_channel)
        self.comboBox_channel.setEnabled(False)
        self.comboBox_channel.setMinimumSize(QtCore.QSize(75, 20))
        self.comboBox_channel.setMaximumSize(QtCore.QSize(16777215, 20))
        font = QtGui.QFont()
        font.setPointSize(8)
        self.comboBox_channel.setFont(font)
        self.comboBox_channel.setObjectName(_fromUtf8("comboBox_channel"))
        self.gridLayout_2.addWidget(self.comboBox_channel, 0, 0, 1, 1, QtCore.Qt.AlignLeft)
        self.gridLayout_4.addWidget(self.groupBox_channel, 0, 1, 2, 1)
        self.verticalLayout.addLayout(self.gridLayout_4)
        self.groupBoxPlot = QtGui.QGroupBox(self.centralwidget)
        self.groupBoxPlot.setEnabled(False)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBoxPlot.sizePolicy().hasHeightForWidth())
        self.groupBoxPlot.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(10)
        font.setBold(False)
        font.setWeight(50)
        self.groupBoxPlot.setFont(font)
        self.groupBoxPlot.setFlat(True)
        self.groupBoxPlot.setObjectName(_fromUtf8("groupBoxPlot"))
        self.horizontalLayout_7 = QtGui.QHBoxLayout(self.groupBoxPlot)
        self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7"))
        self.radioButtonFreq = QtGui.QRadioButton(self.groupBoxPlot)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.radioButtonFreq.setFont(font)
        self.radioButtonFreq.setChecked(True)
        self.radioButtonFreq.setObjectName(_fromUtf8("radioButtonFreq"))
        self.horizontalLayout_7.addWidget(self.radioButtonFreq)
        self.radioButtonContour = QtGui.QRadioButton(self.groupBoxPlot)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.radioButtonContour.setFont(font)
        self.radioButtonContour.setObjectName(_fromUtf8("radioButtonContour"))
        self.horizontalLayout_7.addWidget(self.radioButtonContour)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_7.addItem(spacerItem)
        self.verticalLayout.addWidget(self.groupBoxPlot)
        self.groupBoxUnits = QtGui.QGroupBox(self.centralwidget)
        self.groupBoxUnits.setEnabled(False)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.groupBoxUnits.setFont(font)
        self.groupBoxUnits.setFlat(True)
        self.groupBoxUnits.setObjectName(_fromUtf8("groupBoxUnits"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout(self.groupBoxUnits)
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.radioButtonMeanSpikes = QtGui.QRadioButton(self.groupBoxUnits)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.radioButtonMeanSpikes.setFont(font)
        self.radioButtonMeanSpikes.setChecked(True)
        self.radioButtonMeanSpikes.setObjectName(_fromUtf8("radioButtonMeanSpikes"))
        self.horizontalLayout_3.addWidget(self.radioButtonMeanSpikes)
        self.radioButtonResponseRate = QtGui.QRadioButton(self.groupBoxUnits)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.radioButtonResponseRate.setFont(font)
        self.radioButtonResponseRate.setObjectName(_fromUtf8("radioButtonResponseRate"))
        self.horizontalLayout_3.addWidget(self.radioButtonResponseRate)
        self.radioButtonOther = QtGui.QRadioButton(self.groupBoxUnits)
        font = QtGui.QFont()
        font.setPointSize(8)
        font.setStrikeOut(True)
        self.radioButtonOther.setFont(font)
        self.radioButtonOther.setObjectName(_fromUtf8("radioButtonOther"))
        self.horizontalLayout_3.addWidget(self.radioButtonOther)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem1)
        self.verticalLayout.addWidget(self.groupBoxUnits)
        self.gridLayout.addLayout(self.verticalLayout, 1, 0, 1, 1)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setContentsMargins(-1, -1, -1, 9)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem2)
        self.label_title = QtGui.QLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(12)
        font.setBold(True)
        font.setWeight(75)
        self.label_title.setFont(font)
        self.label_title.setAlignment(QtCore.Qt.AlignCenter)
        self.label_title.setObjectName(_fromUtf8("label_title"))
        self.horizontalLayout.addWidget(self.label_title)
        spacerItem3 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem3)
        self.gridLayout.addLayout(self.horizontalLayout, 0, 0, 1, 1)
        self.gridLayout_12 = QtGui.QGridLayout()
        self.gridLayout_12.setObjectName(_fromUtf8("gridLayout_12"))
        self.line_5 = QtGui.QFrame(self.centralwidget)
        self.line_5.setFrameShape(QtGui.QFrame.VLine)
        self.line_5.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_5.setObjectName(_fromUtf8("line_5"))
        self.gridLayout_12.addWidget(self.line_5, 0, 1, 1, 1)
        self.groupBoxWindow = QtGui.QGroupBox(self.centralwidget)
        self.groupBoxWindow.setEnabled(False)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.groupBoxWindow.setFont(font)
        self.groupBoxWindow.setFlat(True)
        self.groupBoxWindow.setCheckable(True)
        self.groupBoxWindow.setChecked(False)
        self.groupBoxWindow.setObjectName(_fromUtf8("groupBoxWindow"))
        self.horizontalLayout_4 = QtGui.QHBoxLayout(self.groupBoxWindow)
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.verticalLayout_7 = QtGui.QVBoxLayout()
        self.verticalLayout_7.setObjectName(_fromUtf8("verticalLayout_7"))
        self.label_xmax = QtGui.QLabel(self.groupBoxWindow)
        self.label_xmax.setEnabled(False)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.label_xmax.setFont(font)
        self.label_xmax.setAlignment(QtCore.Qt.AlignCenter)
        self.label_xmax.setObjectName(_fromUtf8("label_xmax"))
        self.verticalLayout_7.addWidget(self.label_xmax)
        self.doubleSpinBox_xmax = QtGui.QDoubleSpinBox(self.groupBoxWindow)
        self.doubleSpinBox_xmax.setEnabled(False)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.doubleSpinBox_xmax.setFont(font)
        self.doubleSpinBox_xmax.setDecimals(4)
        self.doubleSpinBox_xmax.setMinimum(-1.0)
        self.doubleSpinBox_xmax.setMaximum(100.0)
        self.doubleSpinBox_xmax.setSingleStep(0.001)
        self.doubleSpinBox_xmax.setProperty("value", 0.2)
        self.doubleSpinBox_xmax.setObjectName(_fromUtf8("doubleSpinBox_xmax"))
        self.verticalLayout_7.addWidget(self.doubleSpinBox_xmax)
        self.doubleSpinBox_xmin = QtGui.QDoubleSpinBox(self.groupBoxWindow)
        self.doubleSpinBox_xmin.setEnabled(False)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.doubleSpinBox_xmin.setFont(font)
        self.doubleSpinBox_xmin.setDecimals(4)
        self.doubleSpinBox_xmin.setMinimum(-1.0)
        self.doubleSpinBox_xmin.setMaximum(100.0)
        self.doubleSpinBox_xmin.setSingleStep(0.001)
        self.doubleSpinBox_xmin.setProperty("value", 0.0)
        self.doubleSpinBox_xmin.setObjectName(_fromUtf8("doubleSpinBox_xmin"))
        self.verticalLayout_7.addWidget(self.doubleSpinBox_xmin)
        self.label_xmin = QtGui.QLabel(self.groupBoxWindow)
        self.label_xmin.setEnabled(False)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.label_xmin.setFont(font)
        self.label_xmin.setAlignment(QtCore.Qt.AlignCenter)
        self.label_xmin.setObjectName(_fromUtf8("label_xmin"))
        self.verticalLayout_7.addWidget(self.label_xmin)
        self.horizontalLayout_4.addLayout(self.verticalLayout_7)
        self.verticalLayout_6 = QtGui.QVBoxLayout()
        self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6"))
        self.label_ymax = QtGui.QLabel(self.groupBoxWindow)
        self.label_ymax.setEnabled(False)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.label_ymax.setFont(font)
        self.label_ymax.setAlignment(QtCore.Qt.AlignCenter)
        self.label_ymax.setObjectName(_fromUtf8("label_ymax"))
        self.verticalLayout_6.addWidget(self.label_ymax)
        self.doubleSpinBox_ymax = QtGui.QDoubleSpinBox(self.groupBoxWindow)
        self.doubleSpinBox_ymax.setEnabled(False)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.doubleSpinBox_ymax.setFont(font)
        self.doubleSpinBox_ymax.setDecimals(4)
        self.doubleSpinBox_ymax.setMinimum(-100.0)
        self.doubleSpinBox_ymax.setMaximum(100.0)
        self.doubleSpinBox_ymax.setSingleStep(0.001)
        self.doubleSpinBox_ymax.setProperty("value", 0.1)
        self.doubleSpinBox_ymax.setObjectName(_fromUtf8("doubleSpinBox_ymax"))
        self.verticalLayout_6.addWidget(self.doubleSpinBox_ymax)
        self.doubleSpinBox_ymin = QtGui.QDoubleSpinBox(self.groupBoxWindow)
        self.doubleSpinBox_ymin.setEnabled(False)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.doubleSpinBox_ymin.setFont(font)
        self.doubleSpinBox_ymin.setDecimals(4)
        self.doubleSpinBox_ymin.setMinimum(-100.0)
        self.doubleSpinBox_ymin.setMaximum(100.0)
        self.doubleSpinBox_ymin.setSingleStep(0.001)
        self.doubleSpinBox_ymin.setProperty("value", -0.1)
        self.doubleSpinBox_ymin.setObjectName(_fromUtf8("doubleSpinBox_ymin"))
        self.verticalLayout_6.addWidget(self.doubleSpinBox_ymin)
        self.label_ymin = QtGui.QLabel(self.groupBoxWindow)
        self.label_ymin.setEnabled(False)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.label_ymin.setFont(font)
        self.label_ymin.setAlignment(QtCore.Qt.AlignCenter)
        self.label_ymin.setObjectName(_fromUtf8("label_ymin"))
        self.verticalLayout_6.addWidget(self.label_ymin)
        self.horizontalLayout_4.addLayout(self.verticalLayout_6)
        self.gridLayout_12.addWidget(self.groupBoxWindow, 0, 0, 1, 1)
        self.pushButtonGenerate = QtGui.QPushButton(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.pushButtonGenerate.sizePolicy().hasHeightForWidth())
        self.pushButtonGenerate.setSizePolicy(sizePolicy)
        self.pushButtonGenerate.setLayoutDirection(QtCore.Qt.RightToLeft)
        self.pushButtonGenerate.setAutoDefault(False)
        self.pushButtonGenerate.setObjectName(_fromUtf8("pushButtonGenerate"))
        self.gridLayout_12.addWidget(self.pushButtonGenerate, 1, 2, 1, 1)
        self.gridLayout_3 = QtGui.QGridLayout()
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.groupBoxThreshold = QtGui.QGroupBox(self.centralwidget)
        self.groupBoxThreshold.setMinimumSize(QtCore.QSize(0, 100))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.groupBoxThreshold.setFont(font)
        self.groupBoxThreshold.setFlat(True)
        self.groupBoxThreshold.setObjectName(_fromUtf8("groupBoxThreshold"))
        self.gridLayout_6 = QtGui.QGridLayout(self.groupBoxThreshold)
        self.gridLayout_6.setObjectName(_fromUtf8("gridLayout_6"))
        self.doubleSpinBox_threshold = QtGui.QDoubleSpinBox(self.groupBoxThreshold)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.doubleSpinBox_threshold.setFont(font)
        self.doubleSpinBox_threshold.setDecimals(4)
        self.doubleSpinBox_threshold.setMinimum(-100.0)
        self.doubleSpinBox_threshold.setMaximum(100.0)
        self.doubleSpinBox_threshold.setSingleStep(0.001)
        self.doubleSpinBox_threshold.setObjectName(_fromUtf8("doubleSpinBox_threshold"))
        self.gridLayout_6.addWidget(self.doubleSpinBox_threshold, 1, 0, 1, 1)
        self.pushButton_auto_threshold = QtGui.QPushButton(self.groupBoxThreshold)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.pushButton_auto_threshold.setFont(font)
        self.pushButton_auto_threshold.setObjectName(_fromUtf8("pushButton_auto_threshold"))
        self.gridLayout_6.addWidget(self.pushButton_auto_threshold, 1, 1, 1, 1)
        self.gridLayout_3.addWidget(self.groupBoxThreshold, 2, 0, 1, 1)
        self.line = QtGui.QFrame(self.centralwidget)
        self.line.setFrameShape(QtGui.QFrame.VLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName(_fromUtf8("line"))
        self.gridLayout_3.addWidget(self.line, 0, 1, 4, 1)
        self.groupBox_stimulus = QtGui.QGroupBox(self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.groupBox_stimulus.setFont(font)
        self.groupBox_stimulus.setFlat(True)
        self.groupBox_stimulus.setObjectName(_fromUtf8("groupBox_stimulus"))
        self.gridLayout_8 = QtGui.QGridLayout(self.groupBox_stimulus)
        self.gridLayout_8.setObjectName(_fromUtf8("gridLayout_8"))
        self.label_stim_type = QtGui.QLabel(self.groupBox_stimulus)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.label_stim_type.setFont(font)
        self.label_stim_type.setObjectName(_fromUtf8("label_stim_type"))
        self.gridLayout_8.addWidget(self.label_stim_type, 0, 0, 1, 1)
        self.gridLayout_3.addWidget(self.groupBox_stimulus, 0, 0, 2, 1)
        self.groupBox_log = QtGui.QGroupBox(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Ignored)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox_log.sizePolicy().hasHeightForWidth())
        self.groupBox_log.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.groupBox_log.setFont(font)
        self.groupBox_log.setFlat(True)
        self.groupBox_log.setObjectName(_fromUtf8("groupBox_log"))
        self.gridLayout_9 = QtGui.QGridLayout(self.groupBox_log)
        self.gridLayout_9.setObjectName(_fromUtf8("gridLayout_9"))
        self.textEdit = QtGui.QTextEdit(self.groupBox_log)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.textEdit.setFont(font)
        self.textEdit.setObjectName(_fromUtf8("textEdit"))
        self.gridLayout_9.addWidget(self.textEdit, 0, 0, 1, 1)
        self.gridLayout_3.addWidget(self.groupBox_log, 0, 2, 3, 1)
        self.gridLayout_12.addLayout(self.gridLayout_3, 0, 2, 1, 1)
        self.gridLayout.addLayout(self.gridLayout_12, 3, 0, 1, 1)
        self.gridLayout_14 = QtGui.QGridLayout()
        self.gridLayout_14.setObjectName(_fromUtf8("gridLayout_14"))
        self.groupBox_view = QtGui.QGroupBox(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox_view.sizePolicy().hasHeightForWidth())
        self.groupBox_view.setSizePolicy(sizePolicy)
        self.groupBox_view.setMinimumSize(QtCore.QSize(0, 200))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.groupBox_view.setFont(font)
        self.groupBox_view.setFlat(True)
        self.groupBox_view.setObjectName(_fromUtf8("groupBox_view"))
        self.gridLayout_11 = QtGui.QGridLayout(self.groupBox_view)
        self.gridLayout_11.setObjectName(_fromUtf8("gridLayout_11"))
        self.view = TraceWidget(self.groupBox_view)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.view.sizePolicy().hasHeightForWidth())
        self.view.setSizePolicy(sizePolicy)
        self.view.setMinimumSize(QtCore.QSize(0, 0))
        self.view.setObjectName(_fromUtf8("view"))
        self.gridLayout_11.addWidget(self.view, 1, 0, 1, 1)
        self.comboBox_trace = QtGui.QComboBox(self.groupBox_view)
        self.comboBox_trace.setEnabled(False)
        self.comboBox_trace.setMinimumSize(QtCore.QSize(75, 0))
        self.comboBox_trace.setMaximumSize(QtCore.QSize(77, 16777215))
        font = QtGui.QFont()
        font.setPointSize(8)
        self.comboBox_trace.setFont(font)
        self.comboBox_trace.setObjectName(_fromUtf8("comboBox_trace"))
        self.gridLayout_11.addWidget(self.comboBox_trace, 0, 0, 1, 1)
        self.gridLayout_14.addWidget(self.groupBox_view, 0, 0, 1, 1)
        self.gridLayout.addLayout(self.gridLayout_14, 2, 0, 1, 1)
        Form_tuning_curves.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(Form_tuning_curves)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 680, 21))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        Form_tuning_curves.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(Form_tuning_curves)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        Form_tuning_curves.setStatusBar(self.statusbar)

        self.retranslateUi(Form_tuning_curves)
        QtCore.QMetaObject.connectSlotsByName(Form_tuning_curves)
    def setupUi(self, Form_tuning_curves):
        Form_tuning_curves.setObjectName(_fromUtf8("Form_tuning_curves"))
        Form_tuning_curves.setEnabled(True)
        Form_tuning_curves.resize(680, 743)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            Form_tuning_curves.sizePolicy().hasHeightForWidth())
        Form_tuning_curves.setSizePolicy(sizePolicy)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8("horsey.png")),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        Form_tuning_curves.setWindowIcon(icon)
        self.centralwidget = QtGui.QWidget(Form_tuning_curves)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.gridLayout = QtGui.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setContentsMargins(-1, -1, -1, 0)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.gridLayout_4 = QtGui.QGridLayout()
        self.gridLayout_4.setContentsMargins(-1, -1, -1, 0)
        self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
        self.groupBox_comments = QtGui.QGroupBox(self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.groupBox_comments.setFont(font)
        self.groupBox_comments.setFlat(True)
        self.groupBox_comments.setObjectName(_fromUtf8("groupBox_comments"))
        self.gridLayout_13 = QtGui.QGridLayout(self.groupBox_comments)
        self.gridLayout_13.setObjectName(_fromUtf8("gridLayout_13"))
        self.lineEdit_comments = QtGui.QLineEdit(self.groupBox_comments)
        self.lineEdit_comments.setEnabled(False)
        self.lineEdit_comments.setMinimumSize(QtCore.QSize(0, 20))
        font = QtGui.QFont()
        font.setPointSize(8)
        self.lineEdit_comments.setFont(font)
        self.lineEdit_comments.setReadOnly(True)
        self.lineEdit_comments.setObjectName(_fromUtf8("lineEdit_comments"))
        self.gridLayout_13.addWidget(self.lineEdit_comments, 0, 0, 1, 1)
        self.gridLayout_4.addWidget(self.groupBox_comments, 0, 2, 2, 1)
        self.groupBox_test = QtGui.QGroupBox(self.centralwidget)
        self.groupBox_test.setMinimumSize(QtCore.QSize(125, 0))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.groupBox_test.setFont(font)
        self.groupBox_test.setAlignment(QtCore.Qt.AlignLeading
                                        | QtCore.Qt.AlignLeft
                                        | QtCore.Qt.AlignVCenter)
        self.groupBox_test.setFlat(True)
        self.groupBox_test.setObjectName(_fromUtf8("groupBox_test"))
        self.gridLayout_10 = QtGui.QGridLayout(self.groupBox_test)
        self.gridLayout_10.setObjectName(_fromUtf8("gridLayout_10"))
        self.comboBox_test_num = QtGui.QComboBox(self.groupBox_test)
        self.comboBox_test_num.setEnabled(False)
        self.comboBox_test_num.setMinimumSize(QtCore.QSize(75, 20))
        self.comboBox_test_num.setMaximumSize(QtCore.QSize(77, 16777215))
        font = QtGui.QFont()
        font.setPointSize(8)
        self.comboBox_test_num.setFont(font)
        self.comboBox_test_num.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.comboBox_test_num.setObjectName(_fromUtf8("comboBox_test_num"))
        self.gridLayout_10.addWidget(self.comboBox_test_num, 0, 0, 1, 1,
                                     QtCore.Qt.AlignLeft)
        self.gridLayout_4.addWidget(self.groupBox_test, 0, 0, 2, 1)
        self.groupBox_channel = QtGui.QGroupBox(self.centralwidget)
        self.groupBox_channel.setMinimumSize(QtCore.QSize(125, 0))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.groupBox_channel.setFont(font)
        self.groupBox_channel.setFlat(True)
        self.groupBox_channel.setObjectName(_fromUtf8("groupBox_channel"))
        self.gridLayout_2 = QtGui.QGridLayout(self.groupBox_channel)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.comboBox_channel = QtGui.QComboBox(self.groupBox_channel)
        self.comboBox_channel.setEnabled(False)
        self.comboBox_channel.setMinimumSize(QtCore.QSize(75, 20))
        self.comboBox_channel.setMaximumSize(QtCore.QSize(16777215, 20))
        font = QtGui.QFont()
        font.setPointSize(8)
        self.comboBox_channel.setFont(font)
        self.comboBox_channel.setObjectName(_fromUtf8("comboBox_channel"))
        self.gridLayout_2.addWidget(self.comboBox_channel, 0, 0, 1, 1,
                                    QtCore.Qt.AlignLeft)
        self.gridLayout_4.addWidget(self.groupBox_channel, 0, 1, 2, 1)
        self.verticalLayout.addLayout(self.gridLayout_4)
        self.groupBoxPlot = QtGui.QGroupBox(self.centralwidget)
        self.groupBoxPlot.setEnabled(False)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.groupBoxPlot.sizePolicy().hasHeightForWidth())
        self.groupBoxPlot.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(10)
        font.setBold(False)
        font.setWeight(50)
        self.groupBoxPlot.setFont(font)
        self.groupBoxPlot.setFlat(True)
        self.groupBoxPlot.setObjectName(_fromUtf8("groupBoxPlot"))
        self.horizontalLayout_7 = QtGui.QHBoxLayout(self.groupBoxPlot)
        self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7"))
        self.radioButtonFreq = QtGui.QRadioButton(self.groupBoxPlot)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.radioButtonFreq.setFont(font)
        self.radioButtonFreq.setChecked(False)
        self.radioButtonFreq.setObjectName(_fromUtf8("radioButtonFreq"))
        self.horizontalLayout_7.addWidget(self.radioButtonFreq)
        self.radioButtonContour = QtGui.QRadioButton(self.groupBoxPlot)
        self.radioButtonContour.setEnabled(False)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.radioButtonContour.setFont(font)
        self.radioButtonContour.setChecked(True)
        self.radioButtonContour.setObjectName(_fromUtf8("radioButtonContour"))
        self.horizontalLayout_7.addWidget(self.radioButtonContour)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_7.addItem(spacerItem)
        self.verticalLayout.addWidget(self.groupBoxPlot)
        self.groupBoxUnits = QtGui.QGroupBox(self.centralwidget)
        self.groupBoxUnits.setEnabled(False)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.groupBoxUnits.setFont(font)
        self.groupBoxUnits.setFlat(True)
        self.groupBoxUnits.setObjectName(_fromUtf8("groupBoxUnits"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout(self.groupBoxUnits)
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.radioButtonMeanSpikes = QtGui.QRadioButton(self.groupBoxUnits)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.radioButtonMeanSpikes.setFont(font)
        self.radioButtonMeanSpikes.setChecked(True)
        self.radioButtonMeanSpikes.setObjectName(
            _fromUtf8("radioButtonMeanSpikes"))
        self.horizontalLayout_3.addWidget(self.radioButtonMeanSpikes)
        self.radioButtonResponseRate = QtGui.QRadioButton(self.groupBoxUnits)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.radioButtonResponseRate.setFont(font)
        self.radioButtonResponseRate.setObjectName(
            _fromUtf8("radioButtonResponseRate"))
        self.horizontalLayout_3.addWidget(self.radioButtonResponseRate)
        self.radioButtonOther = QtGui.QRadioButton(self.groupBoxUnits)
        font = QtGui.QFont()
        font.setPointSize(8)
        font.setStrikeOut(True)
        self.radioButtonOther.setFont(font)
        self.radioButtonOther.setObjectName(_fromUtf8("radioButtonOther"))
        self.horizontalLayout_3.addWidget(self.radioButtonOther)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem1)
        self.verticalLayout.addWidget(self.groupBoxUnits)
        self.gridLayout.addLayout(self.verticalLayout, 1, 0, 1, 1)
        self.gridLayout_12 = QtGui.QGridLayout()
        self.gridLayout_12.setObjectName(_fromUtf8("gridLayout_12"))
        self.line_5 = QtGui.QFrame(self.centralwidget)
        self.line_5.setFrameShape(QtGui.QFrame.VLine)
        self.line_5.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_5.setObjectName(_fromUtf8("line_5"))
        self.gridLayout_12.addWidget(self.line_5, 0, 1, 1, 1)
        self.groupBoxWindow = QtGui.QGroupBox(self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.groupBoxWindow.setFont(font)
        self.groupBoxWindow.setFlat(True)
        self.groupBoxWindow.setCheckable(True)
        self.groupBoxWindow.setChecked(False)
        self.groupBoxWindow.setObjectName(_fromUtf8("groupBoxWindow"))
        self.horizontalLayout_4 = QtGui.QHBoxLayout(self.groupBoxWindow)
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.verticalLayout_7 = QtGui.QVBoxLayout()
        self.verticalLayout_7.setObjectName(_fromUtf8("verticalLayout_7"))
        self.label_xmax = QtGui.QLabel(self.groupBoxWindow)
        self.label_xmax.setEnabled(False)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.label_xmax.setFont(font)
        self.label_xmax.setAlignment(QtCore.Qt.AlignCenter)
        self.label_xmax.setObjectName(_fromUtf8("label_xmax"))
        self.verticalLayout_7.addWidget(self.label_xmax)
        self.doubleSpinBox_xmax = QtGui.QDoubleSpinBox(self.groupBoxWindow)
        self.doubleSpinBox_xmax.setEnabled(False)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.doubleSpinBox_xmax.setFont(font)
        self.doubleSpinBox_xmax.setDecimals(4)
        self.doubleSpinBox_xmax.setMinimum(-1.0)
        self.doubleSpinBox_xmax.setMaximum(100.0)
        self.doubleSpinBox_xmax.setSingleStep(0.001)
        self.doubleSpinBox_xmax.setProperty("value", 0.2)
        self.doubleSpinBox_xmax.setObjectName(_fromUtf8("doubleSpinBox_xmax"))
        self.verticalLayout_7.addWidget(self.doubleSpinBox_xmax)
        self.doubleSpinBox_xmin = QtGui.QDoubleSpinBox(self.groupBoxWindow)
        self.doubleSpinBox_xmin.setEnabled(False)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.doubleSpinBox_xmin.setFont(font)
        self.doubleSpinBox_xmin.setDecimals(4)
        self.doubleSpinBox_xmin.setMinimum(-1.0)
        self.doubleSpinBox_xmin.setMaximum(100.0)
        self.doubleSpinBox_xmin.setSingleStep(0.001)
        self.doubleSpinBox_xmin.setProperty("value", 0.0)
        self.doubleSpinBox_xmin.setObjectName(_fromUtf8("doubleSpinBox_xmin"))
        self.verticalLayout_7.addWidget(self.doubleSpinBox_xmin)
        self.label_xmin = QtGui.QLabel(self.groupBoxWindow)
        self.label_xmin.setEnabled(False)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.label_xmin.setFont(font)
        self.label_xmin.setAlignment(QtCore.Qt.AlignCenter)
        self.label_xmin.setObjectName(_fromUtf8("label_xmin"))
        self.verticalLayout_7.addWidget(self.label_xmin)
        self.horizontalLayout_4.addLayout(self.verticalLayout_7)
        self.verticalLayout_6 = QtGui.QVBoxLayout()
        self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6"))
        self.label_ymax = QtGui.QLabel(self.groupBoxWindow)
        self.label_ymax.setEnabled(False)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.label_ymax.setFont(font)
        self.label_ymax.setAlignment(QtCore.Qt.AlignCenter)
        self.label_ymax.setObjectName(_fromUtf8("label_ymax"))
        self.verticalLayout_6.addWidget(self.label_ymax)
        self.doubleSpinBox_ymax = QtGui.QDoubleSpinBox(self.groupBoxWindow)
        self.doubleSpinBox_ymax.setEnabled(False)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.doubleSpinBox_ymax.setFont(font)
        self.doubleSpinBox_ymax.setDecimals(4)
        self.doubleSpinBox_ymax.setMinimum(-100.0)
        self.doubleSpinBox_ymax.setMaximum(100.0)
        self.doubleSpinBox_ymax.setSingleStep(0.001)
        self.doubleSpinBox_ymax.setProperty("value", 0.1)
        self.doubleSpinBox_ymax.setObjectName(_fromUtf8("doubleSpinBox_ymax"))
        self.verticalLayout_6.addWidget(self.doubleSpinBox_ymax)
        self.doubleSpinBox_ymin = QtGui.QDoubleSpinBox(self.groupBoxWindow)
        self.doubleSpinBox_ymin.setEnabled(False)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.doubleSpinBox_ymin.setFont(font)
        self.doubleSpinBox_ymin.setDecimals(4)
        self.doubleSpinBox_ymin.setMinimum(-100.0)
        self.doubleSpinBox_ymin.setMaximum(100.0)
        self.doubleSpinBox_ymin.setSingleStep(0.001)
        self.doubleSpinBox_ymin.setProperty("value", -0.1)
        self.doubleSpinBox_ymin.setObjectName(_fromUtf8("doubleSpinBox_ymin"))
        self.verticalLayout_6.addWidget(self.doubleSpinBox_ymin)
        self.label_ymin = QtGui.QLabel(self.groupBoxWindow)
        self.label_ymin.setEnabled(False)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.label_ymin.setFont(font)
        self.label_ymin.setAlignment(QtCore.Qt.AlignCenter)
        self.label_ymin.setObjectName(_fromUtf8("label_ymin"))
        self.verticalLayout_6.addWidget(self.label_ymin)
        self.horizontalLayout_4.addLayout(self.verticalLayout_6)
        self.verticalLayout_8 = QtGui.QVBoxLayout()
        self.verticalLayout_8.setObjectName(_fromUtf8("verticalLayout_8"))
        self.label_zmax = QtGui.QLabel(self.groupBoxWindow)
        self.label_zmax.setEnabled(False)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.label_zmax.setFont(font)
        self.label_zmax.setAlignment(QtCore.Qt.AlignCenter)
        self.label_zmax.setObjectName(_fromUtf8("label_zmax"))
        self.verticalLayout_8.addWidget(self.label_zmax)
        self.doubleSpinBox_zmax = QtGui.QDoubleSpinBox(self.groupBoxWindow)
        self.doubleSpinBox_zmax.setEnabled(False)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.doubleSpinBox_zmax.setFont(font)
        self.doubleSpinBox_zmax.setDecimals(1)
        self.doubleSpinBox_zmax.setMinimum(0.0)
        self.doubleSpinBox_zmax.setMaximum(100.0)
        self.doubleSpinBox_zmax.setSingleStep(1.0)
        self.doubleSpinBox_zmax.setProperty("value", 10.0)
        self.doubleSpinBox_zmax.setObjectName(_fromUtf8("doubleSpinBox_zmax"))
        self.verticalLayout_8.addWidget(self.doubleSpinBox_zmax)
        self.doubleSpinBox_zmin = QtGui.QDoubleSpinBox(self.groupBoxWindow)
        self.doubleSpinBox_zmin.setEnabled(False)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.doubleSpinBox_zmin.setFont(font)
        self.doubleSpinBox_zmin.setDecimals(1)
        self.doubleSpinBox_zmin.setMinimum(0.0)
        self.doubleSpinBox_zmin.setMaximum(100.0)
        self.doubleSpinBox_zmin.setSingleStep(1.0)
        self.doubleSpinBox_zmin.setProperty("value", 0.0)
        self.doubleSpinBox_zmin.setObjectName(_fromUtf8("doubleSpinBox_zmin"))
        self.verticalLayout_8.addWidget(self.doubleSpinBox_zmin)
        self.label_zmin = QtGui.QLabel(self.groupBoxWindow)
        self.label_zmin.setEnabled(False)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.label_zmin.setFont(font)
        self.label_zmin.setAlignment(QtCore.Qt.AlignCenter)
        self.label_zmin.setObjectName(_fromUtf8("label_zmin"))
        self.verticalLayout_8.addWidget(self.label_zmin)
        self.horizontalLayout_4.addLayout(self.verticalLayout_8)
        self.gridLayout_12.addWidget(self.groupBoxWindow, 0, 0, 1, 1)
        self.pushButtonGenerate = QtGui.QPushButton(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.pushButtonGenerate.sizePolicy().hasHeightForWidth())
        self.pushButtonGenerate.setSizePolicy(sizePolicy)
        self.pushButtonGenerate.setLayoutDirection(QtCore.Qt.RightToLeft)
        self.pushButtonGenerate.setAutoDefault(False)
        self.pushButtonGenerate.setObjectName(_fromUtf8("pushButtonGenerate"))
        self.gridLayout_12.addWidget(self.pushButtonGenerate, 1, 2, 1, 1)
        self.gridLayout_3 = QtGui.QGridLayout()
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.line = QtGui.QFrame(self.centralwidget)
        self.line.setFrameShape(QtGui.QFrame.VLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName(_fromUtf8("line"))
        self.gridLayout_3.addWidget(self.line, 1, 1, 4, 1)
        self.groupBoxThreshold = QtGui.QGroupBox(self.centralwidget)
        self.groupBoxThreshold.setMinimumSize(QtCore.QSize(0, 50))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.groupBoxThreshold.setFont(font)
        self.groupBoxThreshold.setFlat(True)
        self.groupBoxThreshold.setObjectName(_fromUtf8("groupBoxThreshold"))
        self.gridLayout_6 = QtGui.QGridLayout(self.groupBoxThreshold)
        self.gridLayout_6.setObjectName(_fromUtf8("gridLayout_6"))
        self.doubleSpinBox_threshold = QtGui.QDoubleSpinBox(
            self.groupBoxThreshold)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.doubleSpinBox_threshold.setFont(font)
        self.doubleSpinBox_threshold.setDecimals(4)
        self.doubleSpinBox_threshold.setMinimum(-100.0)
        self.doubleSpinBox_threshold.setMaximum(100.0)
        self.doubleSpinBox_threshold.setSingleStep(0.001)
        self.doubleSpinBox_threshold.setObjectName(
            _fromUtf8("doubleSpinBox_threshold"))
        self.gridLayout_6.addWidget(self.doubleSpinBox_threshold, 1, 0, 1, 1)
        self.pushButton_auto_threshold = QtGui.QPushButton(
            self.groupBoxThreshold)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.pushButton_auto_threshold.setFont(font)
        self.pushButton_auto_threshold.setObjectName(
            _fromUtf8("pushButton_auto_threshold"))
        self.gridLayout_6.addWidget(self.pushButton_auto_threshold, 1, 1, 1, 1)
        self.gridLayout_3.addWidget(self.groupBoxThreshold, 3, 0, 1, 1)
        self.groupBox_stimulus = QtGui.QGroupBox(self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.groupBox_stimulus.setFont(font)
        self.groupBox_stimulus.setFlat(True)
        self.groupBox_stimulus.setObjectName(_fromUtf8("groupBox_stimulus"))
        self.gridLayout_8 = QtGui.QGridLayout(self.groupBox_stimulus)
        self.gridLayout_8.setObjectName(_fromUtf8("gridLayout_8"))
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.label_stim_type = QtGui.QLabel(self.groupBox_stimulus)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.label_stim_type.setFont(font)
        self.label_stim_type.setObjectName(_fromUtf8("label_stim_type"))
        self.horizontalLayout.addWidget(self.label_stim_type)
        self.label_frequency = QtGui.QLabel(self.groupBox_stimulus)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.label_frequency.setFont(font)
        self.label_frequency.setObjectName(_fromUtf8("label_frequency"))
        self.horizontalLayout.addWidget(self.label_frequency)
        self.gridLayout_8.addLayout(self.horizontalLayout, 0, 0, 1, 1)
        self.gridLayout_3.addWidget(self.groupBox_stimulus, 1, 0, 2, 1)
        self.groupBox_contourLvls = QtGui.QGroupBox(self.centralwidget)
        self.groupBox_contourLvls.setEnabled(False)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.groupBox_contourLvls.setFont(font)
        self.groupBox_contourLvls.setFlat(True)
        self.groupBox_contourLvls.setObjectName(
            _fromUtf8("groupBox_contourLvls"))
        self.gridLayout_5 = QtGui.QGridLayout(self.groupBox_contourLvls)
        self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5"))
        self.spinBoxContourLevels = QtGui.QSpinBox(self.groupBox_contourLvls)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.spinBoxContourLevels.setFont(font)
        self.spinBoxContourLevels.setAlignment(QtCore.Qt.AlignCenter)
        self.spinBoxContourLevels.setMinimum(1)
        self.spinBoxContourLevels.setMaximum(100)
        self.spinBoxContourLevels.setProperty("value", 10)
        self.spinBoxContourLevels.setObjectName(
            _fromUtf8("spinBoxContourLevels"))
        self.gridLayout_5.addWidget(self.spinBoxContourLevels, 0, 0, 1, 1)
        self.gridLayout_3.addWidget(self.groupBox_contourLvls, 4, 0, 1, 1)
        self.groupBox_log = QtGui.QGroupBox(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Ignored)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.groupBox_log.sizePolicy().hasHeightForWidth())
        self.groupBox_log.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.groupBox_log.setFont(font)
        self.groupBox_log.setFlat(True)
        self.groupBox_log.setObjectName(_fromUtf8("groupBox_log"))
        self.gridLayout_9 = QtGui.QGridLayout(self.groupBox_log)
        self.gridLayout_9.setObjectName(_fromUtf8("gridLayout_9"))
        self.textEdit = QtGui.QTextEdit(self.groupBox_log)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.textEdit.setFont(font)
        self.textEdit.setObjectName(_fromUtf8("textEdit"))
        self.gridLayout_9.addWidget(self.textEdit, 0, 0, 1, 1)
        self.gridLayout_3.addWidget(self.groupBox_log, 1, 2, 4, 1)
        self.gridLayout_12.addLayout(self.gridLayout_3, 0, 2, 1, 1)
        self.gridLayout.addLayout(self.gridLayout_12, 3, 0, 1, 1)
        self.gridLayout_14 = QtGui.QGridLayout()
        self.gridLayout_14.setObjectName(_fromUtf8("gridLayout_14"))
        self.groupBox_view = QtGui.QGroupBox(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.groupBox_view.sizePolicy().hasHeightForWidth())
        self.groupBox_view.setSizePolicy(sizePolicy)
        self.groupBox_view.setMinimumSize(QtCore.QSize(0, 200))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.groupBox_view.setFont(font)
        self.groupBox_view.setFlat(True)
        self.groupBox_view.setObjectName(_fromUtf8("groupBox_view"))
        self.gridLayout_11 = QtGui.QGridLayout(self.groupBox_view)
        self.gridLayout_11.setObjectName(_fromUtf8("gridLayout_11"))
        self.view = TraceWidget(self.groupBox_view)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.view.sizePolicy().hasHeightForWidth())
        self.view.setSizePolicy(sizePolicy)
        self.view.setMinimumSize(QtCore.QSize(0, 0))
        self.view.setObjectName(_fromUtf8("view"))
        self.gridLayout_11.addWidget(self.view, 1, 0, 1, 1)
        self.comboBox_trace = QtGui.QComboBox(self.groupBox_view)
        self.comboBox_trace.setEnabled(False)
        self.comboBox_trace.setMinimumSize(QtCore.QSize(75, 0))
        self.comboBox_trace.setMaximumSize(QtCore.QSize(77, 16777215))
        font = QtGui.QFont()
        font.setPointSize(8)
        self.comboBox_trace.setFont(font)
        self.comboBox_trace.setObjectName(_fromUtf8("comboBox_trace"))
        self.gridLayout_11.addWidget(self.comboBox_trace, 0, 0, 1, 1)
        self.gridLayout_14.addWidget(self.groupBox_view, 0, 0, 1, 1)
        self.gridLayout.addLayout(self.gridLayout_14, 2, 0, 1, 1)
        self.gridLayout_top = QtGui.QGridLayout()
        self.gridLayout_top.setObjectName(_fromUtf8("gridLayout_top"))
        self.label = QtGui.QLabel(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.label.setFont(font)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout_top.addWidget(self.label, 0, 0, 1, 1)
        self.lineEdit_file_name = QtGui.QLineEdit(self.centralwidget)
        self.lineEdit_file_name.setObjectName(_fromUtf8("lineEdit_file_name"))
        self.gridLayout_top.addWidget(self.lineEdit_file_name, 1, 0, 1, 1)
        self.pushButton_browse = QtGui.QPushButton(self.centralwidget)
        self.pushButton_browse.setObjectName(_fromUtf8("pushButton_browse"))
        self.gridLayout_top.addWidget(self.pushButton_browse, 1, 1, 1, 1)
        self.gridLayout.addLayout(self.gridLayout_top, 0, 0, 1, 1)
        Form_tuning_curves.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(Form_tuning_curves)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 680, 21))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        Form_tuning_curves.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(Form_tuning_curves)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        Form_tuning_curves.setStatusBar(self.statusbar)

        self.retranslateUi(Form_tuning_curves)
        QtCore.QMetaObject.connectSlotsByName(Form_tuning_curves)
Beispiel #5
0
    def setupUi(self, Form_abr):
        Form_abr.setObjectName(_fromUtf8("Form_abr"))
        Form_abr.setEnabled(True)
        Form_abr.resize(680, 535)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8("horsey.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        Form_abr.setWindowIcon(icon)
        self.centralwidget = QtGui.QWidget(Form_abr)
        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.verticalLayout_3 = QtGui.QVBoxLayout()
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.gridLayout_4 = QtGui.QGridLayout()
        self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
        self.label_comments = QtGui.QLabel(self.centralwidget)
        self.label_comments.setEnabled(False)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.label_comments.setFont(font)
        self.label_comments.setObjectName(_fromUtf8("label_comments"))
        self.gridLayout_4.addWidget(self.label_comments, 0, 3, 1, 1)
        self.label_test_num = QtGui.QLabel(self.centralwidget)
        self.label_test_num.setEnabled(False)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.label_test_num.setFont(font)
        self.label_test_num.setObjectName(_fromUtf8("label_test_num"))
        self.gridLayout_4.addWidget(self.label_test_num, 0, 0, 1, 1)
        self.comboBox_test_num = QtGui.QComboBox(self.centralwidget)
        self.comboBox_test_num.setEnabled(False)
        self.comboBox_test_num.setObjectName(_fromUtf8("comboBox_test_num"))
        self.gridLayout_4.addWidget(self.comboBox_test_num, 1, 0, 1, 1)
        self.lineEdit_comments = QtGui.QLineEdit(self.centralwidget)
        self.lineEdit_comments.setEnabled(False)
        self.lineEdit_comments.setReadOnly(True)
        self.lineEdit_comments.setObjectName(_fromUtf8("lineEdit_comments"))
        self.gridLayout_4.addWidget(self.lineEdit_comments, 1, 3, 1, 1)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum)
        self.gridLayout_4.addItem(spacerItem, 1, 1, 1, 1)
        self.verticalLayout_3.addLayout(self.gridLayout_4)
        self.gridLayout_5 = QtGui.QGridLayout()
        self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5"))
        self.label_min_sep = QtGui.QLabel(self.centralwidget)
        self.label_min_sep.setEnabled(False)
        self.label_min_sep.setObjectName(_fromUtf8("label_min_sep"))
        self.gridLayout_5.addWidget(self.label_min_sep, 0, 2, 1, 1)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridLayout_5.addItem(spacerItem1, 0, 3, 2, 1)
        self.label_frequency = QtGui.QLabel(self.centralwidget)
        self.label_frequency.setEnabled(False)
        self.label_frequency.setObjectName(_fromUtf8("label_frequency"))
        self.gridLayout_5.addWidget(self.label_frequency, 0, 0, 1, 1)
        self.comboBox_frequency = QtGui.QComboBox(self.centralwidget)
        self.comboBox_frequency.setEnabled(False)
        self.comboBox_frequency.setObjectName(_fromUtf8("comboBox_frequency"))
        self.gridLayout_5.addWidget(self.comboBox_frequency, 1, 0, 1, 1)
        self.doubleSpinBox_min_sep = QtGui.QDoubleSpinBox(self.centralwidget)
        self.doubleSpinBox_min_sep.setEnabled(False)
        self.doubleSpinBox_min_sep.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.doubleSpinBox_min_sep.setDecimals(4)
        self.doubleSpinBox_min_sep.setSingleStep(0.0001)
        self.doubleSpinBox_min_sep.setObjectName(_fromUtf8("doubleSpinBox_min_sep"))
        self.gridLayout_5.addWidget(self.doubleSpinBox_min_sep, 1, 2, 1, 1)
        spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum)
        self.gridLayout_5.addItem(spacerItem2, 1, 1, 1, 1)
        self.verticalLayout_3.addLayout(self.gridLayout_5)
        self.gridLayout_2 = QtGui.QGridLayout()
        self.gridLayout_2.setContentsMargins(-1, 10, -1, 10)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.view = TraceWidget(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.view.sizePolicy().hasHeightForWidth())
        self.view.setSizePolicy(sizePolicy)
        self.view.setObjectName(_fromUtf8("view"))
        self.gridLayout_2.addWidget(self.view, 0, 0, 1, 1)
        self.verticalLayout_3.addLayout(self.gridLayout_2)
        self.verticalLayout.addLayout(self.verticalLayout_3)
        self.gridLayout.addLayout(self.verticalLayout, 1, 0, 1, 1)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        spacerItem3 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem3)
        self.label_title = QtGui.QLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(12)
        font.setBold(True)
        font.setWeight(75)
        self.label_title.setFont(font)
        self.label_title.setObjectName(_fromUtf8("label_title"))
        self.horizontalLayout.addWidget(self.label_title)
        spacerItem4 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem4)
        self.gridLayout.addLayout(self.horizontalLayout, 0, 0, 1, 1)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.verticalLayout_5 = QtGui.QVBoxLayout()
        self.verticalLayout_5.setContentsMargins(-1, -1, 10, -1)
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.checkBox_custom_window = QtGui.QCheckBox(self.centralwidget)
        self.checkBox_custom_window.setEnabled(False)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.checkBox_custom_window.setFont(font)
        self.checkBox_custom_window.setObjectName(_fromUtf8("checkBox_custom_window"))
        self.verticalLayout_5.addWidget(self.checkBox_custom_window)
        self.line = QtGui.QFrame(self.centralwidget)
        self.line.setFrameShape(QtGui.QFrame.HLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName(_fromUtf8("line"))
        self.verticalLayout_5.addWidget(self.line)
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.verticalLayout_7 = QtGui.QVBoxLayout()
        self.verticalLayout_7.setObjectName(_fromUtf8("verticalLayout_7"))
        self.label_xmax = QtGui.QLabel(self.centralwidget)
        self.label_xmax.setEnabled(False)
        self.label_xmax.setAlignment(QtCore.Qt.AlignCenter)
        self.label_xmax.setObjectName(_fromUtf8("label_xmax"))
        self.verticalLayout_7.addWidget(self.label_xmax)
        self.doubleSpinBox_xmax = QtGui.QDoubleSpinBox(self.centralwidget)
        self.doubleSpinBox_xmax.setEnabled(False)
        self.doubleSpinBox_xmax.setDecimals(4)
        self.doubleSpinBox_xmax.setMinimum(-1.0)
        self.doubleSpinBox_xmax.setMaximum(100.0)
        self.doubleSpinBox_xmax.setSingleStep(0.001)
        self.doubleSpinBox_xmax.setProperty("value", 0.2)
        self.doubleSpinBox_xmax.setObjectName(_fromUtf8("doubleSpinBox_xmax"))
        self.verticalLayout_7.addWidget(self.doubleSpinBox_xmax)
        self.doubleSpinBox_xmin = QtGui.QDoubleSpinBox(self.centralwidget)
        self.doubleSpinBox_xmin.setEnabled(False)
        self.doubleSpinBox_xmin.setDecimals(4)
        self.doubleSpinBox_xmin.setMinimum(-1.0)
        self.doubleSpinBox_xmin.setMaximum(100.0)
        self.doubleSpinBox_xmin.setSingleStep(0.001)
        self.doubleSpinBox_xmin.setProperty("value", 0.0)
        self.doubleSpinBox_xmin.setObjectName(_fromUtf8("doubleSpinBox_xmin"))
        self.verticalLayout_7.addWidget(self.doubleSpinBox_xmin)
        self.label_xmin = QtGui.QLabel(self.centralwidget)
        self.label_xmin.setEnabled(False)
        self.label_xmin.setAlignment(QtCore.Qt.AlignCenter)
        self.label_xmin.setObjectName(_fromUtf8("label_xmin"))
        self.verticalLayout_7.addWidget(self.label_xmin)
        self.horizontalLayout_5.addLayout(self.verticalLayout_7)
        self.verticalLayout_6 = QtGui.QVBoxLayout()
        self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6"))
        self.label_ymax = QtGui.QLabel(self.centralwidget)
        self.label_ymax.setEnabled(False)
        self.label_ymax.setAlignment(QtCore.Qt.AlignCenter)
        self.label_ymax.setObjectName(_fromUtf8("label_ymax"))
        self.verticalLayout_6.addWidget(self.label_ymax)
        self.doubleSpinBox_ymax = QtGui.QDoubleSpinBox(self.centralwidget)
        self.doubleSpinBox_ymax.setEnabled(False)
        self.doubleSpinBox_ymax.setDecimals(4)
        self.doubleSpinBox_ymax.setMinimum(-100.0)
        self.doubleSpinBox_ymax.setMaximum(100.0)
        self.doubleSpinBox_ymax.setSingleStep(0.001)
        self.doubleSpinBox_ymax.setProperty("value", 0.1)
        self.doubleSpinBox_ymax.setObjectName(_fromUtf8("doubleSpinBox_ymax"))
        self.verticalLayout_6.addWidget(self.doubleSpinBox_ymax)
        self.doubleSpinBox_ymin = QtGui.QDoubleSpinBox(self.centralwidget)
        self.doubleSpinBox_ymin.setEnabled(False)
        self.doubleSpinBox_ymin.setDecimals(4)
        self.doubleSpinBox_ymin.setMinimum(-100.0)
        self.doubleSpinBox_ymin.setMaximum(100.0)
        self.doubleSpinBox_ymin.setSingleStep(0.001)
        self.doubleSpinBox_ymin.setProperty("value", -0.1)
        self.doubleSpinBox_ymin.setObjectName(_fromUtf8("doubleSpinBox_ymin"))
        self.verticalLayout_6.addWidget(self.doubleSpinBox_ymin)
        self.label_ymin = QtGui.QLabel(self.centralwidget)
        self.label_ymin.setEnabled(False)
        self.label_ymin.setAlignment(QtCore.Qt.AlignCenter)
        self.label_ymin.setObjectName(_fromUtf8("label_ymin"))
        self.verticalLayout_6.addWidget(self.label_ymin)
        self.horizontalLayout_5.addLayout(self.verticalLayout_6)
        self.verticalLayout_5.addLayout(self.horizontalLayout_5)
        self.horizontalLayout_2.addLayout(self.verticalLayout_5)
        self.line_5 = QtGui.QFrame(self.centralwidget)
        self.line_5.setFrameShape(QtGui.QFrame.VLine)
        self.line_5.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_5.setObjectName(_fromUtf8("line_5"))
        self.horizontalLayout_2.addWidget(self.line_5)
        self.gridLayout_3 = QtGui.QGridLayout()
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        spacerItem5 = QtGui.QSpacerItem(20, 100, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred)
        self.gridLayout_3.addItem(spacerItem5, 0, 1, 1, 1)
        spacerItem6 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridLayout_3.addItem(spacerItem6, 1, 0, 1, 1)
        self.horizontalLayout_2.addLayout(self.gridLayout_3)
        self.gridLayout.addLayout(self.horizontalLayout_2, 2, 0, 1, 1)
        Form_abr.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(Form_abr)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 680, 21))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        Form_abr.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(Form_abr)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        Form_abr.setStatusBar(self.statusbar)

        self.retranslateUi(Form_abr)
        QtCore.QObject.connect(self.checkBox_custom_window, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.label_xmax.setEnabled)
        QtCore.QObject.connect(self.checkBox_custom_window, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.doubleSpinBox_xmax.setEnabled)
        QtCore.QObject.connect(self.checkBox_custom_window, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.doubleSpinBox_xmin.setEnabled)
        QtCore.QObject.connect(self.checkBox_custom_window, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.label_xmin.setEnabled)
        QtCore.QObject.connect(self.checkBox_custom_window, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.label_ymax.setEnabled)
        QtCore.QObject.connect(self.checkBox_custom_window, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.doubleSpinBox_ymax.setEnabled)
        QtCore.QObject.connect(self.checkBox_custom_window, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.doubleSpinBox_ymin.setEnabled)
        QtCore.QObject.connect(self.checkBox_custom_window, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.label_ymin.setEnabled)
        QtCore.QMetaObject.connectSlotsByName(Form_abr)