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

# Form implementation generated from reading ui file 'eric/Plugins/VcsPlugins/vcsMercurial/HgImportDialog.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_HgImportDialog(object):
    def setupUi(self, HgImportDialog):
        HgImportDialog.setObjectName(_fromUtf8("HgImportDialog"))
        HgImportDialog.resize(500, 380)
        HgImportDialog.setSizeGripEnabled(True)
        self.gridLayout_2 = QtGui.QGridLayout(HgImportDialog)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.groupBox_2 = QtGui.QGroupBox(HgImportDialog)
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.verticalLayout = QtGui.QVBoxLayout(self.groupBox_2)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.noCommitCheckBox = QtGui.QCheckBox(self.groupBox_2)
        self.noCommitCheckBox.setChecked(True)
        self.noCommitCheckBox.setObjectName(_fromUtf8("noCommitCheckBox"))
        self.verticalLayout.addWidget(self.noCommitCheckBox)
        self.label_3 = QtGui.QLabel(self.groupBox_2)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.verticalLayout.addWidget(self.label_3)
        self.messageEdit = QtGui.QPlainTextEdit(self.groupBox_2)
        self.messageEdit.setEnabled(False)
        self.messageEdit.setTabChangesFocus(True)
        self.messageEdit.setObjectName(_fromUtf8("messageEdit"))
        self.verticalLayout.addWidget(self.messageEdit)
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.label = QtGui.QLabel(self.groupBox_2)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        self.dateEdit = QtGui.QDateTimeEdit(self.groupBox_2)
        self.dateEdit.setEnabled(False)
        self.dateEdit.setDisplayFormat(_fromUtf8("yyyy-MM-dd HH:mm"))
        self.dateEdit.setCalendarPopup(False)
        self.dateEdit.setObjectName(_fromUtf8("dateEdit"))
        self.gridLayout.addWidget(self.dateEdit, 0, 1, 1, 1)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem, 0, 2, 1, 1)
        self.label_2 = QtGui.QLabel(self.groupBox_2)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
        self.userEdit = QtGui.QLineEdit(self.groupBox_2)
        self.userEdit.setEnabled(False)
        self.userEdit.setObjectName(_fromUtf8("userEdit"))
        self.gridLayout.addWidget(self.userEdit, 1, 1, 1, 2)
        self.verticalLayout.addLayout(self.gridLayout)
        self.gridLayout_2.addWidget(self.groupBox_2, 0, 0, 1, 2)
        self.label_4 = QtGui.QLabel(HgImportDialog)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.gridLayout_2.addWidget(self.label_4, 1, 0, 1, 1)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.stripSpinBox = QtGui.QSpinBox(HgImportDialog)
        self.stripSpinBox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.stripSpinBox.setMaximum(9)
        self.stripSpinBox.setProperty("value", 1)
        self.stripSpinBox.setObjectName(_fromUtf8("stripSpinBox"))
        self.horizontalLayout.addWidget(self.stripSpinBox)
        spacerItem1 = QtGui.QSpacerItem(118, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem1)
        self.gridLayout_2.addLayout(self.horizontalLayout, 1, 1, 1, 1)
        self.label_5 = QtGui.QLabel(HgImportDialog)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.gridLayout_2.addWidget(self.label_5, 2, 0, 1, 1)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.patchFileEdit = QtGui.QLineEdit(HgImportDialog)
        self.patchFileEdit.setObjectName(_fromUtf8("patchFileEdit"))
        self.horizontalLayout_2.addWidget(self.patchFileEdit)
        self.patchFileButton = QtGui.QToolButton(HgImportDialog)
        self.patchFileButton.setObjectName(_fromUtf8("patchFileButton"))
        self.horizontalLayout_2.addWidget(self.patchFileButton)
        self.gridLayout_2.addLayout(self.horizontalLayout_2, 2, 1, 1, 1)
        self.forceCheckBox = QtGui.QCheckBox(HgImportDialog)
        self.forceCheckBox.setObjectName(_fromUtf8("forceCheckBox"))
        self.gridLayout_2.addWidget(self.forceCheckBox, 3, 0, 1, 2)
        self.buttonBox = QtGui.QDialogButtonBox(HgImportDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
        self.gridLayout_2.addWidget(self.buttonBox, 4, 0, 1, 2)

        self.retranslateUi(HgImportDialog)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), HgImportDialog.accept)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), HgImportDialog.reject)
        QtCore.QObject.connect(self.noCommitCheckBox, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.messageEdit.setDisabled)
        QtCore.QObject.connect(self.noCommitCheckBox, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.dateEdit.setDisabled)
        QtCore.QObject.connect(self.noCommitCheckBox, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.userEdit.setDisabled)
        QtCore.QMetaObject.connectSlotsByName(HgImportDialog)
        HgImportDialog.setTabOrder(self.noCommitCheckBox, self.messageEdit)
        HgImportDialog.setTabOrder(self.messageEdit, self.dateEdit)
        HgImportDialog.setTabOrder(self.dateEdit, self.userEdit)
        HgImportDialog.setTabOrder(self.userEdit, self.stripSpinBox)
        HgImportDialog.setTabOrder(self.stripSpinBox, self.patchFileEdit)
        HgImportDialog.setTabOrder(self.patchFileEdit, self.patchFileButton)
        HgImportDialog.setTabOrder(self.patchFileButton, self.forceCheckBox)
        HgImportDialog.setTabOrder(self.forceCheckBox, self.buttonBox)

    def retranslateUi(self, HgImportDialog):
        HgImportDialog.setWindowTitle(_translate("HgImportDialog", "Import Patch", None))
        self.groupBox_2.setTitle(_translate("HgImportDialog", "Commit data", None))
        self.noCommitCheckBox.setToolTip(_translate("HgImportDialog", "Select to not commit the imported patch", None))
        self.noCommitCheckBox.setText(_translate("HgImportDialog", "Do not commit", None))
        self.label_3.setText(_translate("HgImportDialog", "Commit message:", None))
        self.messageEdit.setToolTip(_translate("HgImportDialog", "Enter the commit message or leave empty to use the default one", None))
        self.label.setText(_translate("HgImportDialog", "Commit Date:", None))
        self.dateEdit.setToolTip(_translate("HgImportDialog", "Enter optional date for the commit", None))
        self.label_2.setText(_translate("HgImportDialog", "Commit User:", None))
        self.userEdit.setToolTip(_translate("HgImportDialog", "Enter optional user for the commit", None))
        self.label_4.setText(_translate("HgImportDialog", "Strip Count:", None))
        self.stripSpinBox.setToolTip(_translate("HgImportDialog", "Enter number of leading directories to strip off (default 1)", None))
        self.label_5.setText(_translate("HgImportDialog", "Patch File:", None))
        self.patchFileEdit.setToolTip(_translate("HgImportDialog", "Enter the name of the patch file", None))
        self.patchFileButton.setToolTip(_translate("HgImportDialog", "Press to select the patch file via a file selection dialog", None))
        self.forceCheckBox.setToolTip(_translate("HgImportDialog", "Select to enforce the import", None))
        self.forceCheckBox.setText(_translate("HgImportDialog", "Enforce Import", None))

