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

# Form implementation generated from reading ui file 'eric/Preferences/ConfigurationPages/MasterPasswordEntryDialog.ui'
#
# Created: Thu Mar  5 17:02:32 2015
#      by: PyQt4 UI code generator 4.11.3
#
# 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_MasterPasswordEntryDialog(object):
    def setupUi(self, MasterPasswordEntryDialog):
        MasterPasswordEntryDialog.setObjectName(_fromUtf8("MasterPasswordEntryDialog"))
        MasterPasswordEntryDialog.resize(450, 300)
        MasterPasswordEntryDialog.setSizeGripEnabled(True)
        self.verticalLayout = QtGui.QVBoxLayout(MasterPasswordEntryDialog)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.label = QtGui.QLabel(MasterPasswordEntryDialog)
        self.label.setWordWrap(True)
        self.label.setObjectName(_fromUtf8("label"))
        self.verticalLayout.addWidget(self.label)
        spacerItem = QtGui.QSpacerItem(20, 28, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem)
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.label_2 = QtGui.QLabel(MasterPasswordEntryDialog)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout.addWidget(self.label_2, 0, 0, 1, 1)
        self.currentPasswordEdit = QtGui.QLineEdit(MasterPasswordEntryDialog)
        self.currentPasswordEdit.setEchoMode(QtGui.QLineEdit.Password)
        self.currentPasswordEdit.setObjectName(_fromUtf8("currentPasswordEdit"))
        self.gridLayout.addWidget(self.currentPasswordEdit, 0, 1, 1, 1)
        self.label_3 = QtGui.QLabel(MasterPasswordEntryDialog)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout.addWidget(self.label_3, 1, 0, 1, 1)
        self.newPasswordEdit = QtGui.QLineEdit(MasterPasswordEntryDialog)
        self.newPasswordEdit.setEchoMode(QtGui.QLineEdit.Password)
        self.newPasswordEdit.setObjectName(_fromUtf8("newPasswordEdit"))
        self.gridLayout.addWidget(self.newPasswordEdit, 1, 1, 1, 1)
        self.label_4 = QtGui.QLabel(MasterPasswordEntryDialog)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.gridLayout.addWidget(self.label_4, 2, 0, 1, 1)
        self.newPasswordAgainEdit = QtGui.QLineEdit(MasterPasswordEntryDialog)
        self.newPasswordAgainEdit.setEchoMode(QtGui.QLineEdit.Password)
        self.newPasswordAgainEdit.setObjectName(_fromUtf8("newPasswordAgainEdit"))
        self.gridLayout.addWidget(self.newPasswordAgainEdit, 2, 1, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout)
        self.passwordMeter = E5PasswordMeter(MasterPasswordEntryDialog)
        self.passwordMeter.setObjectName(_fromUtf8("passwordMeter"))
        self.verticalLayout.addWidget(self.passwordMeter)
        self.errorLabel = QtGui.QLabel(MasterPasswordEntryDialog)
        self.errorLabel.setStyleSheet(_fromUtf8("color : red;"))
        self.errorLabel.setWordWrap(True)
        self.errorLabel.setObjectName(_fromUtf8("errorLabel"))
        self.verticalLayout.addWidget(self.errorLabel)
        self.buttonBox = QtGui.QDialogButtonBox(MasterPasswordEntryDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
        self.verticalLayout.addWidget(self.buttonBox)

        self.retranslateUi(MasterPasswordEntryDialog)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), MasterPasswordEntryDialog.accept)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), MasterPasswordEntryDialog.reject)
        QtCore.QMetaObject.connectSlotsByName(MasterPasswordEntryDialog)
        MasterPasswordEntryDialog.setTabOrder(self.currentPasswordEdit, self.newPasswordEdit)
        MasterPasswordEntryDialog.setTabOrder(self.newPasswordEdit, self.newPasswordAgainEdit)
        MasterPasswordEntryDialog.setTabOrder(self.newPasswordAgainEdit, self.buttonBox)

    def retranslateUi(self, MasterPasswordEntryDialog):
        MasterPasswordEntryDialog.setWindowTitle(_translate("MasterPasswordEntryDialog", "Master Password", None))
        self.label.setText(_translate("MasterPasswordEntryDialog", "<p>Enter your master password below. This password will be used to encrypt sensitive data. You will be asked once per session for this password when the data needs to be accessed for the first time.<br/><br/><b>Note: If you forget the master password, the encrypted data cannot be recovered!</b></p>", None))
        self.label_2.setText(_translate("MasterPasswordEntryDialog", "Current Password:", None))
        self.currentPasswordEdit.setToolTip(_translate("MasterPasswordEntryDialog", "Enter the current password", None))
        self.label_3.setText(_translate("MasterPasswordEntryDialog", "New Password:", None))
        self.newPasswordEdit.setToolTip(_translate("MasterPasswordEntryDialog", "Enter the new password", None))
        self.label_4.setText(_translate("MasterPasswordEntryDialog", "New Password (again):", None))
        self.newPasswordAgainEdit.setToolTip(_translate("MasterPasswordEntryDialog", "Repeat the new password", None))
        self.passwordMeter.setToolTip(_translate("MasterPasswordEntryDialog", "Shows an indication for the password strength", None))

from E5Gui.E5PasswordMeter import E5PasswordMeter
