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

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

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


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

        self.textLabel1 = QLabel(self,"textLabel1")
        self.textLabel1.setAlignment(QLabel.WordBreak | QLabel.AlignVCenter)
        MackieGenericControlUILayout.addWidget(self.textLabel1)

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

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

        groupBox1Layout.addWidget(self.sldFB1,1,1)
        spacer13 = QSpacerItem(40,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
        groupBox1Layout.addItem(spacer13,1,0)

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

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

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

        groupBox1Layout.addWidget(self.sldFB2,1,3)
        spacer14 = QSpacerItem(40,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
        groupBox1Layout.addItem(spacer14,1,2)
        spacer15 = QSpacerItem(40,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
        groupBox1Layout.addItem(spacer15,1,4)
        MackieGenericControlUILayout.addWidget(self.groupBox1)

        self.languageChange()

        self.resize(QSize(166,238).expandedTo(self.minimumSizeHint()))
        self.clearWState(Qt.WState_Polished)

        self.connect(self.sldFB1,SIGNAL("valueChanged(int)"),self.setFB1)
        self.connect(self.sldFB2,SIGNAL("valueChanged(int)"),self.setFB2)

        self.init()


    def languageChange(self):
        self.setCaption(self.__tr("Mackie Generic Control"))
        self.textLabel1.setText(self.__tr("NOTE: Mixer config is not documented for Mackie devices."))
        self.groupBox1.setTitle(self.__tr("Hardware Mixer"))
        self.textLabel2.setText(self.__tr("FB1"))
        self.textLabel2_2.setText(self.__tr("FB2"))


    def setFB2(self,a0):
        print "MackieGenericControlUI.setFB2(int): Not implemented yet"

    def setFB1(self,a0):
        print "MackieGenericControlUI.setFB1(int): Not implemented yet"

    def init(self):
        pass

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