142 self.initColour("FoldMarkersBackground", |
142 self.initColour("FoldMarkersBackground", |
143 self.foldmarkersBackgroundButton, |
143 self.foldmarkersBackgroundButton, |
144 Preferences.getEditorColour) |
144 Preferences.getEditorColour) |
145 |
145 |
146 self.editorColours = {} |
146 self.editorColours = {} |
147 self.editorColours["AnnotationsWarningForeground"] = \ |
147 self.editorColours["AnnotationsWarningForeground"] = QColor( |
148 QColor(Preferences.getEditorColour("AnnotationsWarningForeground")) |
148 Preferences.getEditorColour("AnnotationsWarningForeground")) |
149 self.editorColours["AnnotationsWarningBackground"] = \ |
149 self.editorColours["AnnotationsWarningBackground"] = QColor( |
150 QColor(Preferences.getEditorColour("AnnotationsWarningBackground")) |
150 Preferences.getEditorColour("AnnotationsWarningBackground")) |
151 self.editorColours["AnnotationsErrorForeground"] = \ |
151 self.editorColours["AnnotationsErrorForeground"] = QColor( |
152 QColor(Preferences.getEditorColour("AnnotationsErrorForeground")) |
152 Preferences.getEditorColour("AnnotationsErrorForeground")) |
153 self.editorColours["AnnotationsErrorBackground"] = \ |
153 self.editorColours["AnnotationsErrorBackground"] = QColor( |
154 QColor(Preferences.getEditorColour("AnnotationsErrorBackground")) |
154 Preferences.getEditorColour("AnnotationsErrorBackground")) |
155 self.editorColours["AnnotationsStyleForeground"] = \ |
155 self.editorColours["AnnotationsStyleForeground"] = QColor( |
156 QColor(Preferences.getEditorColour("AnnotationsStyleForeground")) |
156 Preferences.getEditorColour("AnnotationsStyleForeground")) |
157 self.editorColours["AnnotationsStyleBackground"] = \ |
157 self.editorColours["AnnotationsStyleBackground"] = QColor( |
158 QColor(Preferences.getEditorColour("AnnotationsStyleBackground")) |
158 Preferences.getEditorColour("AnnotationsStyleBackground")) |
159 |
159 |
160 self.eolCheckBox.setChecked(Preferences.getEditor("ShowEOL")) |
160 self.eolCheckBox.setChecked(Preferences.getEditor("ShowEOL")) |
161 self.wrapModeComboBox.setCurrentIndex(self.wrapModeComboBox.findData( |
161 self.wrapModeComboBox.setCurrentIndex(self.wrapModeComboBox.findData( |
162 Preferences.getEditor("WrapLongLinesMode"))) |
162 Preferences.getEditor("WrapLongLinesMode"))) |
163 self.wrapVisualComboBox.setCurrentIndex( |
163 self.wrapVisualComboBox.setCurrentIndex( |