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

# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric3_8/eric3/VCS/mercurialPackage/OptionsForm.ui'
#
# Created: So Sep 11 17:01:31 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 HgOptionsForm(QDialog):
    def __init__(self,parent = None,name = None,modal = 0,fl = 0):
        QDialog.__init__(self,parent,name,modal,fl)

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


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

        layout3 = QGridLayout(None,1,1,0,6,"layout3")

        self.TextLabel5 = QLabel(self,"TextLabel5")

        layout3.addWidget(self.TextLabel5,2,0)

        self.vcsLogEdit = QLineEdit(self,"vcsLogEdit")

        layout3.addWidget(self.vcsLogEdit,2,1)
        HgOptionsFormLayout.addLayout(layout3)

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

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

        self.cancelButton = QPushButton(self,"cancelButton")
        Layout4.addWidget(self.cancelButton)
        Spacer4 = QSpacerItem(20,0,QSizePolicy.Expanding,QSizePolicy.Minimum)
        Layout4.addItem(Spacer4)
        HgOptionsFormLayout.addLayout(Layout4)

        self.languageChange()

        self.resize(QSize(565,66).expandedTo(self.minimumSizeHint()))
        self.clearWState(Qt.WState_Polished)

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

        self.setTabOrder(self.vcsLogEdit,self.okButton)
        self.setTabOrder(self.okButton,self.cancelButton)

        self.TextLabel5.setBuddy(self.vcsLogEdit)


    def languageChange(self):
        self.setCaption(self.__tr("Repository Infos"))
        QWhatsThis.add(self,self.__tr("<b>Repository Infos Dialog</b>\n"
"<p>Enter the commit message used to perform the initial commit after the repository has been initialized.</p>"))
        self.TextLabel5.setText(self.__tr("Commit &Message:"))
        self.vcsLogEdit.setText(self.__tr("new project started"))
        QToolTip.add(self.vcsLogEdit,self.__tr("Enter the log message for the new project."))
        QWhatsThis.add(self.vcsLogEdit,self.__tr("<b>Log Message</b>\n"
"<p>Enter the log message to be used for the new project.</p>"))
        self.okButton.setText(self.__tr("&OK"))
        self.okButton.setAccel(self.__tr("Alt+O"))
        self.cancelButton.setText(self.__tr("&Cancel"))


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

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