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

# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric4/eric4_0/eric4/Preferences/ConfigurationPages/EmailPage.ui'
#
# Created: Sat Feb  3 15:33:37 2007
#      by: PyQt4 UI code generator 4-snapshot-20070125
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

class Ui_EmailPage(object):
    def setupUi(self, EmailPage):
        EmailPage.setObjectName("EmailPage")
        EmailPage.resize(QtCore.QSize(QtCore.QRect(0,0,422,332).size()).expandedTo(EmailPage.minimumSizeHint()))

        self.gridlayout = QtGui.QGridLayout(EmailPage)
        self.gridlayout.setMargin(6)
        self.gridlayout.setSpacing(6)
        self.gridlayout.setObjectName("gridlayout")

        self.headerLabel = QtGui.QLabel(EmailPage)
        self.headerLabel.setObjectName("headerLabel")
        self.gridlayout.addWidget(self.headerLabel,0,0,1,2)

        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("line16")
        self.gridlayout.addWidget(self.line16,1,0,1,2)

        self.mailPasswordEdit = QtGui.QLineEdit(EmailPage)
        self.mailPasswordEdit.setEnabled(False)
        self.mailPasswordEdit.setEchoMode(QtGui.QLineEdit.Password)
        self.mailPasswordEdit.setObjectName("mailPasswordEdit")
        self.gridlayout.addWidget(self.mailPasswordEdit,5,1,1,1)

        self.mailUserEdit = QtGui.QLineEdit(EmailPage)
        self.mailUserEdit.setEnabled(False)
        self.mailUserEdit.setObjectName("mailUserEdit")
        self.gridlayout.addWidget(self.mailUserEdit,4,1,1,1)

        self.gridlayout1 = QtGui.QGridLayout()
        self.gridlayout1.setMargin(0)
        self.gridlayout1.setSpacing(6)
        self.gridlayout1.setObjectName("gridlayout1")

        self.textLabel1_6 = QtGui.QLabel(EmailPage)
        self.textLabel1_6.setAlignment(QtCore.Qt.AlignTop)
        self.textLabel1_6.setObjectName("textLabel1_6")
        self.gridlayout1.addWidget(self.textLabel1_6,2,0,1,1)

        self.mailServerEdit = QtGui.QLineEdit(EmailPage)
        self.mailServerEdit.setObjectName("mailServerEdit")
        self.gridlayout1.addWidget(self.mailServerEdit,0,1,1,1)

        self.textLabel1_5 = QtGui.QLabel(EmailPage)
        self.textLabel1_5.setObjectName("textLabel1_5")
        self.gridlayout1.addWidget(self.textLabel1_5,1,0,1,1)

        self.textLabel2_2 = QtGui.QLabel(EmailPage)
        self.textLabel2_2.setObjectName("textLabel2_2")
        self.gridlayout1.addWidget(self.textLabel2_2,0,0,1,1)

        self.signatureEdit = QtGui.QTextEdit(EmailPage)
        self.signatureEdit.setAcceptRichText(False)
        self.signatureEdit.setObjectName("signatureEdit")
        self.gridlayout1.addWidget(self.signatureEdit,2,1,1,1)

        self.emailEdit = QtGui.QLineEdit(EmailPage)
        self.emailEdit.setObjectName("emailEdit")
        self.gridlayout1.addWidget(self.emailEdit,1,1,1,1)
        self.gridlayout.addLayout(self.gridlayout1,2,0,1,2)

        self.mailAuthenticationCheckBox = QtGui.QCheckBox(EmailPage)
        self.mailAuthenticationCheckBox.setObjectName("mailAuthenticationCheckBox")
        self.gridlayout.addWidget(self.mailAuthenticationCheckBox,3,0,1,2)

        spacerItem = QtGui.QSpacerItem(20,40,QtGui.QSizePolicy.Minimum,QtGui.QSizePolicy.Expanding)
        self.gridlayout.addItem(spacerItem,6,1,1,1)

        self.textLabel1_15 = QtGui.QLabel(EmailPage)
        self.textLabel1_15.setEnabled(False)
        self.textLabel1_15.setObjectName("textLabel1_15")
        self.gridlayout.addWidget(self.textLabel1_15,4,0,1,1)

        self.textLabel2_7 = QtGui.QLabel(EmailPage)
        self.textLabel2_7.setEnabled(False)
        self.textLabel2_7.setObjectName("textLabel2_7")
        self.gridlayout.addWidget(self.textLabel2_7,5,0,1,1)

        self.retranslateUi(EmailPage)
        QtCore.QObject.connect(self.mailAuthenticationCheckBox,QtCore.SIGNAL("toggled(bool)"),self.textLabel1_15.setEnabled)
        QtCore.QObject.connect(self.mailAuthenticationCheckBox,QtCore.SIGNAL("toggled(bool)"),self.textLabel2_7.setEnabled)
        QtCore.QObject.connect(self.mailAuthenticationCheckBox,QtCore.SIGNAL("toggled(bool)"),self.mailUserEdit.setEnabled)
        QtCore.QObject.connect(self.mailAuthenticationCheckBox,QtCore.SIGNAL("toggled(bool)"),self.mailPasswordEdit.setEnabled)
        QtCore.QMetaObject.connectSlotsByName(EmailPage)
        EmailPage.setTabOrder(self.mailServerEdit,self.emailEdit)
        EmailPage.setTabOrder(self.emailEdit,self.signatureEdit)
        EmailPage.setTabOrder(self.signatureEdit,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.mailPasswordEdit.setToolTip(QtGui.QApplication.translate("EmailPage", "Enter your password for accessing the mail server", None, QtGui.QApplication.UnicodeUTF8))
        self.mailUserEdit.setToolTip(QtGui.QApplication.translate("EmailPage", "Enter your mail server username", None, QtGui.QApplication.UnicodeUTF8))
        self.textLabel1_6.setText(QtGui.QApplication.translate("EmailPage", "Signature:", None, QtGui.QApplication.UnicodeUTF8))
        self.mailServerEdit.setToolTip(QtGui.QApplication.translate("EmailPage", "Enter the address of your mail server", None, QtGui.QApplication.UnicodeUTF8))
        self.textLabel1_5.setText(QtGui.QApplication.translate("EmailPage", "Email address:", None, QtGui.QApplication.UnicodeUTF8))
        self.textLabel2_2.setText(QtGui.QApplication.translate("EmailPage", "Mail server:", None, QtGui.QApplication.UnicodeUTF8))
        self.signatureEdit.setToolTip(QtGui.QApplication.translate("EmailPage", "Enter your email signature", None, QtGui.QApplication.UnicodeUTF8))
        self.emailEdit.setToolTip(QtGui.QApplication.translate("EmailPage", "Enter your email address", 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.textLabel2_7.setText(QtGui.QApplication.translate("EmailPage", "Password:", None, QtGui.QApplication.UnicodeUTF8))



if __name__ == "__main__":
    import sys
    app = QtGui.QApplication(sys.argv)
    EmailPage = QtGui.QWidget()
    ui = Ui_EmailPage()
    ui.setupUi(EmailPage)
    EmailPage.show()
    sys.exit(app.exec_())
