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

# Form implementation generated from reading ui file 'eric/Plugins/VcsPlugins/vcsMercurial/HgTagDialog.ui'
#
# Created by: PyQt4 UI code generator 4.11.4
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

try:
    _fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
    def _fromUtf8(s):
        return s

try:
    _encoding = QtGui.QApplication.UnicodeUTF8
    def _translate(context, text, disambig):
        return QtGui.QApplication.translate(context, text, disambig, _encoding)
except AttributeError:
    def _translate(context, text, disambig):
        return QtGui.QApplication.translate(context, text, disambig)

class Ui_HgTagDialog(object):
    def setupUi(self, HgTagDialog):
        HgTagDialog.setObjectName(_fromUtf8("HgTagDialog"))
        HgTagDialog.resize(391, 294)
        HgTagDialog.setSizeGripEnabled(True)
        self.gridLayout = QtGui.QGridLayout(HgTagDialog)
        self.gridLayout.setMargin(11)
        self.gridLayout.setSpacing(6)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.TextLabel1 = QtGui.QLabel(HgTagDialog)
        self.TextLabel1.setObjectName(_fromUtf8("TextLabel1"))
        self.gridLayout.addWidget(self.TextLabel1, 0, 0, 1, 1)
        self.tagCombo = QtGui.QComboBox(HgTagDialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.tagCombo.sizePolicy().hasHeightForWidth())
        self.tagCombo.setSizePolicy(sizePolicy)
        self.tagCombo.setEditable(True)
        self.tagCombo.setDuplicatesEnabled(False)
        self.tagCombo.setObjectName(_fromUtf8("tagCombo"))
        self.gridLayout.addWidget(self.tagCombo, 0, 1, 1, 1)
        self.label = QtGui.QLabel(HgTagDialog)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout.addWidget(self.label, 1, 0, 1, 1)
        self.revisionEdit = QtGui.QLineEdit(HgTagDialog)
        self.revisionEdit.setObjectName(_fromUtf8("revisionEdit"))
        self.gridLayout.addWidget(self.revisionEdit, 1, 1, 1, 1)
        self.tagActionGroup = QtGui.QGroupBox(HgTagDialog)
        self.tagActionGroup.setObjectName(_fromUtf8("tagActionGroup"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.tagActionGroup)
        self.horizontalLayout_2.setMargin(11)
        self.horizontalLayout_2.setSpacing(6)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.createTagButton = QtGui.QRadioButton(self.tagActionGroup)
        self.createTagButton.setChecked(True)
        self.createTagButton.setObjectName(_fromUtf8("createTagButton"))
        self.horizontalLayout_2.addWidget(self.createTagButton)
        self.deleteTagButton = QtGui.QRadioButton(self.tagActionGroup)
        self.deleteTagButton.setObjectName(_fromUtf8("deleteTagButton"))
        self.horizontalLayout_2.addWidget(self.deleteTagButton)
        self.gridLayout.addWidget(self.tagActionGroup, 2, 0, 1, 2)
        self.forceCheckBox = QtGui.QCheckBox(HgTagDialog)
        self.forceCheckBox.setObjectName(_fromUtf8("forceCheckBox"))
        self.gridLayout.addWidget(self.forceCheckBox, 3, 0, 1, 2)
        self.tagTypeGroup = QtGui.QGroupBox(HgTagDialog)
        self.tagTypeGroup.setObjectName(_fromUtf8("tagTypeGroup"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.tagTypeGroup)
        self.horizontalLayout.setMargin(11)
        self.horizontalLayout.setSpacing(6)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.globalTagButton = QtGui.QRadioButton(self.tagTypeGroup)
        self.globalTagButton.setChecked(True)
        self.globalTagButton.setObjectName(_fromUtf8("globalTagButton"))
        self.horizontalLayout.addWidget(self.globalTagButton)
        self.localTagButton = QtGui.QRadioButton(self.tagTypeGroup)
        self.localTagButton.setObjectName(_fromUtf8("localTagButton"))
        self.horizontalLayout.addWidget(self.localTagButton)
        self.gridLayout.addWidget(self.tagTypeGroup, 4, 0, 1, 2)
        self.buttonBox = QtGui.QDialogButtonBox(HgTagDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
        self.gridLayout.addWidget(self.buttonBox, 5, 0, 1, 2)

        self.retranslateUi(HgTagDialog)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), HgTagDialog.accept)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), HgTagDialog.reject)
        QtCore.QObject.connect(self.deleteTagButton, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.revisionEdit.setDisabled)
        QtCore.QMetaObject.connectSlotsByName(HgTagDialog)
        HgTagDialog.setTabOrder(self.tagCombo, self.revisionEdit)
        HgTagDialog.setTabOrder(self.revisionEdit, self.createTagButton)
        HgTagDialog.setTabOrder(self.createTagButton, self.deleteTagButton)
        HgTagDialog.setTabOrder(self.deleteTagButton, self.forceCheckBox)
        HgTagDialog.setTabOrder(self.forceCheckBox, self.globalTagButton)
        HgTagDialog.setTabOrder(self.globalTagButton, self.localTagButton)

    def retranslateUi(self, HgTagDialog):
        HgTagDialog.setWindowTitle(_translate("HgTagDialog", "Mercurial Tag", None))
        self.TextLabel1.setText(_translate("HgTagDialog", "Name:", None))
        self.tagCombo.setToolTip(_translate("HgTagDialog", "Enter the name of the tag", None))
        self.tagCombo.setWhatsThis(_translate("HgTagDialog", "<b>Tag Name</b>\n"
"<p>Enter the name of the tag to be created, moved or deleted.</p>", None))
        self.label.setText(_translate("HgTagDialog", "Revision:", None))
        self.revisionEdit.setToolTip(_translate("HgTagDialog", "Enter a revision to set a tag for", None))
        self.tagActionGroup.setTitle(_translate("HgTagDialog", "Tag Action", None))
        self.createTagButton.setToolTip(_translate("HgTagDialog", "Select to create a tag", None))
        self.createTagButton.setWhatsThis(_translate("HgTagDialog", "<b>Create Tag</b>\n"
"<p>Select this entry in order to create a tag.</p>", None))
        self.createTagButton.setText(_translate("HgTagDialog", "Create Tag", None))
        self.deleteTagButton.setToolTip(_translate("HgTagDialog", "Select to delete a tag", None))
        self.deleteTagButton.setWhatsThis(_translate("HgTagDialog", "<b>Delete Tag</b>\n"
"<p>Select this entry in order to delete the selected tag.</p>", None))
        self.deleteTagButton.setText(_translate("HgTagDialog", "Delete Tag", None))
        self.forceCheckBox.setToolTip(_translate("HgTagDialog", "Select to enforce the selected action", None))
        self.forceCheckBox.setText(_translate("HgTagDialog", "Force Action", None))
        self.tagTypeGroup.setTitle(_translate("HgTagDialog", "Tag Type", None))
        self.globalTagButton.setToolTip(_translate("HgTagDialog", "Select to create/delete a global tag", None))
        self.globalTagButton.setText(_translate("HgTagDialog", "Global Tag", None))
        self.localTagButton.setToolTip(_translate("HgTagDialog", "Select to create/delete a local tag", None))
        self.localTagButton.setText(_translate("HgTagDialog", "Local Tag", None))

