src/eric7/Preferences/ConfigurationPages/EditorHighlightersPage.py

branch
eric7
changeset 10428
a071d4065202
parent 10373
093dcebe5ecb
child 10439
21c28b0f9e41
equal deleted inserted replaced
10427:3733e2b23cf7 10428:a071d4065202
29 def __init__(self, lexers): 29 def __init__(self, lexers):
30 """ 30 """
31 Constructor 31 Constructor
32 32
33 @param lexers reference to the lexers dictionary 33 @param lexers reference to the lexers dictionary
34 @type dict
34 """ 35 """
35 super().__init__() 36 super().__init__()
36 self.setupUi(self) 37 self.setupUi(self)
37 self.setObjectName("EditorHighlightersPage") 38 self.setObjectName("EditorHighlightersPage")
38 39
126 def on_editorLexerList_itemClicked(self, itm, column): 127 def on_editorLexerList_itemClicked(self, itm, column):
127 """ 128 """
128 Private slot to handle the clicked signal of the lexer association 129 Private slot to handle the clicked signal of the lexer association
129 list. 130 list.
130 131
131 @param itm reference to the selected item (QTreeWidgetItem) 132 @param itm reference to the selected item
132 @param column column the item was clicked or activated (integer) 133 @type QTreeWidgetItem
133 (ignored) 134 @param column column the item was clicked or activated (ignored)
135 @type int
134 """ 136 """
135 if itm is None: 137 if itm is None:
136 self.editorFileExtEdit.clear() 138 self.editorFileExtEdit.clear()
137 self.editorLexerCombo.setCurrentIndex(0) 139 self.editorLexerCombo.setCurrentIndex(0)
138 self.pygmentsLexerCombo.setCurrentIndex(0) 140 self.pygmentsLexerCombo.setCurrentIndex(0)
152 def on_editorLexerList_itemActivated(self, itm, column): 154 def on_editorLexerList_itemActivated(self, itm, column):
153 """ 155 """
154 Private slot to handle the activated signal of the lexer association 156 Private slot to handle the activated signal of the lexer association
155 list. 157 list.
156 158
157 @param itm reference to the selecte item (QTreeWidgetItem) 159 @param itm reference to the selecte item
158 @param column column the item was clicked or activated (integer) 160 @type QTreeWidgetItem
159 (ignored) 161 @param column column the item was clicked or activated
162 @type int
160 """ 163 """
161 self.on_editorLexerList_itemClicked(itm, column) 164 self.on_editorLexerList_itemClicked(itm, column)
162 165
163 @pyqtSlot(int) 166 @pyqtSlot(int)
164 def on_editorLexerCombo_currentIndexChanged(self, index): 167 def on_editorLexerCombo_currentIndexChanged(self, index):
180 def create(dlg): 183 def create(dlg):
181 """ 184 """
182 Module function to create the configuration page. 185 Module function to create the configuration page.
183 186
184 @param dlg reference to the configuration dialog 187 @param dlg reference to the configuration dialog
185 @return reference to the instantiated page (ConfigurationPageBase) 188 @type ConfigurationDialog
189 @return reference to the instantiated page
190 @rtype ConfigurationPageBase
186 """ 191 """
187 page = EditorHighlightersPage(dlg.getLexers()) 192 page = EditorHighlightersPage(dlg.getLexers())
188 return page 193 return page

eric ide

mercurial