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

# Form implementation generated from reading ui file 'eric/Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesNewPatchDialog.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_HgQueuesNewPatchDialog(object):
    def setupUi(self, HgQueuesNewPatchDialog):
        HgQueuesNewPatchDialog.setObjectName(_fromUtf8("HgQueuesNewPatchDialog"))
        HgQueuesNewPatchDialog.resize(400, 362)
        HgQueuesNewPatchDialog.setSizeGripEnabled(True)
        self.gridLayout_3 = QtGui.QGridLayout(HgQueuesNewPatchDialog)
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.nameLabel = QtGui.QLabel(HgQueuesNewPatchDialog)
        self.nameLabel.setObjectName(_fromUtf8("nameLabel"))
        self.gridLayout_3.addWidget(self.nameLabel, 0, 0, 1, 1)
        self.nameEdit = QtGui.QLineEdit(HgQueuesNewPatchDialog)
        self.nameEdit.setObjectName(_fromUtf8("nameEdit"))
        self.gridLayout_3.addWidget(self.nameEdit, 0, 1, 1, 1)
        self.label_2 = QtGui.QLabel(HgQueuesNewPatchDialog)
        self.label_2.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout_3.addWidget(self.label_2, 1, 0, 1, 1)
        self.messageEdit = QtGui.QPlainTextEdit(HgQueuesNewPatchDialog)
        self.messageEdit.setTabChangesFocus(True)
        self.messageEdit.setObjectName(_fromUtf8("messageEdit"))
        self.gridLayout_3.addWidget(self.messageEdit, 1, 1, 1, 1)
        self.userGroup = QtGui.QGroupBox(HgQueuesNewPatchDialog)
        self.userGroup.setCheckable(True)
        self.userGroup.setChecked(False)
        self.userGroup.setObjectName(_fromUtf8("userGroup"))
        self.gridLayout = QtGui.QGridLayout(self.userGroup)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.currentUserCheckBox = QtGui.QCheckBox(self.userGroup)
        self.currentUserCheckBox.setObjectName(_fromUtf8("currentUserCheckBox"))
        self.gridLayout.addWidget(self.currentUserCheckBox, 0, 0, 1, 2)
        self.label_3 = QtGui.QLabel(self.userGroup)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout.addWidget(self.label_3, 1, 0, 1, 1)
        self.userEdit = QtGui.QLineEdit(self.userGroup)
        self.userEdit.setObjectName(_fromUtf8("userEdit"))
        self.gridLayout.addWidget(self.userEdit, 1, 1, 1, 1)
        self.gridLayout_3.addWidget(self.userGroup, 2, 0, 1, 2)
        self.dateGroup = QtGui.QGroupBox(HgQueuesNewPatchDialog)
        self.dateGroup.setCheckable(True)
        self.dateGroup.setChecked(False)
        self.dateGroup.setObjectName(_fromUtf8("dateGroup"))
        self.gridLayout_2 = QtGui.QGridLayout(self.dateGroup)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.currentDateCheckBox = QtGui.QCheckBox(self.dateGroup)
        self.currentDateCheckBox.setObjectName(_fromUtf8("currentDateCheckBox"))
        self.gridLayout_2.addWidget(self.currentDateCheckBox, 0, 0, 1, 3)
        self.label_4 = QtGui.QLabel(self.dateGroup)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.gridLayout_2.addWidget(self.label_4, 1, 0, 1, 1)
        self.dateTimeEdit = QtGui.QDateTimeEdit(self.dateGroup)
        self.dateTimeEdit.setDisplayFormat(_fromUtf8("yyyy-MM-dd hh:mm"))
        self.dateTimeEdit.setCalendarPopup(True)
        self.dateTimeEdit.setObjectName(_fromUtf8("dateTimeEdit"))
        self.gridLayout_2.addWidget(self.dateTimeEdit, 1, 1, 1, 1)
        spacerItem = QtGui.QSpacerItem(241, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridLayout_2.addItem(spacerItem, 1, 2, 1, 1)
        self.gridLayout_3.addWidget(self.dateGroup, 3, 0, 1, 2)
        self.buttonBox = QtGui.QDialogButtonBox(HgQueuesNewPatchDialog)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
        self.gridLayout_3.addWidget(self.buttonBox, 4, 0, 1, 2)

        self.retranslateUi(HgQueuesNewPatchDialog)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), HgQueuesNewPatchDialog.accept)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), HgQueuesNewPatchDialog.reject)
        QtCore.QObject.connect(self.currentUserCheckBox, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.userEdit.setDisabled)
        QtCore.QObject.connect(self.currentUserCheckBox, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.label_3.setDisabled)
        QtCore.QObject.connect(self.currentDateCheckBox, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.label_4.setDisabled)
        QtCore.QObject.connect(self.currentDateCheckBox, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.dateTimeEdit.setDisabled)
        QtCore.QMetaObject.connectSlotsByName(HgQueuesNewPatchDialog)
        HgQueuesNewPatchDialog.setTabOrder(self.nameEdit, self.messageEdit)
        HgQueuesNewPatchDialog.setTabOrder(self.messageEdit, self.userGroup)
        HgQueuesNewPatchDialog.setTabOrder(self.userGroup, self.currentUserCheckBox)
        HgQueuesNewPatchDialog.setTabOrder(self.currentUserCheckBox, self.userEdit)
        HgQueuesNewPatchDialog.setTabOrder(self.userEdit, self.dateGroup)
        HgQueuesNewPatchDialog.setTabOrder(self.dateGroup, self.currentDateCheckBox)
        HgQueuesNewPatchDialog.setTabOrder(self.currentDateCheckBox, self.dateTimeEdit)
        HgQueuesNewPatchDialog.setTabOrder(self.dateTimeEdit, self.buttonBox)

    def retranslateUi(self, HgQueuesNewPatchDialog):
        HgQueuesNewPatchDialog.setWindowTitle(_translate("HgQueuesNewPatchDialog", "New Patch", None))
        self.nameLabel.setText(_translate("HgQueuesNewPatchDialog", "Name:", None))
        self.nameEdit.setToolTip(_translate("HgQueuesNewPatchDialog", "Enter the patch name", None))
        self.label_2.setText(_translate("HgQueuesNewPatchDialog", "Message:", None))
        self.messageEdit.setToolTip(_translate("HgQueuesNewPatchDialog", "Enter the commit message for the patch", None))
        self.userGroup.setToolTip(_translate("HgQueuesNewPatchDialog", "Select to give user information", None))
        self.userGroup.setTitle(_translate("HgQueuesNewPatchDialog", "User", None))
        self.currentUserCheckBox.setToolTip(_translate("HgQueuesNewPatchDialog", "Select to use the name of the current user", None))
        self.currentUserCheckBox.setText(_translate("HgQueuesNewPatchDialog", "Use current user", None))
        self.label_3.setText(_translate("HgQueuesNewPatchDialog", "Username:", None))
        self.userEdit.setToolTip(_translate("HgQueuesNewPatchDialog", "Enter the user name to be used for the patch", None))
        self.dateGroup.setToolTip(_translate("HgQueuesNewPatchDialog", "Select to give date and time information", None))
        self.dateGroup.setTitle(_translate("HgQueuesNewPatchDialog", "Date and Time", None))
        self.currentDateCheckBox.setToolTip(_translate("HgQueuesNewPatchDialog", "Select to use the current date and time", None))
        self.currentDateCheckBox.setText(_translate("HgQueuesNewPatchDialog", "Use current date and time", None))
        self.label_4.setText(_translate("HgQueuesNewPatchDialog", "Date/Time:", None))
        self.dateTimeEdit.setToolTip(_translate("HgQueuesNewPatchDialog", "Enter the date and time to be used for the patch", None))

