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

# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric3/VCS/cvsPackage/LogForm.ui'
#
# Created: Son Sep 14 15:29:52 2003
#      by: The PyQt User Interface Compiler (pyuic) 3.8
#
# WARNING! All changes made in this file will be lost!


import sys
from qt import *


class LogForm(QWidget):
    def __init__(self,parent = None,name = None,fl = 0):
        QWidget.__init__(self,parent,name,fl)

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


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

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

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

        self.TextLabel2 = QLabel(self,"TextLabel2")
        LogFormLayout.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)
        LogFormLayout.addWidget(self.errors)

        layout3 = QHBoxLayout(None,0,6,"layout3")
        spacer = QSpacerItem(100,16,QSizePolicy.Expanding,QSizePolicy.Minimum)
        layout3.addItem(spacer)

        self.PushButton1 = QPushButton(self,"PushButton1")
        self.PushButton1.setDefault(1)
        layout3.addWidget(self.PushButton1)

        self.saveButton = QPushButton(self,"saveButton")
        self.saveButton.setEnabled(0)
        layout3.addWidget(self.saveButton)
        spacer_2 = QSpacerItem(100,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
        layout3.addItem(spacer_2)
        LogFormLayout.addLayout(layout3)

        self.languageChange()

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

        self.connect(self.PushButton1,SIGNAL("clicked()"),self,SLOT("close()"))
        self.connect(self.saveButton,SIGNAL("clicked()"),self.handleSave)


    def languageChange(self):
        self.setCaption(self.__tr("CVS Log"))
        self.contentsLabel.setText(self.__tr("Log:"))
        self.TextLabel2.setText(self.__tr("Errors:"))
        self.PushButton1.setText(self.__tr("&Close"))
        self.saveButton.setText(self.__tr("&Save"))


    def handleSave(self):
        print "LogForm.handleSave(): Not implemented yet"

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

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