|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric6.QScintilla.EditorAssembly</title> |
|
4 <meta charset="UTF-8"> |
|
5 <style> |
|
6 body { |
|
7 background: #EDECE6; |
|
8 margin: 0em 1em 10em 1em; |
|
9 color: black; |
|
10 } |
|
11 |
|
12 h1 { color: white; background: #85774A; } |
|
13 h2 { color: white; background: #85774A; } |
|
14 h3 { color: white; background: #9D936E; } |
|
15 h4 { color: white; background: #9D936E; } |
|
16 |
|
17 a { color: #BA6D36; } |
|
18 |
|
19 </style> |
|
20 </head> |
|
21 <body><a NAME="top" ID="top"></a> |
|
22 <h1>eric6.QScintilla.EditorAssembly</h1> |
|
23 <p> |
|
24 Module implementing the editor assembly widget containing the navigation |
|
25 combos and the editor widget. |
|
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="#EditorAssembly">EditorAssembly</a></td> |
|
35 <td>Class implementing the editor assembly widget containing the navigation combos and the editor widget.</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="EditorAssembly" ID="EditorAssembly"></a> |
|
44 <h2>EditorAssembly</h2> |
|
45 <p> |
|
46 Class implementing the editor assembly widget containing the navigation |
|
47 combos and the editor widget. |
|
48 </p> |
|
49 <h3>Derived from</h3> |
|
50 QWidget |
|
51 <h3>Class Attributes</h3> |
|
52 <table> |
|
53 <tr><td>None</td></tr> |
|
54 </table> |
|
55 <h3>Class Methods</h3> |
|
56 <table> |
|
57 <tr><td>None</td></tr> |
|
58 </table> |
|
59 <h3>Methods</h3> |
|
60 <table> |
|
61 <tr> |
|
62 <td><a href="#EditorAssembly.__init__">EditorAssembly</a></td> |
|
63 <td>Constructor</td> |
|
64 </tr><tr> |
|
65 <td><a href="#EditorAssembly.__editorCursorLineChanged">__editorCursorLineChanged</a></td> |
|
66 <td>Private slot handling a line change of the cursor of the editor.</td> |
|
67 </tr><tr> |
|
68 <td><a href="#EditorAssembly.__globalsActivated">__globalsActivated</a></td> |
|
69 <td>Private method to jump to the line of the selected global entry and to populate the members combo box.</td> |
|
70 </tr><tr> |
|
71 <td><a href="#EditorAssembly.__membersActivated">__membersActivated</a></td> |
|
72 <td>Private method to jump to the line of the selected members entry.</td> |
|
73 </tr><tr> |
|
74 <td><a href="#EditorAssembly.__parseEditor">__parseEditor</a></td> |
|
75 <td>Private method to parse the editor source and repopulate the globals combo.</td> |
|
76 </tr><tr> |
|
77 <td><a href="#EditorAssembly.__resetParseTimer">__resetParseTimer</a></td> |
|
78 <td>Private slot to reset the parse timer.</td> |
|
79 </tr><tr> |
|
80 <td><a href="#EditorAssembly.getEditor">getEditor</a></td> |
|
81 <td>Public method to get the reference to the editor widget.</td> |
|
82 </tr><tr> |
|
83 <td><a href="#EditorAssembly.shutdownTimer">shutdownTimer</a></td> |
|
84 <td>Public method to stop and disconnect the timer.</td> |
|
85 </tr> |
|
86 </table> |
|
87 <h3>Static Methods</h3> |
|
88 <table> |
|
89 <tr><td>None</td></tr> |
|
90 </table> |
|
91 <a NAME="EditorAssembly.__init__" ID="EditorAssembly.__init__"></a> |
|
92 <h4>EditorAssembly (Constructor)</h4> |
|
93 <b>EditorAssembly</b>(<i>dbs, fn="", vm=None, filetype="", editor=None, tv=None</i>) |
|
94 <p> |
|
95 Constructor |
|
96 </p><dl> |
|
97 <dt><i>dbs</i></dt> |
|
98 <dd> |
|
99 reference to the debug server object |
|
100 </dd><dt><i>fn</i></dt> |
|
101 <dd> |
|
102 name of the file to be opened (string). If it is None, |
|
103 a new (empty) editor is opened |
|
104 </dd><dt><i>vm</i></dt> |
|
105 <dd> |
|
106 reference to the view manager object |
|
107 (ViewManager.ViewManager) |
|
108 </dd><dt><i>filetype</i></dt> |
|
109 <dd> |
|
110 type of the source file (string) |
|
111 </dd><dt><i>editor</i></dt> |
|
112 <dd> |
|
113 reference to an Editor object, if this is a cloned view |
|
114 </dd><dt><i>tv</i></dt> |
|
115 <dd> |
|
116 reference to the task viewer object |
|
117 </dd> |
|
118 </dl><a NAME="EditorAssembly.__editorCursorLineChanged" ID="EditorAssembly.__editorCursorLineChanged"></a> |
|
119 <h4>EditorAssembly.__editorCursorLineChanged</h4> |
|
120 <b>__editorCursorLineChanged</b>(<i>lineno</i>) |
|
121 <p> |
|
122 Private slot handling a line change of the cursor of the editor. |
|
123 </p><dl> |
|
124 <dt><i>lineno</i></dt> |
|
125 <dd> |
|
126 line number of the cursor (integer) |
|
127 </dd> |
|
128 </dl><a NAME="EditorAssembly.__globalsActivated" ID="EditorAssembly.__globalsActivated"></a> |
|
129 <h4>EditorAssembly.__globalsActivated</h4> |
|
130 <b>__globalsActivated</b>(<i>index, moveCursor=True</i>) |
|
131 <p> |
|
132 Private method to jump to the line of the selected global entry and to |
|
133 populate the members combo box. |
|
134 </p><dl> |
|
135 <dt><i>index</i></dt> |
|
136 <dd> |
|
137 index of the selected entry (integer) |
|
138 </dd><dt><i>moveCursor=</i></dt> |
|
139 <dd> |
|
140 flag indicating to move the editor cursor |
|
141 (boolean) |
|
142 </dd> |
|
143 </dl><a NAME="EditorAssembly.__membersActivated" ID="EditorAssembly.__membersActivated"></a> |
|
144 <h4>EditorAssembly.__membersActivated</h4> |
|
145 <b>__membersActivated</b>(<i>index, moveCursor=True</i>) |
|
146 <p> |
|
147 Private method to jump to the line of the selected members entry. |
|
148 </p><dl> |
|
149 <dt><i>index</i></dt> |
|
150 <dd> |
|
151 index of the selected entry (integer) |
|
152 </dd><dt><i>moveCursor=</i></dt> |
|
153 <dd> |
|
154 flag indicating to move the editor cursor |
|
155 (boolean) |
|
156 </dd> |
|
157 </dl><a NAME="EditorAssembly.__parseEditor" ID="EditorAssembly.__parseEditor"></a> |
|
158 <h4>EditorAssembly.__parseEditor</h4> |
|
159 <b>__parseEditor</b>(<i></i>) |
|
160 <p> |
|
161 Private method to parse the editor source and repopulate the globals |
|
162 combo. |
|
163 </p><a NAME="EditorAssembly.__resetParseTimer" ID="EditorAssembly.__resetParseTimer"></a> |
|
164 <h4>EditorAssembly.__resetParseTimer</h4> |
|
165 <b>__resetParseTimer</b>(<i></i>) |
|
166 <p> |
|
167 Private slot to reset the parse timer. |
|
168 </p><a NAME="EditorAssembly.getEditor" ID="EditorAssembly.getEditor"></a> |
|
169 <h4>EditorAssembly.getEditor</h4> |
|
170 <b>getEditor</b>(<i></i>) |
|
171 <p> |
|
172 Public method to get the reference to the editor widget. |
|
173 </p><dl> |
|
174 <dt>Returns:</dt> |
|
175 <dd> |
|
176 reference to the editor widget (Editor) |
|
177 </dd> |
|
178 </dl><a NAME="EditorAssembly.shutdownTimer" ID="EditorAssembly.shutdownTimer"></a> |
|
179 <h4>EditorAssembly.shutdownTimer</h4> |
|
180 <b>shutdownTimer</b>(<i></i>) |
|
181 <p> |
|
182 Public method to stop and disconnect the timer. |
|
183 </p> |
|
184 <div align="right"><a href="#top">Up</a></div> |
|
185 <hr /> |
|
186 </body></html> |