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

# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric3_9/eric3/Packagers/PackagersExecForm.ui'
#
# Created: So Nov 27 16:13:15 2005
#      by: The PyQt User Interface Compiler (pyuic) 3.15
#
# WARNING! All changes made in this file will be lost!


import sys
from qt import *


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

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


        PackagersExecFormLayout = QVBoxLayout(self,6,6,"PackagersExecFormLayout")

        self.contentsLabel = QLabel(self,"contentsLabel")
        PackagersExecFormLayout.addWidget(self.contentsLabel)

        self.contents = QTextBrowser(self,"contents")
        contents_font = QFont(self.contents.font())
        contents_font.setFamily("Monospace")
        self.contents.setFont(contents_font)
        self.contents.setTextFormat(QTextBrowser.RichText)
        PackagersExecFormLayout.addWidget(self.contents)

        self.TextLabel2 = QLabel(self,"TextLabel2")
        PackagersExecFormLayout.addWidget(self.TextLabel2)

        self.errors = QTextBrowser(self,"errors")
        self.errors.setSizePolicy(QSizePolicy(QSizePolicy.Expanding,QSizePolicy.Preferred,0,0,self.errors.sizePolicy().hasHeightForWidth()))
        self.errors.setTextFormat(QTextBrowser.PlainText)
        PackagersExecFormLayout.addWidget(self.errors)

        Layout1 = QHBoxLayout(None,0,6,"Layout1")
        Spacer1 = QSpacerItem(30,0,QSizePolicy.Expanding,QSizePolicy.Minimum)
        Layout1.addItem(Spacer1)

        self.button = QPushButton(self,"button")
        Layout1.addWidget(self.button)
        Spacer2 = QSpacerItem(30,0,QSizePolicy.Expanding,QSizePolicy.Minimum)
        Layout1.addItem(Spacer2)
        PackagersExecFormLayout.addLayout(Layout1)

        self.languageChange()

        self.resize(QSize(753,602).expandedTo(self.minimumSizeHint()))
        self.clearWState(Qt.WState_Polished)

        self.connect(self.button,SIGNAL("clicked()"),self.buttonPressed)


    def languageChange(self):
        self.setCaption(self.__tr("Packager"))
        self.contentsLabel.setText(self.__tr("Messages:"))
        QWhatsThis.add(self.contents,self.__tr("<b>Packager Execution</b>\n"
"<p>This shows the output of the packager command.</p>"))
        self.TextLabel2.setText(self.__tr("Errors:"))
        QWhatsThis.add(self.errors,self.__tr("<b>Packager Execution</b>\n"
"<p>This shows the errors of the packager command.</p>"))
        self.button.setText(self.__tr("&Cancel"))
        self.button.setAccel(self.__tr("Alt+C"))


    def buttonPressed(self):
        print "PackagersExecForm.buttonPressed(): Not implemented yet"

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

if __name__ == "__main__":
    a = QApplication(sys.argv)
    QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
    w = PackagersExecForm()
    a.setMainWidget(w)
    w.show()
    a.exec_loop()
