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

# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric3_6/eric3/VCS/cvsPackage/TagForm.ui'
#
# Created: Do Dez 30 14:12:33 2004
#      by: The PyQt User Interface Compiler (pyuic) snapshot-20041229
#
# WARNING! All changes made in this file will be lost!


import sys
from qt import *


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

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


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

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

        self.tagCombo = QComboBox(0,self,"tagCombo")
        self.tagCombo.setSizePolicy(QSizePolicy(QSizePolicy.Expanding,QSizePolicy.Fixed,0,0,self.tagCombo.sizePolicy().hasHeightForWidth()))
        self.tagCombo.setEditable(1)
        self.tagCombo.setAutoCompletion(1)
        self.tagCombo.setDuplicatesEnabled(0)

        Layout4.addWidget(self.tagCombo,0,1)

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

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

        self.ButtonGroup1 = QButtonGroup(self,"ButtonGroup1")
        self.ButtonGroup1.setSizePolicy(QSizePolicy(QSizePolicy.Expanding,QSizePolicy.Preferred,0,0,self.ButtonGroup1.sizePolicy().hasHeightForWidth()))
        self.ButtonGroup1.setFrameShape(QButtonGroup.NoFrame)
        self.ButtonGroup1.setLineWidth(0)
        self.ButtonGroup1.setExclusive(1)
        self.ButtonGroup1.setColumnLayout(0,Qt.Vertical)
        self.ButtonGroup1.layout().setSpacing(6)
        self.ButtonGroup1.layout().setMargin(0)
        ButtonGroup1Layout = QVBoxLayout(self.ButtonGroup1.layout())
        ButtonGroup1Layout.setAlignment(Qt.AlignTop)

        self.createRegularButton = QRadioButton(self.ButtonGroup1,"createRegularButton")
        self.createRegularButton.setChecked(1)
        ButtonGroup1Layout.addWidget(self.createRegularButton)

        self.createBranchButton = QRadioButton(self.ButtonGroup1,"createBranchButton")
        ButtonGroup1Layout.addWidget(self.createBranchButton)

        self.deleteButton = QRadioButton(self.ButtonGroup1,"deleteButton")
        ButtonGroup1Layout.addWidget(self.deleteButton)

        Layout4.addWidget(self.ButtonGroup1,1,1)

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

        Layout4.addWidget(self.TextLabel1,0,0)
        TagFormLayout.addLayout(Layout4)

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

        self.okButton = QPushButton(self,"okButton")
        self.okButton.setEnabled(0)
        self.okButton.setDefault(1)
        Layout5.addWidget(self.okButton)

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

        self.languageChange()

        self.resize(QSize(391,155).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.connect(self.tagCombo,SIGNAL("textChanged(const QString&)"),self.enableOkButton)


    def languageChange(self):
        self.setCaption(self.__tr("CVS Tag"))
        QToolTip.add(self.tagCombo,self.__tr("Enter the name of the tag"))
        QWhatsThis.add(self.tagCombo,self.__tr("<b>Tag Name</b>\n"
"<p>Enter the name of the tag to be created, moved or deleted.</p>"))
        self.TextLabel2.setText(self.__tr("Operation:"))
        self.ButtonGroup1.setTitle(QString.null)
        self.createRegularButton.setText(self.__tr("Create Regular Tag"))
        QToolTip.add(self.createRegularButton,self.__tr("Select to create a regular tag"))
        QWhatsThis.add(self.createRegularButton,self.__tr("<b>Create Regular Tag</b>\n"
"<p>Select this entry in order to create a regular tag in the repository.</p>"))
        self.createBranchButton.setText(self.__tr("Create Branch Tag"))
        QToolTip.add(self.createBranchButton,self.__tr("Select to create a branch tag"))
        QWhatsThis.add(self.createBranchButton,self.__tr("<b>Create Branch Tag</b>\n"
"<p>Select this entry in order to create a branch in the repository.</p>"))
        self.deleteButton.setText(self.__tr("Delete Tag"))
        QToolTip.add(self.deleteButton,self.__tr("Select to delete a tag"))
        QWhatsThis.add(self.deleteButton,self.__tr("<b>Delete Tag</b>\n"
"<p>Select this entry in order to delete the selected tag.</p>"))
        self.TextLabel1.setText(self.__tr("Name:"))
        self.okButton.setText(self.__tr("&OK"))
        self.cancelButton.setText(self.__tr("&Cancel"))


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

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

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