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

# Form implementation generated from reading ui file 'support/mixer/mixer_phase24.ui'
#
# Created: Sat May 23 13:44:31 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 Phase24ControlUI(QWidget):
    def __init__(self,parent = None,name = None,fl = 0):
        QWidget.__init__(self,parent,name,fl)

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


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

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

        Phase24ControlUILayout.addWidget(self.textLabel1_2_2,2,0)

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

        Phase24ControlUILayout.addWidget(self.textLabel1_2_2_3,3,0)

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

        Phase24ControlUILayout.addWidget(self.textLabel1_2_2_2_3_2,4,0)

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

        Phase24ControlUILayout.addWidget(self.cmbFrontLevel,2,1)

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

        Phase24ControlUILayout.addWidget(self.cmbLineLevel,3,1)

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

        Phase24ControlUILayout.addWidget(self.cmbSetSyncSource,4,1)

        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)

        layout43 = QGridLayout(None,1,1,0,6,"layout43")

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

        layout43.addMultiCellWidget(self.textLabel2_4_2_3_2,0,0,0,1)

        layout37 = QVBoxLayout(None,0,6,"layout37")

        self.textLabel2_3 = QLabel(self.groupBox1,"textLabel2_3")
        layout37.addWidget(self.textLabel2_3)

        self.sldLineIn = QSlider(self.groupBox1,"sldLineIn")
        self.sldLineIn.setMinValue(0)
        self.sldLineIn.setMaxValue(25600)
        self.sldLineIn.setLineStep(10000)
        self.sldLineIn.setPageStep(1000)
        self.sldLineIn.setOrientation(QSlider.Vertical)
        self.sldLineIn.setTickmarks(QSlider.Both)
        self.sldLineIn.setTickInterval(10000)
        layout37.addWidget(self.sldLineIn)

        layout43.addLayout(layout37,1,0)

        layout38 = QVBoxLayout(None,0,6,"layout38")

        self.textLabel2_4_2 = QLabel(self.groupBox1,"textLabel2_4_2")
        layout38.addWidget(self.textLabel2_4_2)

        self.sldSPDIFIn = QSlider(self.groupBox1,"sldSPDIFIn")
        self.sldSPDIFIn.setMinValue(0)
        self.sldSPDIFIn.setMaxValue(25600)
        self.sldSPDIFIn.setLineStep(10000)
        self.sldSPDIFIn.setPageStep(1000)
        self.sldSPDIFIn.setOrientation(QSlider.Vertical)
        self.sldSPDIFIn.setTickmarks(QSlider.Both)
        self.sldSPDIFIn.setTickInterval(10000)
        layout38.addWidget(self.sldSPDIFIn)

        layout43.addLayout(layout38,1,1)

        groupBox1Layout.addLayout(layout43,0,0)

        layout53 = QGridLayout(None,1,1,0,6,"layout53")

        layout41 = QVBoxLayout(None,0,6,"layout41")

        self.textLabel2_4_2_2 = QLabel(self.groupBox1,"textLabel2_4_2_2")
        layout41.addWidget(self.textLabel2_4_2_2)

        self.sldSPDIFOut = QSlider(self.groupBox1,"sldSPDIFOut")
        self.sldSPDIFOut.setMinValue(0)
        self.sldSPDIFOut.setMaxValue(25600)
        self.sldSPDIFOut.setLineStep(10000)
        self.sldSPDIFOut.setPageStep(1000)
        self.sldSPDIFOut.setOrientation(QSlider.Vertical)
        self.sldSPDIFOut.setTickmarks(QSlider.Both)
        self.sldSPDIFOut.setTickInterval(10000)
        layout41.addWidget(self.sldSPDIFOut)

        layout53.addLayout(layout41,1,2)

        layout39 = QVBoxLayout(None,0,6,"layout39")

        self.textLabel2 = QLabel(self.groupBox1,"textLabel2")
        layout39.addWidget(self.textLabel2)

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

        layout53.addLayout(layout39,1,0)
        spacer11 = QSpacerItem(20,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
        layout53.addItem(spacer11,1,3)

        layout40 = QVBoxLayout(None,0,6,"layout40")

        self.textLabel2_2 = QLabel(self.groupBox1,"textLabel2_2")
        layout40.addWidget(self.textLabel2_2)

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

        layout53.addLayout(layout40,1,1)

        self.textLabel2_4_2_3_2_2 = QLabel(self.groupBox1,"textLabel2_4_2_3_2_2")

        layout53.addMultiCellWidget(self.textLabel2_4_2_3_2_2,0,0,0,4)

        layout42 = QVBoxLayout(None,0,6,"layout42")

        self.textLabel2_4_2_2_2 = QLabel(self.groupBox1,"textLabel2_4_2_2_2")
        layout42.addWidget(self.textLabel2_4_2_2_2)

        self.sldMaster = QSlider(self.groupBox1,"sldMaster")
        self.sldMaster.setMinimumSize(QSize(0,80))
        self.sldMaster.setMinValue(0)
        self.sldMaster.setMaxValue(25600)
        self.sldMaster.setLineStep(10000)
        self.sldMaster.setPageStep(1000)
        self.sldMaster.setOrientation(QSlider.Vertical)
        self.sldMaster.setTickmarks(QSlider.Both)
        self.sldMaster.setTickInterval(10000)
        layout42.addWidget(self.sldMaster)

        layout53.addLayout(layout42,1,4)

        groupBox1Layout.addLayout(layout53,0,2)
        spacer12 = QSpacerItem(40,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
        groupBox1Layout.addItem(spacer12,0,1)

        Phase24ControlUILayout.addMultiCellWidget(self.groupBox1,0,0,0,1)

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

        self.cmbOutSource34 = QComboBox(0,self.groupBox2,"cmbOutSource34")

        groupBox2Layout.addWidget(self.cmbOutSource34,1,1)

        self.cmbOutSourceSPDIF = QComboBox(0,self.groupBox2,"cmbOutSourceSPDIF")

        groupBox2Layout.addWidget(self.cmbOutSourceSPDIF,2,1)

        self.textLabel1_2_2_2_3 = QLabel(self.groupBox2,"textLabel1_2_2_2_3")

        groupBox2Layout.addWidget(self.textLabel1_2_2_2_3,2,0)

        self.textLabel1_2_2_2 = QLabel(self.groupBox2,"textLabel1_2_2_2")

        groupBox2Layout.addWidget(self.textLabel1_2_2_2,1,0)

        self.cmbOutSource12 = QComboBox(0,self.groupBox2,"cmbOutSource12")

        groupBox2Layout.addWidget(self.cmbOutSource12,0,1)

        self.textLabel1_2_2_2_2 = QLabel(self.groupBox2,"textLabel1_2_2_2_2")

        groupBox2Layout.addWidget(self.textLabel1_2_2_2_2,0,0)

        Phase24ControlUILayout.addMultiCellWidget(self.groupBox2,1,1,0,1)

        self.languageChange()

        self.resize(QSize(331,390).expandedTo(self.minimumSizeHint()))
        self.clearWState(Qt.WState_Polished)

        self.connect(self.sldInput12,SIGNAL("valueChanged(int)"),self.setVolume12)
        self.connect(self.sldInput34,SIGNAL("valueChanged(int)"),self.setVolume34)
        self.connect(self.sldLineIn,SIGNAL("valueChanged(int)"),self.setVolumeLineIn)
        self.connect(self.sldSPDIFOut,SIGNAL("valueChanged(int)"),self.setVolumeSPDIFOut)
        self.connect(self.sldSPDIFIn,SIGNAL("valueChanged(int)"),self.setVolumeSPDIFIn)
        self.connect(self.sldMaster,SIGNAL("valueChanged(int)"),self.setVolumeMaster)
        self.connect(self.cmbFrontLevel,SIGNAL("activated(int)"),self.setFrontLevel)
        self.connect(self.cmbSetSyncSource,SIGNAL("activated(int)"),self.setSyncSource)
        self.connect(self.cmbOutSourceSPDIF,SIGNAL("activated(int)"),self.setOutSourceSPDIF)
        self.connect(self.cmbOutSource12,SIGNAL("activated(int)"),self.setOutSource12)
        self.connect(self.cmbOutSource34,SIGNAL("activated(int)"),self.setOutSource34)
        self.connect(self.cmbLineLevel,SIGNAL("activated(int)"),self.setLineLevel)

        self.setTabOrder(self.sldInput12,self.sldInput34)
        self.setTabOrder(self.sldInput34,self.sldLineIn)
        self.setTabOrder(self.sldLineIn,self.sldSPDIFOut)
        self.setTabOrder(self.sldSPDIFOut,self.sldSPDIFIn)
        self.setTabOrder(self.sldSPDIFIn,self.sldMaster)
        self.setTabOrder(self.sldMaster,self.cmbFrontLevel)
        self.setTabOrder(self.cmbFrontLevel,self.cmbOutSource12)
        self.setTabOrder(self.cmbOutSource12,self.cmbOutSource34)
        self.setTabOrder(self.cmbOutSource34,self.cmbOutSourceSPDIF)
        self.setTabOrder(self.cmbOutSourceSPDIF,self.cmbSetSyncSource)


    def languageChange(self):
        self.setCaption(self.__tr("Terratec Phase 24 Control"))
        self.textLabel1_2_2.setText(self.__tr("3/4 Out Level"))
        self.textLabel1_2_2_3.setText(self.__tr("Analog In Level"))
        self.textLabel1_2_2_2_3_2.setText(self.__tr("Sync Source"))
        self.cmbFrontLevel.clear()
        self.cmbFrontLevel.insertItem(self.__tr("Line"))
        self.cmbFrontLevel.insertItem(self.__tr("Headphone"))
        self.cmbLineLevel.clear()
        self.cmbLineLevel.insertItem(self.__tr("0"))
        self.cmbLineLevel.insertItem(self.__tr("1"))
        self.cmbLineLevel.insertItem(self.__tr("2"))
        self.cmbLineLevel.insertItem(self.__tr("3"))
        self.cmbLineLevel.insertItem(self.__tr("4"))
        self.cmbSetSyncSource.clear()
        self.cmbSetSyncSource.insertItem(self.__tr("Internal"))
        self.cmbSetSyncSource.insertItem(self.__tr("External"))
        self.groupBox1.setTitle(self.__tr("Hardware Mixer"))
        self.textLabel2_4_2_3_2.setText(self.__tr("In"))
        self.textLabel2_3.setText(self.__tr("Analog"))
        self.textLabel2_4_2.setText(self.__tr("SPDIF"))
        self.textLabel2_4_2_2.setText(self.__tr("SPDIF"))
        self.textLabel2.setText(self.__tr("1/2"))
        self.textLabel2_2.setText(self.__tr("3/4"))
        self.textLabel2_4_2_3_2_2.setText(self.__tr("Out"))
        self.textLabel2_4_2_2_2.setText(self.__tr("Master"))
        self.groupBox2.setTitle(self.__tr("Routing"))
        self.cmbOutSource34.clear()
        self.cmbOutSource34.insertItem(self.__tr("Wave Out 1/2"))
        self.cmbOutSource34.insertItem(self.__tr("Wave Out 3/4"))
        self.cmbOutSource34.insertItem(self.__tr("Line in"))
        self.cmbOutSource34.insertItem(self.__tr("SPDIF in"))
        self.cmbOutSource34.insertItem(self.__tr("Mixer"))
        self.cmbOutSource34.insertItem(self.__tr("Wave Out SPDIF"))
        self.cmbOutSourceSPDIF.clear()
        self.cmbOutSourceSPDIF.insertItem(self.__tr("Wave Out 1/2"))
        self.cmbOutSourceSPDIF.insertItem(self.__tr("Wave Out 3/4"))
        self.cmbOutSourceSPDIF.insertItem(self.__tr("Line in"))
        self.cmbOutSourceSPDIF.insertItem(self.__tr("SPDIF in"))
        self.cmbOutSourceSPDIF.insertItem(self.__tr("Mixer"))
        self.cmbOutSourceSPDIF.insertItem(self.__tr("Wave Out SPDIF"))
        self.textLabel1_2_2_2_3.setText(self.__tr("SPDIF"))
        self.textLabel1_2_2_2.setText(self.__tr("3/4"))
        self.cmbOutSource12.clear()
        self.cmbOutSource12.insertItem(self.__tr("Wave Out 1/2"))
        self.cmbOutSource12.insertItem(self.__tr("Wave Out 3/4"))
        self.cmbOutSource12.insertItem(self.__tr("Line in"))
        self.cmbOutSource12.insertItem(self.__tr("SPDIF in"))
        self.cmbOutSource12.insertItem(self.__tr("Mixer"))
        self.cmbOutSource12.insertItem(self.__tr("Wave Out SPDIF"))
        self.textLabel1_2_2_2_2.setText(self.__tr("1/2"))


    def setVolume12(self,a0):
        print "Phase24ControlUI.setVolume12(int): Not implemented yet"

    def setVolume34(self,a0):
        print "Phase24ControlUI.setVolume34(int): Not implemented yet"

    def setVolumeLineIn(self,a0):
        print "Phase24ControlUI.setVolumeLineIn(int): Not implemented yet"

    def setVolumeSPDIFOut(self,a0):
        print "Phase24ControlUI.setVolumeSPDIFOut(int): Not implemented yet"

    def setVolumeSPDIFIn(self,a0):
        print "Phase24ControlUI.setVolumeSPDIFIn(int): Not implemented yet"

    def setVolumeMaster(self,a0):
        print "Phase24ControlUI.setVolumeMaster(int): Not implemented yet"

    def setFrontLevel(self,a0):
        print "Phase24ControlUI.setFrontLevel(int): Not implemented yet"

    def setOutSource12(self,a0):
        print "Phase24ControlUI.setOutSource12(int): Not implemented yet"

    def setOutSource34(self,a0):
        print "Phase24ControlUI.setOutSource34(int): Not implemented yet"

    def setOutSourceSPDIF(self,a0):
        print "Phase24ControlUI.setOutSourceSPDIF(int): Not implemented yet"

    def setSyncSource(self,a0):
        print "Phase24ControlUI.setSyncSource(int): Not implemented yet"

    def setLineLevel(self,a0):
        print "Phase24ControlUI.setLineLevel(int): Not implemented yet"

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