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

# Form implementation generated from reading ui file 'coverpageform_base.ui'
#
# Created: Fri Apr 13 10:15:44 2007
#      by: The PyQt User Interface Compiler (pyuic) 3.16
#
# WARNING! All changes made in this file will be lost!


from qt import *


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

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


        CoverpageForm_baseLayout = QGridLayout(self,1,1,11,6,"CoverpageForm_baseLayout")
        spacer7 = QSpacerItem(590,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
        CoverpageForm_baseLayout.addMultiCell(spacer7,5,5,0,1)

        self.pushButton10 = QPushButton(self,"pushButton10")

        CoverpageForm_baseLayout.addWidget(self.pushButton10,5,2)

        self.pushButton9 = QPushButton(self,"pushButton9")

        CoverpageForm_baseLayout.addWidget(self.pushButton9,5,3)

        self.groupBox2 = QGroupBox(self,"groupBox2")
        self.groupBox2.setColumnLayout(0,Qt.Vertical)
        self.groupBox2.layout().setSpacing(6)
        self.groupBox2.layout().setMargin(11)
        groupBox2Layout = QGridLayout(self.groupBox2.layout())
        groupBox2Layout.setAlignment(Qt.AlignTop)

        self.nextCoverpageButton = QToolButton(self.groupBox2,"nextCoverpageButton")
        self.nextCoverpageButton.setSizePolicy(QSizePolicy(QSizePolicy.Fixed,QSizePolicy.Fixed,0,0,self.nextCoverpageButton.sizePolicy().hasHeightForWidth()))
        self.nextCoverpageButton.setMinimumSize(QSize(32,32))
        self.nextCoverpageButton.setMaximumSize(QSize(32,32))

        groupBox2Layout.addWidget(self.nextCoverpageButton,0,2)

        self.coverpagePixmap = QLabel(self.groupBox2,"coverpagePixmap")
        self.coverpagePixmap.setSizePolicy(QSizePolicy(QSizePolicy.Fixed,QSizePolicy.Fixed,0,0,self.coverpagePixmap.sizePolicy().hasHeightForWidth()))
        self.coverpagePixmap.setMinimumSize(QSize(164,228))
        self.coverpagePixmap.setMaximumSize(QSize(164,228))
        self.coverpagePixmap.setFrameShape(QLabel.Box)
        self.coverpagePixmap.setFrameShadow(QLabel.Plain)
        self.coverpagePixmap.setScaledContents(1)

        groupBox2Layout.addWidget(self.coverpagePixmap,0,1)

        self.prevCoverpageButton = QToolButton(self.groupBox2,"prevCoverpageButton")
        self.prevCoverpageButton.setSizePolicy(QSizePolicy(QSizePolicy.Fixed,QSizePolicy.Fixed,0,0,self.prevCoverpageButton.sizePolicy().hasHeightForWidth()))
        self.prevCoverpageButton.setMinimumSize(QSize(32,32))
        self.prevCoverpageButton.setMaximumSize(QSize(32,32))

        groupBox2Layout.addWidget(self.prevCoverpageButton,0,0)

        CoverpageForm_baseLayout.addMultiCellWidget(self.groupBox2,2,3,0,0)

        self.textLabel5 = QLabel(self,"textLabel5")
        self.textLabel5.setSizePolicy(QSizePolicy(QSizePolicy.Preferred,QSizePolicy.Maximum,0,0,self.textLabel5.sizePolicy().hasHeightForWidth()))

        CoverpageForm_baseLayout.addMultiCellWidget(self.textLabel5,0,0,0,3)

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

        CoverpageForm_baseLayout.addMultiCellWidget(self.line1_2,1,1,0,3)

        layout6 = QHBoxLayout(None,0,6,"layout6")

        self.textLabel6 = QLabel(self,"textLabel6")
        layout6.addWidget(self.textLabel6)

        self.regardingTextEdit = QLineEdit(self,"regardingTextEdit")
        layout6.addWidget(self.regardingTextEdit)

        CoverpageForm_baseLayout.addMultiCellLayout(layout6,2,2,1,3)
        spacer5 = QSpacerItem(20,141,QSizePolicy.Minimum,QSizePolicy.Expanding)
        CoverpageForm_baseLayout.addItem(spacer5,4,0)

        layout5 = QVBoxLayout(None,0,6,"layout5")

        self.textLabel3 = QLabel(self,"textLabel3")
        self.textLabel3.setSizePolicy(QSizePolicy(QSizePolicy.Preferred,QSizePolicy.Maximum,0,0,self.textLabel3.sizePolicy().hasHeightForWidth()))
        layout5.addWidget(self.textLabel3)

        self.messageTextEdit = QTextEdit(self,"messageTextEdit")
        self.messageTextEdit.setSizePolicy(QSizePolicy(QSizePolicy.Expanding,QSizePolicy.Expanding,0,0,self.messageTextEdit.sizePolicy().hasHeightForWidth()))
        layout5.addWidget(self.messageTextEdit)

        self.preserveFormattingCheckBox = QCheckBox(self,"preserveFormattingCheckBox")
        layout5.addWidget(self.preserveFormattingCheckBox)

        CoverpageForm_baseLayout.addMultiCellLayout(layout5,3,4,1,3)

        self.languageChange()

        self.resize(QSize(675,558).expandedTo(self.minimumSizeHint()))
        self.clearWState(Qt.WState_Polished)

        self.connect(self.pushButton10,SIGNAL("clicked()"),self.reject)
        self.connect(self.pushButton9,SIGNAL("clicked()"),self.accept)
        self.connect(self.prevCoverpageButton,SIGNAL("clicked()"),self.prevCoverpageButton_clicked)
        self.connect(self.nextCoverpageButton,SIGNAL("clicked()"),self.nextCoverpageButton_clicked)
        self.connect(self.preserveFormattingCheckBox,SIGNAL("toggled(bool)"),self.preserveFormattingCheckBox_toggled)

        self.setTabOrder(self.regardingTextEdit,self.messageTextEdit)
        self.setTabOrder(self.messageTextEdit,self.pushButton10)
        self.setTabOrder(self.pushButton10,self.pushButton9)


    def languageChange(self):
        self.setCaption(self.__tr("HP Device Manager - Coverpages"))
        self.pushButton10.setText(self.__tr("Cancel"))
        self.pushButton9.setText(self.__tr("OK"))
        self.groupBox2.setTitle(self.__tr("Coverpage Design"))
        self.nextCoverpageButton.setText(QString.null)
        self.prevCoverpageButton.setText(QString.null)
        self.prevCoverpageButton.setAccel(QKeySequence(QString.null))
        self.textLabel5.setText(self.__tr("<b>Choose coverpage and enter optional message.<b>"))
        self.textLabel6.setText(self.__tr("Regarding:"))
        self.textLabel3.setText(self.__tr("Optional Message <i>(Maximum 2048 characters or 32 lines preformatted)</i>:"))
        self.preserveFormattingCheckBox.setText(self.__tr("Preformatted (preserve formatting)"))


    def coverpageListBox_currentChanged(self,a0):
        print("CoverpageForm_base.coverpageListBox_currentChanged(QListBoxItem*): Not implemented yet")

    def prevCoverpageButton_clicked(self):
        print("CoverpageForm_base.prevCoverpageButton_clicked(): Not implemented yet")

    def nextCoverpageButton_clicked(self):
        print("CoverpageForm_base.nextCoverpageButton_clicked(): Not implemented yet")

    def preserveFormattingCheckBox_toggled(self,a0):
        print("CoverpageForm_base.preserveFormattingCheckBox_toggled(bool): Not implemented yet")

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