|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric6.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><a NAME="top" ID="top"></a> |
|
22 <h1>eric6.Project.LexerAssociationDialog</h1> |
|
23 <p> |
|
24 Module implementing a dialog to enter lexer associations for the project. |
|
25 </p> |
|
26 <h3>Global Attributes</h3> |
|
27 <table> |
|
28 <tr><td>None</td></tr> |
|
29 </table> |
|
30 <h3>Classes</h3> |
|
31 <table> |
|
32 <tr> |
|
33 <td><a href="#LexerAssociationDialog">LexerAssociationDialog</a></td> |
|
34 <td>Class implementing a dialog to enter lexer associations for the project.</td> |
|
35 </tr> |
|
36 </table> |
|
37 <h3>Functions</h3> |
|
38 <table> |
|
39 <tr><td>None</td></tr> |
|
40 </table> |
|
41 <hr /><hr /> |
|
42 <a NAME="LexerAssociationDialog" ID="LexerAssociationDialog"></a> |
|
43 <h2>LexerAssociationDialog</h2> |
|
44 <p> |
|
45 Class implementing a dialog to enter lexer associations for the project. |
|
46 </p> |
|
47 <h3>Derived from</h3> |
|
48 QDialog, Ui_LexerAssociationDialog |
|
49 <h3>Class Attributes</h3> |
|
50 <table> |
|
51 <tr><td>None</td></tr> |
|
52 </table> |
|
53 <h3>Class Methods</h3> |
|
54 <table> |
|
55 <tr><td>None</td></tr> |
|
56 </table> |
|
57 <h3>Methods</h3> |
|
58 <table> |
|
59 <tr> |
|
60 <td><a href="#LexerAssociationDialog.__init__">LexerAssociationDialog</a></td> |
|
61 <td>Constructor</td> |
|
62 </tr><tr> |
|
63 <td><a href="#LexerAssociationDialog.on_addLexerButton_clicked">on_addLexerButton_clicked</a></td> |
|
64 <td>Private slot to add the lexer association displayed to the list.</td> |
|
65 </tr><tr> |
|
66 <td><a href="#LexerAssociationDialog.on_deleteLexerButton_clicked">on_deleteLexerButton_clicked</a></td> |
|
67 <td>Private slot to delete the currently selected lexer association of the list.</td> |
|
68 </tr><tr> |
|
69 <td><a href="#LexerAssociationDialog.on_editorLexerCombo_currentIndexChanged">on_editorLexerCombo_currentIndexChanged</a></td> |
|
70 <td>Private slot to handle the selection of a lexer.</td> |
|
71 </tr><tr> |
|
72 <td><a href="#LexerAssociationDialog.on_editorLexerList_itemActivated">on_editorLexerList_itemActivated</a></td> |
|
73 <td>Private slot to handle the activated signal of the lexer association list.</td> |
|
74 </tr><tr> |
|
75 <td><a href="#LexerAssociationDialog.on_editorLexerList_itemClicked">on_editorLexerList_itemClicked</a></td> |
|
76 <td>Private slot to handle the clicked signal of the lexer association list.</td> |
|
77 </tr><tr> |
|
78 <td><a href="#LexerAssociationDialog.transferData">transferData</a></td> |
|
79 <td>Public slot to transfer the associations into the projects data structure.</td> |
|
80 </tr> |
|
81 </table> |
|
82 <h3>Static Methods</h3> |
|
83 <table> |
|
84 <tr><td>None</td></tr> |
|
85 </table> |
|
86 <a NAME="LexerAssociationDialog.__init__" ID="LexerAssociationDialog.__init__"></a> |
|
87 <h4>LexerAssociationDialog (Constructor)</h4> |
|
88 <b>LexerAssociationDialog</b>(<i>project, parent=None</i>) |
|
89 <p> |
|
90 Constructor |
|
91 </p><dl> |
|
92 <dt><i>project</i></dt> |
|
93 <dd> |
|
94 reference to the project object |
|
95 </dd><dt><i>parent</i></dt> |
|
96 <dd> |
|
97 reference to the parent widget (QWidget) |
|
98 </dd> |
|
99 </dl><a NAME="LexerAssociationDialog.on_addLexerButton_clicked" ID="LexerAssociationDialog.on_addLexerButton_clicked"></a> |
|
100 <h4>LexerAssociationDialog.on_addLexerButton_clicked</h4> |
|
101 <b>on_addLexerButton_clicked</b>(<i></i>) |
|
102 <p> |
|
103 Private slot to add the lexer association displayed to the list. |
|
104 </p><a NAME="LexerAssociationDialog.on_deleteLexerButton_clicked" ID="LexerAssociationDialog.on_deleteLexerButton_clicked"></a> |
|
105 <h4>LexerAssociationDialog.on_deleteLexerButton_clicked</h4> |
|
106 <b>on_deleteLexerButton_clicked</b>(<i></i>) |
|
107 <p> |
|
108 Private slot to delete the currently selected lexer association of the |
|
109 list. |
|
110 </p><a NAME="LexerAssociationDialog.on_editorLexerCombo_currentIndexChanged" ID="LexerAssociationDialog.on_editorLexerCombo_currentIndexChanged"></a> |
|
111 <h4>LexerAssociationDialog.on_editorLexerCombo_currentIndexChanged</h4> |
|
112 <b>on_editorLexerCombo_currentIndexChanged</b>(<i>text</i>) |
|
113 <p> |
|
114 Private slot to handle the selection of a lexer. |
|
115 </p><dl> |
|
116 <dt><i>text</i></dt> |
|
117 <dd> |
|
118 text of the line edit (string) |
|
119 </dd> |
|
120 </dl><a NAME="LexerAssociationDialog.on_editorLexerList_itemActivated" ID="LexerAssociationDialog.on_editorLexerList_itemActivated"></a> |
|
121 <h4>LexerAssociationDialog.on_editorLexerList_itemActivated</h4> |
|
122 <b>on_editorLexerList_itemActivated</b>(<i>itm, column</i>) |
|
123 <p> |
|
124 Private slot to handle the activated signal of the lexer association |
|
125 list. |
|
126 </p><dl> |
|
127 <dt><i>itm</i></dt> |
|
128 <dd> |
|
129 reference to the selecte item (QTreeWidgetItem) |
|
130 </dd><dt><i>column</i></dt> |
|
131 <dd> |
|
132 column the item was clicked or activated (integer) |
|
133 (ignored) |
|
134 </dd> |
|
135 </dl><a NAME="LexerAssociationDialog.on_editorLexerList_itemClicked" ID="LexerAssociationDialog.on_editorLexerList_itemClicked"></a> |
|
136 <h4>LexerAssociationDialog.on_editorLexerList_itemClicked</h4> |
|
137 <b>on_editorLexerList_itemClicked</b>(<i>itm, column</i>) |
|
138 <p> |
|
139 Private slot to handle the clicked signal of the lexer association |
|
140 list. |
|
141 </p><dl> |
|
142 <dt><i>itm</i></dt> |
|
143 <dd> |
|
144 reference to the selecte item (QTreeWidgetItem) |
|
145 </dd><dt><i>column</i></dt> |
|
146 <dd> |
|
147 column the item was clicked or activated (integer) |
|
148 (ignored) |
|
149 </dd> |
|
150 </dl><a NAME="LexerAssociationDialog.transferData" ID="LexerAssociationDialog.transferData"></a> |
|
151 <h4>LexerAssociationDialog.transferData</h4> |
|
152 <b>transferData</b>(<i></i>) |
|
153 <p> |
|
154 Public slot to transfer the associations into the projects data |
|
155 structure. |
|
156 </p> |
|
157 <div align="right"><a href="#top">Up</a></div> |
|
158 <hr /> |
|
159 </body></html> |