|
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.Plugins.PluginSyntaxChecker</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.Plugins.PluginSyntaxChecker</h1> |
|
24 <p> |
|
25 Module implementing the Tabnanny plugin. |
|
26 </p> |
|
27 <h3>Global Attributes</h3> |
|
28 <table> |
|
29 <tr><td>author</td></tr><tr><td>autoactivate</td></tr><tr><td>className</td></tr><tr><td>deactivateable</td></tr><tr><td>error</td></tr><tr><td>longDescription</td></tr><tr><td>name</td></tr><tr><td>packageName</td></tr><tr><td>pyqtApi</td></tr><tr><td>shortDescription</td></tr><tr><td>version</td></tr> |
|
30 </table> |
|
31 <h3>Classes</h3> |
|
32 <table> |
|
33 <tr> |
|
34 <td><a href="#SyntaxCheckerPlugin">SyntaxCheckerPlugin</a></td> |
|
35 <td>Class implementing the Syntax Checker plugin.</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="SyntaxCheckerPlugin" ID="SyntaxCheckerPlugin"></a> |
|
44 <h2>SyntaxCheckerPlugin</h2> |
|
45 <p> |
|
46 Class implementing the Syntax Checker plugin. |
|
47 </p> |
|
48 <h3>Derived from</h3> |
|
49 QObject |
|
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="#SyntaxCheckerPlugin.__init__">SyntaxCheckerPlugin</a></td> |
|
58 <td>Constructor</td> |
|
59 </tr><tr> |
|
60 <td><a href="#SyntaxCheckerPlugin.__editorClosed">__editorClosed</a></td> |
|
61 <td>Private slot called, when an editor was closed.</td> |
|
62 </tr><tr> |
|
63 <td><a href="#SyntaxCheckerPlugin.__editorOpened">__editorOpened</a></td> |
|
64 <td>Private slot called, when a new editor was opened.</td> |
|
65 </tr><tr> |
|
66 <td><a href="#SyntaxCheckerPlugin.__editorShowMenu">__editorShowMenu</a></td> |
|
67 <td>Private slot called, when the the editor context menu or a submenu is about to be shown.</td> |
|
68 </tr><tr> |
|
69 <td><a href="#SyntaxCheckerPlugin.__editorSyntaxCheck">__editorSyntaxCheck</a></td> |
|
70 <td>Private slot to handle the syntax check context menu action of the editors.</td> |
|
71 </tr><tr> |
|
72 <td><a href="#SyntaxCheckerPlugin.__initialize">__initialize</a></td> |
|
73 <td>Private slot to (re)initialize the plugin.</td> |
|
74 </tr><tr> |
|
75 <td><a href="#SyntaxCheckerPlugin.__projectBrowserShowMenu">__projectBrowserShowMenu</a></td> |
|
76 <td>Private slot called, when the the project browser menu or a submenu is about to be shown.</td> |
|
77 </tr><tr> |
|
78 <td><a href="#SyntaxCheckerPlugin.__projectBrowserSyntaxCheck">__projectBrowserSyntaxCheck</a></td> |
|
79 <td>Private method to handle the syntax check context menu action of the project sources browser.</td> |
|
80 </tr><tr> |
|
81 <td><a href="#SyntaxCheckerPlugin.__projectShowMenu">__projectShowMenu</a></td> |
|
82 <td>Private slot called, when the the project menu or a submenu is about to be shown.</td> |
|
83 </tr><tr> |
|
84 <td><a href="#SyntaxCheckerPlugin.__projectSyntaxCheck">__projectSyntaxCheck</a></td> |
|
85 <td>Public slot used to check the project files for bad indentations.</td> |
|
86 </tr><tr> |
|
87 <td><a href="#SyntaxCheckerPlugin.activate">activate</a></td> |
|
88 <td>Public method to activate this plugin.</td> |
|
89 </tr><tr> |
|
90 <td><a href="#SyntaxCheckerPlugin.deactivate">deactivate</a></td> |
|
91 <td>Public method to deactivate this plugin.</td> |
|
92 </tr> |
|
93 </table> |
|
94 <a NAME="SyntaxCheckerPlugin.__init__" ID="SyntaxCheckerPlugin.__init__"></a> |
|
95 <h4>SyntaxCheckerPlugin (Constructor)</h4> |
|
96 <b>SyntaxCheckerPlugin</b>(<i>ui</i>) |
|
97 <p> |
|
98 Constructor |
|
99 </p><dl> |
|
100 <dt><i>ui</i></dt> |
|
101 <dd> |
|
102 reference to the user interface object (UI.UserInterface) |
|
103 </dd> |
|
104 </dl><a NAME="SyntaxCheckerPlugin.__editorClosed" ID="SyntaxCheckerPlugin.__editorClosed"></a> |
|
105 <h4>SyntaxCheckerPlugin.__editorClosed</h4> |
|
106 <b>__editorClosed</b>(<i>editor</i>) |
|
107 <p> |
|
108 Private slot called, when an editor was closed. |
|
109 </p><dl> |
|
110 <dt><i>editor</i></dt> |
|
111 <dd> |
|
112 reference to the editor (QScintilla.Editor) |
|
113 </dd> |
|
114 </dl><a NAME="SyntaxCheckerPlugin.__editorOpened" ID="SyntaxCheckerPlugin.__editorOpened"></a> |
|
115 <h4>SyntaxCheckerPlugin.__editorOpened</h4> |
|
116 <b>__editorOpened</b>(<i>editor</i>) |
|
117 <p> |
|
118 Private slot called, when a new editor was opened. |
|
119 </p><dl> |
|
120 <dt><i>editor</i></dt> |
|
121 <dd> |
|
122 reference to the new editor (QScintilla.Editor) |
|
123 </dd> |
|
124 </dl><a NAME="SyntaxCheckerPlugin.__editorShowMenu" ID="SyntaxCheckerPlugin.__editorShowMenu"></a> |
|
125 <h4>SyntaxCheckerPlugin.__editorShowMenu</h4> |
|
126 <b>__editorShowMenu</b>(<i>menuName, menu, editor</i>) |
|
127 <p> |
|
128 Private slot called, when the the editor context menu or a submenu is |
|
129 about to be shown. |
|
130 </p><dl> |
|
131 <dt><i>menuName</i></dt> |
|
132 <dd> |
|
133 name of the menu to be shown (string) |
|
134 </dd><dt><i>menu</i></dt> |
|
135 <dd> |
|
136 reference to the menu (QMenu) |
|
137 </dd><dt><i>editor</i></dt> |
|
138 <dd> |
|
139 reference to the editor |
|
140 </dd> |
|
141 </dl><a NAME="SyntaxCheckerPlugin.__editorSyntaxCheck" ID="SyntaxCheckerPlugin.__editorSyntaxCheck"></a> |
|
142 <h4>SyntaxCheckerPlugin.__editorSyntaxCheck</h4> |
|
143 <b>__editorSyntaxCheck</b>(<i></i>) |
|
144 <p> |
|
145 Private slot to handle the syntax check context menu action of the editors. |
|
146 </p><a NAME="SyntaxCheckerPlugin.__initialize" ID="SyntaxCheckerPlugin.__initialize"></a> |
|
147 <h4>SyntaxCheckerPlugin.__initialize</h4> |
|
148 <b>__initialize</b>(<i></i>) |
|
149 <p> |
|
150 Private slot to (re)initialize the plugin. |
|
151 </p><a NAME="SyntaxCheckerPlugin.__projectBrowserShowMenu" ID="SyntaxCheckerPlugin.__projectBrowserShowMenu"></a> |
|
152 <h4>SyntaxCheckerPlugin.__projectBrowserShowMenu</h4> |
|
153 <b>__projectBrowserShowMenu</b>(<i>menuName, menu</i>) |
|
154 <p> |
|
155 Private slot called, when the the project browser menu or a submenu is |
|
156 about to be shown. |
|
157 </p><dl> |
|
158 <dt><i>menuName</i></dt> |
|
159 <dd> |
|
160 name of the menu to be shown (string) |
|
161 </dd><dt><i>menu</i></dt> |
|
162 <dd> |
|
163 reference to the menu (QMenu) |
|
164 </dd> |
|
165 </dl><a NAME="SyntaxCheckerPlugin.__projectBrowserSyntaxCheck" ID="SyntaxCheckerPlugin.__projectBrowserSyntaxCheck"></a> |
|
166 <h4>SyntaxCheckerPlugin.__projectBrowserSyntaxCheck</h4> |
|
167 <b>__projectBrowserSyntaxCheck</b>(<i></i>) |
|
168 <p> |
|
169 Private method to handle the syntax check context menu action of the project |
|
170 sources browser. |
|
171 </p><a NAME="SyntaxCheckerPlugin.__projectShowMenu" ID="SyntaxCheckerPlugin.__projectShowMenu"></a> |
|
172 <h4>SyntaxCheckerPlugin.__projectShowMenu</h4> |
|
173 <b>__projectShowMenu</b>(<i>menuName, menu</i>) |
|
174 <p> |
|
175 Private slot called, when the the project menu or a submenu is |
|
176 about to be shown. |
|
177 </p><dl> |
|
178 <dt><i>menuName</i></dt> |
|
179 <dd> |
|
180 name of the menu to be shown (string) |
|
181 </dd><dt><i>menu</i></dt> |
|
182 <dd> |
|
183 reference to the menu (QMenu) |
|
184 </dd> |
|
185 </dl><a NAME="SyntaxCheckerPlugin.__projectSyntaxCheck" ID="SyntaxCheckerPlugin.__projectSyntaxCheck"></a> |
|
186 <h4>SyntaxCheckerPlugin.__projectSyntaxCheck</h4> |
|
187 <b>__projectSyntaxCheck</b>(<i></i>) |
|
188 <p> |
|
189 Public slot used to check the project files for bad indentations. |
|
190 </p><a NAME="SyntaxCheckerPlugin.activate" ID="SyntaxCheckerPlugin.activate"></a> |
|
191 <h4>SyntaxCheckerPlugin.activate</h4> |
|
192 <b>activate</b>(<i></i>) |
|
193 <p> |
|
194 Public method to activate this plugin. |
|
195 </p><dl> |
|
196 <dt>Returns:</dt> |
|
197 <dd> |
|
198 tuple of None and activation status (boolean) |
|
199 </dd> |
|
200 </dl><a NAME="SyntaxCheckerPlugin.deactivate" ID="SyntaxCheckerPlugin.deactivate"></a> |
|
201 <h4>SyntaxCheckerPlugin.deactivate</h4> |
|
202 <b>deactivate</b>(<i></i>) |
|
203 <p> |
|
204 Public method to deactivate this plugin. |
|
205 </p> |
|
206 <div align="right"><a href="#top">Up</a></div> |
|
207 <hr /> |
|
208 </body></html> |