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

# Form implementation generated from reading ui file 'support/mixer/mixer_global.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 GlobalMixerUi(QWidget):
    def __init__(self,parent = None,name = None,fl = 0):
        QWidget.__init__(self,parent,name,fl)

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

        self.setSizePolicy(QSizePolicy(QSizePolicy.Expanding,QSizePolicy.Minimum,0,0,self.sizePolicy().hasHeightForWidth()))

        GlobalMixerUiLayout = QHBoxLayout(self,11,6,"GlobalMixerUiLayout")

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

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

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

        self.txtNickname = QLineEdit(self,"txtNickname")
        self.txtNickname.setMinimumSize(QSize(100,0))
        layout2.addWidget(self.txtNickname)
        layout5.addLayout(layout2)

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

        self.textLabel2 = QLabel(self,"textLabel2")
        layout4.addWidget(self.textLabel2)

        self.clocksource = QComboBox(0,self,"clocksource")
        layout4.addWidget(self.clocksource)
        spacer2 = QSpacerItem(31,21,QSizePolicy.Expanding,QSizePolicy.Minimum)
        layout4.addItem(spacer2)

        self.textLabel2_2 = QLabel(self,"textLabel2_2")
        layout4.addWidget(self.textLabel2_2)

        self.samplerate = QComboBox(0,self,"samplerate")
        self.samplerate.setEnabled(0)
        layout4.addWidget(self.samplerate)
        layout5.addLayout(layout4)
        GlobalMixerUiLayout.addLayout(layout5)
        spacer1 = QSpacerItem(330,71,QSizePolicy.Expanding,QSizePolicy.Minimum)
        GlobalMixerUiLayout.addItem(spacer1)

        self.languageChange()

        self.resize(QSize(721,191).expandedTo(self.minimumSizeHint()))
        self.clearWState(Qt.WState_Polished)

        self.connect(self.clocksource,SIGNAL("activated(int)"),self.clockChanged)
        self.connect(self.txtNickname,SIGNAL("textChanged(const QString&)"),self.nicknameChanged)
        self.connect(self.samplerate,SIGNAL("activated(int)"),self.samplerateChanged)

        self.textLabel2.setBuddy(self.clocksource)
        self.textLabel2_2.setBuddy(self.clocksource)


    def languageChange(self):
        self.setCaption(self.__tr("Global Mixer Options"))
        self.textLabel1.setText(self.__tr("Device Nickname:"))
        self.textLabel2.setText(self.__tr("Clock Source:"))
        self.textLabel2_2.setText(self.__tr("Sample Rate:"))


    def clockChanged(self,a0):
        print "GlobalMixerUi.clockChanged(int): Not implemented yet"

    def nicknameChanged(self,a0):
        print "GlobalMixerUi.nicknameChanged(const QString&): Not implemented yet"

    def samplerateChanged(self,a0):
        print "GlobalMixerUi.samplerateChanged(int): Not implemented yet"

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