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

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

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


        AfSettingsWidgetLayout = QVBoxLayout(self,11,6,"AfSettingsWidgetLayout")

        self.buttonGroup1 = QButtonGroup(self,"buttonGroup1")
        self.buttonGroup1.setExclusive(1)
        self.buttonGroup1.setProperty("selectedId",QVariant(0))
        self.buttonGroup1.setColumnLayout(0,Qt.Vertical)
        self.buttonGroup1.layout().setSpacing(6)
        self.buttonGroup1.layout().setMargin(11)
        buttonGroup1Layout = QVBoxLayout(self.buttonGroup1.layout())
        buttonGroup1Layout.setAlignment(Qt.AlignTop)

        self.btnConsumer = QPushButton(self.buttonGroup1,"btnConsumer")
        self.btnConsumer.setToggleButton(1)
        self.buttonGroup1.insert( self.btnConsumer,0)
        buttonGroup1Layout.addWidget(self.btnConsumer)

        self.btnProfessional = QPushButton(self.buttonGroup1,"btnProfessional")
        self.btnProfessional.setToggleButton(1)
        self.buttonGroup1.insert( self.btnProfessional,1)
        buttonGroup1Layout.addWidget(self.btnProfessional)
        AfSettingsWidgetLayout.addWidget(self.buttonGroup1)
        spacer2_2_2 = QSpacerItem(41,8,QSizePolicy.Minimum,QSizePolicy.Expanding)
        AfSettingsWidgetLayout.addItem(spacer2_2_2)

        self.btnPhantom = QPushButton(self,"btnPhantom")
        self.btnPhantom.setToggleButton(1)
        AfSettingsWidgetLayout.addWidget(self.btnPhantom)
        spacer2_2 = QSpacerItem(41,16,QSizePolicy.Minimum,QSizePolicy.Expanding)
        AfSettingsWidgetLayout.addItem(spacer2_2)

        self.btnSaveSettings = QPushButton(self,"btnSaveSettings")
        AfSettingsWidgetLayout.addWidget(self.btnSaveSettings)

        self.btnIdentify = QPushButton(self,"btnIdentify")
        AfSettingsWidgetLayout.addWidget(self.btnIdentify)
        spacer2 = QSpacerItem(41,30,QSizePolicy.Minimum,QSizePolicy.Expanding)
        AfSettingsWidgetLayout.addItem(spacer2)

        self.languageChange()

        self.resize(QSize(220,234).expandedTo(self.minimumSizeHint()))
        self.clearWState(Qt.WState_Polished)


    def languageChange(self):
        self.setCaption(self.__tr("Form2"))
        self.buttonGroup1.setTitle(self.__tr("S/PDIF Mode"))
        self.btnConsumer.setText(self.__tr("Consumer"))
        self.btnProfessional.setText(self.__tr("Professional"))
        self.btnPhantom.setText(self.__tr("Phantom Power"))
        self.btnSaveSettings.setText(self.__tr("Save Settings to Device"))
        self.btnIdentify.setText(self.__tr("Identify Device"))


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