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

# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric3_6/eric3/DocumentationTools/DocGeneratorExecForm.ui'
#
# Created: Do Dez 30 14:12:45 2004
#      by: The PyQt User Interface Compiler (pyuic) snapshot-20041229
#
# WARNING! All changes made in this file will be lost!


import sys
from qt import *


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

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


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

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

        self.contents = QTextBrowser(self,"contents")
        self.contents.setTextFormat(QTextBrowser.RichText)
        DocGeneratorExecFormLayout.addWidget(self.contents)

        self.TextLabel2 = QLabel(self,"TextLabel2")
        DocGeneratorExecFormLayout.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)
        DocGeneratorExecFormLayout.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)
        DocGeneratorExecFormLayout.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("DocGenerator"))
        self.contentsLabel.setText(self.__tr("Messages:"))
        QWhatsThis.add(self.contents,self.__tr("<b>Documentation Generator Execution</b>\n"
"<p>This shows the output of the documentation generator command.</p>"))
        self.TextLabel2.setText(self.__tr("Errors:"))
        QWhatsThis.add(self.errors,self.__tr("<b>Documentation Generator Execution</b>\n"
"<p>This shows the errors of the documentation generator command.</p>"))
        self.button.setText(self.__tr("&Cancel"))


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

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

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