eric6/QScintilla/Editor.py

changeset 7960
e8fc383322f7
parent 7923
91e843545d9a
child 7969
62eff8b34a8d
equal deleted inserted replaced
7959:44e15eda6506 7960:e8fc383322f7
2 2
3 # Copyright (c) 2002 - 2021 Detlev Offenbach <detlev@die-offenbachs.de> 3 # Copyright (c) 2002 - 2021 Detlev Offenbach <detlev@die-offenbachs.de>
4 # 4 #
5 5
6 """ 6 """
7 Module implementing the editor component of the eric6 IDE. 7 Module implementing the editor component of the eric IDE.
8 """ 8 """
9 9
10 import os 10 import os
11 import re 11 import re
12 import difflib 12 import difflib
44 TemplateCompletionListID = 2 44 TemplateCompletionListID = 2
45 45
46 46
47 class Editor(QsciScintillaCompat): 47 class Editor(QsciScintillaCompat):
48 """ 48 """
49 Class implementing the editor component of the eric6 IDE. 49 Class implementing the editor component of the eric IDE.
50 50
51 @signal modificationStatusChanged(bool, QsciScintillaCompat) emitted when 51 @signal modificationStatusChanged(bool, QsciScintillaCompat) emitted when
52 the modification status has changed 52 the modification status has changed
53 @signal undoAvailable(bool) emitted to signal the undo availability 53 @signal undoAvailable(bool) emitted to signal the undo availability
54 @signal redoAvailable(bool) emitted to signal the redo availability 54 @signal redoAvailable(bool) emitted to signal the redo availability
6989 if Preferences.getEditor("AutoReopen") and not self.isModified(): 6989 if Preferences.getEditor("AutoReopen") and not self.isModified():
6990 self.refresh() 6990 self.refresh()
6991 else: 6991 else:
6992 msg = self.tr( 6992 msg = self.tr(
6993 """<p>The file <b>{0}</b> has been changed while it""" 6993 """<p>The file <b>{0}</b> has been changed while it"""
6994 """ was opened in eric6. Reread it?</p>""" 6994 """ was opened in eric. Reread it?</p>"""
6995 ).format(self.fileName) 6995 ).format(self.fileName)
6996 yesDefault = True 6996 yesDefault = True
6997 if self.isModified(): 6997 if self.isModified():
6998 msg += self.tr( 6998 msg += self.tr(
6999 """<br><b>Warning:</b> You will lose""" 6999 """<br><b>Warning:</b> You will lose"""

eric ide

mercurial