QScintilla/MiniEditor.py

changeset 97
c4086afea02b
parent 55
b5c84934de9c
child 163
8f0630371845
equal deleted inserted replaced
96:9624a110667d 97:c4086afea02b
5 5
6 """ 6 """
7 Module implementing a minimalistic editor for simple editing tasks. 7 Module implementing a minimalistic editor for simple editing tasks.
8 """ 8 """
9 9
10 import sys
11 import os 10 import os
12 import re 11 import re
13 12
14 from PyQt4.QtCore import * 13 from PyQt4.QtCore import *
15 from PyQt4.QtGui import * 14 from PyQt4.QtGui import *
16 from PyQt4.Qsci import QsciScintilla 15 from PyQt4.Qsci import QsciScintilla
17 16
18 from E5Gui.E5Application import e5App
19 from E5Gui.E5Action import E5Action, createActionGroup 17 from E5Gui.E5Action import E5Action, createActionGroup
20 18
21 from . import Lexers 19 from . import Lexers
22 from .QsciScintillaCompat import QsciScintillaCompat, QSCINTILLA_VERSION 20 from .QsciScintillaCompat import QsciScintillaCompat
23 from .SearchReplaceWidget import SearchReplaceWidget 21 from .SearchReplaceWidget import SearchReplaceWidget
24 22
25 import UI.PixmapCache 23 import UI.PixmapCache
26 import UI.Config 24 import UI.Config
27 25
2075 self.lexer_.setDefaultFont(font) 2073 self.lexer_.setDefaultFont(font)
2076 self.lexer_.readSettings(Preferences.Prefs.settings, "Scintilla") 2074 self.lexer_.readSettings(Preferences.Prefs.settings, "Scintilla")
2077 2075
2078 # now set the lexer properties 2076 # now set the lexer properties
2079 self.lexer_.initProperties() 2077 self.lexer_.initProperties()
2080 2078 ##
2081 # initialize the auto indent style of the lexer 2079 ## # initialize the auto indent style of the lexer
2082 ais = self.lexer_.autoIndentStyle() 2080 ## ais = self.lexer_.autoIndentStyle()
2083 2081
2084 def __styleNeeded(self, position): 2082 def __styleNeeded(self, position):
2085 """ 2083 """
2086 Private slot to handle the need for more styling. 2084 Private slot to handle the need for more styling.
2087 2085

eric ide

mercurial