Documentation/Source/eric5.ViewManager.ViewManager.html

changeset 501
5c615a85241a
parent 440
69ace3e2dcf6
child 767
27554f80d08f
equal deleted inserted replaced
500:c3abc7895a01 501:5c615a85241a
62 </dl> 62 </dl>
63 <h3>Derived from</h3> 63 <h3>Derived from</h3>
64 QLineEdit 64 QLineEdit
65 <h3>Class Attributes</h3> 65 <h3>Class Attributes</h3>
66 <table> 66 <table>
67 <tr><td>None</td></tr> 67 <tr><td>escPressed</td></tr><tr><td>gotFocus</td></tr><tr><td>returnPressed</td></tr>
68 </table> 68 </table>
69 <h3>Methods</h3> 69 <h3>Methods</h3>
70 <table> 70 <table>
71 <tr> 71 <tr>
72 <td><a href="#QuickSearchLineEdit.editorCommand">editorCommand</a></td> 72 <td><a href="#QuickSearchLineEdit.editorCommand">editorCommand</a></td>
119 </p><p> 119 </p><p>
120 It defines the interface to be implemented by specific 120 It defines the interface to be implemented by specific
121 viewmanager classes and all common methods. 121 viewmanager classes and all common methods.
122 </p><h4>Signals</h4> 122 </p><h4>Signals</h4>
123 <dl> 123 <dl>
124 <dt>bookmarkToggled(editor)</dt> 124 <dt>bookmarkToggled(Editor)</dt>
125 <dd> 125 <dd>
126 emitted when a bookmark is toggled. 126 emitted when a bookmark is toggled.
127 </dd><dt>breakpointToggled(editor)</dt> 127 </dd><dt>breakpointToggled(Editor)</dt>
128 <dd> 128 <dd>
129 emitted when a breakpoint is toggled. 129 emitted when a breakpoint is toggled.
130 </dd><dt>checkActions(editor)</dt> 130 </dd><dt>checkActions(Editor)</dt>
131 <dd> 131 <dd>
132 emitted when some actions should be checked 132 emitted when some actions should be checked
133 for their status 133 for their status
134 </dd><dt>cursorChanged(editor)</dt> 134 </dd><dt>cursorChanged(Editor)</dt>
135 <dd> 135 <dd>
136 emitted after the cursor position of the active 136 emitted after the cursor position of the active
137 window has changed 137 window has changed
138 </dd><dt>editorClosed(string)</dt> 138 </dd><dt>editorClosed(str)</dt>
139 <dd> 139 <dd>
140 emitted just before an editor window gets closed 140 emitted just before an editor window gets closed
141 </dd><dt>editorClosedEd(editor)</dt> 141 </dd><dt>editorClosedEd(Editor)</dt>
142 <dd> 142 <dd>
143 emitted just before an editor window gets closed 143 emitted just before an editor window gets closed
144 </dd><dt>editorOpened(string)</dt> 144 </dd><dt>editorOpened(str)</dt>
145 <dd> 145 <dd>
146 emitted after an editor window was opened 146 emitted after an editor window was opened
147 </dd><dt>editorOpenedEd(editor)</dt> 147 </dd><dt>editorOpenedEd(Editor)</dt>
148 <dd> 148 <dd>
149 emitted after an editor window was opened 149 emitted after an editor window was opened
150 </dd><dt>editorSaved(string)</dt> 150 </dd><dt>editorSaved(str)</dt>
151 <dd> 151 <dd>
152 emitted after an editor window was saved 152 emitted after an editor window was saved
153 </dd><dt>lastEditorClosed</dt> 153 </dd><dt>lastEditorClosed()</dt>
154 <dd> 154 <dd>
155 emitted after the last editor window was closed 155 emitted after the last editor window was closed
156 </dd> 156 </dd>
157 </dl> 157 </dl>
158 <h3>Derived from</h3> 158 <h3>Derived from</h3>
159 QObject 159 QObject
160 <h3>Class Attributes</h3> 160 <h3>Class Attributes</h3>
161 <table> 161 <table>
162 <tr><td>None</td></tr> 162 <tr><td>bookmarkToggled</td></tr><tr><td>breakpointToggled</td></tr><tr><td>checkActions</td></tr><tr><td>cursorChanged</td></tr><tr><td>editorClosed</td></tr><tr><td>editorClosedEd</td></tr><tr><td>editorOpened</td></tr><tr><td>editorOpenedEd</td></tr><tr><td>editorSaved</td></tr><tr><td>lastEditorClosed</td></tr><tr><td>syntaxerrorToggled</td></tr>
163 </table> 163 </table>
164 <h3>Methods</h3> 164 <h3>Methods</h3>
165 <table> 165 <table>
166 <tr> 166 <tr>
167 <td><a href="#ViewManager.__init__">ViewManager</a></td> 167 <td><a href="#ViewManager.__init__">ViewManager</a></td>
243 <td>Private method to handle the select all action.</td> 243 <td>Private method to handle the select all action.</td>
244 </tr><tr> 244 </tr><tr>
245 <td><a href="#ViewManager.__editIndent">__editIndent</a></td> 245 <td><a href="#ViewManager.__editIndent">__editIndent</a></td>
246 <td>Private method to handle the indent action.</td> 246 <td>Private method to handle the indent action.</td>
247 </tr><tr> 247 </tr><tr>
248 <td><a href="#ViewManager.__editJoin">__editJoin</a></td>
249 <td>Private method to handle the join action.</td>
250 </tr><tr>
248 <td><a href="#ViewManager.__editPaste">__editPaste</a></td> 251 <td><a href="#ViewManager.__editPaste">__editPaste</a></td>
249 <td>Private method to handle the paste action.</td> 252 <td>Private method to handle the paste action.</td>
250 </tr><tr> 253 </tr><tr>
251 <td><a href="#ViewManager.__editRedo">__editRedo</a></td> 254 <td><a href="#ViewManager.__editRedo">__editRedo</a></td>
252 <td>Private method to handle the redo action.</td> 255 <td>Private method to handle the redo action.</td>
373 </tr><tr> 376 </tr><tr>
374 <td><a href="#ViewManager.__nextWarning">__nextWarning</a></td> 377 <td><a href="#ViewManager.__nextWarning">__nextWarning</a></td>
375 <td>Private method to handle the next warning action.</td> 378 <td>Private method to handle the next warning action.</td>
376 </tr><tr> 379 </tr><tr>
377 <td><a href="#ViewManager.__openSourceFile">__openSourceFile</a></td> 380 <td><a href="#ViewManager.__openSourceFile">__openSourceFile</a></td>
378 <td>Private method to open a file from the list of rencently opened files.</td> 381 <td>Private method to open a file from the list of recently opened files.</td>
379 </tr><tr> 382 </tr><tr>
380 <td><a href="#ViewManager.__previousBookmark">__previousBookmark</a></td> 383 <td><a href="#ViewManager.__previousBookmark">__previousBookmark</a></td>
381 <td>Private method to handle the previous bookmark action.</td> 384 <td>Private method to handle the previous bookmark action.</td>
382 </tr><tr> 385 </tr><tr>
383 <td><a href="#ViewManager.__previousTask">__previousTask</a></td> 386 <td><a href="#ViewManager.__previousTask">__previousTask</a></td>
466 </tr><tr> 469 </tr><tr>
467 <td><a href="#ViewManager.__splitView">__splitView</a></td> 470 <td><a href="#ViewManager.__splitView">__splitView</a></td>
468 <td>Private method to handle the split view action.</td> 471 <td>Private method to handle the split view action.</td>
469 </tr><tr> 472 </tr><tr>
470 <td><a href="#ViewManager.__taskMarkersUpdated">__taskMarkersUpdated</a></td> 473 <td><a href="#ViewManager.__taskMarkersUpdated">__taskMarkersUpdated</a></td>
471 <td>Protected slot to handle the syntaxerrorToggled signal.</td> 474 <td>Protected slot to handle the taskMarkersUpdated signal.</td>
472 </tr><tr> 475 </tr><tr>
473 <td><a href="#ViewManager.__toggleAll">__toggleAll</a></td> 476 <td><a href="#ViewManager.__toggleAll">__toggleAll</a></td>
474 <td>Private method to handle the toggle all folds action.</td> 477 <td>Private method to handle the toggle all folds action.</td>
475 </tr><tr> 478 </tr><tr>
476 <td><a href="#ViewManager.__toggleAllChildren">__toggleAllChildren</a></td> 479 <td><a href="#ViewManager.__toggleAllChildren">__toggleAllChildren</a></td>
986 </p><a NAME="ViewManager.__editIndent" ID="ViewManager.__editIndent"></a> 989 </p><a NAME="ViewManager.__editIndent" ID="ViewManager.__editIndent"></a>
987 <h4>ViewManager.__editIndent</h4> 990 <h4>ViewManager.__editIndent</h4>
988 <b>__editIndent</b>(<i></i>) 991 <b>__editIndent</b>(<i></i>)
989 <p> 992 <p>
990 Private method to handle the indent action. 993 Private method to handle the indent action.
994 </p><a NAME="ViewManager.__editJoin" ID="ViewManager.__editJoin"></a>
995 <h4>ViewManager.__editJoin</h4>
996 <b>__editJoin</b>(<i></i>)
997 <p>
998 Private method to handle the join action.
991 </p><a NAME="ViewManager.__editPaste" ID="ViewManager.__editPaste"></a> 999 </p><a NAME="ViewManager.__editPaste" ID="ViewManager.__editPaste"></a>
992 <h4>ViewManager.__editPaste</h4> 1000 <h4>ViewManager.__editPaste</h4>
993 <b>__editPaste</b>(<i></i>) 1001 <b>__editPaste</b>(<i></i>)
994 <p> 1002 <p>
995 Private method to handle the paste action. 1003 Private method to handle the paste action.
1223 Private method to handle the next warning action. 1231 Private method to handle the next warning action.
1224 </p><a NAME="ViewManager.__openSourceFile" ID="ViewManager.__openSourceFile"></a> 1232 </p><a NAME="ViewManager.__openSourceFile" ID="ViewManager.__openSourceFile"></a>
1225 <h4>ViewManager.__openSourceFile</h4> 1233 <h4>ViewManager.__openSourceFile</h4>
1226 <b>__openSourceFile</b>(<i>act</i>) 1234 <b>__openSourceFile</b>(<i>act</i>)
1227 <p> 1235 <p>
1228 Private method to open a file from the list of rencently opened files. 1236 Private method to open a file from the list of recently opened files.
1229 </p><dl> 1237 </p><dl>
1230 <dt><i>act</i></dt> 1238 <dt><i>act</i></dt>
1231 <dd> 1239 <dd>
1232 reference to the action that triggered (QAction) 1240 reference to the action that triggered (QAction)
1233 </dd> 1241 </dd>
1418 Private method to handle the split view action. 1426 Private method to handle the split view action.
1419 </p><a NAME="ViewManager.__taskMarkersUpdated" ID="ViewManager.__taskMarkersUpdated"></a> 1427 </p><a NAME="ViewManager.__taskMarkersUpdated" ID="ViewManager.__taskMarkersUpdated"></a>
1420 <h4>ViewManager.__taskMarkersUpdated</h4> 1428 <h4>ViewManager.__taskMarkersUpdated</h4>
1421 <b>__taskMarkersUpdated</b>(<i>editor</i>) 1429 <b>__taskMarkersUpdated</b>(<i>editor</i>)
1422 <p> 1430 <p>
1423 Protected slot to handle the syntaxerrorToggled signal. 1431 Protected slot to handle the taskMarkersUpdated signal.
1424 </p><p>
1425 It checks some syntax error actions and reemits the signal.
1426 </p><dl> 1432 </p><dl>
1427 <dt><i>editor</i></dt> 1433 <dt><i>editor</i></dt>
1428 <dd> 1434 <dd>
1429 editor that sent the signal 1435 editor that sent the signal
1430 </dd> 1436 </dd>
2251 <dd> 2257 <dd>
2252 name of file to be opened (string) 2258 name of file to be opened (string)
2253 </dd> 2259 </dd>
2254 </dl><a NAME="ViewManager.openSourceFile" ID="ViewManager.openSourceFile"></a> 2260 </dl><a NAME="ViewManager.openSourceFile" ID="ViewManager.openSourceFile"></a>
2255 <h4>ViewManager.openSourceFile</h4> 2261 <h4>ViewManager.openSourceFile</h4>
2256 <b>openSourceFile</b>(<i>fn, lineno = None, filetype = "", selection = None</i>) 2262 <b>openSourceFile</b>(<i>fn, lineno = None, filetype = "", selStart = 0, selEnd = 0</i>)
2257 <p> 2263 <p>
2258 Public slot to display a file in an editor. 2264 Public slot to display a file in an editor.
2259 </p><dl> 2265 </p><dl>
2260 <dt><i>fn</i></dt> 2266 <dt><i>fn</i></dt>
2261 <dd> 2267 <dd>
2262 name of file to be opened 2268 name of file to be opened (string)
2263 </dd><dt><i>lineno</i></dt> 2269 </dd><dt><i>lineno</i></dt>
2264 <dd> 2270 <dd>
2265 line number to place the cursor at 2271 line number to place the cursor at (integer)
2266 </dd><dt><i>filetype</i></dt> 2272 </dd><dt><i>filetype</i></dt>
2267 <dd> 2273 <dd>
2268 type of the source file (string) 2274 type of the source file (string)
2269 </dd><dt><i>selection</i></dt> 2275 </dd><dt><i>selStart</i></dt>
2270 <dd> 2276 <dd>
2271 tuple (start, end) of an area to be selected 2277 start of an area to be selected (integer)
2278 </dd><dt><i>selEnd</i></dt>
2279 <dd>
2280 end of an area to be selected (integer)
2272 </dd> 2281 </dd>
2273 </dl><a NAME="ViewManager.preferencesChanged" ID="ViewManager.preferencesChanged"></a> 2282 </dl><a NAME="ViewManager.preferencesChanged" ID="ViewManager.preferencesChanged"></a>
2274 <h4>ViewManager.preferencesChanged</h4> 2283 <h4>ViewManager.preferencesChanged</h4>
2275 <b>preferencesChanged</b>(<i></i>) 2284 <b>preferencesChanged</b>(<i></i>)
2276 <p> 2285 <p>

eric ide

mercurial