79 <dd> |
83 <dd> |
80 emitted to open an eric UML file |
84 emitted to open an eric UML file |
81 </dd> |
85 </dd> |
82 </dl> |
86 </dl> |
83 <h3>Derived from</h3> |
87 <h3>Derived from</h3> |
|
88 QDialog |
|
89 <h3>Class Attributes</h3> |
|
90 |
|
91 <table> |
|
92 <tr><td>None</td></tr> |
|
93 </table> |
|
94 <h3>Class Methods</h3> |
|
95 |
|
96 <table> |
|
97 <tr><td>None</td></tr> |
|
98 </table> |
|
99 <h3>Methods</h3> |
|
100 |
|
101 <table> |
|
102 |
|
103 <tr> |
|
104 <td><a href="#FindFileDialog.__init__">FindFileDialog</a></td> |
|
105 <td>Constructor</td> |
|
106 </tr> |
|
107 <tr> |
|
108 <td><a href="#FindFileDialog.activate">activate</a></td> |
|
109 <td>Public method to activate the dialog with a given mode, a text to search for and some search parameters.</td> |
|
110 </tr> |
|
111 </table> |
|
112 <h3>Static Methods</h3> |
|
113 |
|
114 <table> |
|
115 <tr><td>None</td></tr> |
|
116 </table> |
|
117 |
|
118 <a NAME="FindFileDialog.__init__" ID="FindFileDialog.__init__"></a> |
|
119 <h4>FindFileDialog (Constructor)</h4> |
|
120 <b>FindFileDialog</b>(<i>project, parent=None</i>) |
|
121 |
|
122 <p> |
|
123 Constructor |
|
124 </p> |
|
125 <dl> |
|
126 |
|
127 <dt><i>project</i> (Project)</dt> |
|
128 <dd> |
|
129 reference to the project object |
|
130 </dd> |
|
131 <dt><i>parent</i> (QWidget (optional))</dt> |
|
132 <dd> |
|
133 parent widget of this dialog (defaults to None) |
|
134 </dd> |
|
135 </dl> |
|
136 <a NAME="FindFileDialog.activate" ID="FindFileDialog.activate"></a> |
|
137 <h4>FindFileDialog.activate</h4> |
|
138 <b>activate</b>(<i>replaceMode=False, txt="", searchDir="", openFiles=False</i>) |
|
139 |
|
140 <p> |
|
141 Public method to activate the dialog with a given mode, a text |
|
142 to search for and some search parameters. |
|
143 </p> |
|
144 <dl> |
|
145 |
|
146 <dt><i>replaceMode</i> (bool (optional))</dt> |
|
147 <dd> |
|
148 flag indicating replacement mode (defaults to False) |
|
149 </dd> |
|
150 <dt><i>txt</i> (str (optional))</dt> |
|
151 <dd> |
|
152 text to be searched for (defaults to "") |
|
153 </dd> |
|
154 <dt><i>searchDir</i> (str (optional))</dt> |
|
155 <dd> |
|
156 directory to search in (defaults to "") |
|
157 </dd> |
|
158 <dt><i>openFiles</i> (bool (optional))</dt> |
|
159 <dd> |
|
160 flag indicating to operate on open files only |
|
161 (defaults to False) |
|
162 </dd> |
|
163 </dl> |
|
164 <div align="right"><a href="#top">Up</a></div> |
|
165 <hr /> |
|
166 <hr /> |
|
167 <a NAME="FindFileWidget" ID="FindFileWidget"></a> |
|
168 <h2>FindFileWidget</h2> |
|
169 |
|
170 <p> |
|
171 Class implementing a widget to search for text in files and replace it |
|
172 with some other text. |
|
173 </p> |
|
174 <p> |
|
175 The occurrences found are displayed in a tree showing the file name, |
|
176 the line number and the text found. The file will be opened upon a double |
|
177 click onto the respective entry of the list. If the widget is in replace |
|
178 mode the line below shows the text after replacement. Replacements can |
|
179 be authorized by ticking them on. Pressing the replace button performs |
|
180 all ticked replacement operations. |
|
181 </p> |
|
182 <h3>Signals</h3> |
|
183 <dl> |
|
184 |
|
185 <dt>designerFile(str)</dt> |
|
186 <dd> |
|
187 emitted to open a Qt-Designer file |
|
188 </dd> |
|
189 <dt>linguistFile(str)</dt> |
|
190 <dd> |
|
191 emitted to open a Qt-Linguist (*.ts) file |
|
192 </dd> |
|
193 <dt>pixmapFile(str)</dt> |
|
194 <dd> |
|
195 emitted to open a pixmap file |
|
196 </dd> |
|
197 <dt>sourceFile(str, int, str, int, int)</dt> |
|
198 <dd> |
|
199 emitted to open a source file |
|
200 at a specificline |
|
201 </dd> |
|
202 <dt>svgFile(str)</dt> |
|
203 <dd> |
|
204 emitted to open a SVG file |
|
205 </dd> |
|
206 <dt>trpreview([str])</dt> |
|
207 <dd> |
|
208 emitted to preview Qt-Linguist (*.qm) files |
|
209 </dd> |
|
210 <dt>umlFile(str)</dt> |
|
211 <dd> |
|
212 emitted to open an eric UML file |
|
213 </dd> |
|
214 </dl> |
|
215 <h3>Derived from</h3> |
84 QWidget, Ui_FindFileWidget |
216 QWidget, Ui_FindFileWidget |
85 <h3>Class Attributes</h3> |
217 <h3>Class Attributes</h3> |
86 |
218 |
87 <table> |
219 <table> |
88 <tr><td>endRole</td></tr><tr><td>lineRole</td></tr><tr><td>md5Role</td></tr><tr><td>replaceRole</td></tr><tr><td>startRole</td></tr> |
220 <tr><td>endRole</td></tr><tr><td>lineRole</td></tr><tr><td>md5Role</td></tr><tr><td>replaceRole</td></tr><tr><td>startRole</td></tr> |
139 <tr> |
271 <tr> |
140 <td><a href="#FindFileWidget.__projectOpened">__projectOpened</a></td> |
272 <td><a href="#FindFileWidget.__projectOpened">__projectOpened</a></td> |
141 <td>Private slot to react to the opening of a project.</td> |
273 <td>Private slot to react to the opening of a project.</td> |
142 </tr> |
274 </tr> |
143 <tr> |
275 <tr> |
|
276 <td><a href="#FindFileWidget.__setOpenFiles">__setOpenFiles</a></td> |
|
277 <td>Private slot to set the mode to search in open files.</td> |
|
278 </tr> |
|
279 <tr> |
|
280 <td><a href="#FindFileWidget.__setSearchDirectory">__setSearchDirectory</a></td> |
|
281 <td>Private slot to set the name of the directory to search in.</td> |
|
282 </tr> |
|
283 <tr> |
144 <td><a href="#FindFileWidget.__stopSearch">__stopSearch</a></td> |
284 <td><a href="#FindFileWidget.__stopSearch">__stopSearch</a></td> |
145 <td>Private slot to handle the stop button being pressed.</td> |
285 <td>Private slot to handle the stop button being pressed.</td> |
146 </tr> |
286 </tr> |
147 <tr> |
287 <tr> |
148 <td><a href="#FindFileWidget.__stripEol">__stripEol</a></td> |
288 <td><a href="#FindFileWidget.__stripEol">__stripEol</a></td> |
367 <b>__projectOpened</b>(<i></i>) |
499 <b>__projectOpened</b>(<i></i>) |
368 |
500 |
369 <p> |
501 <p> |
370 Private slot to react to the opening of a project. |
502 Private slot to react to the opening of a project. |
371 </p> |
503 </p> |
|
504 <a NAME="FindFileWidget.__setOpenFiles" ID="FindFileWidget.__setOpenFiles"></a> |
|
505 <h4>FindFileWidget.__setOpenFiles</h4> |
|
506 <b>__setOpenFiles</b>(<i></i>) |
|
507 |
|
508 <p> |
|
509 Private slot to set the mode to search in open files. |
|
510 </p> |
|
511 <a NAME="FindFileWidget.__setSearchDirectory" ID="FindFileWidget.__setSearchDirectory"></a> |
|
512 <h4>FindFileWidget.__setSearchDirectory</h4> |
|
513 <b>__setSearchDirectory</b>(<i>searchDir</i>) |
|
514 |
|
515 <p> |
|
516 Private slot to set the name of the directory to search in. |
|
517 </p> |
|
518 <dl> |
|
519 |
|
520 <dt><i>searchDir</i> (str)</dt> |
|
521 <dd> |
|
522 name of the directory to search in |
|
523 </dd> |
|
524 </dl> |
372 <a NAME="FindFileWidget.__stopSearch" ID="FindFileWidget.__stopSearch"></a> |
525 <a NAME="FindFileWidget.__stopSearch" ID="FindFileWidget.__stopSearch"></a> |
373 <h4>FindFileWidget.__stopSearch</h4> |
526 <h4>FindFileWidget.__stopSearch</h4> |
374 <b>__stopSearch</b>(<i></i>) |
527 <b>__stopSearch</b>(<i></i>) |
375 |
528 |
376 <p> |
529 <p> |