22 |
22 |
23 from E5Gui.E5Application import e5App |
23 from E5Gui.E5Application import e5App |
24 from E5Gui import E5FileDialog, E5MessageBox |
24 from E5Gui import E5FileDialog, E5MessageBox |
25 from E5Utilities.E5Cache import E5Cache |
25 from E5Utilities.E5Cache import E5Cache |
26 |
26 |
27 from .QsciScintillaCompat import QsciScintillaCompat, QSCINTILLA_VERSION |
27 from .QsciScintillaCompat import QsciScintillaCompat |
28 from .EditorMarkerMap import EditorMarkerMap |
28 from .EditorMarkerMap import EditorMarkerMap |
29 |
29 |
30 import Preferences |
30 import Preferences |
31 import Utilities |
31 import Utilities |
32 from Utilities import MouseUtilities |
32 from Utilities import MouseUtilities |
4401 self.setCaretLineAlwaysVisible( |
4401 self.setCaretLineAlwaysVisible( |
4402 Preferences.getEditor("CaretLineAlwaysVisible")) |
4402 Preferences.getEditor("CaretLineAlwaysVisible")) |
4403 self.caretWidth = Preferences.getEditor("CaretWidth") |
4403 self.caretWidth = Preferences.getEditor("CaretWidth") |
4404 self.setCaretWidth(self.caretWidth) |
4404 self.setCaretWidth(self.caretWidth) |
4405 self.caretLineFrameWidth = Preferences.getEditor("CaretLineFrameWidth") |
4405 self.caretLineFrameWidth = Preferences.getEditor("CaretLineFrameWidth") |
4406 if QSCINTILLA_VERSION() >= 0x020B00: |
4406 self.setCaretLineFrameWidth(self.caretLineFrameWidth) |
4407 self.setCaretLineFrameWidth(self.caretLineFrameWidth) |
|
4408 self.useMonospaced = Preferences.getEditor("UseMonospacedFont") |
4407 self.useMonospaced = Preferences.getEditor("UseMonospacedFont") |
4409 self.setMonospaced(self.useMonospaced) |
4408 self.setMonospaced(self.useMonospaced) |
4410 edgeMode = Preferences.getEditor("EdgeMode") |
4409 edgeMode = Preferences.getEditor("EdgeMode") |
4411 edge = QsciScintilla.EdgeMode(edgeMode) |
4410 edge = QsciScintilla.EdgeMode(edgeMode) |
4412 self.setEdgeMode(edge) |
4411 self.setEdgeMode(edge) |