|
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>eric5.Project.LexerAssociationDialog</title> |
|
6 <style> |
|
7 b'body {\n background:white;\n margin: 0em 1em 10em 1em;\n color: black;\n}\n\nh1 { color: white; background: #4FA4FF; }\nh2 { color: white; background: #4FA4FF; }\nh3 { color: white; background: #00557F; }\nh4 { color: white; background: #00557F; }\n \na { color: #AA5500; }\n' |
|
8 </style> |
|
9 </head> |
|
10 <body><a NAME="top" ID="top"></a> |
|
11 <h1>eric5.Project.LexerAssociationDialog</h1> |
|
12 <p> |
|
13 Module implementing a dialog to enter lexer associations for the project. |
|
14 </p> |
|
15 <h3>Global Attributes</h3> |
|
16 <table> |
|
17 <tr><td>None</td></tr> |
|
18 </table> |
|
19 <h3>Classes</h3> |
|
20 <table> |
|
21 <tr> |
|
22 <td><a href="#LexerAssociationDialog">LexerAssociationDialog</a></td> |
|
23 <td>Class implementing a dialog to enter lexer associations for the project.</td> |
|
24 </tr> |
|
25 </table> |
|
26 <h3>Functions</h3> |
|
27 <table> |
|
28 <tr><td>None</td></tr> |
|
29 </table> |
|
30 <hr /><hr /> |
|
31 <a NAME="LexerAssociationDialog" ID="LexerAssociationDialog"></a> |
|
32 <h2>LexerAssociationDialog</h2> |
|
33 <p> |
|
34 Class implementing a dialog to enter lexer associations for the project. |
|
35 </p> |
|
36 <h3>Derived from</h3> |
|
37 QDialog, Ui_LexerAssociationDialog |
|
38 <h3>Class Attributes</h3> |
|
39 <table> |
|
40 <tr><td>None</td></tr> |
|
41 </table> |
|
42 <h3>Methods</h3> |
|
43 <table> |
|
44 <tr> |
|
45 <td><a href="#LexerAssociationDialog.__init__">LexerAssociationDialog</a></td> |
|
46 <td>Constructor</td> |
|
47 </tr><tr> |
|
48 <td><a href="#LexerAssociationDialog.on_addLexerButton_clicked">on_addLexerButton_clicked</a></td> |
|
49 <td>Private slot to add the lexer association displayed to the list.</td> |
|
50 </tr><tr> |
|
51 <td><a href="#LexerAssociationDialog.on_deleteLexerButton_clicked">on_deleteLexerButton_clicked</a></td> |
|
52 <td>Private slot to delete the currently selected lexer association of the list.</td> |
|
53 </tr><tr> |
|
54 <td><a href="#LexerAssociationDialog.on_editorLexerCombo_currentIndexChanged">on_editorLexerCombo_currentIndexChanged</a></td> |
|
55 <td>Private slot to handle the selection of a lexer.</td> |
|
56 </tr><tr> |
|
57 <td><a href="#LexerAssociationDialog.on_editorLexerList_itemActivated">on_editorLexerList_itemActivated</a></td> |
|
58 <td>Private slot to handle the activated signal of the lexer association list.</td> |
|
59 </tr><tr> |
|
60 <td><a href="#LexerAssociationDialog.on_editorLexerList_itemClicked">on_editorLexerList_itemClicked</a></td> |
|
61 <td>Private slot to handle the clicked signal of the lexer association list.</td> |
|
62 </tr><tr> |
|
63 <td><a href="#LexerAssociationDialog.transferData">transferData</a></td> |
|
64 <td>Public slot to transfer the associations into the projects data structure.</td> |
|
65 </tr> |
|
66 </table> |
|
67 <a NAME="LexerAssociationDialog.__init__" ID="LexerAssociationDialog.__init__"></a> |
|
68 <h4>LexerAssociationDialog (Constructor)</h4> |
|
69 <b>LexerAssociationDialog</b>(<i>project, parent = None</i>) |
|
70 <p> |
|
71 Constructor |
|
72 </p><dl> |
|
73 <dt><i>project</i></dt> |
|
74 <dd> |
|
75 reference to the project object |
|
76 </dd><dt><i>parent</i></dt> |
|
77 <dd> |
|
78 reference to the parent widget (QWidget) |
|
79 </dd> |
|
80 </dl><a NAME="LexerAssociationDialog.on_addLexerButton_clicked" ID="LexerAssociationDialog.on_addLexerButton_clicked"></a> |
|
81 <h4>LexerAssociationDialog.on_addLexerButton_clicked</h4> |
|
82 <b>on_addLexerButton_clicked</b>(<i></i>) |
|
83 <p> |
|
84 Private slot to add the lexer association displayed to the list. |
|
85 </p><a NAME="LexerAssociationDialog.on_deleteLexerButton_clicked" ID="LexerAssociationDialog.on_deleteLexerButton_clicked"></a> |
|
86 <h4>LexerAssociationDialog.on_deleteLexerButton_clicked</h4> |
|
87 <b>on_deleteLexerButton_clicked</b>(<i></i>) |
|
88 <p> |
|
89 Private slot to delete the currently selected lexer association of the list. |
|
90 </p><a NAME="LexerAssociationDialog.on_editorLexerCombo_currentIndexChanged" ID="LexerAssociationDialog.on_editorLexerCombo_currentIndexChanged"></a> |
|
91 <h4>LexerAssociationDialog.on_editorLexerCombo_currentIndexChanged</h4> |
|
92 <b>on_editorLexerCombo_currentIndexChanged</b>(<i>text</i>) |
|
93 <p> |
|
94 Private slot to handle the selection of a lexer. |
|
95 </p><dl> |
|
96 <dt><i>text</i></dt> |
|
97 <dd> |
|
98 text of the line edit (string) |
|
99 </dd> |
|
100 </dl><a NAME="LexerAssociationDialog.on_editorLexerList_itemActivated" ID="LexerAssociationDialog.on_editorLexerList_itemActivated"></a> |
|
101 <h4>LexerAssociationDialog.on_editorLexerList_itemActivated</h4> |
|
102 <b>on_editorLexerList_itemActivated</b>(<i>itm, column</i>) |
|
103 <p> |
|
104 Private slot to handle the activated signal of the lexer association list. |
|
105 </p><dl> |
|
106 <dt><i>itm</i></dt> |
|
107 <dd> |
|
108 reference to the selecte item (QTreeWidgetItem) |
|
109 </dd><dt><i>column</i></dt> |
|
110 <dd> |
|
111 column the item was clicked or activated (integer) (ignored) |
|
112 </dd> |
|
113 </dl><a NAME="LexerAssociationDialog.on_editorLexerList_itemClicked" ID="LexerAssociationDialog.on_editorLexerList_itemClicked"></a> |
|
114 <h4>LexerAssociationDialog.on_editorLexerList_itemClicked</h4> |
|
115 <b>on_editorLexerList_itemClicked</b>(<i>itm, column</i>) |
|
116 <p> |
|
117 Private slot to handle the clicked signal of the lexer association list. |
|
118 </p><dl> |
|
119 <dt><i>itm</i></dt> |
|
120 <dd> |
|
121 reference to the selecte item (QTreeWidgetItem) |
|
122 </dd><dt><i>column</i></dt> |
|
123 <dd> |
|
124 column the item was clicked or activated (integer) (ignored) |
|
125 </dd> |
|
126 </dl><a NAME="LexerAssociationDialog.transferData" ID="LexerAssociationDialog.transferData"></a> |
|
127 <h4>LexerAssociationDialog.transferData</h4> |
|
128 <b>transferData</b>(<i></i>) |
|
129 <p> |
|
130 Public slot to transfer the associations into the projects data structure. |
|
131 </p> |
|
132 <div align="right"><a href="#top">Up</a></div> |
|
133 <hr /> |
|
134 </body></html> |