|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.Preferences.ConfigurationPages.EditorHighlightersPage</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> |
|
22 <a NAME="top" ID="top"></a> |
|
23 <h1>eric7.Preferences.ConfigurationPages.EditorHighlightersPage</h1> |
|
24 |
|
25 <p> |
|
26 Module implementing the Editor Highlighter Associations configuration page. |
|
27 </p> |
|
28 <h3>Global Attributes</h3> |
|
29 |
|
30 <table> |
|
31 <tr><td>None</td></tr> |
|
32 </table> |
|
33 <h3>Classes</h3> |
|
34 |
|
35 <table> |
|
36 |
|
37 <tr> |
|
38 <td><a href="#EditorHighlightersPage">EditorHighlightersPage</a></td> |
|
39 <td>Class implementing the Editor Highlighter Associations configuration page.</td> |
|
40 </tr> |
|
41 </table> |
|
42 <h3>Functions</h3> |
|
43 |
|
44 <table> |
|
45 |
|
46 <tr> |
|
47 <td><a href="#create">create</a></td> |
|
48 <td>Module function to create the configuration page.</td> |
|
49 </tr> |
|
50 </table> |
|
51 <hr /> |
|
52 <hr /> |
|
53 <a NAME="EditorHighlightersPage" ID="EditorHighlightersPage"></a> |
|
54 <h2>EditorHighlightersPage</h2> |
|
55 |
|
56 <p> |
|
57 Class implementing the Editor Highlighter Associations configuration page. |
|
58 </p> |
|
59 <h3>Derived from</h3> |
|
60 ConfigurationPageBase, Ui_EditorHighlightersPage |
|
61 <h3>Class Attributes</h3> |
|
62 |
|
63 <table> |
|
64 <tr><td>None</td></tr> |
|
65 </table> |
|
66 <h3>Class Methods</h3> |
|
67 |
|
68 <table> |
|
69 <tr><td>None</td></tr> |
|
70 </table> |
|
71 <h3>Methods</h3> |
|
72 |
|
73 <table> |
|
74 |
|
75 <tr> |
|
76 <td><a href="#EditorHighlightersPage.__init__">EditorHighlightersPage</a></td> |
|
77 <td>Constructor</td> |
|
78 </tr> |
|
79 <tr> |
|
80 <td><a href="#EditorHighlightersPage.on_addLexerButton_clicked">on_addLexerButton_clicked</a></td> |
|
81 <td>Private slot to add the lexer association displayed to the list.</td> |
|
82 </tr> |
|
83 <tr> |
|
84 <td><a href="#EditorHighlightersPage.on_deleteLexerButton_clicked">on_deleteLexerButton_clicked</a></td> |
|
85 <td>Private slot to delete the currently selected lexer association of the list.</td> |
|
86 </tr> |
|
87 <tr> |
|
88 <td><a href="#EditorHighlightersPage.on_editorLexerCombo_currentIndexChanged">on_editorLexerCombo_currentIndexChanged</a></td> |
|
89 <td>Private slot to handle the selection of a lexer.</td> |
|
90 </tr> |
|
91 <tr> |
|
92 <td><a href="#EditorHighlightersPage.on_editorLexerList_itemActivated">on_editorLexerList_itemActivated</a></td> |
|
93 <td>Private slot to handle the activated signal of the lexer association list.</td> |
|
94 </tr> |
|
95 <tr> |
|
96 <td><a href="#EditorHighlightersPage.on_editorLexerList_itemClicked">on_editorLexerList_itemClicked</a></td> |
|
97 <td>Private slot to handle the clicked signal of the lexer association list.</td> |
|
98 </tr> |
|
99 <tr> |
|
100 <td><a href="#EditorHighlightersPage.save">save</a></td> |
|
101 <td>Public slot to save the Editor Highlighter Associations configuration.</td> |
|
102 </tr> |
|
103 </table> |
|
104 <h3>Static Methods</h3> |
|
105 |
|
106 <table> |
|
107 <tr><td>None</td></tr> |
|
108 </table> |
|
109 |
|
110 <a NAME="EditorHighlightersPage.__init__" ID="EditorHighlightersPage.__init__"></a> |
|
111 <h4>EditorHighlightersPage (Constructor)</h4> |
|
112 <b>EditorHighlightersPage</b>(<i>lexers</i>) |
|
113 |
|
114 <p> |
|
115 Constructor |
|
116 </p> |
|
117 <dl> |
|
118 |
|
119 <dt><i>lexers</i></dt> |
|
120 <dd> |
|
121 reference to the lexers dictionary |
|
122 </dd> |
|
123 </dl> |
|
124 <a NAME="EditorHighlightersPage.on_addLexerButton_clicked" ID="EditorHighlightersPage.on_addLexerButton_clicked"></a> |
|
125 <h4>EditorHighlightersPage.on_addLexerButton_clicked</h4> |
|
126 <b>on_addLexerButton_clicked</b>(<i></i>) |
|
127 |
|
128 <p> |
|
129 Private slot to add the lexer association displayed to the list. |
|
130 </p> |
|
131 <a NAME="EditorHighlightersPage.on_deleteLexerButton_clicked" ID="EditorHighlightersPage.on_deleteLexerButton_clicked"></a> |
|
132 <h4>EditorHighlightersPage.on_deleteLexerButton_clicked</h4> |
|
133 <b>on_deleteLexerButton_clicked</b>(<i></i>) |
|
134 |
|
135 <p> |
|
136 Private slot to delete the currently selected lexer association of the |
|
137 list. |
|
138 </p> |
|
139 <a NAME="EditorHighlightersPage.on_editorLexerCombo_currentIndexChanged" ID="EditorHighlightersPage.on_editorLexerCombo_currentIndexChanged"></a> |
|
140 <h4>EditorHighlightersPage.on_editorLexerCombo_currentIndexChanged</h4> |
|
141 <b>on_editorLexerCombo_currentIndexChanged</b>(<i>index</i>) |
|
142 |
|
143 <p> |
|
144 Private slot to handle the selection of a lexer. |
|
145 </p> |
|
146 <dl> |
|
147 |
|
148 <dt><i>index</i> (int)</dt> |
|
149 <dd> |
|
150 index of the current item |
|
151 </dd> |
|
152 </dl> |
|
153 <a NAME="EditorHighlightersPage.on_editorLexerList_itemActivated" ID="EditorHighlightersPage.on_editorLexerList_itemActivated"></a> |
|
154 <h4>EditorHighlightersPage.on_editorLexerList_itemActivated</h4> |
|
155 <b>on_editorLexerList_itemActivated</b>(<i>itm, column</i>) |
|
156 |
|
157 <p> |
|
158 Private slot to handle the activated signal of the lexer association |
|
159 list. |
|
160 </p> |
|
161 <dl> |
|
162 |
|
163 <dt><i>itm</i></dt> |
|
164 <dd> |
|
165 reference to the selecte item (QTreeWidgetItem) |
|
166 </dd> |
|
167 <dt><i>column</i></dt> |
|
168 <dd> |
|
169 column the item was clicked or activated (integer) |
|
170 (ignored) |
|
171 </dd> |
|
172 </dl> |
|
173 <a NAME="EditorHighlightersPage.on_editorLexerList_itemClicked" ID="EditorHighlightersPage.on_editorLexerList_itemClicked"></a> |
|
174 <h4>EditorHighlightersPage.on_editorLexerList_itemClicked</h4> |
|
175 <b>on_editorLexerList_itemClicked</b>(<i>itm, column</i>) |
|
176 |
|
177 <p> |
|
178 Private slot to handle the clicked signal of the lexer association |
|
179 list. |
|
180 </p> |
|
181 <dl> |
|
182 |
|
183 <dt><i>itm</i></dt> |
|
184 <dd> |
|
185 reference to the selecte item (QTreeWidgetItem) |
|
186 </dd> |
|
187 <dt><i>column</i></dt> |
|
188 <dd> |
|
189 column the item was clicked or activated (integer) |
|
190 (ignored) |
|
191 </dd> |
|
192 </dl> |
|
193 <a NAME="EditorHighlightersPage.save" ID="EditorHighlightersPage.save"></a> |
|
194 <h4>EditorHighlightersPage.save</h4> |
|
195 <b>save</b>(<i></i>) |
|
196 |
|
197 <p> |
|
198 Public slot to save the Editor Highlighter Associations configuration. |
|
199 </p> |
|
200 <div align="right"><a href="#top">Up</a></div> |
|
201 <hr /> |
|
202 <hr /> |
|
203 <a NAME="create" ID="create"></a> |
|
204 <h2>create</h2> |
|
205 <b>create</b>(<i>dlg</i>) |
|
206 |
|
207 <p> |
|
208 Module function to create the configuration page. |
|
209 </p> |
|
210 <dl> |
|
211 |
|
212 <dt><i>dlg</i></dt> |
|
213 <dd> |
|
214 reference to the configuration dialog |
|
215 </dd> |
|
216 </dl> |
|
217 <dl> |
|
218 <dt>Return:</dt> |
|
219 <dd> |
|
220 reference to the instantiated page (ConfigurationPageBase) |
|
221 </dd> |
|
222 </dl> |
|
223 <div align="right"><a href="#top">Up</a></div> |
|
224 <hr /> |
|
225 </body></html> |