|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.Project.LexerAssociationDialog</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.Project.LexerAssociationDialog</h1> |
|
24 |
|
25 <p> |
|
26 Module implementing a dialog to enter lexer associations for the project. |
|
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="#LexerAssociationDialog">LexerAssociationDialog</a></td> |
|
39 <td>Class implementing a dialog to enter lexer associations for the project.</td> |
|
40 </tr> |
|
41 </table> |
|
42 <h3>Functions</h3> |
|
43 |
|
44 <table> |
|
45 <tr><td>None</td></tr> |
|
46 </table> |
|
47 <hr /> |
|
48 <hr /> |
|
49 <a NAME="LexerAssociationDialog" ID="LexerAssociationDialog"></a> |
|
50 <h2>LexerAssociationDialog</h2> |
|
51 |
|
52 <p> |
|
53 Class implementing a dialog to enter lexer associations for the project. |
|
54 </p> |
|
55 <h3>Derived from</h3> |
|
56 QDialog, Ui_LexerAssociationDialog |
|
57 <h3>Class Attributes</h3> |
|
58 |
|
59 <table> |
|
60 <tr><td>None</td></tr> |
|
61 </table> |
|
62 <h3>Class Methods</h3> |
|
63 |
|
64 <table> |
|
65 <tr><td>None</td></tr> |
|
66 </table> |
|
67 <h3>Methods</h3> |
|
68 |
|
69 <table> |
|
70 |
|
71 <tr> |
|
72 <td><a href="#LexerAssociationDialog.__init__">LexerAssociationDialog</a></td> |
|
73 <td>Constructor</td> |
|
74 </tr> |
|
75 <tr> |
|
76 <td><a href="#LexerAssociationDialog.on_addLexerButton_clicked">on_addLexerButton_clicked</a></td> |
|
77 <td>Private slot to add the lexer association displayed to the list.</td> |
|
78 </tr> |
|
79 <tr> |
|
80 <td><a href="#LexerAssociationDialog.on_deleteLexerButton_clicked">on_deleteLexerButton_clicked</a></td> |
|
81 <td>Private slot to delete the currently selected lexer association of the list.</td> |
|
82 </tr> |
|
83 <tr> |
|
84 <td><a href="#LexerAssociationDialog.on_editorLexerCombo_currentIndexChanged">on_editorLexerCombo_currentIndexChanged</a></td> |
|
85 <td>Private slot to handle the selection of a lexer.</td> |
|
86 </tr> |
|
87 <tr> |
|
88 <td><a href="#LexerAssociationDialog.on_editorLexerList_itemActivated">on_editorLexerList_itemActivated</a></td> |
|
89 <td>Private slot to handle the activated signal of the lexer association list.</td> |
|
90 </tr> |
|
91 <tr> |
|
92 <td><a href="#LexerAssociationDialog.on_editorLexerList_itemClicked">on_editorLexerList_itemClicked</a></td> |
|
93 <td>Private slot to handle the clicked signal of the lexer association list.</td> |
|
94 </tr> |
|
95 <tr> |
|
96 <td><a href="#LexerAssociationDialog.transferData">transferData</a></td> |
|
97 <td>Public slot to transfer the associations into the projects data structure.</td> |
|
98 </tr> |
|
99 </table> |
|
100 <h3>Static Methods</h3> |
|
101 |
|
102 <table> |
|
103 <tr><td>None</td></tr> |
|
104 </table> |
|
105 |
|
106 <a NAME="LexerAssociationDialog.__init__" ID="LexerAssociationDialog.__init__"></a> |
|
107 <h4>LexerAssociationDialog (Constructor)</h4> |
|
108 <b>LexerAssociationDialog</b>(<i>project, parent=None</i>) |
|
109 |
|
110 <p> |
|
111 Constructor |
|
112 </p> |
|
113 <dl> |
|
114 |
|
115 <dt><i>project</i></dt> |
|
116 <dd> |
|
117 reference to the project object |
|
118 </dd> |
|
119 <dt><i>parent</i></dt> |
|
120 <dd> |
|
121 reference to the parent widget (QWidget) |
|
122 </dd> |
|
123 </dl> |
|
124 <a NAME="LexerAssociationDialog.on_addLexerButton_clicked" ID="LexerAssociationDialog.on_addLexerButton_clicked"></a> |
|
125 <h4>LexerAssociationDialog.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="LexerAssociationDialog.on_deleteLexerButton_clicked" ID="LexerAssociationDialog.on_deleteLexerButton_clicked"></a> |
|
132 <h4>LexerAssociationDialog.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="LexerAssociationDialog.on_editorLexerCombo_currentIndexChanged" ID="LexerAssociationDialog.on_editorLexerCombo_currentIndexChanged"></a> |
|
140 <h4>LexerAssociationDialog.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="LexerAssociationDialog.on_editorLexerList_itemActivated" ID="LexerAssociationDialog.on_editorLexerList_itemActivated"></a> |
|
154 <h4>LexerAssociationDialog.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="LexerAssociationDialog.on_editorLexerList_itemClicked" ID="LexerAssociationDialog.on_editorLexerList_itemClicked"></a> |
|
174 <h4>LexerAssociationDialog.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="LexerAssociationDialog.transferData" ID="LexerAssociationDialog.transferData"></a> |
|
194 <h4>LexerAssociationDialog.transferData</h4> |
|
195 <b>transferData</b>(<i></i>) |
|
196 |
|
197 <p> |
|
198 Public slot to transfer the associations into the projects data |
|
199 structure. |
|
200 </p> |
|
201 <div align="right"><a href="#top">Up</a></div> |
|
202 <hr /> |
|
203 </body></html> |