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

# Form implementation generated from reading ui file 'eric/Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesFoldDialog.ui'
#
# Created: Tue Oct 28 07:22:18 2014
#      by: PyQt4 UI code generator 4.11.2
#
# 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_HgQueuesFoldDialog(object):
    def setupUi(self, HgQueuesFoldDialog):
        HgQueuesFoldDialog.setObjectName(_fromUtf8("HgQueuesFoldDialog"))
        HgQueuesFoldDialog.resize(450, 600)
        HgQueuesFoldDialog.setSizeGripEnabled(True)
        self.gridLayout = QtGui.QGridLayout(HgQueuesFoldDialog)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.label = QtGui.QLabel(HgQueuesFoldDialog)
        self.label.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        self.messageEdit = QtGui.QPlainTextEdit(HgQueuesFoldDialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.messageEdit.sizePolicy().hasHeightForWidth())
        self.messageEdit.setSizePolicy(sizePolicy)
        self.messageEdit.setTabChangesFocus(True)
        self.messageEdit.setObjectName(_fromUtf8("messageEdit"))
        self.gridLayout.addWidget(self.messageEdit, 0, 1, 1, 1)
        self.sourcePatches = QtGui.QTreeWidget(HgQueuesFoldDialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(2)
        sizePolicy.setHeightForWidth(self.sourcePatches.sizePolicy().hasHeightForWidth())
        self.sourcePatches.setSizePolicy(sizePolicy)
        self.sourcePatches.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers)
        self.sourcePatches.setAlternatingRowColors(True)
        self.sourcePatches.setRootIsDecorated(False)
        self.sourcePatches.setItemsExpandable(False)
        self.sourcePatches.setAllColumnsShowFocus(True)
        self.sourcePatches.setExpandsOnDoubleClick(False)
        self.sourcePatches.setObjectName(_fromUtf8("sourcePatches"))
        self.gridLayout.addWidget(self.sourcePatches, 1, 0, 1, 2)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.addButton = QtGui.QToolButton(HgQueuesFoldDialog)
        self.addButton.setEnabled(False)
        self.addButton.setText(_fromUtf8(""))
        self.addButton.setObjectName(_fromUtf8("addButton"))
        self.horizontalLayout.addWidget(self.addButton)
        self.removeButton = QtGui.QToolButton(HgQueuesFoldDialog)
        self.removeButton.setEnabled(False)
        self.removeButton.setText(_fromUtf8(""))
        self.removeButton.setObjectName(_fromUtf8("removeButton"))
        self.horizontalLayout.addWidget(self.removeButton)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem1)
        self.gridLayout.addLayout(self.horizontalLayout, 2, 0, 1, 2)
        self.selectedPatches = QtGui.QTreeWidget(HgQueuesFoldDialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(2)
        sizePolicy.setHeightForWidth(self.selectedPatches.sizePolicy().hasHeightForWidth())
        self.selectedPatches.setSizePolicy(sizePolicy)
        self.selectedPatches.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers)
        self.selectedPatches.setAlternatingRowColors(True)
        self.selectedPatches.setRootIsDecorated(False)
        self.selectedPatches.setItemsExpandable(False)
        self.selectedPatches.setExpandsOnDoubleClick(False)
        self.selectedPatches.setObjectName(_fromUtf8("selectedPatches"))
        self.gridLayout.addWidget(self.selectedPatches, 3, 0, 1, 2)
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem2)
        self.upButton = QtGui.QToolButton(HgQueuesFoldDialog)
        self.upButton.setEnabled(False)
        self.upButton.setText(_fromUtf8(""))
        self.upButton.setObjectName(_fromUtf8("upButton"))
        self.verticalLayout.addWidget(self.upButton)
        self.downButton = QtGui.QToolButton(HgQueuesFoldDialog)
        self.downButton.setEnabled(False)
        self.downButton.setText(_fromUtf8(""))
        self.downButton.setObjectName(_fromUtf8("downButton"))
        self.verticalLayout.addWidget(self.downButton)
        spacerItem3 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem3)
        self.gridLayout.addLayout(self.verticalLayout, 3, 2, 1, 1)
        self.buttonBox = QtGui.QDialogButtonBox(HgQueuesFoldDialog)
        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, 4, 0, 1, 3)

        self.retranslateUi(HgQueuesFoldDialog)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), HgQueuesFoldDialog.accept)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), HgQueuesFoldDialog.reject)
        QtCore.QMetaObject.connectSlotsByName(HgQueuesFoldDialog)
        HgQueuesFoldDialog.setTabOrder(self.messageEdit, self.sourcePatches)
        HgQueuesFoldDialog.setTabOrder(self.sourcePatches, self.addButton)
        HgQueuesFoldDialog.setTabOrder(self.addButton, self.removeButton)
        HgQueuesFoldDialog.setTabOrder(self.removeButton, self.selectedPatches)
        HgQueuesFoldDialog.setTabOrder(self.selectedPatches, self.upButton)
        HgQueuesFoldDialog.setTabOrder(self.upButton, self.downButton)
        HgQueuesFoldDialog.setTabOrder(self.downButton, self.buttonBox)

    def retranslateUi(self, HgQueuesFoldDialog):
        HgQueuesFoldDialog.setWindowTitle(_translate("HgQueuesFoldDialog", "Fold Patches", None))
        self.label.setText(_translate("HgQueuesFoldDialog", "Message:", None))
        self.messageEdit.setToolTip(_translate("HgQueuesFoldDialog", "Enter commit message for the folded patch", None))
        self.sourcePatches.headerItem().setText(0, _translate("HgQueuesFoldDialog", "Name", None))
        self.sourcePatches.headerItem().setText(1, _translate("HgQueuesFoldDialog", "Summary", None))
        self.addButton.setToolTip(_translate("HgQueuesFoldDialog", "Press to add the selected entry to the list of selected patches", None))
        self.removeButton.setToolTip(_translate("HgQueuesFoldDialog", "Press to remove the selected entry from the list of selected patches", None))
        self.selectedPatches.headerItem().setText(0, _translate("HgQueuesFoldDialog", "Name", None))
        self.selectedPatches.headerItem().setText(1, _translate("HgQueuesFoldDialog", "Summary", None))
        self.upButton.setToolTip(_translate("HgQueuesFoldDialog", "Press to move the selected patch up", None))
        self.downButton.setToolTip(_translate("HgQueuesFoldDialog", "Press to move the selected patch down", None))

