# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'channel.ui'
#
# Created by: PyQt5 UI code generator 5.10.1
#
# WARNING! All changes made in this file will be lost!

from PyQt5 import QtCore, QtGui, QtWidgets

class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(846, 421)
        self.gridLayout = QtWidgets.QGridLayout(Form)
        self.gridLayout.setObjectName("gridLayout")
        self.kpBox = QtWidgets.QDoubleSpinBox(Form)
        self.kpBox.setMinimum(-99.0)
        self.kpBox.setSingleStep(0.01)
        self.kpBox.setProperty("value", 1.0)
        self.kpBox.setObjectName("kpBox")
        self.gridLayout.addWidget(self.kpBox, 1, 1, 1, 1)
        self.label_4 = QtWidgets.QLabel(Form)
        self.label_4.setObjectName("label_4")
        self.gridLayout.addWidget(self.label_4, 0, 0, 1, 1)
        self.PIDenableButton = QtWidgets.QPushButton(Form)
        self.PIDenableButton.setStyleSheet("background-color: rgb(255,0,0)")
        self.PIDenableButton.setCheckable(True)
        self.PIDenableButton.setObjectName("PIDenableButton")
        self.gridLayout.addWidget(self.PIDenableButton, 4, 0, 1, 1)
        self.setpointBox = QtWidgets.QDoubleSpinBox(Form)
        self.setpointBox.setDecimals(4)
        self.setpointBox.setSingleStep(0.01)
        self.setpointBox.setProperty("value", 22.0)
        self.setpointBox.setObjectName("setpointBox")
        self.gridLayout.addWidget(self.setpointBox, 0, 1, 1, 1)
        self.label_3 = QtWidgets.QLabel(Form)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 3, 0, 1, 1)
        self.label = QtWidgets.QLabel(Form)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 1, 0, 1, 1)
        spacerItem = QtWidgets.QSpacerItem(0, 50, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem, 6, 1, 1, 1)
        self.kdBox = QtWidgets.QDoubleSpinBox(Form)
        self.kdBox.setMinimum(-99.0)
        self.kdBox.setSingleStep(0.01)
        self.kdBox.setProperty("value", 1.0)
        self.kdBox.setObjectName("kdBox")
        self.gridLayout.addWidget(self.kdBox, 3, 1, 1, 1)
        self.OutputButton = QtWidgets.QPushButton(Form)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.OutputButton.sizePolicy().hasHeightForWidth())
        self.OutputButton.setSizePolicy(sizePolicy)
        self.OutputButton.setMaximumSize(QtCore.QSize(100, 16777215))
        self.OutputButton.setObjectName("OutputButton")
        self.gridLayout.addWidget(self.OutputButton, 5, 1, 1, 1)
        self.outputBox = QtWidgets.QDoubleSpinBox(Form)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.outputBox.sizePolicy().hasHeightForWidth())
        self.outputBox.setSizePolicy(sizePolicy)
        self.outputBox.setMaximumSize(QtCore.QSize(100, 16777215))
        self.outputBox.setDecimals(3)
        self.outputBox.setMinimum(0.0)
        self.outputBox.setMaximum(5.0)
        self.outputBox.setSingleStep(0.01)
        self.outputBox.setObjectName("outputBox")
        self.gridLayout.addWidget(self.outputBox, 5, 0, 1, 1)
        self.label_2 = QtWidgets.QLabel(Form)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 2, 0, 1, 1)
        self.kiBox = QtWidgets.QDoubleSpinBox(Form)
        self.kiBox.setMinimum(-99.0)
        self.kiBox.setSingleStep(0.01)
        self.kiBox.setProperty("value", 1.0)
        self.kiBox.setObjectName("kiBox")
        self.gridLayout.addWidget(self.kiBox, 2, 1, 1, 1)
        self.widget = QtWidgets.QWidget(Form)
        self.widget.setObjectName("widget")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.widget)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.widget_2 = QtWidgets.QWidget(self.widget)
        self.widget_2.setObjectName("widget_2")
        self.temp_layout = QtWidgets.QHBoxLayout(self.widget_2)
        self.temp_layout.setObjectName("temp_layout")
        self.gridLayout_2.addWidget(self.widget_2, 0, 0, 1, 1)
        self.widget_3 = QtWidgets.QWidget(self.widget)
        self.widget_3.setObjectName("widget_3")
        self.error_layout = QtWidgets.QHBoxLayout(self.widget_3)
        self.error_layout.setObjectName("error_layout")
        self.gridLayout_2.addWidget(self.widget_3, 0, 1, 1, 1)
        self.widget_4 = QtWidgets.QWidget(self.widget)
        self.widget_4.setObjectName("widget_4")
        self.output_layout = QtWidgets.QHBoxLayout(self.widget_4)
        self.output_layout.setObjectName("output_layout")
        self.gridLayout_2.addWidget(self.widget_4, 1, 1, 1, 1)
        self.groupBox_3 = QtWidgets.QGroupBox(self.widget)
        self.groupBox_3.setObjectName("groupBox_3")
        self.gridLayout_4 = QtWidgets.QGridLayout(self.groupBox_3)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.label_5 = QtWidgets.QLabel(self.groupBox_3)
        self.label_5.setObjectName("label_5")
        self.gridLayout_4.addWidget(self.label_5, 1, 0, 1, 1)
        self.zeroVoltage = QtWidgets.QDoubleSpinBox(self.groupBox_3)
        self.zeroVoltage.setMinimum(-5.0)
        self.zeroVoltage.setMaximum(5.0)
        self.zeroVoltage.setSingleStep(0.1)
        self.zeroVoltage.setProperty("value", 1.29)
        self.zeroVoltage.setObjectName("zeroVoltage")
        self.gridLayout_4.addWidget(self.zeroVoltage, 2, 0, 1, 1)
        spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.gridLayout_4.addItem(spacerItem1, 3, 0, 1, 1)
        self.peltierCheckBox = QtWidgets.QCheckBox(self.groupBox_3)
        self.peltierCheckBox.setObjectName("peltierCheckBox")
        self.gridLayout_4.addWidget(self.peltierCheckBox, 0, 0, 1, 1)
        self.gridLayout_2.addWidget(self.groupBox_3, 1, 0, 1, 1)
        self.gridLayout.addWidget(self.widget, 0, 2, 8, 1)
        self.groupBox = QtWidgets.QGroupBox(Form)
        self.groupBox.setMinimumSize(QtCore.QSize(0, 160))
        self.groupBox.setObjectName("groupBox")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBox)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.doubleSpinBox_3 = QtWidgets.QDoubleSpinBox(self.groupBox)
        self.doubleSpinBox_3.setObjectName("doubleSpinBox_3")
        self.gridLayout_3.addWidget(self.doubleSpinBox_3, 3, 0, 1, 1)
        self.currentBox = QtWidgets.QDoubleSpinBox(self.groupBox)
        self.currentBox.setPrefix("")
        self.currentBox.setSingleStep(0.1)
        self.currentBox.setObjectName("currentBox")
        self.gridLayout_3.addWidget(self.currentBox, 0, 0, 1, 1)
        self.CurrentButton = QtWidgets.QPushButton(self.groupBox)
        self.CurrentButton.setObjectName("CurrentButton")
        self.gridLayout_3.addWidget(self.CurrentButton, 0, 1, 1, 1)
        self.PhaseButton = QtWidgets.QPushButton(self.groupBox)
        self.PhaseButton.setObjectName("PhaseButton")
        self.gridLayout_3.addWidget(self.PhaseButton, 3, 1, 1, 1)
        self.groupBox_2 = QtWidgets.QGroupBox(self.groupBox)
        self.groupBox_2.setObjectName("groupBox_2")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.groupBox_2)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.factorBox = QtWidgets.QDoubleSpinBox(self.groupBox_2)
        self.factorBox.setObjectName("factorBox")
        self.horizontalLayout.addWidget(self.factorBox)
        self.FactorButton = QtWidgets.QPushButton(self.groupBox_2)
        self.FactorButton.setObjectName("FactorButton")
        self.horizontalLayout.addWidget(self.FactorButton)
        self.gridLayout_3.addWidget(self.groupBox_2, 1, 0, 1, 2)
        self.gridLayout.addWidget(self.groupBox, 7, 0, 1, 2)

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

    def retranslateUi(self, Form):
        _translate = QtCore.QCoreApplication.translate
        Form.setWindowTitle(_translate("Form", "Form"))
        self.label_4.setText(_translate("Form", "Setpoint (°C)"))
        self.PIDenableButton.setText(_translate("Form", "PID enable"))
        self.label_3.setText(_translate("Form", "kd"))
        self.label.setText(_translate("Form", "kp"))
        self.OutputButton.setText(_translate("Form", "Set output"))
        self.outputBox.setSuffix(_translate("Form", " V"))
        self.label_2.setText(_translate("Form", "ki"))
        self.groupBox_3.setTitle(_translate("Form", "Parameter"))
        self.label_5.setText(_translate("Form", "Zero voltage"))
        self.zeroVoltage.setSuffix(_translate("Form", " V"))
        self.peltierCheckBox.setText(_translate("Form", "Peltier? (allow negativ voltages)"))
        self.groupBox.setTitle(_translate("Form", "U-I-Wandler"))
        self.doubleSpinBox_3.setSuffix(_translate("Form", " °"))
        self.currentBox.setSuffix(_translate("Form", " mA"))
        self.CurrentButton.setText(_translate("Form", "Set current"))
        self.PhaseButton.setText(_translate("Form", "Set phase"))
        self.groupBox_2.setTitle(_translate("Form", "Current-phase factor:"))
        self.FactorButton.setText(_translate("Form", "Set factor"))

