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

# Form implementation generated from reading ui file 'eric/Preferences/ConfigurationPages/EmailPage.ui'
#
# Created: Thu Feb 10 10:05:40 2011
#      by: PyQt4 UI code generator 4.8.1
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

try:
    _fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
    _fromUtf8 = lambda s: s

class Ui_EmailPage(object):
    def setupUi(self, EmailPage):
        EmailPage.setObjectName(_fromUtf8("EmailPage"))
        EmailPage.resize(422, 512)
        self.verticalLayout = QtGui.QVBoxLayout(EmailPage)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.headerLabel = QtGui.QLabel(EmailPage)
        self.headerLabel.setObjectName(_fromUtf8("headerLabel"))
        self.verticalLayout.addWidget(self.headerLabel)
        self.line16 = QtGui.QFrame(EmailPage)
        self.line16.setFrameShape(QtGui.QFrame.HLine)
        self.line16.setFrameShadow(QtGui.QFrame.Sunken)
        self.line16.setFrameShape(QtGui.QFrame.HLine)
        self.line16.setFrameShadow(QtGui.QFrame.Sunken)
        self.line16.setObjectName(_fromUtf8("line16"))
        self.verticalLayout.addWidget(self.line16)
        self.gridLayout_2 = QtGui.QGridLayout()
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.textLabel2_2 = QtGui.QLabel(EmailPage)
        self.textLabel2_2.setObjectName(_fromUtf8("textLabel2_2"))
        self.gridLayout_2.addWidget(self.textLabel2_2, 0, 0, 1, 1)
        self.mailServerEdit = QtGui.QLineEdit(EmailPage)
        self.mailServerEdit.setObjectName(_fromUtf8("mailServerEdit"))
        self.gridLayout_2.addWidget(self.mailServerEdit, 0, 1, 1, 2)
        self.label = QtGui.QLabel(EmailPage)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout_2.addWidget(self.label, 1, 0, 1, 1)
        self.portSpin = QtGui.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(_fromUtf8("value"), 25)
        self.portSpin.setObjectName(_fromUtf8("portSpin"))
        self.gridLayout_2.addWidget(self.portSpin, 1, 1, 1, 1)
        spacerItem = QtGui.QSpacerItem(118, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridLayout_2.addItem(spacerItem, 1, 2, 1, 1)
        self.textLabel1_5 = QtGui.QLabel(EmailPage)
        self.textLabel1_5.setObjectName(_fromUtf8("textLabel1_5"))
        self.gridLayout_2.addWidget(self.textLabel1_5, 2, 0, 1, 1)
        self.emailEdit = QtGui.QLineEdit(EmailPage)
        self.emailEdit.setObjectName(_fromUtf8("emailEdit"))
        self.gridLayout_2.addWidget(self.emailEdit, 2, 1, 1, 2)
        self.textLabel1_6 = QtGui.QLabel(EmailPage)
        self.textLabel1_6.setAlignment(QtCore.Qt.AlignTop)
        self.textLabel1_6.setObjectName(_fromUtf8("textLabel1_6"))
        self.gridLayout_2.addWidget(self.textLabel1_6, 3, 0, 1, 1)
        self.signatureEdit = QtGui.QTextEdit(EmailPage)
        self.signatureEdit.setAcceptRichText(False)
        self.signatureEdit.setObjectName(_fromUtf8("signatureEdit"))
        self.gridLayout_2.addWidget(self.signatureEdit, 3, 1, 1, 2)
        self.verticalLayout.addLayout(self.gridLayout_2)
        self.useTlsCheckBox = QtGui.QCheckBox(EmailPage)
        self.useTlsCheckBox.setObjectName(_fromUtf8("useTlsCheckBox"))
        self.verticalLayout.addWidget(self.useTlsCheckBox)
        self.mailAuthenticationCheckBox = QtGui.QCheckBox(EmailPage)
        self.mailAuthenticationCheckBox.setObjectName(_fromUtf8("mailAuthenticationCheckBox"))
        self.verticalLayout.addWidget(self.mailAuthenticationCheckBox)
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.textLabel1_15 = QtGui.QLabel(EmailPage)
        self.textLabel1_15.setEnabled(False)
        self.textLabel1_15.setObjectName(_fromUtf8("textLabel1_15"))
        self.gridLayout.addWidget(self.textLabel1_15, 0, 0, 1, 1)
        self.mailUserEdit = QtGui.QLineEdit(EmailPage)
        self.mailUserEdit.setEnabled(False)
        self.mailUserEdit.setObjectName(_fromUtf8("mailUserEdit"))
        self.gridLayout.addWidget(self.mailUserEdit, 0, 1, 1, 1)
        self.textLabel2_7 = QtGui.QLabel(EmailPage)
        self.textLabel2_7.setEnabled(False)
        self.textLabel2_7.setObjectName(_fromUtf8("textLabel2_7"))
        self.gridLayout.addWidget(self.textLabel2_7, 1, 0, 1, 1)
        self.mailPasswordEdit = QtGui.QLineEdit(EmailPage)
        self.mailPasswordEdit.setEnabled(False)
        self.mailPasswordEdit.setEchoMode(QtGui.QLineEdit.Password)
        self.mailPasswordEdit.setObjectName(_fromUtf8("mailPasswordEdit"))
        self.gridLayout.addWidget(self.mailPasswordEdit, 1, 1, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout)
        spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem1)

        self.retranslateUi(EmailPage)
        QtCore.QObject.connect(self.mailAuthenticationCheckBox, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.textLabel1_15.setEnabled)
        QtCore.QObject.connect(self.mailAuthenticationCheckBox, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.textLabel2_7.setEnabled)
        QtCore.QObject.connect(self.mailAuthenticationCheckBox, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.mailUserEdit.setEnabled)
        QtCore.QObject.connect(self.mailAuthenticationCheckBox, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), 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):
        self.headerLabel.setText(QtGui.QApplication.translate("EmailPage", "<b>Configure Email</b>", None, QtGui.QApplication.UnicodeUTF8))
        self.textLabel2_2.setText(QtGui.QApplication.translate("EmailPage", "Outgoing mail server (SMTP):", None, QtGui.QApplication.UnicodeUTF8))
        self.mailServerEdit.setToolTip(QtGui.QApplication.translate("EmailPage", "Enter the address of your mail server", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setText(QtGui.QApplication.translate("EmailPage", "Outgoing mail server port:", None, QtGui.QApplication.UnicodeUTF8))
        self.portSpin.setToolTip(QtGui.QApplication.translate("EmailPage", "Enter the port of the mail server", None, QtGui.QApplication.UnicodeUTF8))
        self.textLabel1_5.setText(QtGui.QApplication.translate("EmailPage", "Email address:", None, QtGui.QApplication.UnicodeUTF8))
        self.emailEdit.setToolTip(QtGui.QApplication.translate("EmailPage", "Enter your email address", None, QtGui.QApplication.UnicodeUTF8))
        self.textLabel1_6.setText(QtGui.QApplication.translate("EmailPage", "Signature:", None, QtGui.QApplication.UnicodeUTF8))
        self.signatureEdit.setToolTip(QtGui.QApplication.translate("EmailPage", "Enter your email signature", None, QtGui.QApplication.UnicodeUTF8))
        self.useTlsCheckBox.setToolTip(QtGui.QApplication.translate("EmailPage", "Select to use TLS", None, QtGui.QApplication.UnicodeUTF8))
        self.useTlsCheckBox.setText(QtGui.QApplication.translate("EmailPage", "Use TLS", None, QtGui.QApplication.UnicodeUTF8))
        self.mailAuthenticationCheckBox.setToolTip(QtGui.QApplication.translate("EmailPage", "Select to authenticatate against the mail server", None, QtGui.QApplication.UnicodeUTF8))
        self.mailAuthenticationCheckBox.setText(QtGui.QApplication.translate("EmailPage", "Mail server needs authentication", None, QtGui.QApplication.UnicodeUTF8))
        self.textLabel1_15.setText(QtGui.QApplication.translate("EmailPage", "Username:", None, QtGui.QApplication.UnicodeUTF8))
        self.mailUserEdit.setToolTip(QtGui.QApplication.translate("EmailPage", "Enter your mail server username", None, QtGui.QApplication.UnicodeUTF8))
        self.textLabel2_7.setText(QtGui.QApplication.translate("EmailPage", "Password:", None, QtGui.QApplication.UnicodeUTF8))
        self.mailPasswordEdit.setToolTip(QtGui.QApplication.translate("EmailPage", "Enter your password for accessing the mail server", None, QtGui.QApplication.UnicodeUTF8))

