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

# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric3/VCS/cvsPackage/CvsForm.ui'
#
# Created: Mon Mär 17 19:42:55 2003
#      by: The PyQt User Interface Compiler (pyuic)
#
# WARNING! All changes made in this file will be lost!


import sys
from qt import *


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

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


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

        self.message = QLabel(self,"message")
        CvsFormLayout.addWidget(self.message)

        self.resultbox = QTextEdit(self,"resultbox")
        self.resultbox.setTextFormat(QTextEdit.PlainText)
        self.resultbox.setReadOnly(1)
        CvsFormLayout.addWidget(self.resultbox)

        self.textLabel1 = QLabel(self,"textLabel1")
        CvsFormLayout.addWidget(self.textLabel1)

        self.errors = QTextEdit(self,"errors")
        self.errors.setSizePolicy(QSizePolicy(7,5,0,0,self.errors.sizePolicy().hasHeightForWidth()))
        self.errors.setTextFormat(QTextEdit.PlainText)
        self.errors.setReadOnly(1)
        CvsFormLayout.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)
        CvsFormLayout.addLayout(Layout1)

        self.languageChange()

        self.resize(QSize(593,383).expandedTo(self.minimumSizeHint()))
        self.clearWState(Qt.WState_Polished)

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


    def languageChange(self):
        self.setCaption(self.tr("CVS"))
        self.message.setText(self.tr("Dummy"))
        self.textLabel1.setText(self.tr("Errors:"))
        self.button.setText(self.tr("&Cancel"))


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

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