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

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

from PyQt5 import QtCore, QtGui, QtWidgets

class Ui_PluginWidget(object):
    def setupUi(self, PluginWidget):
        PluginWidget.setObjectName("PluginWidget")
        PluginWidget.resize(446, 30)
        PluginWidget.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
        PluginWidget.setLineWidth(0)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(PluginWidget)
        self.horizontalLayout_2.setContentsMargins(4, 3, 6, 3)
        self.horizontalLayout_2.setSpacing(1)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.w_buttons = QtWidgets.QWidget(PluginWidget)
        self.w_buttons.setMinimumSize(QtCore.QSize(72, 24))
        self.w_buttons.setMaximumSize(QtCore.QSize(72, 24))
        self.w_buttons.setObjectName("w_buttons")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.w_buttons)
        self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout.setSpacing(0)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.b_enable = PixmapButton(self.w_buttons)
        self.b_enable.setMinimumSize(QtCore.QSize(24, 24))
        self.b_enable.setMaximumSize(QtCore.QSize(24, 24))
        self.b_enable.setText("")
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/bitmaps/button_off.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.b_enable.setIcon(icon)
        self.b_enable.setIconSize(QtCore.QSize(24, 24))
        self.b_enable.setCheckable(True)
        self.b_enable.setFlat(True)
        self.b_enable.setObjectName("b_enable")
        self.horizontalLayout.addWidget(self.b_enable)
        self.b_gui = PixmapButton(self.w_buttons)
        self.b_gui.setMinimumSize(QtCore.QSize(24, 24))
        self.b_gui.setMaximumSize(QtCore.QSize(24, 24))
        self.b_gui.setText("")
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(":/bitmaps/button_gui.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.b_gui.setIcon(icon1)
        self.b_gui.setIconSize(QtCore.QSize(24, 24))
        self.b_gui.setCheckable(True)
        self.b_gui.setFlat(True)
        self.b_gui.setObjectName("b_gui")
        self.horizontalLayout.addWidget(self.b_gui)
        self.b_edit = PixmapButton(self.w_buttons)
        self.b_edit.setMinimumSize(QtCore.QSize(24, 24))
        self.b_edit.setMaximumSize(QtCore.QSize(24, 24))
        self.b_edit.setText("")
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(":/bitmaps/button_edit.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.b_edit.setIcon(icon2)
        self.b_edit.setIconSize(QtCore.QSize(24, 24))
        self.b_edit.setCheckable(True)
        self.b_edit.setFlat(True)
        self.b_edit.setObjectName("b_edit")
        self.horizontalLayout.addWidget(self.b_edit)
        self.horizontalLayout_2.addWidget(self.w_buttons)
        spacerItem = QtWidgets.QSpacerItem(6, 1, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem)
        self.line_name_sep = QtWidgets.QFrame(PluginWidget)
        self.line_name_sep.setMinimumSize(QtCore.QSize(0, 20))
        self.line_name_sep.setMaximumSize(QtCore.QSize(16777215, 20))
        self.line_name_sep.setLineWidth(0)
        self.line_name_sep.setMidLineWidth(1)
        self.line_name_sep.setFrameShape(QtWidgets.QFrame.VLine)
        self.line_name_sep.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_name_sep.setObjectName("line_name_sep")
        self.horizontalLayout_2.addWidget(self.line_name_sep)
        spacerItem1 = QtWidgets.QSpacerItem(8, 1, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem1)
        self.label_name = QtWidgets.QLabel(PluginWidget)
        self.label_name.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.label_name.setObjectName("label_name")
        self.horizontalLayout_2.addWidget(self.label_name)
        spacerItem2 = QtWidgets.QSpacerItem(19, 1, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem2)
        self.layout_peaks = QtWidgets.QHBoxLayout()
        self.layout_peaks.setContentsMargins(4, 2, 4, 2)
        self.layout_peaks.setSpacing(4)
        self.layout_peaks.setObjectName("layout_peaks")
        self.peak_in = DigitalPeakMeter(PluginWidget)
        self.peak_in.setMinimumSize(QtCore.QSize(100, 0))
        self.peak_in.setMaximumSize(QtCore.QSize(100, 16777215))
        self.peak_in.setObjectName("peak_in")
        self.layout_peaks.addWidget(self.peak_in)
        self.peak_out = DigitalPeakMeter(PluginWidget)
        self.peak_out.setMinimumSize(QtCore.QSize(100, 0))
        self.peak_out.setMaximumSize(QtCore.QSize(100, 16777215))
        self.peak_out.setObjectName("peak_out")
        self.layout_peaks.addWidget(self.peak_out)
        self.horizontalLayout_2.addLayout(self.layout_peaks)
        self.layout_leds = QtWidgets.QHBoxLayout()
        self.layout_leds.setSpacing(1)
        self.layout_leds.setObjectName("layout_leds")
        self.led_control = LEDButton(PluginWidget)
        self.led_control.setMinimumSize(QtCore.QSize(14, 14))
        self.led_control.setMaximumSize(QtCore.QSize(14, 14))
        self.led_control.setText("")
        self.led_control.setCheckable(True)
        self.led_control.setObjectName("led_control")
        self.layout_leds.addWidget(self.led_control)
        self.led_midi = LEDButton(PluginWidget)
        self.led_midi.setMinimumSize(QtCore.QSize(14, 14))
        self.led_midi.setMaximumSize(QtCore.QSize(14, 14))
        self.led_midi.setText("")
        self.led_midi.setCheckable(True)
        self.led_midi.setObjectName("led_midi")
        self.layout_leds.addWidget(self.led_midi)
        self.led_audio_in = LEDButton(PluginWidget)
        self.led_audio_in.setMinimumSize(QtCore.QSize(14, 14))
        self.led_audio_in.setMaximumSize(QtCore.QSize(14, 14))
        self.led_audio_in.setText("")
        self.led_audio_in.setCheckable(True)
        self.led_audio_in.setObjectName("led_audio_in")
        self.layout_leds.addWidget(self.led_audio_in)
        self.led_audio_out = LEDButton(PluginWidget)
        self.led_audio_out.setMinimumSize(QtCore.QSize(14, 14))
        self.led_audio_out.setMaximumSize(QtCore.QSize(14, 14))
        self.led_audio_out.setText("")
        self.led_audio_out.setCheckable(True)
        self.led_audio_out.setObjectName("led_audio_out")
        self.layout_leds.addWidget(self.led_audio_out)
        self.horizontalLayout_2.addLayout(self.layout_leds)

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

    def retranslateUi(self, PluginWidget):
        _translate = QtCore.QCoreApplication.translate
        PluginWidget.setWindowTitle(_translate("PluginWidget", "Frame"))
        self.label_name.setText(_translate("PluginWidget", "PluginName"))

from widgets.digitalpeakmeter import DigitalPeakMeter
from widgets.ledbutton import LEDButton
from widgets.pixmapbutton import PixmapButton
import resources_rc
