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

# Form implementation generated from reading ui file 'GroupWizardDesign.ui'
#
# Created: Mon Dec 10 20:36:20 2007
#      by: The PyQt User Interface Compiler (pyuic) 3.16
#
# WARNING! All changes made in this file will be lost!


from qt import *


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

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



        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,6,"WizardPageLayout_2")

        self.accountFrame = QFrame(self.WizardPage_2,"accountFrame")
        self.accountFrame.setFrameShape(QFrame.NoFrame)
        self.accountFrame.setFrameShadow(QFrame.Sunken)

        self.textLabel1 = QLabel(self.accountFrame,"textLabel1")
        self.textLabel1.setGeometry(QRect(63,53,120,20))

        self.textLabel2_2 = QLabel(self.accountFrame,"textLabel2_2")
        self.textLabel2_2.setGeometry(QRect(63,103,75,20))

        self.lineEdit2 = QLineEdit(self.accountFrame,"lineEdit2")
        self.lineEdit2.setGeometry(QRect(210,50,240,25))

        self.pushButton1 = QPushButton(self.accountFrame,"pushButton1")
        self.pushButton1.setGeometry(QRect(300,90,150,34))

        self.spinBox1 = QSpinBox(self.accountFrame,"spinBox1")
        self.spinBox1.setGeometry(QRect(210,100,59,25))
        WizardPageLayout_2.addWidget(self.accountFrame)
        self.addPage(self.WizardPage_2,QString(""))

        self.languageChange()

        self.resize(QSize(665,456).expandedTo(self.minimumSizeHint()))
        self.clearWState(Qt.WState_Polished)



    def languageChange(self):
        self.setCaption(self.__tr("Add Group"))
        self.locationLabel.setText(self.__tr("LOC","DO NOT TRANSLATE"))
        self.textLabel2.setText(self.__tr("Please select a location where the new group should be stored."))
        self.textLabel3.setText(self.__tr("Location:"))
        self.setTitle(self.WizardPage,self.__tr("Select location"))
        self.textLabel1.setText(self.__tr("Name of group:"))
        self.textLabel2_2.setText(self.__tr("Group ID:"))
        self.pushButton1.setText(self.__tr("Find next free"))
        self.setTitle(self.WizardPage_2,self.__tr("Fill contact data"))


    def nextFreeGroupID(self):
        print "GroupWizardDesign.nextFreeGroupID(): Not implemented yet"

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