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

# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric3_9/eric3/VCS/subversionPackage/CommitForm.ui'
#
# Created: So Nov 27 16:12:56 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 CommitForm(QDialog):
    def __init__(self,parent = None,name = None,modal = 0,fl = 0):
        QDialog.__init__(self,parent,name,modal,fl)

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


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

        self.TextLabel1 = QLabel(self,"TextLabel1")
        CommitFormLayout.addWidget(self.TextLabel1)

        self.logEdit = QTextEdit(self,"logEdit")
        self.logEdit.setTextFormat(QTextEdit.PlainText)
        CommitFormLayout.addWidget(self.logEdit)

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

        self.okButton = QPushButton(self,"okButton")
        self.okButton.setDefault(1)
        Layout1.addWidget(self.okButton)

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

        self.languageChange()

        self.resize(QSize(442,270).expandedTo(self.minimumSizeHint()))
        self.clearWState(Qt.WState_Polished)

        self.connect(self.okButton,SIGNAL("clicked()"),self.accept)
        self.connect(self.cancelButton,SIGNAL("clicked()"),self.reject)


    def languageChange(self):
        self.setCaption(self.__tr("Subversion Commit"))
        self.TextLabel1.setText(self.__tr("Enter log message:"))
        QToolTip.add(self.logEdit,self.__tr("Enter the log message."))
        QWhatsThis.add(self.logEdit,self.__tr("<b>Log Message</b>\n"
"<p>Enter the log message for the commit action.</p>"))
        self.okButton.setText(self.__tr("&OK"))
        self.cancelButton.setText(self.__tr("&Cancel"))


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

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