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

# Form implementation generated from reading ui file 'eric/Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesDefineGuardsDialog.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_HgQueuesDefineGuardsDialog(object):
    def setupUi(self, HgQueuesDefineGuardsDialog):
        HgQueuesDefineGuardsDialog.setObjectName(_fromUtf8("HgQueuesDefineGuardsDialog"))
        HgQueuesDefineGuardsDialog.resize(400, 434)
        HgQueuesDefineGuardsDialog.setSizeGripEnabled(True)
        self.verticalLayout = QtGui.QVBoxLayout(HgQueuesDefineGuardsDialog)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.label = QtGui.QLabel(HgQueuesDefineGuardsDialog)
        self.label.setObjectName(_fromUtf8("label"))
        self.verticalLayout.addWidget(self.label)
        self.patchSelector = QtGui.QComboBox(HgQueuesDefineGuardsDialog)
        self.patchSelector.setObjectName(_fromUtf8("patchSelector"))
        self.verticalLayout.addWidget(self.patchSelector)
        self.line = QtGui.QFrame(HgQueuesDefineGuardsDialog)
        self.line.setFrameShape(QtGui.QFrame.HLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName(_fromUtf8("line"))
        self.verticalLayout.addWidget(self.line)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.label_3 = QtGui.QLabel(HgQueuesDefineGuardsDialog)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.horizontalLayout_3.addWidget(self.label_3)
        self.patchNameLabel = QtGui.QLabel(HgQueuesDefineGuardsDialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.patchNameLabel.sizePolicy().hasHeightForWidth())
        self.patchNameLabel.setSizePolicy(sizePolicy)
        self.patchNameLabel.setText(_fromUtf8(""))
        self.patchNameLabel.setObjectName(_fromUtf8("patchNameLabel"))
        self.horizontalLayout_3.addWidget(self.patchNameLabel)
        self.verticalLayout.addLayout(self.horizontalLayout_3)
        self.guardsList = QtGui.QListWidget(HgQueuesDefineGuardsDialog)
        self.guardsList.setAlternatingRowColors(True)
        self.guardsList.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
        self.guardsList.setObjectName(_fromUtf8("guardsList"))
        self.verticalLayout.addWidget(self.guardsList)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.plusButton = QtGui.QRadioButton(HgQueuesDefineGuardsDialog)
        self.plusButton.setText(_fromUtf8(""))
        self.plusButton.setChecked(True)
        self.plusButton.setObjectName(_fromUtf8("plusButton"))
        self.horizontalLayout.addWidget(self.plusButton)
        self.minusButton = QtGui.QRadioButton(HgQueuesDefineGuardsDialog)
        self.minusButton.setText(_fromUtf8(""))
        self.minusButton.setObjectName(_fromUtf8("minusButton"))
        self.horizontalLayout.addWidget(self.minusButton)
        self.guardCombo = QtGui.QComboBox(HgQueuesDefineGuardsDialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.guardCombo.sizePolicy().hasHeightForWidth())
        self.guardCombo.setSizePolicy(sizePolicy)
        self.guardCombo.setEditable(True)
        self.guardCombo.setInsertPolicy(QtGui.QComboBox.InsertAlphabetically)
        self.guardCombo.setObjectName(_fromUtf8("guardCombo"))
        self.horizontalLayout.addWidget(self.guardCombo)
        self.addButton = QtGui.QPushButton(HgQueuesDefineGuardsDialog)
        self.addButton.setObjectName(_fromUtf8("addButton"))
        self.horizontalLayout.addWidget(self.addButton)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.removeButton = QtGui.QPushButton(HgQueuesDefineGuardsDialog)
        self.removeButton.setObjectName(_fromUtf8("removeButton"))
        self.verticalLayout.addWidget(self.removeButton)
        self.buttonBox = QtGui.QDialogButtonBox(HgQueuesDefineGuardsDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Apply|QtGui.QDialogButtonBox.Close)
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
        self.verticalLayout.addWidget(self.buttonBox)

        self.retranslateUi(HgQueuesDefineGuardsDialog)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), HgQueuesDefineGuardsDialog.accept)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), HgQueuesDefineGuardsDialog.reject)
        QtCore.QMetaObject.connectSlotsByName(HgQueuesDefineGuardsDialog)
        HgQueuesDefineGuardsDialog.setTabOrder(self.patchSelector, self.guardsList)
        HgQueuesDefineGuardsDialog.setTabOrder(self.guardsList, self.plusButton)
        HgQueuesDefineGuardsDialog.setTabOrder(self.plusButton, self.minusButton)
        HgQueuesDefineGuardsDialog.setTabOrder(self.minusButton, self.guardCombo)
        HgQueuesDefineGuardsDialog.setTabOrder(self.guardCombo, self.addButton)
        HgQueuesDefineGuardsDialog.setTabOrder(self.addButton, self.removeButton)
        HgQueuesDefineGuardsDialog.setTabOrder(self.removeButton, self.buttonBox)

    def retranslateUi(self, HgQueuesDefineGuardsDialog):
        HgQueuesDefineGuardsDialog.setWindowTitle(_translate("HgQueuesDefineGuardsDialog", "Define Guards", None))
        self.label.setText(_translate("HgQueuesDefineGuardsDialog", "Select patch (leave empty for current patch):", None))
        self.patchSelector.setToolTip(_translate("HgQueuesDefineGuardsDialog", "Select the patch to show the guards of", None))
        self.label_3.setText(_translate("HgQueuesDefineGuardsDialog", "Patch:", None))
        self.patchNameLabel.setToolTip(_translate("HgQueuesDefineGuardsDialog", "Shows the name of the patch", None))
        self.guardsList.setToolTip(_translate("HgQueuesDefineGuardsDialog", "This shows the list of guards to be defined for the selected patch", None))
        self.plusButton.setToolTip(_translate("HgQueuesDefineGuardsDialog", "Select to define a positive guard", None))
        self.minusButton.setToolTip(_translate("HgQueuesDefineGuardsDialog", "Select to define a negative guard", None))
        self.guardCombo.setToolTip(_translate("HgQueuesDefineGuardsDialog", "Enter the guard name", None))
        self.addButton.setToolTip(_translate("HgQueuesDefineGuardsDialog", "Press to add the guard to the list or change it", None))
        self.addButton.setText(_translate("HgQueuesDefineGuardsDialog", "Add/Change", None))
        self.removeButton.setToolTip(_translate("HgQueuesDefineGuardsDialog", "Press to remove the selected guards from the list", None))
        self.removeButton.setText(_translate("HgQueuesDefineGuardsDialog", "Remove", None))

