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

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

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


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

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

        Phase88ControlUILayout.addWidget(self.textLabel1,0,0)

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

        Phase88ControlUILayout.addWidget(self.textLabel1_2_2,3,0)

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

        Phase88ControlUILayout.addWidget(self.comboFrontBack,3,1)

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

        Phase88ControlUILayout.addWidget(self.textLabel1_2,2,0)

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

        Phase88ControlUILayout.addWidget(self.textLabel1_2_3,5,0)

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

        Phase88ControlUILayout.addWidget(self.comboExtSync,5,1)

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

        Phase88ControlUILayout.addWidget(self.textLabel1_2_3_2,4,0)

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

        Phase88ControlUILayout.addWidget(self.comboInAssign,2,1)

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

        Phase88ControlUILayout.addWidget(self.comboSyncSource,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)

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

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

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

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

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

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

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

        groupBox1Layout.addWidget(self.textLabel2_4,0,3)

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

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

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

        groupBox1Layout.addWidget(self.textLabel2_4_2_2_2,0,6)

        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)

        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.sldInput56 = QSlider(self.groupBox1,"sldInput56")
        self.sldInput56.setMinValue(0)
        self.sldInput56.setMaxValue(32767)
        self.sldInput56.setLineStep(10000)
        self.sldInput56.setPageStep(1000)
        self.sldInput56.setOrientation(QSlider.Vertical)
        self.sldInput56.setTickmarks(QSlider.Both)
        self.sldInput56.setTickInterval(10000)

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

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

        groupBox1Layout.addWidget(self.sldInput78,1,3)

        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,4)

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

        groupBox1Layout.addWidget(self.sldInputWavePlay,1,5)

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

        groupBox1Layout.addWidget(self.sldInputMaster,1,6)

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

        groupBox1Layout.addWidget(self.textLabel2_4_2_2,0,5)

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

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

        Phase88ControlUILayout.addWidget(self.comboOutAssign,0,1)

        self.languageChange()

        self.resize(QSize(420,439).expandedTo(self.minimumSizeHint()))
        self.clearWState(Qt.WState_Polished)

        self.connect(self.comboOutAssign,SIGNAL("activated(int)"),self.switchOutAssign)
        self.connect(self.comboFrontBack,SIGNAL("activated(int)"),self.switchFrontState)
        self.connect(self.comboInAssign,SIGNAL("activated(int)"),self.switchWaveInAssign)
        self.connect(self.comboSyncSource,SIGNAL("activated(int)"),self.switchSyncSource)
        self.connect(self.comboExtSync,SIGNAL("activated(int)"),self.switchExtSyncSource)
        self.connect(self.sldInput12,SIGNAL("valueChanged(int)"),self.setVolume12)
        self.connect(self.sldInput34,SIGNAL("valueChanged(int)"),self.setVolume34)
        self.connect(self.sldInput56,SIGNAL("valueChanged(int)"),self.setVolume56)
        self.connect(self.sldInput78,SIGNAL("valueChanged(int)"),self.setVolume78)
        self.connect(self.sldInputMaster,SIGNAL("valueChanged(int)"),self.setVolumeMaster)
        self.connect(self.sldInputSPDIF,SIGNAL("valueChanged(int)"),self.setVolumeSPDIF)
        self.connect(self.sldInputWavePlay,SIGNAL("valueChanged(int)"),self.setVolumeWavePlay)

        self.init()


    def languageChange(self):
        self.setCaption(self.__tr("Terratec Phase 88 Control"))
        self.textLabel1.setText(self.__tr("Mixer bus output:"))
        self.textLabel1_2_2.setText(self.__tr("In 7/8 Input Select"))
        self.comboFrontBack.clear()
        self.comboFrontBack.insertItem(self.__tr("Back"))
        self.comboFrontBack.insertItem(self.__tr("Front"))
        self.textLabel1_2.setText(self.__tr("Waveplay Channel Source"))
        self.textLabel1_2_3.setText(self.__tr("External Sync Source"))
        self.comboExtSync.clear()
        self.comboExtSync.insertItem(self.__tr("S/PDIF"))
        self.comboExtSync.insertItem(self.__tr("WordClock"))
        self.textLabel1_2_3_2.setText(self.__tr("Sync Source"))
        self.comboInAssign.clear()
        self.comboInAssign.insertItem(self.__tr("S/PDIF"))
        self.comboInAssign.insertItem(self.__tr("CH 1/2"))
        self.comboInAssign.insertItem(self.__tr("CH 3/4"))
        self.comboInAssign.insertItem(self.__tr("CH5/6"))
        self.comboInAssign.insertItem(self.__tr("CH7/8"))
        self.comboSyncSource.clear()
        self.comboSyncSource.insertItem(self.__tr("Internal"))
        self.comboSyncSource.insertItem(self.__tr("External"))
        self.groupBox1.setTitle(self.__tr("Hardware Mixer"))
        self.textLabel2.setText(self.__tr("1/2"))
        self.textLabel2_2.setText(self.__tr("3/4"))
        self.textLabel2_3.setText(self.__tr("5/6"))
        self.textLabel2_4.setText(self.__tr("7/8"))
        self.textLabel2_4_2.setText(self.__tr("S/PDIF"))
        self.textLabel2_4_2_2_2.setText(self.__tr("Master"))
        self.textLabel2_4_2_2.setText(self.__tr("WavePlay"))
        self.comboOutAssign.clear()
        self.comboOutAssign.insertItem(self.__tr("S/PDIF Out"))
        self.comboOutAssign.insertItem(self.__tr("Line Out 1/2"))
        self.comboOutAssign.insertItem(self.__tr("Line Out 3/4"))
        self.comboOutAssign.insertItem(self.__tr("Line Out 5/6"))
        self.comboOutAssign.insertItem(self.__tr("Line Out 7/8"))
        self.comboOutAssign.insertItem(self.__tr("None"))


    def switchFrontState(self,a0):
        print "Phase88ControlUI.switchFrontState(int): Not implemented yet"

    def switchOutAssign(self,a0):
        print "Phase88ControlUI.switchOutAssign(int): Not implemented yet"

    def switchWaveInAssign(self,a0):
        print "Phase88ControlUI.switchWaveInAssign(int): Not implemented yet"

    def switchSyncSource(self,a0):
        print "Phase88ControlUI.switchSyncSource(int): Not implemented yet"

    def switchExtSyncSource(self,a0):
        print "Phase88ControlUI.switchExtSyncSource(int): Not implemented yet"

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

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

    def setVolume56(self,a0):
        print "Phase88ControlUI.setVolume56(int): Not implemented yet"

    def setVolume78(self,a0):
        print "Phase88ControlUI.setVolume78(int): Not implemented yet"

    def setVolumeSPDIF(self,a0):
        print "Phase88ControlUI.setVolumeSPDIF(int): Not implemented yet"

    def setVolumeWavePlay(self,a0):
        print "Phase88ControlUI.setVolumeWavePlay(int): Not implemented yet"

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

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

    def init(self):
        pass

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

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

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