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

# Form implementation generated from reading ui file 'eric/Preferences/ConfigurationPages/EmailPage.ui'
#
# Created by: PyQt5 UI code generator 5.4.1
#
# WARNING! All changes made in this file will be lost!

from PyQt5 import QtCore, QtGui, QtWidgets

class Ui_EmailPage(object):
    def setupUi(self, EmailPage):
        EmailPage.setObjectName("EmailPage")
        EmailPage.resize(422, 512)
        self.verticalLayout = QtWidgets.QVBoxLayout(EmailPage)
        self.verticalLayout.setObjectName("verticalLayout")
        self.headerLabel = QtWidgets.QLabel(EmailPage)
        self.headerLabel.setObjectName("headerLabel")
        self.verticalLayout.addWidget(self.headerLabel)
        self.line16 = QtWidgets.QFrame(EmailPage)
        self.line16.setFrameShape(QtWidgets.QFrame.HLine)
        self.line16.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line16.setFrameShape(QtWidgets.QFrame.HLine)
        self.line16.setObjectName("line16")
        self.verticalLayout.addWidget(self.line16)
        self.gridLayout_2 = QtWidgets.QGridLayout()
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.textLabel2_2 = QtWidgets.QLabel(EmailPage)
        self.textLabel2_2.setObjectName("textLabel2_2")
        self.gridLayout_2.addWidget(self.textLabel2_2, 0, 0, 1, 1)
        self.mailServerEdit = QtWidgets.QLineEdit(EmailPage)
        self.mailServerEdit.setObjectName("mailServerEdit")
        self.gridLayout_2.addWidget(self.mailServerEdit, 0, 1, 1, 2)
        self.label = QtWidgets.QLabel(EmailPage)
        self.label.setObjectName("label")
        self.gridLayout_2.addWidget(self.label, 1, 0, 1, 1)
        self.portSpin = QtWidgets.QSpinBox(EmailPage)
        self.portSpin.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.portSpin.setMinimum(1)
        self.portSpin.setMaximum(65535)
        self.portSpin.setProperty("value", 25)
        self.portSpin.setObjectName("portSpin")
        self.gridLayout_2.addWidget(self.portSpin, 1, 1, 1, 1)
        spacerItem = QtWidgets.QSpacerItem(118, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.gridLayout_2.addItem(spacerItem, 1, 2, 1, 1)
        self.textLabel1_5 = QtWidgets.QLabel(EmailPage)
        self.textLabel1_5.setObjectName("textLabel1_5")
        self.gridLayout_2.addWidget(self.textLabel1_5, 2, 0, 1, 1)
        self.emailEdit = QtWidgets.QLineEdit(EmailPage)
        self.emailEdit.setObjectName("emailEdit")
        self.gridLayout_2.addWidget(self.emailEdit, 2, 1, 1, 2)
        self.textLabel1_6 = QtWidgets.QLabel(EmailPage)
        self.textLabel1_6.setAlignment(QtCore.Qt.AlignTop)
        self.textLabel1_6.setObjectName("textLabel1_6")
        self.gridLayout_2.addWidget(self.textLabel1_6, 3, 0, 1, 1)
        self.signatureEdit = QtWidgets.QTextEdit(EmailPage)
        self.signatureEdit.setAcceptRichText(False)
        self.signatureEdit.setObjectName("signatureEdit")
        self.gridLayout_2.addWidget(self.signatureEdit, 3, 1, 1, 2)
        self.verticalLayout.addLayout(self.gridLayout_2)
        self.useTlsCheckBox = QtWidgets.QCheckBox(EmailPage)
        self.useTlsCheckBox.setObjectName("useTlsCheckBox")
        self.verticalLayout.addWidget(self.useTlsCheckBox)
        self.mailAuthenticationCheckBox = QtWidgets.QCheckBox(EmailPage)
        self.mailAuthenticationCheckBox.setObjectName("mailAuthenticationCheckBox")
        self.verticalLayout.addWidget(self.mailAuthenticationCheckBox)
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.textLabel1_15 = QtWidgets.QLabel(EmailPage)
        self.textLabel1_15.setEnabled(False)
        self.textLabel1_15.setObjectName("textLabel1_15")
        self.gridLayout.addWidget(self.textLabel1_15, 0, 0, 1, 1)
        self.mailUserEdit = QtWidgets.QLineEdit(EmailPage)
        self.mailUserEdit.setEnabled(False)
        self.mailUserEdit.setObjectName("mailUserEdit")
        self.gridLayout.addWidget(self.mailUserEdit, 0, 1, 1, 1)
        self.textLabel2_7 = QtWidgets.QLabel(EmailPage)
        self.textLabel2_7.setEnabled(False)
        self.textLabel2_7.setObjectName("textLabel2_7")
        self.gridLayout.addWidget(self.textLabel2_7, 1, 0, 1, 1)
        self.mailPasswordEdit = QtWidgets.QLineEdit(EmailPage)
        self.mailPasswordEdit.setEnabled(False)
        self.mailPasswordEdit.setEchoMode(QtWidgets.QLineEdit.Password)
        self.mailPasswordEdit.setObjectName("mailPasswordEdit")
        self.gridLayout.addWidget(self.mailPasswordEdit, 1, 1, 1, 1)
        self.testButton = QtWidgets.QPushButton(EmailPage)
        self.testButton.setObjectName("testButton")
        self.gridLayout.addWidget(self.testButton, 2, 0, 1, 2)
        self.verticalLayout.addLayout(self.gridLayout)
        spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem1)

        self.retranslateUi(EmailPage)
        self.mailAuthenticationCheckBox.toggled['bool'].connect(self.textLabel1_15.setEnabled)
        self.mailAuthenticationCheckBox.toggled['bool'].connect(self.textLabel2_7.setEnabled)
        self.mailAuthenticationCheckBox.toggled['bool'].connect(self.mailUserEdit.setEnabled)
        self.mailAuthenticationCheckBox.toggled['bool'].connect(self.mailPasswordEdit.setEnabled)
        QtCore.QMetaObject.connectSlotsByName(EmailPage)
        EmailPage.setTabOrder(self.mailServerEdit, self.portSpin)
        EmailPage.setTabOrder(self.portSpin, self.emailEdit)
        EmailPage.setTabOrder(self.emailEdit, self.signatureEdit)
        EmailPage.setTabOrder(self.signatureEdit, self.useTlsCheckBox)
        EmailPage.setTabOrder(self.useTlsCheckBox, self.mailAuthenticationCheckBox)
        EmailPage.setTabOrder(self.mailAuthenticationCheckBox, self.mailUserEdit)
        EmailPage.setTabOrder(self.mailUserEdit, self.mailPasswordEdit)

    def retranslateUi(self, EmailPage):
        _translate = QtCore.QCoreApplication.translate
        self.headerLabel.setText(_translate("EmailPage", "<b>Configure Email</b>"))
        self.textLabel2_2.setText(_translate("EmailPage", "Outgoing mail server (SMTP):"))
        self.mailServerEdit.setToolTip(_translate("EmailPage", "Enter the address of your mail server"))
        self.label.setText(_translate("EmailPage", "Outgoing mail server port:"))
        self.portSpin.setToolTip(_translate("EmailPage", "Enter the port of the mail server"))
        self.textLabel1_5.setText(_translate("EmailPage", "Email address:"))
        self.emailEdit.setToolTip(_translate("EmailPage", "Enter your email address"))
        self.textLabel1_6.setText(_translate("EmailPage", "Signature:"))
        self.signatureEdit.setToolTip(_translate("EmailPage", "Enter your email signature"))
        self.useTlsCheckBox.setToolTip(_translate("EmailPage", "Select to use TLS"))
        self.useTlsCheckBox.setText(_translate("EmailPage", "Use TLS"))
        self.mailAuthenticationCheckBox.setToolTip(_translate("EmailPage", "Select to authenticatate against the mail server"))
        self.mailAuthenticationCheckBox.setText(_translate("EmailPage", "Mail server needs authentication"))
        self.textLabel1_15.setText(_translate("EmailPage", "Username:"))
        self.mailUserEdit.setToolTip(_translate("EmailPage", "Enter your mail server username"))
        self.textLabel2_7.setText(_translate("EmailPage", "Password:"))
        self.mailPasswordEdit.setToolTip(_translate("EmailPage", "Enter your password for accessing the mail server"))
        self.testButton.setToolTip(_translate("EmailPage", "Press to test the login data"))
        self.testButton.setText(_translate("EmailPage", "Test Login"))

