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

# Form implementation generated from reading ui file 'eric/Helpviewer/Sync/SyncEncryptionPage.ui'
#
# Created: Tue Oct 28 07:22:45 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_SyncEncryptionPage(object):
    def setupUi(self, SyncEncryptionPage):
        SyncEncryptionPage.setObjectName(_fromUtf8("SyncEncryptionPage"))
        SyncEncryptionPage.resize(650, 400)
        self.verticalLayout = QtGui.QVBoxLayout(SyncEncryptionPage)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.encryptionGroupBox = QtGui.QGroupBox(SyncEncryptionPage)
        self.encryptionGroupBox.setCheckable(True)
        self.encryptionGroupBox.setObjectName(_fromUtf8("encryptionGroupBox"))
        self.gridLayout = QtGui.QGridLayout(self.encryptionGroupBox)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.label_3 = QtGui.QLabel(self.encryptionGroupBox)
        self.label_3.setWordWrap(True)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout.addWidget(self.label_3, 0, 0, 1, 2)
        self.reencryptCheckBox = QtGui.QCheckBox(self.encryptionGroupBox)
        self.reencryptCheckBox.setObjectName(_fromUtf8("reencryptCheckBox"))
        self.gridLayout.addWidget(self.reencryptCheckBox, 1, 0, 1, 2)
        self.label = QtGui.QLabel(self.encryptionGroupBox)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout.addWidget(self.label, 2, 0, 1, 1)
        self.encryptionKeyEdit = QtGui.QLineEdit(self.encryptionGroupBox)
        self.encryptionKeyEdit.setEchoMode(QtGui.QLineEdit.Password)
        self.encryptionKeyEdit.setObjectName(_fromUtf8("encryptionKeyEdit"))
        self.gridLayout.addWidget(self.encryptionKeyEdit, 2, 1, 1, 1)
        self.label_2 = QtGui.QLabel(self.encryptionGroupBox)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout.addWidget(self.label_2, 3, 0, 1, 1)
        self.encryptionKeyAgainEdit = QtGui.QLineEdit(self.encryptionGroupBox)
        self.encryptionKeyAgainEdit.setEchoMode(QtGui.QLineEdit.Password)
        self.encryptionKeyAgainEdit.setObjectName(_fromUtf8("encryptionKeyAgainEdit"))
        self.gridLayout.addWidget(self.encryptionKeyAgainEdit, 3, 1, 1, 1)
        self.passwordMeter = E5PasswordMeter(self.encryptionGroupBox)
        self.passwordMeter.setObjectName(_fromUtf8("passwordMeter"))
        self.gridLayout.addWidget(self.passwordMeter, 4, 0, 1, 2)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.label_4 = QtGui.QLabel(self.encryptionGroupBox)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.horizontalLayout.addWidget(self.label_4)
        self.keySizeComboBox = QtGui.QComboBox(self.encryptionGroupBox)
        self.keySizeComboBox.setObjectName(_fromUtf8("keySizeComboBox"))
        self.horizontalLayout.addWidget(self.keySizeComboBox)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.gridLayout.addLayout(self.horizontalLayout, 5, 0, 1, 2)
        self.errorLabel = QtGui.QLabel(self.encryptionGroupBox)
        self.errorLabel.setStyleSheet(_fromUtf8("color : red;"))
        self.errorLabel.setWordWrap(True)
        self.errorLabel.setObjectName(_fromUtf8("errorLabel"))
        self.gridLayout.addWidget(self.errorLabel, 6, 0, 1, 2)
        self.loginsOnlyCheckBox = QtGui.QCheckBox(self.encryptionGroupBox)
        self.loginsOnlyCheckBox.setObjectName(_fromUtf8("loginsOnlyCheckBox"))
        self.gridLayout.addWidget(self.loginsOnlyCheckBox, 7, 0, 1, 2)
        self.verticalLayout.addWidget(self.encryptionGroupBox)
        spacerItem1 = QtGui.QSpacerItem(20, 191, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem1)

        self.retranslateUi(SyncEncryptionPage)
        QtCore.QMetaObject.connectSlotsByName(SyncEncryptionPage)
        SyncEncryptionPage.setTabOrder(self.encryptionGroupBox, self.reencryptCheckBox)
        SyncEncryptionPage.setTabOrder(self.reencryptCheckBox, self.encryptionKeyEdit)
        SyncEncryptionPage.setTabOrder(self.encryptionKeyEdit, self.encryptionKeyAgainEdit)
        SyncEncryptionPage.setTabOrder(self.encryptionKeyAgainEdit, self.keySizeComboBox)
        SyncEncryptionPage.setTabOrder(self.keySizeComboBox, self.loginsOnlyCheckBox)

    def retranslateUi(self, SyncEncryptionPage):
        SyncEncryptionPage.setTitle(_translate("SyncEncryptionPage", "Encryption Settings", None))
        SyncEncryptionPage.setSubTitle(_translate("SyncEncryptionPage", "Please select, if the synchronized data should be encrypted and enter the encryption key", None))
        self.encryptionGroupBox.setToolTip(_translate("SyncEncryptionPage", "Select to encrypt the synchronzed data", None))
        self.encryptionGroupBox.setTitle(_translate("SyncEncryptionPage", "Encrypt Data", None))
        self.label_3.setText(_translate("SyncEncryptionPage", "<p>The encryption key will be used to encrypt and decrypt the synchronizde data. If the data should be re-encrypted, the respective selection should be done. The key must only be repeated, if a re-encryption is requested.<br/><br/><b>Note: If you forget the encryption key, the encrypted data cannot be recovered!</b><br/></p>", None))
        self.reencryptCheckBox.setToolTip(_translate("SyncEncryptionPage", "Select to re-encrypt the synchronized data", None))
        self.reencryptCheckBox.setText(_translate("SyncEncryptionPage", "Re-encrypt synchronized data", None))
        self.label.setText(_translate("SyncEncryptionPage", "Encryption Key:", None))
        self.encryptionKeyEdit.setToolTip(_translate("SyncEncryptionPage", "Enter the encryption key", None))
        self.label_2.setText(_translate("SyncEncryptionPage", "Encryption Key (again):", None))
        self.encryptionKeyAgainEdit.setToolTip(_translate("SyncEncryptionPage", "Repeat the encryption key", None))
        self.passwordMeter.setToolTip(_translate("SyncEncryptionPage", "Shows an indication for the encryption key strength", None))
        self.label_4.setText(_translate("SyncEncryptionPage", "Size of generated encryption key:", None))
        self.keySizeComboBox.setToolTip(_translate("SyncEncryptionPage", "Select the size of the generated encryption key", None))
        self.loginsOnlyCheckBox.setToolTip(_translate("SyncEncryptionPage", "Select to encrypt only the passwords", None))
        self.loginsOnlyCheckBox.setText(_translate("SyncEncryptionPage", "Encrypt Passwords Only", None))

from E5Gui.E5PasswordMeter import E5PasswordMeter
