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

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


import sys
from qt import *


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

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


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

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

        self.optionsCheckBox = QCheckBox(self,"optionsCheckBox")

        Layout9.addMultiCellWidget(self.optionsCheckBox,6,6,0,1)

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

        Layout9.addWidget(self.vcsLabel,0,0)

        self.vcsComboBox = QComboBox(0,self,"vcsComboBox")
        self.vcsComboBox.setSizePolicy(QSizePolicy(7,0,0,0,self.vcsComboBox.sizePolicy().hasHeightForWidth()))

        Layout9.addWidget(self.vcsComboBox,0,1)

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

        Layout9.addWidget(self.vcsVendorEdit,3,1)

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

        Layout9.addWidget(self.TextLabel3,2,0)

        self.vcsArchiveEdit = QLineEdit(self,"vcsArchiveEdit")
        self.vcsArchiveEdit.setReadOnly(1)

        Layout9.addWidget(self.vcsArchiveEdit,2,1)

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

        Layout9.addWidget(self.vcsReleaseEdit,5,1)

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

        Layout9.addWidget(self.TextLabel6,5,0)

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

        Layout9.addWidget(self.vcsDirectoryEdit,1,1)

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

        Layout9.addWidget(self.TextLabel4,3,0)

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

        Layout9.addWidget(self.TextLabel2,1,0)

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

        Layout9.addWidget(self.vcsLogEdit,4,1)

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

        Layout9.addWidget(self.TextLabel5,4,0)

        self.vcsDirButton = QPushButton(self,"vcsDirButton")

        Layout9.addWidget(self.vcsDirButton,1,2)
        vcsOptionsFormLayout.addLayout(Layout9)

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

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

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

        self.languageChange()

        self.resize(QSize(562,233).expandedTo(self.minimumSizeHint()))

        self.connect(self.okButton,SIGNAL("clicked()"),self,SLOT("accept()"))
        self.connect(self.cancelButton,SIGNAL("clicked()"),self,SLOT("reject()"))
        self.connect(self.vcsDirButton,SIGNAL("clicked()"),self.handleDirectory)
        self.connect(self.vcsComboBox,SIGNAL("highlighted(const QString&)"),self.handleComboBox)

        self.setTabOrder(self.vcsComboBox,self.vcsDirectoryEdit)
        self.setTabOrder(self.vcsDirectoryEdit,self.vcsDirButton)
        self.setTabOrder(self.vcsDirButton,self.vcsArchiveEdit)
        self.setTabOrder(self.vcsArchiveEdit,self.vcsVendorEdit)
        self.setTabOrder(self.vcsVendorEdit,self.vcsLogEdit)
        self.setTabOrder(self.vcsLogEdit,self.vcsReleaseEdit)
        self.setTabOrder(self.vcsReleaseEdit,self.okButton)
        self.setTabOrder(self.okButton,self.cancelButton)

        self.vcsLabel.setBuddy(self.vcsComboBox)
        self.TextLabel3.setBuddy(self.vcsArchiveEdit)
        self.TextLabel6.setBuddy(self.vcsReleaseEdit)
        self.TextLabel4.setBuddy(self.vcsVendorEdit)
        self.TextLabel2.setBuddy(self.vcsDirectoryEdit)
        self.TextLabel5.setBuddy(self.vcsLogEdit)

    def languageChange(self):
        self.setCaption(self.tr("VCS Options"))
        QWhatsThis.add(self,self.tr("<b>VCS Options Dialog</b>\n"
"<p>Enter the various VCS properties into the entry fields. These values are used, when a new project is generated.</p>"))
        self.optionsCheckBox.setText(self.tr("Set Command Options"))
        QToolTip.add(self.optionsCheckBox,self.tr("Select whether the VCS command options shall be set."))
        self.vcsLabel.setText(self.tr("VCS-&System:"))
        QToolTip.add(self.vcsComboBox,self.tr("Select the VCS system to be used."))
        QWhatsThis.add(self.vcsComboBox,self.tr("<b>VCS-System</b>\n"
"<p>Select the VCS system (e.g. CVS) to be used in the project.</p>"))
        QToolTip.add(self.vcsVendorEdit,self.tr("Enter the vendor label."))
        QWhatsThis.add(self.vcsVendorEdit,self.tr("<b>Vendor Label</b>\n"
"<p>Enter the vendor label to be used for the archive.</p>"))
        self.TextLabel3.setText(self.tr("&Archive in VCS:"))
        QToolTip.add(self.vcsArchiveEdit,self.tr("Enter the name of the archive in VCS."))
        QWhatsThis.add(self.vcsArchiveEdit,self.tr("<b>Archive in VCS</b>\n"
"<p>Enter the name of the archive in the VCS.</p>"))
        self.vcsReleaseEdit.setText(self.tr("start"))
        QToolTip.add(self.vcsReleaseEdit,self.tr("Enter the release label."))
        QWhatsThis.add(self.vcsReleaseEdit,self.tr("<b>Release Label</b>\n"
"<p>Enter the release label for the new project.</p>"))
        self.TextLabel6.setText(self.tr("&Release Label:"))
        QToolTip.add(self.vcsDirectoryEdit,self.tr("Enter the name of the VCS directory."))
        QWhatsThis.add(self.vcsDirectoryEdit,self.tr("<b>VCS-Directory</b>\n"
"<p>Enter the name of the directory, that is the root of the VCS repository to be used. You may select it by pressing the button to the right.</p>"))
        self.TextLabel4.setText(self.tr("&Vendor Label:"))
        self.TextLabel2.setText(self.tr("VCS-&Directory:"))
        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.TextLabel5.setText(self.tr("&Log Message:"))
        self.vcsDirButton.setText(self.tr("..."))
        QToolTip.add(self.vcsDirButton,self.tr("Show directory selection dialog"))
        QWhatsThis.add(self.vcsDirButton,self.tr("<b>VCS-Directory</b>\n"
"<p>Select VCS root directory via a directory selection dialog.</p>"))
        self.okButton.setText(self.tr("&OK"))
        self.cancelButton.setText(self.tr("&Cancel"))

    def handleDirectory(self):
        print "vcsOptionsForm.handleDirectory(): Not implemented yet"

    def handleComboBox(self,a0):
        print "vcsOptionsForm.handleComboBox(const QString&): Not implemented yet"


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