Documentation/Source/eric5.Preferences.ConfigurationPages.EditorHighlightersPage.html

changeset 58
37f0444c3479
parent 21
b88a0e6268bd
child 409
0ea528e80202
equal deleted inserted replaced
57:81326a94fdca 58:37f0444c3479
20 </style> 20 </style>
21 </head> 21 </head>
22 <body><a NAME="top" ID="top"></a> 22 <body><a NAME="top" ID="top"></a>
23 <h1>eric5.Preferences.ConfigurationPages.EditorHighlightersPage</h1> 23 <h1>eric5.Preferences.ConfigurationPages.EditorHighlightersPage</h1>
24 <p> 24 <p>
25 &#77;&#111;&#100;&#117;&#108;&#101; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#69;&#100;&#105;&#116;&#111;&#114; &#72;&#105;&#103;&#104;&#108;&#105;&#103;&#104;&#116;&#101;&#114; &#65;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110;&#115; &#99;&#111;&#110;&#102;&#105;&#103;&#117;&#114;&#97;&#116;&#105;&#111;&#110; &#112;&#97;&#103;&#101;. 25 Module implementing the Editor Highlighter Associations configuration page.
26 </p> 26 </p>
27 <h3>Global Attributes</h3> 27 <h3>Global Attributes</h3>
28 <table> 28 <table>
29 <tr><td>None</td></tr> 29 <tr><td>None</td></tr>
30 </table> 30 </table>
31 <h3>Classes</h3> 31 <h3>Classes</h3>
32 <table> 32 <table>
33 <tr> 33 <tr>
34 <td><a href="#EditorHighlightersPage">EditorHighlightersPage</a></td> 34 <td><a href="#EditorHighlightersPage">EditorHighlightersPage</a></td>
35 <td>&#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#69;&#100;&#105;&#116;&#111;&#114; &#72;&#105;&#103;&#104;&#108;&#105;&#103;&#104;&#116;&#101;&#114; &#65;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110;&#115; &#99;&#111;&#110;&#102;&#105;&#103;&#117;&#114;&#97;&#116;&#105;&#111;&#110; &#112;&#97;&#103;&#101;.</td> 35 <td>Class implementing the Editor Highlighter Associations configuration page.</td>
36 </tr> 36 </tr>
37 </table> 37 </table>
38 <h3>Functions</h3> 38 <h3>Functions</h3>
39 <table> 39 <table>
40 <tr> 40 <tr>
41 <td><a href="#create">create</a></td> 41 <td><a href="#create">create</a></td>
42 <td>&#77;&#111;&#100;&#117;&#108;&#101; &#102;&#117;&#110;&#99;&#116;&#105;&#111;&#110; &#116;&#111; &#99;&#114;&#101;&#97;&#116;&#101; &#116;&#104;&#101; &#99;&#111;&#110;&#102;&#105;&#103;&#117;&#114;&#97;&#116;&#105;&#111;&#110; &#112;&#97;&#103;&#101;.</td> 42 <td>Module function to create the configuration page.</td>
43 </tr> 43 </tr>
44 </table> 44 </table>
45 <hr /><hr /> 45 <hr /><hr />
46 <a NAME="EditorHighlightersPage" ID="EditorHighlightersPage"></a> 46 <a NAME="EditorHighlightersPage" ID="EditorHighlightersPage"></a>
47 <h2>EditorHighlightersPage</h2> 47 <h2>EditorHighlightersPage</h2>
48 <p> 48 <p>
49 &#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#69;&#100;&#105;&#116;&#111;&#114; &#72;&#105;&#103;&#104;&#108;&#105;&#103;&#104;&#116;&#101;&#114; &#65;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110;&#115; &#99;&#111;&#110;&#102;&#105;&#103;&#117;&#114;&#97;&#116;&#105;&#111;&#110; &#112;&#97;&#103;&#101;. 49 Class implementing the Editor Highlighter Associations configuration page.
50 </p> 50 </p>
51 <h3>Derived from</h3> 51 <h3>Derived from</h3>
52 ConfigurationPageBase, Ui_EditorHighlightersPage 52 ConfigurationPageBase, Ui_EditorHighlightersPage
53 <h3>Class Attributes</h3> 53 <h3>Class Attributes</h3>
54 <table> 54 <table>
56 </table> 56 </table>
57 <h3>Methods</h3> 57 <h3>Methods</h3>
58 <table> 58 <table>
59 <tr> 59 <tr>
60 <td><a href="#EditorHighlightersPage.__init__">EditorHighlightersPage</a></td> 60 <td><a href="#EditorHighlightersPage.__init__">EditorHighlightersPage</a></td>
61 <td>&#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;</td> 61 <td>Constructor</td>
62 </tr><tr> 62 </tr><tr>
63 <td><a href="#EditorHighlightersPage.on_addLexerButton_clicked">on_addLexerButton_clicked</a></td> 63 <td><a href="#EditorHighlightersPage.on_addLexerButton_clicked">on_addLexerButton_clicked</a></td>
64 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#97;&#100;&#100; &#116;&#104;&#101; &#108;&#101;x&#101;&#114; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110; &#100;&#105;&#115;&#112;&#108;&#97;y&#101;&#100; &#116;&#111; &#116;&#104;&#101; &#108;&#105;&#115;&#116;.</td> 64 <td>Private slot to add the lexer association displayed to the list.</td>
65 </tr><tr> 65 </tr><tr>
66 <td><a href="#EditorHighlightersPage.on_deleteLexerButton_clicked">on_deleteLexerButton_clicked</a></td> 66 <td><a href="#EditorHighlightersPage.on_deleteLexerButton_clicked">on_deleteLexerButton_clicked</a></td>
67 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#100;&#101;&#108;&#101;&#116;&#101; &#116;&#104;&#101; &#99;&#117;&#114;&#114;&#101;&#110;&#116;&#108;y &#115;&#101;&#108;&#101;&#99;&#116;&#101;&#100; &#108;&#101;x&#101;&#114; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110; &#111;&#102; &#116;&#104;&#101; &#108;&#105;&#115;&#116;.</td> 67 <td>Private slot to delete the currently selected lexer association of the list.</td>
68 </tr><tr> 68 </tr><tr>
69 <td><a href="#EditorHighlightersPage.on_editorLexerCombo_currentIndexChanged">on_editorLexerCombo_currentIndexChanged</a></td> 69 <td><a href="#EditorHighlightersPage.on_editorLexerCombo_currentIndexChanged">on_editorLexerCombo_currentIndexChanged</a></td>
70 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#115;&#101;&#108;&#101;&#99;&#116;&#105;&#111;&#110; &#111;&#102; &#97; &#108;&#101;x&#101;&#114;.</td> 70 <td>Private slot to handle the selection of a lexer.</td>
71 </tr><tr> 71 </tr><tr>
72 <td><a href="#EditorHighlightersPage.on_editorLexerList_itemActivated">on_editorLexerList_itemActivated</a></td> 72 <td><a href="#EditorHighlightersPage.on_editorLexerList_itemActivated">on_editorLexerList_itemActivated</a></td>
73 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#97;&#99;&#116;&#105;v&#97;&#116;&#101;&#100; &#115;&#105;&#103;&#110;&#97;&#108; &#111;&#102; &#116;&#104;&#101; &#108;&#101;x&#101;&#114; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110; &#108;&#105;&#115;&#116;.</td> 73 <td>Private slot to handle the activated signal of the lexer association list.</td>
74 </tr><tr> 74 </tr><tr>
75 <td><a href="#EditorHighlightersPage.on_editorLexerList_itemClicked">on_editorLexerList_itemClicked</a></td> 75 <td><a href="#EditorHighlightersPage.on_editorLexerList_itemClicked">on_editorLexerList_itemClicked</a></td>
76 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#99;&#108;&#105;&#99;&#107;&#101;&#100; &#115;&#105;&#103;&#110;&#97;&#108; &#111;&#102; &#116;&#104;&#101; &#108;&#101;x&#101;&#114; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110; &#108;&#105;&#115;&#116;.</td> 76 <td>Private slot to handle the clicked signal of the lexer association list.</td>
77 </tr><tr> 77 </tr><tr>
78 <td><a href="#EditorHighlightersPage.save">save</a></td> 78 <td><a href="#EditorHighlightersPage.save">save</a></td>
79 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#115;&#108;&#111;&#116; &#116;&#111; &#115;&#97;v&#101; &#116;&#104;&#101; &#69;&#100;&#105;&#116;&#111;&#114; &#72;&#105;&#103;&#104;&#108;&#105;&#103;&#104;&#116;&#101;&#114; &#65;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110;&#115; &#99;&#111;&#110;&#102;&#105;&#103;&#117;&#114;&#97;&#116;&#105;&#111;&#110;.</td> 79 <td>Public slot to save the Editor Highlighter Associations configuration.</td>
80 </tr> 80 </tr>
81 </table> 81 </table>
82 <a NAME="EditorHighlightersPage.__init__" ID="EditorHighlightersPage.__init__"></a> 82 <a NAME="EditorHighlightersPage.__init__" ID="EditorHighlightersPage.__init__"></a>
83 <h4>EditorHighlightersPage (Constructor)</h4> 83 <h4>EditorHighlightersPage (Constructor)</h4>
84 <b>EditorHighlightersPage</b>(<i>lexers</i>) 84 <b>EditorHighlightersPage</b>(<i>lexers</i>)
85 <p> 85 <p>
86 &#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114; 86 Constructor
87 </p><dl> 87 </p><dl>
88 <dt><i>lexers</i></dt> 88 <dt><i>lexers</i></dt>
89 <dd> 89 <dd>
90 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#108;&#101;x&#101;&#114;&#115; &#100;&#105;&#99;&#116;&#105;&#111;&#110;&#97;&#114;y 90 reference to the lexers dictionary
91 </dd> 91 </dd>
92 </dl><a NAME="EditorHighlightersPage.on_addLexerButton_clicked" ID="EditorHighlightersPage.on_addLexerButton_clicked"></a> 92 </dl><a NAME="EditorHighlightersPage.on_addLexerButton_clicked" ID="EditorHighlightersPage.on_addLexerButton_clicked"></a>
93 <h4>EditorHighlightersPage.on_addLexerButton_clicked</h4> 93 <h4>EditorHighlightersPage.on_addLexerButton_clicked</h4>
94 <b>on_addLexerButton_clicked</b>(<i></i>) 94 <b>on_addLexerButton_clicked</b>(<i></i>)
95 <p> 95 <p>
96 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#97;&#100;&#100; &#116;&#104;&#101; &#108;&#101;x&#101;&#114; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110; &#100;&#105;&#115;&#112;&#108;&#97;y&#101;&#100; &#116;&#111; &#116;&#104;&#101; &#108;&#105;&#115;&#116;. 96 Private slot to add the lexer association displayed to the list.
97 </p><a NAME="EditorHighlightersPage.on_deleteLexerButton_clicked" ID="EditorHighlightersPage.on_deleteLexerButton_clicked"></a> 97 </p><a NAME="EditorHighlightersPage.on_deleteLexerButton_clicked" ID="EditorHighlightersPage.on_deleteLexerButton_clicked"></a>
98 <h4>EditorHighlightersPage.on_deleteLexerButton_clicked</h4> 98 <h4>EditorHighlightersPage.on_deleteLexerButton_clicked</h4>
99 <b>on_deleteLexerButton_clicked</b>(<i></i>) 99 <b>on_deleteLexerButton_clicked</b>(<i></i>)
100 <p> 100 <p>
101 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#100;&#101;&#108;&#101;&#116;&#101; &#116;&#104;&#101; &#99;&#117;&#114;&#114;&#101;&#110;&#116;&#108;y &#115;&#101;&#108;&#101;&#99;&#116;&#101;&#100; &#108;&#101;x&#101;&#114; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110; &#111;&#102; &#116;&#104;&#101; &#108;&#105;&#115;&#116;. 101 Private slot to delete the currently selected lexer association of the list.
102 </p><a NAME="EditorHighlightersPage.on_editorLexerCombo_currentIndexChanged" ID="EditorHighlightersPage.on_editorLexerCombo_currentIndexChanged"></a> 102 </p><a NAME="EditorHighlightersPage.on_editorLexerCombo_currentIndexChanged" ID="EditorHighlightersPage.on_editorLexerCombo_currentIndexChanged"></a>
103 <h4>EditorHighlightersPage.on_editorLexerCombo_currentIndexChanged</h4> 103 <h4>EditorHighlightersPage.on_editorLexerCombo_currentIndexChanged</h4>
104 <b>on_editorLexerCombo_currentIndexChanged</b>(<i>text</i>) 104 <b>on_editorLexerCombo_currentIndexChanged</b>(<i>text</i>)
105 <p> 105 <p>
106 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#115;&#101;&#108;&#101;&#99;&#116;&#105;&#111;&#110; &#111;&#102; &#97; &#108;&#101;x&#101;&#114;. 106 Private slot to handle the selection of a lexer.
107 </p><a NAME="EditorHighlightersPage.on_editorLexerList_itemActivated" ID="EditorHighlightersPage.on_editorLexerList_itemActivated"></a> 107 </p><a NAME="EditorHighlightersPage.on_editorLexerList_itemActivated" ID="EditorHighlightersPage.on_editorLexerList_itemActivated"></a>
108 <h4>EditorHighlightersPage.on_editorLexerList_itemActivated</h4> 108 <h4>EditorHighlightersPage.on_editorLexerList_itemActivated</h4>
109 <b>on_editorLexerList_itemActivated</b>(<i>itm, column</i>) 109 <b>on_editorLexerList_itemActivated</b>(<i>itm, column</i>)
110 <p> 110 <p>
111 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#97;&#99;&#116;&#105;v&#97;&#116;&#101;&#100; &#115;&#105;&#103;&#110;&#97;&#108; &#111;&#102; &#116;&#104;&#101; &#108;&#101;x&#101;&#114; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110; &#108;&#105;&#115;&#116;. 111 Private slot to handle the activated signal of the lexer association list.
112 </p><dl> 112 </p><dl>
113 <dt><i>itm</i></dt> 113 <dt><i>itm</i></dt>
114 <dd> 114 <dd>
115 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#115;&#101;&#108;&#101;&#99;&#116;&#101; &#105;&#116;&#101;&#109; (&#81;&#84;&#114;&#101;&#101;&#87;&#105;&#100;&#103;&#101;&#116;&#73;&#116;&#101;&#109;) 115 reference to the selecte item (QTreeWidgetItem)
116 </dd><dt><i>column</i></dt> 116 </dd><dt><i>column</i></dt>
117 <dd> 117 <dd>
118 &#99;&#111;&#108;&#117;&#109;&#110; &#116;&#104;&#101; &#105;&#116;&#101;&#109; w&#97;&#115; &#99;&#108;&#105;&#99;&#107;&#101;&#100; &#111;&#114; &#97;&#99;&#116;&#105;v&#97;&#116;&#101;&#100; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) (&#105;&#103;&#110;&#111;&#114;&#101;&#100;) 118 column the item was clicked or activated (integer) (ignored)
119 </dd> 119 </dd>
120 </dl><a NAME="EditorHighlightersPage.on_editorLexerList_itemClicked" ID="EditorHighlightersPage.on_editorLexerList_itemClicked"></a> 120 </dl><a NAME="EditorHighlightersPage.on_editorLexerList_itemClicked" ID="EditorHighlightersPage.on_editorLexerList_itemClicked"></a>
121 <h4>EditorHighlightersPage.on_editorLexerList_itemClicked</h4> 121 <h4>EditorHighlightersPage.on_editorLexerList_itemClicked</h4>
122 <b>on_editorLexerList_itemClicked</b>(<i>itm, column</i>) 122 <b>on_editorLexerList_itemClicked</b>(<i>itm, column</i>)
123 <p> 123 <p>
124 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#99;&#108;&#105;&#99;&#107;&#101;&#100; &#115;&#105;&#103;&#110;&#97;&#108; &#111;&#102; &#116;&#104;&#101; &#108;&#101;x&#101;&#114; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110; &#108;&#105;&#115;&#116;. 124 Private slot to handle the clicked signal of the lexer association list.
125 </p><dl> 125 </p><dl>
126 <dt><i>itm</i></dt> 126 <dt><i>itm</i></dt>
127 <dd> 127 <dd>
128 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#115;&#101;&#108;&#101;&#99;&#116;&#101; &#105;&#116;&#101;&#109; (&#81;&#84;&#114;&#101;&#101;&#87;&#105;&#100;&#103;&#101;&#116;&#73;&#116;&#101;&#109;) 128 reference to the selecte item (QTreeWidgetItem)
129 </dd><dt><i>column</i></dt> 129 </dd><dt><i>column</i></dt>
130 <dd> 130 <dd>
131 &#99;&#111;&#108;&#117;&#109;&#110; &#116;&#104;&#101; &#105;&#116;&#101;&#109; w&#97;&#115; &#99;&#108;&#105;&#99;&#107;&#101;&#100; &#111;&#114; &#97;&#99;&#116;&#105;v&#97;&#116;&#101;&#100; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) (&#105;&#103;&#110;&#111;&#114;&#101;&#100;) 131 column the item was clicked or activated (integer) (ignored)
132 </dd> 132 </dd>
133 </dl><a NAME="EditorHighlightersPage.save" ID="EditorHighlightersPage.save"></a> 133 </dl><a NAME="EditorHighlightersPage.save" ID="EditorHighlightersPage.save"></a>
134 <h4>EditorHighlightersPage.save</h4> 134 <h4>EditorHighlightersPage.save</h4>
135 <b>save</b>(<i></i>) 135 <b>save</b>(<i></i>)
136 <p> 136 <p>
137 &#80;&#117;&#98;&#108;&#105;&#99; &#115;&#108;&#111;&#116; &#116;&#111; &#115;&#97;v&#101; &#116;&#104;&#101; &#69;&#100;&#105;&#116;&#111;&#114; &#72;&#105;&#103;&#104;&#108;&#105;&#103;&#104;&#116;&#101;&#114; &#65;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110;&#115; &#99;&#111;&#110;&#102;&#105;&#103;&#117;&#114;&#97;&#116;&#105;&#111;&#110;. 137 Public slot to save the Editor Highlighter Associations configuration.
138 </p> 138 </p>
139 <div align="right"><a href="#top">Up</a></div> 139 <div align="right"><a href="#top">Up</a></div>
140 <hr /><hr /> 140 <hr /><hr />
141 <a NAME="create" ID="create"></a> 141 <a NAME="create" ID="create"></a>
142 <h2>create</h2> 142 <h2>create</h2>
143 <b>create</b>(<i>dlg</i>) 143 <b>create</b>(<i>dlg</i>)
144 <p> 144 <p>
145 &#77;&#111;&#100;&#117;&#108;&#101; &#102;&#117;&#110;&#99;&#116;&#105;&#111;&#110; &#116;&#111; &#99;&#114;&#101;&#97;&#116;&#101; &#116;&#104;&#101; &#99;&#111;&#110;&#102;&#105;&#103;&#117;&#114;&#97;&#116;&#105;&#111;&#110; &#112;&#97;&#103;&#101;. 145 Module function to create the configuration page.
146 </p><dl> 146 </p><dl>
147 <dt><i>dlg</i></dt> 147 <dt><i>dlg</i></dt>
148 <dd> 148 <dd>
149 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#99;&#111;&#110;&#102;&#105;&#103;&#117;&#114;&#97;&#116;&#105;&#111;&#110; &#100;&#105;&#97;&#108;&#111;&#103; 149 reference to the configuration dialog
150 </dd> 150 </dd>
151 </dl> 151 </dl>
152 <div align="right"><a href="#top">Up</a></div> 152 <div align="right"><a href="#top">Up</a></div>
153 <hr /> 153 <hr />
154 </body></html> 154 </body></html>

eric ide

mercurial