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

# Form implementation generated from reading ui file './lib/luma/plugins/addressbook/ContactWizardDesign.ui'
#
# Created: Tue Mar 1 22:48:41 2005
#      by: The PyQt User Interface Compiler (pyuic) 3.14
#
# WARNING! All changes made in this file will be lost!


from qt import *


class ContactWizardDesign(QWizard):
    def __init__(self,parent = None,name = None,modal = 0,fl = 0):
        QWizard.__init__(self,parent,name,modal,fl)

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



        self.WizardPage = QWidget(self,"WizardPage")
        WizardPageLayout = QGridLayout(self.WizardPage,1,1,11,6,"WizardPageLayout")

        self.locationLabel = QLabel(self.WizardPage,"locationLabel")
        self.locationLabel.setSizePolicy(QSizePolicy(QSizePolicy.Fixed,QSizePolicy.Fixed,0,0,self.locationLabel.sizePolicy().hasHeightForWidth()))
        self.locationLabel.setMinimumSize(QSize(64,64))

        WizardPageLayout.addWidget(self.locationLabel,0,0)

        self.line1 = QFrame(self.WizardPage,"line1")
        self.line1.setFrameShape(QFrame.HLine)
        self.line1.setFrameShadow(QFrame.Sunken)
        self.line1.setFrameShape(QFrame.HLine)

        WizardPageLayout.addMultiCellWidget(self.line1,1,1,0,2)

        self.textLabel2 = QLabel(self.WizardPage,"textLabel2")
        self.textLabel2.setSizePolicy(QSizePolicy(QSizePolicy.Preferred,QSizePolicy.Minimum,0,0,self.textLabel2.sizePolicy().hasHeightForWidth()))

        WizardPageLayout.addMultiCellWidget(self.textLabel2,0,0,1,2)

        self.browserFrame = QFrame(self.WizardPage,"browserFrame")
        self.browserFrame.setFrameShape(QFrame.NoFrame)
        self.browserFrame.setFrameShadow(QFrame.Raised)

        WizardPageLayout.addMultiCellWidget(self.browserFrame,2,2,0,2)

        self.locationEdit = QLineEdit(self.WizardPage,"locationEdit")
        self.locationEdit.setReadOnly(1)

        WizardPageLayout.addWidget(self.locationEdit,3,2)

        self.textLabel3 = QLabel(self.WizardPage,"textLabel3")

        WizardPageLayout.addMultiCellWidget(self.textLabel3,3,3,0,1)
        self.addPage(self.WizardPage,QString(""))

        self.WizardPage_2 = QWidget(self,"WizardPage_2")
        WizardPageLayout_2 = QVBoxLayout(self.WizardPage_2,0,0,"WizardPageLayout_2")

        self.contactFrame = QFrame(self.WizardPage_2,"contactFrame")
        self.contactFrame.setFrameShape(QFrame.NoFrame)
        self.contactFrame.setFrameShadow(QFrame.Plain)
        WizardPageLayout_2.addWidget(self.contactFrame)
        self.addPage(self.WizardPage_2,QString(""))

        self.languageChange()

        self.resize(QSize(613,486).expandedTo(self.minimumSizeHint()))
        self.clearWState(Qt.WState_Polished)


    def languageChange(self):
        self.setCaption(self.__tr("Add Contact"))
        self.locationLabel.setText(self.__tr("LOC","DO NOT TRANSLATE"))
        self.textLabel2.setText(self.__tr("Please select a location where the new contact should be stored."))
        self.textLabel3.setText(self.__tr("Location:"))
        self.setTitle(self.WizardPage,self.__tr("Select location"))
        self.setTitle(self.WizardPage_2,self.__tr("Fill contact data"))


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