Documentation/Source/eric4.UI.EmailDialog.html

changeset 3
0d9daebf5b8c
equal deleted inserted replaced
2:bc6196164237 3:0d9daebf5b8c
1 <?xml version="1.0" encoding="utf-8"?>
2 <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'
3 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
4 <html><head>
5 <title>eric4.UI.EmailDialog</title>
6 <style>
7 body {
8 background:white;
9 margin: 0em 1em 10em 1em;
10 color: black;
11 }
12
13 h1 { color: white; background: #4FA4FF; }
14 h2 { color: white; background: #4FA4FF; }
15 h3 { color: white; background: #00557F; }
16 h4 { color: white; background: #00557F; }
17
18 a { color: #AA5500; }
19
20 </style>
21 </head>
22 <body><a NAME="top" ID="top"></a>
23 <h1>eric4.UI.EmailDialog</h1>
24 <p>
25 Module implementing a dialog to send bug reports.
26 </p>
27 <h3>Global Attributes</h3>
28 <table>
29 <tr><td>None</td></tr>
30 </table>
31 <h3>Classes</h3>
32 <table>
33 <tr>
34 <td><a href="#EmailDialog">EmailDialog</a></td>
35 <td>Class implementing a dialog to send bug reports.</td>
36 </tr>
37 </table>
38 <h3>Functions</h3>
39 <table>
40 <tr><td>None</td></tr>
41 </table>
42 <hr /><hr />
43 <a NAME="EmailDialog" ID="EmailDialog"></a>
44 <h2>EmailDialog</h2>
45 <p>
46 Class implementing a dialog to send bug reports.
47 </p>
48 <h3>Derived from</h3>
49 QDialog, Ui_EmailDialog
50 <h3>Class Attributes</h3>
51 <table>
52 <tr><td>None</td></tr>
53 </table>
54 <h3>Methods</h3>
55 <table>
56 <tr>
57 <td><a href="#EmailDialog.__init__">EmailDialog</a></td>
58 <td>Constructor</td>
59 </tr><tr>
60 <td><a href="#EmailDialog.__createMultipartMail">__createMultipartMail</a></td>
61 <td>Private method to create a multipart mail message.</td>
62 </tr><tr>
63 <td><a href="#EmailDialog.__createSimpleMail">__createSimpleMail</a></td>
64 <td>Private method to create a simple mail message.</td>
65 </tr><tr>
66 <td><a href="#EmailDialog.__sendmail">__sendmail</a></td>
67 <td>Private method to actually send the message.</td>
68 </tr><tr>
69 <td><a href="#EmailDialog.attachFile">attachFile</a></td>
70 <td>Public method to add an attachment.</td>
71 </tr><tr>
72 <td><a href="#EmailDialog.keyPressEvent">keyPressEvent</a></td>
73 <td>Re-implemented to handle the user pressing the escape key.</td>
74 </tr><tr>
75 <td><a href="#EmailDialog.on_addButton_clicked">on_addButton_clicked</a></td>
76 <td>Private slot to handle the Add...</td>
77 </tr><tr>
78 <td><a href="#EmailDialog.on_buttonBox_clicked">on_buttonBox_clicked</a></td>
79 <td>Private slot called by a button of the button box clicked.</td>
80 </tr><tr>
81 <td><a href="#EmailDialog.on_buttonBox_rejected">on_buttonBox_rejected</a></td>
82 <td>Private slot to handle the rejected signal of the button box.</td>
83 </tr><tr>
84 <td><a href="#EmailDialog.on_deleteButton_clicked">on_deleteButton_clicked</a></td>
85 <td>Private slot to handle the Delete button.</td>
86 </tr><tr>
87 <td><a href="#EmailDialog.on_message_textChanged">on_message_textChanged</a></td>
88 <td>Private slot to handle the textChanged signal of the message edit.</td>
89 </tr><tr>
90 <td><a href="#EmailDialog.on_sendButton_clicked">on_sendButton_clicked</a></td>
91 <td>Private slot to send the email message.</td>
92 </tr><tr>
93 <td><a href="#EmailDialog.on_subject_textChanged">on_subject_textChanged</a></td>
94 <td>Private slot to handle the textChanged signal of the subject edit.</td>
95 </tr>
96 </table>
97 <a NAME="EmailDialog.__init__" ID="EmailDialog.__init__"></a>
98 <h4>EmailDialog (Constructor)</h4>
99 <b>EmailDialog</b>(<i>mode = "bug", parent = None</i>)
100 <p>
101 Constructor
102 </p><dl>
103 <dt><i>mode</i></dt>
104 <dd>
105 mode of this dialog (string, "bug" or "feature")
106 </dd><dt><i>parent</i></dt>
107 <dd>
108 parent widget of this dialog (QWidget)
109 </dd>
110 </dl><a NAME="EmailDialog.__createMultipartMail" ID="EmailDialog.__createMultipartMail"></a>
111 <h4>EmailDialog.__createMultipartMail</h4>
112 <b>__createMultipartMail</b>(<i></i>)
113 <p>
114 Private method to create a multipart mail message.
115 </p><dl>
116 <dt>Returns:</dt>
117 <dd>
118 string containing the mail message
119 </dd>
120 </dl><a NAME="EmailDialog.__createSimpleMail" ID="EmailDialog.__createSimpleMail"></a>
121 <h4>EmailDialog.__createSimpleMail</h4>
122 <b>__createSimpleMail</b>(<i></i>)
123 <p>
124 Private method to create a simple mail message.
125 </p><dl>
126 <dt>Returns:</dt>
127 <dd>
128 string containing the mail message
129 </dd>
130 </dl><a NAME="EmailDialog.__sendmail" ID="EmailDialog.__sendmail"></a>
131 <h4>EmailDialog.__sendmail</h4>
132 <b>__sendmail</b>(<i>msg</i>)
133 <p>
134 Private method to actually send the message.
135 </p><dl>
136 <dt><i>msg</i></dt>
137 <dd>
138 the message to be sent (string)
139 </dd>
140 </dl><dl>
141 <dt>Returns:</dt>
142 <dd>
143 flag indicating success (boolean)
144 </dd>
145 </dl><a NAME="EmailDialog.attachFile" ID="EmailDialog.attachFile"></a>
146 <h4>EmailDialog.attachFile</h4>
147 <b>attachFile</b>(<i>fname, deleteFile</i>)
148 <p>
149 Public method to add an attachment.
150 </p><dl>
151 <dt><i>fname</i></dt>
152 <dd>
153 name of the file to be attached (string)
154 </dd><dt><i>deleteFile</i></dt>
155 <dd>
156 flag indicating to delete the file after it has
157 been sent (boolean)
158 </dd>
159 </dl><a NAME="EmailDialog.keyPressEvent" ID="EmailDialog.keyPressEvent"></a>
160 <h4>EmailDialog.keyPressEvent</h4>
161 <b>keyPressEvent</b>(<i>ev</i>)
162 <p>
163 Re-implemented to handle the user pressing the escape key.
164 </p><dl>
165 <dt><i>ev</i></dt>
166 <dd>
167 key event (QKeyEvent)
168 </dd>
169 </dl><a NAME="EmailDialog.on_addButton_clicked" ID="EmailDialog.on_addButton_clicked"></a>
170 <h4>EmailDialog.on_addButton_clicked</h4>
171 <b>on_addButton_clicked</b>(<i></i>)
172 <p>
173 Private slot to handle the Add... button.
174 </p><a NAME="EmailDialog.on_buttonBox_clicked" ID="EmailDialog.on_buttonBox_clicked"></a>
175 <h4>EmailDialog.on_buttonBox_clicked</h4>
176 <b>on_buttonBox_clicked</b>(<i>button</i>)
177 <p>
178 Private slot called by a button of the button box clicked.
179 </p><dl>
180 <dt><i>button</i></dt>
181 <dd>
182 button that was clicked (QAbstractButton)
183 </dd>
184 </dl><a NAME="EmailDialog.on_buttonBox_rejected" ID="EmailDialog.on_buttonBox_rejected"></a>
185 <h4>EmailDialog.on_buttonBox_rejected</h4>
186 <b>on_buttonBox_rejected</b>(<i></i>)
187 <p>
188 Private slot to handle the rejected signal of the button box.
189 </p><a NAME="EmailDialog.on_deleteButton_clicked" ID="EmailDialog.on_deleteButton_clicked"></a>
190 <h4>EmailDialog.on_deleteButton_clicked</h4>
191 <b>on_deleteButton_clicked</b>(<i></i>)
192 <p>
193 Private slot to handle the Delete button.
194 </p><a NAME="EmailDialog.on_message_textChanged" ID="EmailDialog.on_message_textChanged"></a>
195 <h4>EmailDialog.on_message_textChanged</h4>
196 <b>on_message_textChanged</b>(<i></i>)
197 <p>
198 Private slot to handle the textChanged signal of the message edit.
199 </p><dl>
200 <dt><i>txt</i></dt>
201 <dd>
202 changed text (string)
203 </dd>
204 </dl><a NAME="EmailDialog.on_sendButton_clicked" ID="EmailDialog.on_sendButton_clicked"></a>
205 <h4>EmailDialog.on_sendButton_clicked</h4>
206 <b>on_sendButton_clicked</b>(<i></i>)
207 <p>
208 Private slot to send the email message.
209 </p><a NAME="EmailDialog.on_subject_textChanged" ID="EmailDialog.on_subject_textChanged"></a>
210 <h4>EmailDialog.on_subject_textChanged</h4>
211 <b>on_subject_textChanged</b>(<i>txt</i>)
212 <p>
213 Private slot to handle the textChanged signal of the subject edit.
214 </p><dl>
215 <dt><i>txt</i></dt>
216 <dd>
217 changed text (string)
218 </dd>
219 </dl>
220 <div align="right"><a href="#top">Up</a></div>
221 <hr />
222 </body></html>

eric ide

mercurial