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

# Form implementation generated from reading ui file 'brickv/plugin_system/plugins/dc_v2/ui/dc_v2.ui'
#
# Created by: PyQt5 UI code generator 5.15.6
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again.  Do not edit this file unless you know what you are doing.


from PyQt5 import QtCore, QtGui, QtWidgets


class Ui_DCV2(object):
    def setupUi(self, DCV2):
        DCV2.setObjectName("DCV2")
        DCV2.resize(714, 375)
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(DCV2)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.horizontal_layout = QtWidgets.QHBoxLayout()
        self.horizontal_layout.setObjectName("horizontal_layout")
        self.main_vlayout = QtWidgets.QVBoxLayout()
        self.main_vlayout.setObjectName("main_vlayout")
        self.enable_layout = QtWidgets.QHBoxLayout()
        self.enable_layout.setObjectName("enable_layout")
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.enable_layout.addItem(spacerItem)
        self.enable_checkbox = QtWidgets.QCheckBox(DCV2)
        self.enable_checkbox.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.enable_checkbox.setObjectName("enable_checkbox")
        self.enable_layout.addWidget(self.enable_checkbox)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.enable_layout.addItem(spacerItem1)
        self.main_vlayout.addLayout(self.enable_layout)
        self.line_3 = QtWidgets.QFrame(DCV2)
        self.line_3.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_3.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_3.setObjectName("line_3")
        self.main_vlayout.addWidget(self.line_3)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.velocity_label = QtWidgets.QLabel(DCV2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.velocity_label.sizePolicy().hasHeightForWidth())
        self.velocity_label.setSizePolicy(sizePolicy)
        self.velocity_label.setAlignment(QtCore.Qt.AlignCenter)
        self.velocity_label.setObjectName("velocity_label")
        self.verticalLayout.addWidget(self.velocity_label)
        self.horizontalLayout_11 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_11.setObjectName("horizontalLayout_11")
        spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_11.addItem(spacerItem2)
        self.velocity_slider = QtWidgets.QSlider(DCV2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.velocity_slider.sizePolicy().hasHeightForWidth())
        self.velocity_slider.setSizePolicy(sizePolicy)
        self.velocity_slider.setMinimum(-32767)
        self.velocity_slider.setMaximum(32767)
        self.velocity_slider.setPageStep(1000)
        self.velocity_slider.setOrientation(QtCore.Qt.Vertical)
        self.velocity_slider.setObjectName("velocity_slider")
        self.horizontalLayout_11.addWidget(self.velocity_slider)
        spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_11.addItem(spacerItem3)
        self.verticalLayout.addLayout(self.horizontalLayout_11)
        self.velocity_spin = QtWidgets.QSpinBox(DCV2)
        self.velocity_spin.setMinimumSize(QtCore.QSize(130, 0))
        self.velocity_spin.setButtonSymbols(QtWidgets.QAbstractSpinBox.UpDownArrows)
        self.velocity_spin.setMinimum(-32767)
        self.velocity_spin.setMaximum(32767)
        self.velocity_spin.setSingleStep(1000)
        self.velocity_spin.setObjectName("velocity_spin")
        self.verticalLayout.addWidget(self.velocity_spin)
        self.horizontalLayout_3.addLayout(self.verticalLayout)
        self.verticalLayout_3 = QtWidgets.QVBoxLayout()
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.acceleration_label = QtWidgets.QLabel(DCV2)
        self.acceleration_label.setAlignment(QtCore.Qt.AlignCenter)
        self.acceleration_label.setObjectName("acceleration_label")
        self.verticalLayout_3.addWidget(self.acceleration_label)
        self.horizontalLayout_10 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_10.setObjectName("horizontalLayout_10")
        spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_10.addItem(spacerItem4)
        self.acceleration_slider = QtWidgets.QSlider(DCV2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.acceleration_slider.sizePolicy().hasHeightForWidth())
        self.acceleration_slider.setSizePolicy(sizePolicy)
        self.acceleration_slider.setMinimum(0)
        self.acceleration_slider.setMaximum(65535)
        self.acceleration_slider.setPageStep(1000)
        self.acceleration_slider.setOrientation(QtCore.Qt.Vertical)
        self.acceleration_slider.setObjectName("acceleration_slider")
        self.horizontalLayout_10.addWidget(self.acceleration_slider)
        spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_10.addItem(spacerItem5)
        self.verticalLayout_3.addLayout(self.horizontalLayout_10)
        self.acceleration_spin = QtWidgets.QSpinBox(DCV2)
        self.acceleration_spin.setMinimumSize(QtCore.QSize(130, 0))
        self.acceleration_spin.setButtonSymbols(QtWidgets.QAbstractSpinBox.UpDownArrows)
        self.acceleration_spin.setMaximum(65535)
        self.acceleration_spin.setSingleStep(1000)
        self.acceleration_spin.setObjectName("acceleration_spin")
        self.verticalLayout_3.addWidget(self.acceleration_spin)
        self.horizontalLayout_3.addLayout(self.verticalLayout_3)
        self.verticalLayout_2 = QtWidgets.QVBoxLayout()
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.label_2 = QtWidgets.QLabel(DCV2)
        self.label_2.setAlignment(QtCore.Qt.AlignCenter)
        self.label_2.setObjectName("label_2")
        self.verticalLayout_2.addWidget(self.label_2)
        self.horizontalLayout_12 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_12.setObjectName("horizontalLayout_12")
        spacerItem6 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_12.addItem(spacerItem6)
        self.deceleration_slider = QtWidgets.QSlider(DCV2)
        self.deceleration_slider.setMaximum(65535)
        self.deceleration_slider.setOrientation(QtCore.Qt.Vertical)
        self.deceleration_slider.setObjectName("deceleration_slider")
        self.horizontalLayout_12.addWidget(self.deceleration_slider)
        spacerItem7 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_12.addItem(spacerItem7)
        self.verticalLayout_2.addLayout(self.horizontalLayout_12)
        self.deceleration_spin = QtWidgets.QSpinBox(DCV2)
        self.deceleration_spin.setMaximum(65535)
        self.deceleration_spin.setObjectName("deceleration_spin")
        self.verticalLayout_2.addWidget(self.deceleration_spin)
        self.horizontalLayout_3.addLayout(self.verticalLayout_2)
        self.verticalLayout_4 = QtWidgets.QVBoxLayout()
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.label_4 = QtWidgets.QLabel(DCV2)
        self.label_4.setAlignment(QtCore.Qt.AlignCenter)
        self.label_4.setObjectName("label_4")
        self.verticalLayout_4.addWidget(self.label_4)
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        spacerItem8 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_7.addItem(spacerItem8)
        self.frequency_slider = QtWidgets.QSlider(DCV2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.frequency_slider.sizePolicy().hasHeightForWidth())
        self.frequency_slider.setSizePolicy(sizePolicy)
        self.frequency_slider.setMinimum(1000)
        self.frequency_slider.setMaximum(50000)
        self.frequency_slider.setPageStep(1000)
        self.frequency_slider.setProperty("value", 20000)
        self.frequency_slider.setOrientation(QtCore.Qt.Vertical)
        self.frequency_slider.setObjectName("frequency_slider")
        self.horizontalLayout_7.addWidget(self.frequency_slider)
        spacerItem9 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_7.addItem(spacerItem9)
        self.verticalLayout_4.addLayout(self.horizontalLayout_7)
        self.frequency_spin = QtWidgets.QSpinBox(DCV2)
        self.frequency_spin.setMinimumSize(QtCore.QSize(120, 0))
        self.frequency_spin.setButtonSymbols(QtWidgets.QAbstractSpinBox.UpDownArrows)
        self.frequency_spin.setMinimum(1000)
        self.frequency_spin.setMaximum(50000)
        self.frequency_spin.setSingleStep(1000)
        self.frequency_spin.setObjectName("frequency_spin")
        self.verticalLayout_4.addWidget(self.frequency_spin)
        self.horizontalLayout_3.addLayout(self.verticalLayout_4)
        self.main_vlayout.addLayout(self.horizontalLayout_3)
        self.full_brake_button = QtWidgets.QPushButton(DCV2)
        self.full_brake_button.setObjectName("full_brake_button")
        self.main_vlayout.addWidget(self.full_brake_button)
        self.horizontalLayout_9 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_9.setObjectName("horizontalLayout_9")
        self.label_8 = QtWidgets.QLabel(DCV2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_8.sizePolicy().hasHeightForWidth())
        self.label_8.setSizePolicy(sizePolicy)
        self.label_8.setObjectName("label_8")
        self.horizontalLayout_9.addWidget(self.label_8)
        self.radio_mode_brake = QtWidgets.QRadioButton(DCV2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.radio_mode_brake.sizePolicy().hasHeightForWidth())
        self.radio_mode_brake.setSizePolicy(sizePolicy)
        self.radio_mode_brake.setObjectName("radio_mode_brake")
        self.horizontalLayout_9.addWidget(self.radio_mode_brake)
        self.radio_mode_coast = QtWidgets.QRadioButton(DCV2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.radio_mode_coast.sizePolicy().hasHeightForWidth())
        self.radio_mode_coast.setSizePolicy(sizePolicy)
        self.radio_mode_coast.setObjectName("radio_mode_coast")
        self.horizontalLayout_9.addWidget(self.radio_mode_coast)
        self.main_vlayout.addLayout(self.horizontalLayout_9)
        self.horizontal_layout.addLayout(self.main_vlayout)
        self.line_2 = QtWidgets.QFrame(DCV2)
        self.line_2.setFrameShape(QtWidgets.QFrame.VLine)
        self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_2.setObjectName("line_2")
        self.horizontal_layout.addWidget(self.line_2)
        self.vertical_layout_right = QtWidgets.QVBoxLayout()
        self.vertical_layout_right.setObjectName("vertical_layout_right")
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.label_3 = QtWidgets.QLabel(DCV2)
        self.label_3.setObjectName("label_3")
        self.horizontalLayout_4.addWidget(self.label_3)
        self.input_voltage_label = QtWidgets.QLabel(DCV2)
        self.input_voltage_label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.input_voltage_label.setObjectName("input_voltage_label")
        self.horizontalLayout_4.addWidget(self.input_voltage_label)
        self.vertical_layout_right.addLayout(self.horizontalLayout_4)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.label_6 = QtWidgets.QLabel(DCV2)
        self.label_6.setObjectName("label_6")
        self.horizontalLayout.addWidget(self.label_6)
        self.current_label = QtWidgets.QLabel(DCV2)
        self.current_label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.current_label.setObjectName("current_label")
        self.horizontalLayout.addWidget(self.current_label)
        self.vertical_layout_right.addLayout(self.horizontalLayout)
        self.horizontalLayout_8 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
        self.label = QtWidgets.QLabel(DCV2)
        self.label.setObjectName("label")
        self.horizontalLayout_8.addWidget(self.label)
        self.current_velocity_label = QtWidgets.QLabel(DCV2)
        self.current_velocity_label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.current_velocity_label.setObjectName("current_velocity_label")
        self.horizontalLayout_8.addWidget(self.current_velocity_label)
        self.vertical_layout_right.addLayout(self.horizontalLayout_8)
        self.line = QtWidgets.QFrame(DCV2)
        self.line.setFrameShape(QtWidgets.QFrame.HLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.vertical_layout_right.addWidget(self.line)
        spacerItem10 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.vertical_layout_right.addItem(spacerItem10)
        self.speedometer = SpeedoMeter(DCV2)
        self.speedometer.setMinimumSize(QtCore.QSize(0, 20))
        self.speedometer.setObjectName("speedometer")
        self.vertical_layout_right.addWidget(self.speedometer)
        spacerItem11 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.vertical_layout_right.addItem(spacerItem11)
        self.horizontal_layout.addLayout(self.vertical_layout_right)
        self.verticalLayout_5.addLayout(self.horizontal_layout)
        self.line_4 = QtWidgets.QFrame(DCV2)
        self.line_4.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_4.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_4.setObjectName("line_4")
        self.verticalLayout_5.addWidget(self.line_4)

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

    def retranslateUi(self, DCV2):
        _translate = QtCore.QCoreApplication.translate
        DCV2.setWindowTitle(_translate("DCV2", "Form"))
        self.enable_checkbox.setText(_translate("DCV2", "Enable DC Motor"))
        self.velocity_label.setText(_translate("DCV2", "Velocity"))
        self.acceleration_label.setText(_translate("DCV2", "Acceleration"))
        self.label_2.setText(_translate("DCV2", "Deceleration"))
        self.label_4.setText(_translate("DCV2", "PWM Frequency (Hz)"))
        self.full_brake_button.setText(_translate("DCV2", "Full Brake"))
        self.label_8.setText(_translate("DCV2", "Drive Mode:"))
        self.radio_mode_brake.setText(_translate("DCV2", "Drive/Brake"))
        self.radio_mode_coast.setText(_translate("DCV2", "Drive/Coast"))
        self.label_3.setText(_translate("DCV2", "Input Voltage:"))
        self.input_voltage_label.setText(_translate("DCV2", "0V"))
        self.label_6.setText(_translate("DCV2", "Current Consumption:"))
        self.current_label.setText(_translate("DCV2", "0A"))
        self.label.setText(_translate("DCV2", "Current Velocity:"))
        self.current_velocity_label.setText(_translate("DCV2", "0 (0%)"))
from brickv.plugin_system.plugins.dc.speedometer import SpeedoMeter
