27 def __init__(self, project, parent=None): |
27 def __init__(self, project, parent=None): |
28 """ |
28 """ |
29 Constructor |
29 Constructor |
30 |
30 |
31 @param project reference to the project object |
31 @param project reference to the project object |
32 @param parent reference to the parent widget (QWidget) |
32 @type Project |
|
33 @param parent reference to the parent widget |
|
34 @type QWidget |
33 """ |
35 """ |
34 super().__init__(parent) |
36 super().__init__(parent) |
35 self.setupUi(self) |
37 self.setupUi(self) |
36 |
38 |
37 self.editorLexerList.headerItem().setText( |
39 self.editorLexerList.headerItem().setText( |
111 def on_editorLexerList_itemClicked(self, itm, column): |
113 def on_editorLexerList_itemClicked(self, itm, column): |
112 """ |
114 """ |
113 Private slot to handle the clicked signal of the lexer association |
115 Private slot to handle the clicked signal of the lexer association |
114 list. |
116 list. |
115 |
117 |
116 @param itm reference to the selecte item (QTreeWidgetItem) |
118 @param itm reference to the selecte item |
117 @param column column the item was clicked or activated (integer) |
119 @type QTreeWidgetItem |
118 (ignored) |
120 @param column column the item was clicked or activated |
|
121 @type int |
119 """ |
122 """ |
120 if itm is None: |
123 if itm is None: |
121 self.editorFileExtEdit.clear() |
124 self.editorFileExtEdit.clear() |
122 self.editorLexerCombo.setCurrentIndex(0) |
125 self.editorLexerCombo.setCurrentIndex(0) |
123 self.pygmentsLexerCombo.setCurrentIndex(0) |
126 self.pygmentsLexerCombo.setCurrentIndex(0) |
137 def on_editorLexerList_itemActivated(self, itm, column): |
140 def on_editorLexerList_itemActivated(self, itm, column): |
138 """ |
141 """ |
139 Private slot to handle the activated signal of the lexer association |
142 Private slot to handle the activated signal of the lexer association |
140 list. |
143 list. |
141 |
144 |
142 @param itm reference to the selecte item (QTreeWidgetItem) |
145 @param itm reference to the selecte item |
143 @param column column the item was clicked or activated (integer) |
146 @type QTreeWidgetItem |
144 (ignored) |
147 @param column column the item was clicked or activated |
|
148 @type int |
145 """ |
149 """ |
146 self.on_editorLexerList_itemClicked(itm, column) |
150 self.on_editorLexerList_itemClicked(itm, column) |
147 |
151 |
148 @pyqtSlot(int) |
152 @pyqtSlot(int) |
149 def on_editorLexerCombo_currentIndexChanged(self, index): |
153 def on_editorLexerCombo_currentIndexChanged(self, index): |