~mcfletch/eric/update-to-4.5.13

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'
'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
<html><head>
<title>eric4.UI.EmailDialog</title>
<style>
body {
    background:white;
    margin: 0em 1em 10em 1em;
    color: black;
}

h1 { color: white; background: #4FA4FF; }
h2 { color: white; background: #4FA4FF; }
h3 { color: white; background: #00557F; }
h4 { color: white; background: #00557F; }
    
a { color: #AA5500; }

</style>
</head>
<body><a NAME="top" ID="top"></a>
<h1>eric4.UI.EmailDialog</h1>
<p>
Module implementing a dialog to send bug reports.
</p>
<h3>Global Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>
<h3>Classes</h3>
<table>
<tr>
<td><a href="#EmailDialog">EmailDialog</a></td>
<td>Class implementing a dialog to send bug reports.</td>
</tr>
</table>
<h3>Functions</h3>
<table>
<tr><td>None</td></tr>
</table>
<hr /><hr />
<a NAME="EmailDialog" ID="EmailDialog"></a>
<h2>EmailDialog</h2>
<p>
    Class implementing a dialog to send bug reports.
</p>
<h3>Derived from</h3>
QDialog, Ui_EmailDialog
<h3>Class Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>
<h3>Class Methods</h3>
<table>
<tr><td>None</td></tr>
</table>
<h3>Methods</h3>
<table>
<tr>
<td><a href="#EmailDialog.__init__">EmailDialog</a></td>
<td>Constructor</td>
</tr><tr>
<td><a href="#EmailDialog.__createMultipartMail">__createMultipartMail</a></td>
<td>Private method to create a multipart mail message.</td>
</tr><tr>
<td><a href="#EmailDialog.__createSimpleMail">__createSimpleMail</a></td>
<td>Private method to create a simple mail message.</td>
</tr><tr>
<td><a href="#EmailDialog.__sendmail">__sendmail</a></td>
<td>Private method to actually send the message.</td>
</tr><tr>
<td><a href="#EmailDialog.attachFile">attachFile</a></td>
<td>Public method to add an attachment.</td>
</tr><tr>
<td><a href="#EmailDialog.keyPressEvent">keyPressEvent</a></td>
<td>Re-implemented to handle the user pressing the escape key.</td>
</tr><tr>
<td><a href="#EmailDialog.on_addButton_clicked">on_addButton_clicked</a></td>
<td>Private slot to handle the Add...</td>
</tr><tr>
<td><a href="#EmailDialog.on_buttonBox_clicked">on_buttonBox_clicked</a></td>
<td>Private slot called by a button of the button box clicked.</td>
</tr><tr>
<td><a href="#EmailDialog.on_buttonBox_rejected">on_buttonBox_rejected</a></td>
<td>Private slot to handle the rejected signal of the button box.</td>
</tr><tr>
<td><a href="#EmailDialog.on_deleteButton_clicked">on_deleteButton_clicked</a></td>
<td>Private slot to handle the Delete button.</td>
</tr><tr>
<td><a href="#EmailDialog.on_message_textChanged">on_message_textChanged</a></td>
<td>Private slot to handle the textChanged signal of the message edit.</td>
</tr><tr>
<td><a href="#EmailDialog.on_sendButton_clicked">on_sendButton_clicked</a></td>
<td>Private slot to send the email message.</td>
</tr><tr>
<td><a href="#EmailDialog.on_subject_textChanged">on_subject_textChanged</a></td>
<td>Private slot to handle the textChanged signal of the subject edit.</td>
</tr>
</table>
<h3>Static Methods</h3>
<table>
<tr><td>None</td></tr>
</table>
<a NAME="EmailDialog.__init__" ID="EmailDialog.__init__"></a>
<h4>EmailDialog (Constructor)</h4>
<b>EmailDialog</b>(<i>mode = "bug", parent = None</i>)
<p>
        Constructor
</p><dl>
<dt><i>mode</i></dt>
<dd>
mode of this dialog (string, "bug" or "feature")
</dd><dt><i>parent</i></dt>
<dd>
parent widget of this dialog (QWidget)
</dd>
</dl><a NAME="EmailDialog.__createMultipartMail" ID="EmailDialog.__createMultipartMail"></a>
<h4>EmailDialog.__createMultipartMail</h4>
<b>__createMultipartMail</b>(<i></i>)
<p>
        Private method to create a multipart mail message.
</p><dl>
<dt>Returns:</dt>
<dd>
string containing the mail message
</dd>
</dl><a NAME="EmailDialog.__createSimpleMail" ID="EmailDialog.__createSimpleMail"></a>
<h4>EmailDialog.__createSimpleMail</h4>
<b>__createSimpleMail</b>(<i></i>)
<p>
        Private method to create a simple mail message.
</p><dl>
<dt>Returns:</dt>
<dd>
string containing the mail message
</dd>
</dl><a NAME="EmailDialog.__sendmail" ID="EmailDialog.__sendmail"></a>
<h4>EmailDialog.__sendmail</h4>
<b>__sendmail</b>(<i>msg</i>)
<p>
        Private method to actually send the message.
</p><dl>
<dt><i>msg</i></dt>
<dd>
the message to be sent (string)
</dd>
</dl><dl>
<dt>Returns:</dt>
<dd>
flag indicating success (boolean)
</dd>
</dl><a NAME="EmailDialog.attachFile" ID="EmailDialog.attachFile"></a>
<h4>EmailDialog.attachFile</h4>
<b>attachFile</b>(<i>fname, deleteFile</i>)
<p>
        Public method to add an attachment.
</p><dl>
<dt><i>fname</i></dt>
<dd>
name of the file to be attached (string or QString)
</dd><dt><i>deleteFile</i></dt>
<dd>
flag indicating to delete the file after it has
            been sent (boolean)
</dd>
</dl><a NAME="EmailDialog.keyPressEvent" ID="EmailDialog.keyPressEvent"></a>
<h4>EmailDialog.keyPressEvent</h4>
<b>keyPressEvent</b>(<i>ev</i>)
<p>
        Re-implemented to handle the user pressing the escape key.
</p><dl>
<dt><i>ev</i></dt>
<dd>
key event (QKeyEvent)
</dd>
</dl><a NAME="EmailDialog.on_addButton_clicked" ID="EmailDialog.on_addButton_clicked"></a>
<h4>EmailDialog.on_addButton_clicked</h4>
<b>on_addButton_clicked</b>(<i></i>)
<p>
        Private slot to handle the Add... button.
</p><a NAME="EmailDialog.on_buttonBox_clicked" ID="EmailDialog.on_buttonBox_clicked"></a>
<h4>EmailDialog.on_buttonBox_clicked</h4>
<b>on_buttonBox_clicked</b>(<i>button</i>)
<p>
        Private slot called by a button of the button box clicked.
</p><dl>
<dt><i>button</i></dt>
<dd>
button that was clicked (QAbstractButton)
</dd>
</dl><a NAME="EmailDialog.on_buttonBox_rejected" ID="EmailDialog.on_buttonBox_rejected"></a>
<h4>EmailDialog.on_buttonBox_rejected</h4>
<b>on_buttonBox_rejected</b>(<i></i>)
<p>
        Private slot to handle the rejected signal of the button box.
</p><a NAME="EmailDialog.on_deleteButton_clicked" ID="EmailDialog.on_deleteButton_clicked"></a>
<h4>EmailDialog.on_deleteButton_clicked</h4>
<b>on_deleteButton_clicked</b>(<i></i>)
<p>
        Private slot to handle the Delete button.
</p><a NAME="EmailDialog.on_message_textChanged" ID="EmailDialog.on_message_textChanged"></a>
<h4>EmailDialog.on_message_textChanged</h4>
<b>on_message_textChanged</b>(<i></i>)
<p>
        Private slot to handle the textChanged signal of the message edit.
</p><dl>
<dt><i>txt</i></dt>
<dd>
changed text (QString)
</dd>
</dl><a NAME="EmailDialog.on_sendButton_clicked" ID="EmailDialog.on_sendButton_clicked"></a>
<h4>EmailDialog.on_sendButton_clicked</h4>
<b>on_sendButton_clicked</b>(<i></i>)
<p>
        Private slot to send the email message.
</p><a NAME="EmailDialog.on_subject_textChanged" ID="EmailDialog.on_subject_textChanged"></a>
<h4>EmailDialog.on_subject_textChanged</h4>
<b>on_subject_textChanged</b>(<i>txt</i>)
<p>
        Private slot to handle the textChanged signal of the subject edit.
</p><dl>
<dt><i>txt</i></dt>
<dd>
changed text (QString)
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
</body></html>