~ubuntu-branches/ubuntu/karmic/eric/karmic

« back to all changes in this revision

Viewing changes to eric/Preferences/ConfigurationPages/Ui_EmailPage.py

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2008-01-28 18:02:25 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080128180225-6nrox6yrworh2c4v
Tags: 4.0.4-1ubuntu1
* Add python-qt3 to build-depends becuase that's where Ubuntu puts 
  pyqtconfig
* Change maintainer to MOTU

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: utf-8 -*-
 
2
 
 
3
# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric4/eric4_0/eric4/Preferences/ConfigurationPages/EmailPage.ui'
 
4
#
 
5
# Created: Sat Feb  3 15:33:37 2007
 
6
#      by: PyQt4 UI code generator 4-snapshot-20070125
 
7
#
 
8
# WARNING! All changes made in this file will be lost!
 
9
 
 
10
from PyQt4 import QtCore, QtGui
 
11
 
 
12
class Ui_EmailPage(object):
 
13
    def setupUi(self, EmailPage):
 
14
        EmailPage.setObjectName("EmailPage")
 
15
        EmailPage.resize(QtCore.QSize(QtCore.QRect(0,0,422,332).size()).expandedTo(EmailPage.minimumSizeHint()))
 
16
 
 
17
        self.gridlayout = QtGui.QGridLayout(EmailPage)
 
18
        self.gridlayout.setMargin(6)
 
19
        self.gridlayout.setSpacing(6)
 
20
        self.gridlayout.setObjectName("gridlayout")
 
21
 
 
22
        self.headerLabel = QtGui.QLabel(EmailPage)
 
23
        self.headerLabel.setObjectName("headerLabel")
 
24
        self.gridlayout.addWidget(self.headerLabel,0,0,1,2)
 
25
 
 
26
        self.line16 = QtGui.QFrame(EmailPage)
 
27
        self.line16.setFrameShape(QtGui.QFrame.HLine)
 
28
        self.line16.setFrameShadow(QtGui.QFrame.Sunken)
 
29
        self.line16.setFrameShape(QtGui.QFrame.HLine)
 
30
        self.line16.setFrameShadow(QtGui.QFrame.Sunken)
 
31
        self.line16.setObjectName("line16")
 
32
        self.gridlayout.addWidget(self.line16,1,0,1,2)
 
33
 
 
34
        self.mailPasswordEdit = QtGui.QLineEdit(EmailPage)
 
35
        self.mailPasswordEdit.setEnabled(False)
 
36
        self.mailPasswordEdit.setEchoMode(QtGui.QLineEdit.Password)
 
37
        self.mailPasswordEdit.setObjectName("mailPasswordEdit")
 
38
        self.gridlayout.addWidget(self.mailPasswordEdit,5,1,1,1)
 
39
 
 
40
        self.mailUserEdit = QtGui.QLineEdit(EmailPage)
 
41
        self.mailUserEdit.setEnabled(False)
 
42
        self.mailUserEdit.setObjectName("mailUserEdit")
 
43
        self.gridlayout.addWidget(self.mailUserEdit,4,1,1,1)
 
44
 
 
45
        self.gridlayout1 = QtGui.QGridLayout()
 
46
        self.gridlayout1.setMargin(0)
 
47
        self.gridlayout1.setSpacing(6)
 
48
        self.gridlayout1.setObjectName("gridlayout1")
 
49
 
 
50
        self.textLabel1_6 = QtGui.QLabel(EmailPage)
 
51
        self.textLabel1_6.setAlignment(QtCore.Qt.AlignTop)
 
52
        self.textLabel1_6.setObjectName("textLabel1_6")
 
53
        self.gridlayout1.addWidget(self.textLabel1_6,2,0,1,1)
 
54
 
 
55
        self.mailServerEdit = QtGui.QLineEdit(EmailPage)
 
56
        self.mailServerEdit.setObjectName("mailServerEdit")
 
57
        self.gridlayout1.addWidget(self.mailServerEdit,0,1,1,1)
 
58
 
 
59
        self.textLabel1_5 = QtGui.QLabel(EmailPage)
 
60
        self.textLabel1_5.setObjectName("textLabel1_5")
 
61
        self.gridlayout1.addWidget(self.textLabel1_5,1,0,1,1)
 
62
 
 
63
        self.textLabel2_2 = QtGui.QLabel(EmailPage)
 
64
        self.textLabel2_2.setObjectName("textLabel2_2")
 
65
        self.gridlayout1.addWidget(self.textLabel2_2,0,0,1,1)
 
66
 
 
67
        self.signatureEdit = QtGui.QTextEdit(EmailPage)
 
68
        self.signatureEdit.setAcceptRichText(False)
 
69
        self.signatureEdit.setObjectName("signatureEdit")
 
70
        self.gridlayout1.addWidget(self.signatureEdit,2,1,1,1)
 
71
 
 
72
        self.emailEdit = QtGui.QLineEdit(EmailPage)
 
73
        self.emailEdit.setObjectName("emailEdit")
 
74
        self.gridlayout1.addWidget(self.emailEdit,1,1,1,1)
 
75
        self.gridlayout.addLayout(self.gridlayout1,2,0,1,2)
 
76
 
 
77
        self.mailAuthenticationCheckBox = QtGui.QCheckBox(EmailPage)
 
78
        self.mailAuthenticationCheckBox.setObjectName("mailAuthenticationCheckBox")
 
79
        self.gridlayout.addWidget(self.mailAuthenticationCheckBox,3,0,1,2)
 
80
 
 
81
        spacerItem = QtGui.QSpacerItem(20,40,QtGui.QSizePolicy.Minimum,QtGui.QSizePolicy.Expanding)
 
82
        self.gridlayout.addItem(spacerItem,6,1,1,1)
 
83
 
 
84
        self.textLabel1_15 = QtGui.QLabel(EmailPage)
 
85
        self.textLabel1_15.setEnabled(False)
 
86
        self.textLabel1_15.setObjectName("textLabel1_15")
 
87
        self.gridlayout.addWidget(self.textLabel1_15,4,0,1,1)
 
88
 
 
89
        self.textLabel2_7 = QtGui.QLabel(EmailPage)
 
90
        self.textLabel2_7.setEnabled(False)
 
91
        self.textLabel2_7.setObjectName("textLabel2_7")
 
92
        self.gridlayout.addWidget(self.textLabel2_7,5,0,1,1)
 
93
 
 
94
        self.retranslateUi(EmailPage)
 
95
        QtCore.QObject.connect(self.mailAuthenticationCheckBox,QtCore.SIGNAL("toggled(bool)"),self.textLabel1_15.setEnabled)
 
96
        QtCore.QObject.connect(self.mailAuthenticationCheckBox,QtCore.SIGNAL("toggled(bool)"),self.textLabel2_7.setEnabled)
 
97
        QtCore.QObject.connect(self.mailAuthenticationCheckBox,QtCore.SIGNAL("toggled(bool)"),self.mailUserEdit.setEnabled)
 
98
        QtCore.QObject.connect(self.mailAuthenticationCheckBox,QtCore.SIGNAL("toggled(bool)"),self.mailPasswordEdit.setEnabled)
 
99
        QtCore.QMetaObject.connectSlotsByName(EmailPage)
 
100
        EmailPage.setTabOrder(self.mailServerEdit,self.emailEdit)
 
101
        EmailPage.setTabOrder(self.emailEdit,self.signatureEdit)
 
102
        EmailPage.setTabOrder(self.signatureEdit,self.mailAuthenticationCheckBox)
 
103
        EmailPage.setTabOrder(self.mailAuthenticationCheckBox,self.mailUserEdit)
 
104
        EmailPage.setTabOrder(self.mailUserEdit,self.mailPasswordEdit)
 
105
 
 
106
    def retranslateUi(self, EmailPage):
 
107
        self.headerLabel.setText(QtGui.QApplication.translate("EmailPage", "<b>Configure Email</b>", None, QtGui.QApplication.UnicodeUTF8))
 
108
        self.mailPasswordEdit.setToolTip(QtGui.QApplication.translate("EmailPage", "Enter your password for accessing the mail server", None, QtGui.QApplication.UnicodeUTF8))
 
109
        self.mailUserEdit.setToolTip(QtGui.QApplication.translate("EmailPage", "Enter your mail server username", None, QtGui.QApplication.UnicodeUTF8))
 
110
        self.textLabel1_6.setText(QtGui.QApplication.translate("EmailPage", "Signature:", None, QtGui.QApplication.UnicodeUTF8))
 
111
        self.mailServerEdit.setToolTip(QtGui.QApplication.translate("EmailPage", "Enter the address of your mail server", None, QtGui.QApplication.UnicodeUTF8))
 
112
        self.textLabel1_5.setText(QtGui.QApplication.translate("EmailPage", "Email address:", None, QtGui.QApplication.UnicodeUTF8))
 
113
        self.textLabel2_2.setText(QtGui.QApplication.translate("EmailPage", "Mail server:", None, QtGui.QApplication.UnicodeUTF8))
 
114
        self.signatureEdit.setToolTip(QtGui.QApplication.translate("EmailPage", "Enter your email signature", None, QtGui.QApplication.UnicodeUTF8))
 
115
        self.emailEdit.setToolTip(QtGui.QApplication.translate("EmailPage", "Enter your email address", None, QtGui.QApplication.UnicodeUTF8))
 
116
        self.mailAuthenticationCheckBox.setToolTip(QtGui.QApplication.translate("EmailPage", "Select to authenticatate against the mail server", None, QtGui.QApplication.UnicodeUTF8))
 
117
        self.mailAuthenticationCheckBox.setText(QtGui.QApplication.translate("EmailPage", "Mail server needs authentication", None, QtGui.QApplication.UnicodeUTF8))
 
118
        self.textLabel1_15.setText(QtGui.QApplication.translate("EmailPage", "Username:", None, QtGui.QApplication.UnicodeUTF8))
 
119
        self.textLabel2_7.setText(QtGui.QApplication.translate("EmailPage", "Password:", None, QtGui.QApplication.UnicodeUTF8))
 
120
 
 
121
 
 
122
 
 
123
if __name__ == "__main__":
 
124
    import sys
 
125
    app = QtGui.QApplication(sys.argv)
 
126
    EmailPage = QtGui.QWidget()
 
127
    ui = Ui_EmailPage()
 
128
    ui.setupUi(EmailPage)
 
129
    EmailPage.show()
 
130
    sys.exit(app.exec_())