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

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

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

        self.setSizePolicy(QSizePolicy(QSizePolicy.Preferred,QSizePolicy.Preferred,0,0,self.sizePolicy().hasHeightForWidth()))


        self.grpDeviceInfo = QGroupBox(self,"grpDeviceInfo")
        self.grpDeviceInfo.setGeometry(QRect(10,320,600,230))

        self.textLabel2_2_2 = QLabel(self.grpDeviceInfo,"textLabel2_2_2")
        self.textLabel2_2_2.setGeometry(QRect(10,110,130,30))

        self.textLabel2_2_3 = QLabel(self.grpDeviceInfo,"textLabel2_2_3")
        self.textLabel2_2_3.setGeometry(QRect(10,150,140,30))

        self.textLabel2 = QLabel(self.grpDeviceInfo,"textLabel2")
        self.textLabel2.setGeometry(QRect(10,190,130,30))

        self.textLabel2_2_2_2_2 = QLabel(self.grpDeviceInfo,"textLabel2_2_2_2_2")
        self.textLabel2_2_2_2_2.setGeometry(QRect(10,30,130,30))

        self.textLabel2_2_2_2_2_2 = QLabel(self.grpDeviceInfo,"textLabel2_2_2_2_2_2")
        self.textLabel2_2_2_2_2_2.setGeometry(QRect(10,69,130,30))

        self.txtVendorId = QLineEdit(self.grpDeviceInfo,"txtVendorId")
        self.txtVendorId.setGeometry(QRect(451,30,130,31))
        self.txtVendorId.setReadOnly(1)

        self.txtModelId = QLineEdit(self.grpDeviceInfo,"txtModelId")
        self.txtModelId.setGeometry(QRect(451,69,130,31))
        self.txtModelId.setReadOnly(1)

        self.txtGUID = QLineEdit(self.grpDeviceInfo,"txtGUID")
        self.txtGUID.setGeometry(QRect(150,109,430,31))
        self.txtGUID.setReadOnly(1)

        self.txtVersion = QLineEdit(self.grpDeviceInfo,"txtVersion")
        self.txtVersion.setGeometry(QRect(150,149,430,31))
        self.txtVersion.setReadOnly(1)

        self.txtEmail = QLineEdit(self.grpDeviceInfo,"txtEmail")
        self.txtEmail.setGeometry(QRect(150,190,430,31))

        self.textLabel2_2_2_2 = QLabel(self.grpDeviceInfo,"textLabel2_2_2_2")
        self.textLabel2_2_2_2.setGeometry(QRect(401,30,40,30))

        self.textLabel2_2_2_2_3 = QLabel(self.grpDeviceInfo,"textLabel2_2_2_2_3")
        self.textLabel2_2_2_2_3.setGeometry(QRect(401,69,40,30))

        self.txtVendorName = QLineEdit(self.grpDeviceInfo,"txtVendorName")
        self.txtVendorName.setGeometry(QRect(150,30,230,31))
        self.txtVendorName.setReadOnly(1)

        self.txtModelName = QLineEdit(self.grpDeviceInfo,"txtModelName")
        self.txtModelName.setGeometry(QRect(150,69,230,31))
        self.txtModelName.setReadOnly(1)

        self.btnNeverSend = QPushButton(self,"btnNeverSend")
        self.btnNeverSend.setGeometry(QRect(10,560,70,31))

        self.btnNoSend = QPushButton(self,"btnNoSend")
        self.btnNoSend.setGeometry(QRect(90,560,120,31))

        self.btnSend = QPushButton(self,"btnSend")
        self.btnSend.setGeometry(QRect(220,560,390,31))
        self.btnSend.setDefault(1)

        self.textEdit2 = QTextEdit(self,"textEdit2")
        self.textEdit2.setGeometry(QRect(10,10,600,300))
        self.textEdit2.setVScrollBarMode(QTextEdit.AlwaysOff)
        self.textEdit2.setHScrollBarMode(QTextEdit.AlwaysOff)
        self.textEdit2.setTextFormat(QTextEdit.RichText)
        self.textEdit2.setWordWrap(QTextEdit.WidgetWidth)
        self.textEdit2.setAutoFormatting(QTextEdit.AutoAll)

        self.languageChange()

        self.resize(QSize(620,600).expandedTo(self.minimumSizeHint()))
        self.clearWState(Qt.WState_Polished)

        self.init()


    def languageChange(self):
        self.setCaption(self.__tr("FFADO Usage Statistics"))
        self.grpDeviceInfo.setTitle(self.__tr("Information being sent "))
        self.textLabel2_2_2.setText(self.__tr("GUID:"))
        self.textLabel2_2_3.setText(self.__tr("FFADO Version:"))
        self.textLabel2.setText(self.__tr("Your E-Mail:"))
        self.textLabel2_2_2_2_2.setText(self.__tr("Vendor Name:"))
        self.textLabel2_2_2_2_2_2.setText(self.__tr("Model Name:"))
        self.txtVendorId.setText(self.__tr("0x000aac"))
        self.txtModelId.setText(self.__tr("0x00010065"))
        self.txtEmail.setText(self.__tr("(optional)"))
        self.textLabel2_2_2_2.setText(self.__tr("Id:"))
        self.textLabel2_2_2_2_3.setText(self.__tr("Id:"))
        self.btnNeverSend.setText(self.__tr("Never"))
        self.btnNoSend.setText(self.__tr("Not now"))
        self.btnSend.setText(self.__tr("Send"))
        self.textEdit2.setText(self.__tr("<p>You are running this version of FFADO for the first time with this device.</p>\n"
"\n"
"<p>In order to collect usage statistics we would like to send some information\n"
"about your system to ffado.org. It is very important for us to have good usage statistics.\n"
"This is to convince vendors that Linux users do exist and is where you as a user can help \n"
"the project.</p>\n"
"\n"
"<p>The information collected is intended only for usage monitoring.\n"
" The email address is optional, and will be used for FFADO related announcements only.\n"
" If you provide one, please provide a valid one.</p>\n"
"\n"
"<p>Note: This registration can also be performed on-line at http://www.ffado.org/?=usage/register.</p>"))


    def init(self):
        pass

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