Preferences/ConfigurationPages/EditorHighlightersPage.py

changeset 945
8cd4d08fa9f6
parent 791
9ec2ac20e54e
child 1131
7781e396c903
equal deleted inserted replaced
944:1b59c4ba121e 945:8cd4d08fa9f6
16 16
17 from .ConfigurationPageBase import ConfigurationPageBase 17 from .ConfigurationPageBase import ConfigurationPageBase
18 from .Ui_EditorHighlightersPage import Ui_EditorHighlightersPage 18 from .Ui_EditorHighlightersPage import Ui_EditorHighlightersPage
19 19
20 import Preferences 20 import Preferences
21
21 22
22 class EditorHighlightersPage(ConfigurationPageBase, Ui_EditorHighlightersPage): 23 class EditorHighlightersPage(ConfigurationPageBase, Ui_EditorHighlightersPage):
23 """ 24 """
24 Class implementing the Editor Highlighter Associations configuration page. 25 Class implementing the Editor Highlighter Associations configuration page.
25 """ 26 """
91 del itm 92 del itm
92 QTreeWidgetItem(self.editorLexerList, [ext, lexer]) 93 QTreeWidgetItem(self.editorLexerList, [ext, lexer])
93 self.editorFileExtEdit.clear() 94 self.editorFileExtEdit.clear()
94 self.editorLexerCombo.setCurrentIndex(0) 95 self.editorLexerCombo.setCurrentIndex(0)
95 self.pygmentsLexerCombo.setCurrentIndex(0) 96 self.pygmentsLexerCombo.setCurrentIndex(0)
96 self.editorLexerList.sortItems(self.editorLexerList.sortColumn(), 97 self.editorLexerList.sortItems(self.editorLexerList.sortColumn(),
97 self.editorLexerList.header().sortIndicatorOrder()) 98 self.editorLexerList.header().sortIndicatorOrder())
98 99
99 @pyqtSlot() 100 @pyqtSlot()
100 def on_deleteLexerButton_clicked(self): 101 def on_deleteLexerButton_clicked(self):
101 """ 102 """
154 self.pygmentsLabel.setEnabled(True) 155 self.pygmentsLabel.setEnabled(True)
155 else: 156 else:
156 self.pygmentsLexerCombo.setEnabled(False) 157 self.pygmentsLexerCombo.setEnabled(False)
157 self.pygmentsLabel.setEnabled(False) 158 self.pygmentsLabel.setEnabled(False)
158 159
160
159 def create(dlg): 161 def create(dlg):
160 """ 162 """
161 Module function to create the configuration page. 163 Module function to create the configuration page.
162 164
163 @param dlg reference to the configuration dialog 165 @param dlg reference to the configuration dialog

eric ide

mercurial