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

# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric3/DocumentationTools/HappydocExecForm.ui'
#
# Created: Mon Jan 20 20:45:02 2003
#      by: The PyQt User Interface Compiler (pyuic)
#
# WARNING! All changes made in this file will be lost!


import sys
from qt import *


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

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


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

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

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

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

        self.errors = QTextBrowser(self,"errors")
        self.errors.setSizePolicy(QSizePolicy(7,5,0,0,self.errors.sizePolicy().hasHeightForWidth()))
        self.errors.setTextFormat(QTextBrowser.PlainText)
        HappydocExecFormLayout.addWidget(self.errors)

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

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

        self.languageChange()

        self.resize(QSize(753,600).expandedTo(self.minimumSizeHint()))

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

    def languageChange(self):
        self.setCaption(self.tr("Happydoc"))
        self.contentsLabel.setText(self.tr("Messages:"))
        QWhatsThis.add(self.contents,self.tr("<b>Happydoc Execution</b>\n"
"<p>This shows the output of the happydoc command.</p>"))
        self.TextLabel2.setText(self.tr("Errors:"))
        QWhatsThis.add(self.errors,self.tr("<b>Happydoc Execution</b>\n"
"<p>This shows the errors of the happydoc command.</p>"))
        self.button.setText(self.tr("&Cancel"))

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


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