|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.Project.TranslationPropertiesDialog</title> |
|
4 <meta charset="UTF-8"> |
|
5 <link rel="stylesheet" href="styles.css"> |
|
6 </head> |
|
7 <body> |
|
8 <a NAME="top" ID="top"></a> |
|
9 <h1>eric7.Project.TranslationPropertiesDialog</h1> |
|
10 |
|
11 <p> |
|
12 Module implementing the Translations Properties dialog. |
|
13 </p> |
|
14 <h3>Global Attributes</h3> |
|
15 |
|
16 <table> |
|
17 <tr><td>None</td></tr> |
|
18 </table> |
|
19 <h3>Classes</h3> |
|
20 |
|
21 <table> |
|
22 |
|
23 <tr> |
|
24 <td><a href="#TranslationPropertiesDialog">TranslationPropertiesDialog</a></td> |
|
25 <td>Class implementing the Translations Properties dialog.</td> |
|
26 </tr> |
|
27 </table> |
|
28 <h3>Functions</h3> |
|
29 |
|
30 <table> |
|
31 <tr><td>None</td></tr> |
|
32 </table> |
|
33 <hr /> |
|
34 <hr /> |
|
35 <a NAME="TranslationPropertiesDialog" ID="TranslationPropertiesDialog"></a> |
|
36 <h2>TranslationPropertiesDialog</h2> |
|
37 |
|
38 <p> |
|
39 Class implementing the Translations Properties dialog. |
|
40 </p> |
|
41 <h3>Derived from</h3> |
|
42 QDialog, Ui_TranslationPropertiesDialog |
|
43 <h3>Class Attributes</h3> |
|
44 |
|
45 <table> |
|
46 <tr><td>None</td></tr> |
|
47 </table> |
|
48 <h3>Class Methods</h3> |
|
49 |
|
50 <table> |
|
51 <tr><td>None</td></tr> |
|
52 </table> |
|
53 <h3>Methods</h3> |
|
54 |
|
55 <table> |
|
56 |
|
57 <tr> |
|
58 <td><a href="#TranslationPropertiesDialog.__init__">TranslationPropertiesDialog</a></td> |
|
59 <td>Constructor</td> |
|
60 </tr> |
|
61 <tr> |
|
62 <td><a href="#TranslationPropertiesDialog.initDialog">initDialog</a></td> |
|
63 <td>Public method to initialize the dialogs data.</td> |
|
64 </tr> |
|
65 <tr> |
|
66 <td><a href="#TranslationPropertiesDialog.initFilters">initFilters</a></td> |
|
67 <td>Public method to initialize the filters.</td> |
|
68 </tr> |
|
69 <tr> |
|
70 <td><a href="#TranslationPropertiesDialog.on_addExceptionButton_clicked">on_addExceptionButton_clicked</a></td> |
|
71 <td>Private slot to add the shown exception to the listwidget.</td> |
|
72 </tr> |
|
73 <tr> |
|
74 <td><a href="#TranslationPropertiesDialog.on_deleteExceptionButton_clicked">on_deleteExceptionButton_clicked</a></td> |
|
75 <td>Private slot to delete the currently selected entry of the listwidget.</td> |
|
76 </tr> |
|
77 <tr> |
|
78 <td><a href="#TranslationPropertiesDialog.on_exceptDirButton_clicked">on_exceptDirButton_clicked</a></td> |
|
79 <td>Private slot to select a file to exempt from translation.</td> |
|
80 </tr> |
|
81 <tr> |
|
82 <td><a href="#TranslationPropertiesDialog.on_exceptFileButton_clicked">on_exceptFileButton_clicked</a></td> |
|
83 <td>Private slot to select a file to exempt from translation.</td> |
|
84 </tr> |
|
85 <tr> |
|
86 <td><a href="#TranslationPropertiesDialog.on_exceptionEdit_textChanged">on_exceptionEdit_textChanged</a></td> |
|
87 <td>Private slot to handle the textChanged signal of the exception edit.</td> |
|
88 </tr> |
|
89 <tr> |
|
90 <td><a href="#TranslationPropertiesDialog.on_exceptionsList_currentRowChanged">on_exceptionsList_currentRowChanged</a></td> |
|
91 <td>Private slot to handle the currentRowChanged signal of the exceptions list.</td> |
|
92 </tr> |
|
93 <tr> |
|
94 <td><a href="#TranslationPropertiesDialog.on_transBinPathPicker_pathSelected">on_transBinPathPicker_pathSelected</a></td> |
|
95 <td>Private slot handling the selection of a binary translations path.</td> |
|
96 </tr> |
|
97 <tr> |
|
98 <td><a href="#TranslationPropertiesDialog.on_transPatternPicker_pathSelected">on_transPatternPicker_pathSelected</a></td> |
|
99 <td>Private slot handling the selection of a translation path.</td> |
|
100 </tr> |
|
101 <tr> |
|
102 <td><a href="#TranslationPropertiesDialog.on_transPatternPicker_textChanged">on_transPatternPicker_textChanged</a></td> |
|
103 <td>Private slot to check the translation pattern for correctness.</td> |
|
104 </tr> |
|
105 <tr> |
|
106 <td><a href="#TranslationPropertiesDialog.storeData">storeData</a></td> |
|
107 <td>Public method to store the entered/modified data.</td> |
|
108 </tr> |
|
109 </table> |
|
110 <h3>Static Methods</h3> |
|
111 |
|
112 <table> |
|
113 <tr><td>None</td></tr> |
|
114 </table> |
|
115 |
|
116 <a NAME="TranslationPropertiesDialog.__init__" ID="TranslationPropertiesDialog.__init__"></a> |
|
117 <h4>TranslationPropertiesDialog (Constructor)</h4> |
|
118 <b>TranslationPropertiesDialog</b>(<i>project, new, parent</i>) |
|
119 |
|
120 <p> |
|
121 Constructor |
|
122 </p> |
|
123 <dl> |
|
124 |
|
125 <dt><i>project</i></dt> |
|
126 <dd> |
|
127 reference to the project object |
|
128 </dd> |
|
129 <dt><i>new</i></dt> |
|
130 <dd> |
|
131 flag indicating the generation of a new project |
|
132 </dd> |
|
133 <dt><i>parent</i></dt> |
|
134 <dd> |
|
135 parent widget of this dialog (QWidget) |
|
136 </dd> |
|
137 </dl> |
|
138 <a NAME="TranslationPropertiesDialog.initDialog" ID="TranslationPropertiesDialog.initDialog"></a> |
|
139 <h4>TranslationPropertiesDialog.initDialog</h4> |
|
140 <b>initDialog</b>(<i></i>) |
|
141 |
|
142 <p> |
|
143 Public method to initialize the dialogs data. |
|
144 </p> |
|
145 <a NAME="TranslationPropertiesDialog.initFilters" ID="TranslationPropertiesDialog.initFilters"></a> |
|
146 <h4>TranslationPropertiesDialog.initFilters</h4> |
|
147 <b>initFilters</b>(<i></i>) |
|
148 |
|
149 <p> |
|
150 Public method to initialize the filters. |
|
151 </p> |
|
152 <a NAME="TranslationPropertiesDialog.on_addExceptionButton_clicked" ID="TranslationPropertiesDialog.on_addExceptionButton_clicked"></a> |
|
153 <h4>TranslationPropertiesDialog.on_addExceptionButton_clicked</h4> |
|
154 <b>on_addExceptionButton_clicked</b>(<i></i>) |
|
155 |
|
156 <p> |
|
157 Private slot to add the shown exception to the listwidget. |
|
158 </p> |
|
159 <a NAME="TranslationPropertiesDialog.on_deleteExceptionButton_clicked" ID="TranslationPropertiesDialog.on_deleteExceptionButton_clicked"></a> |
|
160 <h4>TranslationPropertiesDialog.on_deleteExceptionButton_clicked</h4> |
|
161 <b>on_deleteExceptionButton_clicked</b>(<i></i>) |
|
162 |
|
163 <p> |
|
164 Private slot to delete the currently selected entry of the listwidget. |
|
165 </p> |
|
166 <a NAME="TranslationPropertiesDialog.on_exceptDirButton_clicked" ID="TranslationPropertiesDialog.on_exceptDirButton_clicked"></a> |
|
167 <h4>TranslationPropertiesDialog.on_exceptDirButton_clicked</h4> |
|
168 <b>on_exceptDirButton_clicked</b>(<i></i>) |
|
169 |
|
170 <p> |
|
171 Private slot to select a file to exempt from translation. |
|
172 </p> |
|
173 <a NAME="TranslationPropertiesDialog.on_exceptFileButton_clicked" ID="TranslationPropertiesDialog.on_exceptFileButton_clicked"></a> |
|
174 <h4>TranslationPropertiesDialog.on_exceptFileButton_clicked</h4> |
|
175 <b>on_exceptFileButton_clicked</b>(<i></i>) |
|
176 |
|
177 <p> |
|
178 Private slot to select a file to exempt from translation. |
|
179 </p> |
|
180 <a NAME="TranslationPropertiesDialog.on_exceptionEdit_textChanged" ID="TranslationPropertiesDialog.on_exceptionEdit_textChanged"></a> |
|
181 <h4>TranslationPropertiesDialog.on_exceptionEdit_textChanged</h4> |
|
182 <b>on_exceptionEdit_textChanged</b>(<i>txt</i>) |
|
183 |
|
184 <p> |
|
185 Private slot to handle the textChanged signal of the exception edit. |
|
186 </p> |
|
187 <dl> |
|
188 |
|
189 <dt><i>txt</i></dt> |
|
190 <dd> |
|
191 the text of the exception edit (string) |
|
192 </dd> |
|
193 </dl> |
|
194 <a NAME="TranslationPropertiesDialog.on_exceptionsList_currentRowChanged" ID="TranslationPropertiesDialog.on_exceptionsList_currentRowChanged"></a> |
|
195 <h4>TranslationPropertiesDialog.on_exceptionsList_currentRowChanged</h4> |
|
196 <b>on_exceptionsList_currentRowChanged</b>(<i>row</i>) |
|
197 |
|
198 <p> |
|
199 Private slot to handle the currentRowChanged signal of the exceptions |
|
200 list. |
|
201 </p> |
|
202 <dl> |
|
203 |
|
204 <dt><i>row</i></dt> |
|
205 <dd> |
|
206 the current row (integer) |
|
207 </dd> |
|
208 </dl> |
|
209 <a NAME="TranslationPropertiesDialog.on_transBinPathPicker_pathSelected" ID="TranslationPropertiesDialog.on_transBinPathPicker_pathSelected"></a> |
|
210 <h4>TranslationPropertiesDialog.on_transBinPathPicker_pathSelected</h4> |
|
211 <b>on_transBinPathPicker_pathSelected</b>(<i>path</i>) |
|
212 |
|
213 <p> |
|
214 Private slot handling the selection of a binary translations path. |
|
215 </p> |
|
216 <dl> |
|
217 |
|
218 <dt><i>path</i> (str)</dt> |
|
219 <dd> |
|
220 selected path |
|
221 </dd> |
|
222 </dl> |
|
223 <a NAME="TranslationPropertiesDialog.on_transPatternPicker_pathSelected" ID="TranslationPropertiesDialog.on_transPatternPicker_pathSelected"></a> |
|
224 <h4>TranslationPropertiesDialog.on_transPatternPicker_pathSelected</h4> |
|
225 <b>on_transPatternPicker_pathSelected</b>(<i>path</i>) |
|
226 |
|
227 <p> |
|
228 Private slot handling the selection of a translation path. |
|
229 </p> |
|
230 <dl> |
|
231 |
|
232 <dt><i>path</i> (str)</dt> |
|
233 <dd> |
|
234 selected path |
|
235 </dd> |
|
236 </dl> |
|
237 <a NAME="TranslationPropertiesDialog.on_transPatternPicker_textChanged" ID="TranslationPropertiesDialog.on_transPatternPicker_textChanged"></a> |
|
238 <h4>TranslationPropertiesDialog.on_transPatternPicker_textChanged</h4> |
|
239 <b>on_transPatternPicker_textChanged</b>(<i>txt</i>) |
|
240 |
|
241 <p> |
|
242 Private slot to check the translation pattern for correctness. |
|
243 </p> |
|
244 <dl> |
|
245 |
|
246 <dt><i>txt</i></dt> |
|
247 <dd> |
|
248 text of the transPatternPicker line edit (string) |
|
249 </dd> |
|
250 </dl> |
|
251 <a NAME="TranslationPropertiesDialog.storeData" ID="TranslationPropertiesDialog.storeData"></a> |
|
252 <h4>TranslationPropertiesDialog.storeData</h4> |
|
253 <b>storeData</b>(<i></i>) |
|
254 |
|
255 <p> |
|
256 Public method to store the entered/modified data. |
|
257 </p> |
|
258 <div align="right"><a href="#top">Up</a></div> |
|
259 <hr /> |
|
260 </body></html> |