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

# Form implementation generated from reading ui file 'support/mixer/mixer_bcoaudio5.ui'
#
# Created: Sat May 23 13:44:30 2009
#      by: The PyQt User Interface Compiler (pyuic) 3.17.2
#
# WARNING! All changes made in this file will be lost!


from qt import *


class BCoAudio5ControlUI(QWidget):
    def __init__(self,parent = None,name = None,fl = 0):
        QWidget.__init__(self,parent,name,fl)

        if not name:
            self.setName("BCoAudio5ControlUI")


        BCoAudio5ControlUILayout = QGridLayout(self,1,1,11,6,"BCoAudio5ControlUILayout")

        self.textLabel1_2_3_2 = QLabel(self,"textLabel1_2_3_2")

        BCoAudio5ControlUILayout.addWidget(self.textLabel1_2_3_2,1,0)

        self.comboMixSource = QComboBox(0,self,"comboMixSource")

        BCoAudio5ControlUILayout.addWidget(self.comboMixSource,1,1)

        self.groupBox1_3 = QGroupBox(self,"groupBox1_3")
        self.groupBox1_3.setColumnLayout(0,Qt.Vertical)
        self.groupBox1_3.layout().setSpacing(6)
        self.groupBox1_3.layout().setMargin(11)
        groupBox1_3Layout = QGridLayout(self.groupBox1_3.layout())
        groupBox1_3Layout.setAlignment(Qt.AlignTop)

        self.comboClockSelect = QComboBox(0,self.groupBox1_3,"comboClockSelect")

        groupBox1_3Layout.addWidget(self.comboClockSelect,0,0)

        BCoAudio5ControlUILayout.addMultiCellWidget(self.groupBox1_3,2,2,0,1)

        layout75 = QHBoxLayout(None,0,6,"layout75")

        self.groupBox1 = QGroupBox(self,"groupBox1")
        self.groupBox1.setColumnLayout(0,Qt.Vertical)
        self.groupBox1.layout().setSpacing(6)
        self.groupBox1.layout().setMargin(11)
        groupBox1Layout = QGridLayout(self.groupBox1.layout())
        groupBox1Layout.setAlignment(Qt.AlignTop)

        self.textLabel2_2 = QLabel(self.groupBox1,"textLabel2_2")
        self.textLabel2_2.setAlignment(QLabel.AlignCenter)

        groupBox1Layout.addWidget(self.textLabel2_2,0,1)

        self.textLabel2_4_2 = QLabel(self.groupBox1,"textLabel2_4_2")
        self.textLabel2_4_2.setAlignment(QLabel.AlignCenter)

        groupBox1Layout.addWidget(self.textLabel2_4_2,0,2)

        self.sldInputSPDIF = QSlider(self.groupBox1,"sldInputSPDIF")
        self.sldInputSPDIF.setMinValue(0)
        self.sldInputSPDIF.setMaxValue(32767)
        self.sldInputSPDIF.setLineStep(10000)
        self.sldInputSPDIF.setPageStep(1000)
        self.sldInputSPDIF.setOrientation(QSlider.Vertical)
        self.sldInputSPDIF.setTickmarks(QSlider.Both)
        self.sldInputSPDIF.setTickInterval(10000)

        groupBox1Layout.addWidget(self.sldInputSPDIF,1,2)

        self.sldInput34 = QSlider(self.groupBox1,"sldInput34")
        self.sldInput34.setMinValue(0)
        self.sldInput34.setMaxValue(32767)
        self.sldInput34.setLineStep(10000)
        self.sldInput34.setPageStep(1000)
        self.sldInput34.setOrientation(QSlider.Vertical)
        self.sldInput34.setTickmarks(QSlider.Both)
        self.sldInput34.setTickInterval(10000)

        groupBox1Layout.addWidget(self.sldInput34,1,1)

        self.textLabel2 = QLabel(self.groupBox1,"textLabel2")
        self.textLabel2.setAlignment(QLabel.AlignCenter)

        groupBox1Layout.addWidget(self.textLabel2,0,0)

        self.sldInput12 = QSlider(self.groupBox1,"sldInput12")
        self.sldInput12.setMinValue(0)
        self.sldInput12.setMaxValue(32767)
        self.sldInput12.setLineStep(10000)
        self.sldInput12.setPageStep(1000)
        self.sldInput12.setOrientation(QSlider.Vertical)
        self.sldInput12.setTickmarks(QSlider.Both)
        self.sldInput12.setTickInterval(10000)

        groupBox1Layout.addWidget(self.sldInput12,1,0)
        layout75.addWidget(self.groupBox1)

        self.groupBox1_2 = QGroupBox(self,"groupBox1_2")
        self.groupBox1_2.setColumnLayout(0,Qt.Vertical)
        self.groupBox1_2.layout().setSpacing(6)
        self.groupBox1_2.layout().setMargin(11)
        groupBox1_2Layout = QGridLayout(self.groupBox1_2.layout())
        groupBox1_2Layout.setAlignment(Qt.AlignTop)

        self.textLabel2_3 = QLabel(self.groupBox1_2,"textLabel2_3")
        self.textLabel2_3.setAlignment(QLabel.AlignCenter)

        groupBox1_2Layout.addWidget(self.textLabel2_3,0,0)

        self.sldOutput12 = QSlider(self.groupBox1_2,"sldOutput12")
        self.sldOutput12.setMinValue(0)
        self.sldOutput12.setMaxValue(32767)
        self.sldOutput12.setLineStep(10000)
        self.sldOutput12.setPageStep(1000)
        self.sldOutput12.setOrientation(QSlider.Vertical)
        self.sldOutput12.setTickmarks(QSlider.Both)
        self.sldOutput12.setTickInterval(10000)

        groupBox1_2Layout.addWidget(self.sldOutput12,1,0)

        self.sldOutput34 = QSlider(self.groupBox1_2,"sldOutput34")
        self.sldOutput34.setMinValue(0)
        self.sldOutput34.setMaxValue(32767)
        self.sldOutput34.setLineStep(10000)
        self.sldOutput34.setPageStep(1000)
        self.sldOutput34.setOrientation(QSlider.Vertical)
        self.sldOutput34.setTickmarks(QSlider.Both)
        self.sldOutput34.setTickInterval(10000)

        groupBox1_2Layout.addWidget(self.sldOutput34,1,1)

        self.textLabel2_2_2 = QLabel(self.groupBox1_2,"textLabel2_2_2")
        self.textLabel2_2_2.setAlignment(QLabel.AlignCenter)

        groupBox1_2Layout.addWidget(self.textLabel2_2_2,0,1)
        layout75.addWidget(self.groupBox1_2)

        self.groupBox1_2_2 = QGroupBox(self,"groupBox1_2_2")
        self.groupBox1_2_2.setColumnLayout(0,Qt.Vertical)
        self.groupBox1_2_2.layout().setSpacing(6)
        self.groupBox1_2_2.layout().setMargin(11)
        groupBox1_2_2Layout = QGridLayout(self.groupBox1_2_2.layout())
        groupBox1_2_2Layout.setAlignment(Qt.AlignTop)

        self.sldCrossA = QSlider(self.groupBox1_2_2,"sldCrossA")
        self.sldCrossA.setMinValue(0)
        self.sldCrossA.setMaxValue(32767)
        self.sldCrossA.setLineStep(10000)
        self.sldCrossA.setPageStep(1000)
        self.sldCrossA.setOrientation(QSlider.Vertical)
        self.sldCrossA.setTickmarks(QSlider.Both)
        self.sldCrossA.setTickInterval(10000)

        groupBox1_2_2Layout.addWidget(self.sldCrossA,1,0)

        self.sldCrossB = QSlider(self.groupBox1_2_2,"sldCrossB")
        self.sldCrossB.setMinValue(0)
        self.sldCrossB.setMaxValue(32767)
        self.sldCrossB.setLineStep(10000)
        self.sldCrossB.setPageStep(1000)
        self.sldCrossB.setOrientation(QSlider.Vertical)
        self.sldCrossB.setTickmarks(QSlider.Both)
        self.sldCrossB.setTickInterval(10000)

        groupBox1_2_2Layout.addWidget(self.sldCrossB,1,1)

        self.textLabel2_3_2 = QLabel(self.groupBox1_2_2,"textLabel2_3_2")
        self.textLabel2_3_2.setAlignment(QLabel.AlignCenter)

        groupBox1_2_2Layout.addWidget(self.textLabel2_3_2,0,0)

        self.textLabel2_2_2_2 = QLabel(self.groupBox1_2_2,"textLabel2_2_2_2")
        self.textLabel2_2_2_2.setAlignment(QLabel.AlignCenter)

        groupBox1_2_2Layout.addWidget(self.textLabel2_2_2_2,0,1)
        layout75.addWidget(self.groupBox1_2_2)
        spacer18 = QSpacerItem(40,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
        layout75.addItem(spacer18)

        BCoAudio5ControlUILayout.addMultiCellLayout(layout75,0,0,0,1)

        self.languageChange()

        self.resize(QSize(335,352).expandedTo(self.minimumSizeHint()))
        self.clearWState(Qt.WState_Polished)

        self.connect(self.sldInput12,SIGNAL("sliderMoved(int)"),self.setVolumeIn12)
        self.connect(self.sldInput34,SIGNAL("sliderMoved(int)"),self.setVolumeIn34)
        self.connect(self.sldInputSPDIF,SIGNAL("sliderMoved(int)"),self.setVolumeInSPDIF)
        self.connect(self.sldOutput12,SIGNAL("sliderMoved(int)"),self.setVolumeOut12)
        self.connect(self.sldOutput34,SIGNAL("sliderMoved(int)"),self.setVolumeOut34)
        self.connect(self.sldCrossA,SIGNAL("sliderMoved(int)"),self.setCrossA)
        self.connect(self.sldCrossB,SIGNAL("sliderMoved(int)"),self.setCrossB)
        self.connect(self.comboMixSource,SIGNAL("activated(int)"),self.setComboMixSource)

        self.init()


    def languageChange(self):
        self.setCaption(self.__tr("BridgeCo Audio 5 Control"))
        self.textLabel1_2_3_2.setText(self.__tr("Output 3/4 Source"))
        self.comboMixSource.clear()
        self.comboMixSource.insertItem(self.__tr("Line 3/4"))
        self.comboMixSource.insertItem(self.__tr("Mix"))
        self.comboMixSource.insertItem(self.__tr("SPDIF"))
        self.groupBox1_3.setTitle(self.__tr("Clock Source"))
        self.groupBox1.setTitle(self.__tr("Input"))
        self.textLabel2_2.setText(self.__tr("3/4"))
        self.textLabel2_4_2.setText(self.__tr("S/PDIF"))
        self.textLabel2.setText(self.__tr("1/2"))
        self.groupBox1_2.setTitle(self.__tr("Output"))
        self.textLabel2_3.setText(self.__tr("1/2"))
        self.textLabel2_2_2.setText(self.__tr("3/4"))
        self.groupBox1_2_2.setTitle(self.__tr("Cross"))
        self.textLabel2_3_2.setText(self.__tr("A"))
        self.textLabel2_2_2_2.setText(self.__tr("B"))


    def setVolumeIn12(self,a0):
        print "BCoAudio5ControlUI.setVolumeIn12(int): Not implemented yet"

    def setVolumeIn34(self,a0):
        print "BCoAudio5ControlUI.setVolumeIn34(int): Not implemented yet"

    def setVolumeInSPDIF(self,a0):
        print "BCoAudio5ControlUI.setVolumeInSPDIF(int): Not implemented yet"

    def setVolume(self,a0,a1):
        print "BCoAudio5ControlUI.setVolume(QString,int): Not implemented yet"

    def init(self):
        pass

    def initValues(self):
        print "BCoAudio5ControlUI.initValues(): Not implemented yet"

    def setSelector(self,a0,a1):
        print "BCoAudio5ControlUI.setSelector(QString,int): Not implemented yet"

    def setVolumeOut12(self,a0):
        print "BCoAudio5ControlUI.setVolumeOut12(int): Not implemented yet"

    def setVolumeOut34(self,a0):
        print "BCoAudio5ControlUI.setVolumeOut34(int): Not implemented yet"

    def setCrossA(self,a0):
        print "BCoAudio5ControlUI.setCrossA(int): Not implemented yet"

    def setCrossB(self,a0):
        print "BCoAudio5ControlUI.setCrossB(int): Not implemented yet"

    def setComboMixSource(self,a0):
        print "BCoAudio5ControlUI.setComboMixSource(int): Not implemented yet"

    def __tr(self,s,c = None):
        return qApp.translate("BCoAudio5ControlUI",s,c)
