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

# Form implementation generated from reading ui file 'eric/eric6/Preferences/ConfigurationPages/EmailPage.ui'
#
# Created by: PyQt5 UI code generator 5.14.2
#
# 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(450, 498)
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(EmailPage)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.headerLabel = QtWidgets.QLabel(EmailPage)
        self.headerLabel.setObjectName("headerLabel")
        self.verticalLayout_3.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_3.addWidget(self.line16)
        self.gridLayout_3 = QtWidgets.QGridLayout()
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.textLabel1_5 = QtWidgets.QLabel(EmailPage)
        self.textLabel1_5.setObjectName("textLabel1_5")
        self.gridLayout_3.addWidget(self.textLabel1_5, 0, 0, 1, 1)
        self.emailEdit = QtWidgets.QLineEdit(EmailPage)
        self.emailEdit.setObjectName("emailEdit")
        self.gridLayout_3.addWidget(self.emailEdit, 0, 1, 1, 1)
        self.textLabel1_6 = QtWidgets.QLabel(EmailPage)
        self.textLabel1_6.setAlignment(QtCore.Qt.AlignTop)
        self.textLabel1_6.setObjectName("textLabel1_6")
        self.gridLayout_3.addWidget(self.textLabel1_6, 1, 0, 1, 1)
        self.signatureEdit = QtWidgets.QTextEdit(EmailPage)
        self.signatureEdit.setAcceptRichText(False)
        self.signatureEdit.setObjectName("signatureEdit")
        self.gridLayout_3.addWidget(self.signatureEdit, 1, 1, 1, 1)
        self.verticalLayout_3.addLayout(self.gridLayout_3)
        self.groupBox_2 = QtWidgets.QGroupBox(EmailPage)
        self.groupBox_2.setObjectName("groupBox_2")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.groupBox_2)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.googleMailCheckBox = QtWidgets.QCheckBox(self.groupBox_2)
        self.googleMailCheckBox.setObjectName("googleMailCheckBox")
        self.verticalLayout_2.addWidget(self.googleMailCheckBox)
        self.googleMailInfoLabel = QtWidgets.QLabel(self.groupBox_2)
        self.googleMailInfoLabel.setWordWrap(True)
        self.googleMailInfoLabel.setObjectName("googleMailInfoLabel")
        self.verticalLayout_2.addWidget(self.googleMailInfoLabel)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.googleHelpButton = QtWidgets.QPushButton(self.groupBox_2)
        self.googleHelpButton.setObjectName("googleHelpButton")
        self.horizontalLayout.addWidget(self.googleHelpButton)
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.googleInstallButton = QtWidgets.QPushButton(self.groupBox_2)
        self.googleInstallButton.setObjectName("googleInstallButton")
        self.horizontalLayout.addWidget(self.googleInstallButton)
        self.googleCheckAgainButton = QtWidgets.QPushButton(self.groupBox_2)
        self.googleCheckAgainButton.setObjectName("googleCheckAgainButton")
        self.horizontalLayout.addWidget(self.googleCheckAgainButton)
        self.verticalLayout_2.addLayout(self.horizontalLayout)
        self.verticalLayout_3.addWidget(self.groupBox_2)
        self.groupBox = QtWidgets.QGroupBox(EmailPage)
        self.groupBox.setObjectName("groupBox")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.groupBox)
        self.verticalLayout.setObjectName("verticalLayout")
        self.gridLayout_2 = QtWidgets.QGridLayout()
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.label_2 = QtWidgets.QLabel(self.groupBox)
        self.label_2.setObjectName("label_2")
        self.gridLayout_2.addWidget(self.label_2, 1, 0, 1, 1)
        self.textLabel2_2 = QtWidgets.QLabel(self.groupBox)
        self.textLabel2_2.setObjectName("textLabel2_2")
        self.gridLayout_2.addWidget(self.textLabel2_2, 0, 0, 1, 1)
        self.label = QtWidgets.QLabel(self.groupBox)
        self.label.setObjectName("label")
        self.gridLayout_2.addWidget(self.label, 2, 0, 1, 1)
        self.portSpin = QtWidgets.QSpinBox(self.groupBox)
        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, 2, 1, 1, 1)
        self.mailServerEdit = QtWidgets.QLineEdit(self.groupBox)
        self.mailServerEdit.setObjectName("mailServerEdit")
        self.gridLayout_2.addWidget(self.mailServerEdit, 0, 1, 1, 2)
        self.frame = QtWidgets.QFrame(self.groupBox)
        self.frame.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame.setObjectName("frame")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.frame)
        self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.noEncryptionButton = QtWidgets.QRadioButton(self.frame)
        self.noEncryptionButton.setChecked(True)
        self.noEncryptionButton.setObjectName("noEncryptionButton")
        self.horizontalLayout_2.addWidget(self.noEncryptionButton)
        self.useSslButton = QtWidgets.QRadioButton(self.frame)
        self.useSslButton.setObjectName("useSslButton")
        self.horizontalLayout_2.addWidget(self.useSslButton)
        self.useTlsButton = QtWidgets.QRadioButton(self.frame)
        self.useTlsButton.setObjectName("useTlsButton")
        self.horizontalLayout_2.addWidget(self.useTlsButton)
        self.gridLayout_2.addWidget(self.frame, 1, 1, 1, 2)
        spacerItem1 = QtWidgets.QSpacerItem(138, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.gridLayout_2.addItem(spacerItem1, 2, 2, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout_2)
        self.mailAuthenticationGroup = QtWidgets.QGroupBox(self.groupBox)
        self.mailAuthenticationGroup.setCheckable(True)
        self.mailAuthenticationGroup.setObjectName("mailAuthenticationGroup")
        self.gridLayout = QtWidgets.QGridLayout(self.mailAuthenticationGroup)
        self.gridLayout.setObjectName("gridLayout")
        self.textLabel1_15 = QtWidgets.QLabel(self.mailAuthenticationGroup)
        self.textLabel1_15.setObjectName("textLabel1_15")
        self.gridLayout.addWidget(self.textLabel1_15, 0, 0, 1, 1)
        self.mailUserEdit = QtWidgets.QLineEdit(self.mailAuthenticationGroup)
        self.mailUserEdit.setObjectName("mailUserEdit")
        self.gridLayout.addWidget(self.mailUserEdit, 0, 1, 1, 1)
        self.textLabel2_7 = QtWidgets.QLabel(self.mailAuthenticationGroup)
        self.textLabel2_7.setObjectName("textLabel2_7")
        self.gridLayout.addWidget(self.textLabel2_7, 1, 0, 1, 1)
        self.mailPasswordEdit = QtWidgets.QLineEdit(self.mailAuthenticationGroup)
        self.mailPasswordEdit.setEchoMode(QtWidgets.QLineEdit.Password)
        self.mailPasswordEdit.setObjectName("mailPasswordEdit")
        self.gridLayout.addWidget(self.mailPasswordEdit, 1, 1, 1, 1)
        self.testButton = QtWidgets.QPushButton(self.mailAuthenticationGroup)
        self.testButton.setObjectName("testButton")
        self.gridLayout.addWidget(self.testButton, 2, 0, 1, 2)
        self.verticalLayout.addWidget(self.mailAuthenticationGroup)
        self.verticalLayout_3.addWidget(self.groupBox)
        spacerItem2 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_3.addItem(spacerItem2)

        self.retranslateUi(EmailPage)
        self.googleMailCheckBox.toggled['bool'].connect(self.groupBox.setDisabled)
        QtCore.QMetaObject.connectSlotsByName(EmailPage)
        EmailPage.setTabOrder(self.emailEdit, self.signatureEdit)
        EmailPage.setTabOrder(self.signatureEdit, self.googleMailCheckBox)
        EmailPage.setTabOrder(self.googleMailCheckBox, self.googleHelpButton)
        EmailPage.setTabOrder(self.googleHelpButton, self.googleInstallButton)
        EmailPage.setTabOrder(self.googleInstallButton, self.googleCheckAgainButton)
        EmailPage.setTabOrder(self.googleCheckAgainButton, self.mailServerEdit)
        EmailPage.setTabOrder(self.mailServerEdit, self.noEncryptionButton)
        EmailPage.setTabOrder(self.noEncryptionButton, self.useSslButton)
        EmailPage.setTabOrder(self.useSslButton, self.useTlsButton)
        EmailPage.setTabOrder(self.useTlsButton, self.portSpin)
        EmailPage.setTabOrder(self.portSpin, self.mailAuthenticationGroup)
        EmailPage.setTabOrder(self.mailAuthenticationGroup, self.mailUserEdit)
        EmailPage.setTabOrder(self.mailUserEdit, self.mailPasswordEdit)
        EmailPage.setTabOrder(self.mailPasswordEdit, self.testButton)

    def retranslateUi(self, EmailPage):
        _translate = QtCore.QCoreApplication.translate
        self.headerLabel.setText(_translate("EmailPage", "<b>Configure Email</b>"))
        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.groupBox_2.setTitle(_translate("EmailPage", "Google Mail"))
        self.googleMailCheckBox.setText(_translate("EmailPage", "Use Google Mail with OAuth2 authentication via Gmail API"))
        self.googleHelpButton.setToolTip(_translate("EmailPage", "Press to get some help for enabling the Google Mail API"))
        self.googleHelpButton.setText(_translate("EmailPage", "Google Mail API Help"))
        self.googleInstallButton.setToolTip(_translate("EmailPage", "Press to install the required packages"))
        self.googleInstallButton.setText(_translate("EmailPage", "Install Packages"))
        self.googleCheckAgainButton.setToolTip(_translate("EmailPage", "Press to check the availability again"))
        self.googleCheckAgainButton.setText(_translate("EmailPage", "Check Again"))
        self.groupBox.setTitle(_translate("EmailPage", "Standard Email"))
        self.label_2.setText(_translate("EmailPage", "Encryption Method:"))
        self.textLabel2_2.setText(_translate("EmailPage", "Outgoing mail server (SMTP):"))
        self.label.setText(_translate("EmailPage", "Port:"))
        self.portSpin.setToolTip(_translate("EmailPage", "Enter the port of the mail server"))
        self.mailServerEdit.setToolTip(_translate("EmailPage", "Enter the address of your mail server"))
        self.noEncryptionButton.setToolTip(_translate("EmailPage", "Select to use no encryption"))
        self.noEncryptionButton.setText(_translate("EmailPage", "None"))
        self.useSslButton.setToolTip(_translate("EmailPage", "Select to use SSL"))
        self.useSslButton.setText(_translate("EmailPage", "SSL"))
        self.useTlsButton.setToolTip(_translate("EmailPage", "Select to use TLS"))
        self.useTlsButton.setText(_translate("EmailPage", "TLS"))
        self.mailAuthenticationGroup.setToolTip(_translate("EmailPage", "Select to authenticatate against the mail server"))
        self.mailAuthenticationGroup.setTitle(_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"))
