QScintilla/Editor.py

changeset 3670
f0cb7579c0b4
parent 3656
441956d8fce5
child 3778
0c5bc18da740
equal deleted inserted replaced
3669:ac84ac3c0f05 3670:f0cb7579c0b4
2 2
3 # Copyright (c) 2002 - 2014 Detlev Offenbach <detlev@die-offenbachs.de> 3 # Copyright (c) 2002 - 2014 Detlev Offenbach <detlev@die-offenbachs.de>
4 # 4 #
5 5
6 """ 6 """
7 Module implementing the editor component of the eric5 IDE. 7 Module implementing the editor component of the eric6 IDE.
8 """ 8 """
9 from __future__ import unicode_literals 9 from __future__ import unicode_literals
10 try: 10 try:
11 str = unicode 11 str = unicode
12 chr = unichr 12 chr = unichr
40 TemplateCompletionListID = 2 40 TemplateCompletionListID = 2
41 41
42 42
43 class Editor(QsciScintillaCompat): 43 class Editor(QsciScintillaCompat):
44 """ 44 """
45 Class implementing the editor component of the eric5 IDE. 45 Class implementing the editor component of the eric6 IDE.
46 46
47 @signal modificationStatusChanged(bool, QsciScintillaCompat) emitted when 47 @signal modificationStatusChanged(bool, QsciScintillaCompat) emitted when
48 the modification status has changed 48 the modification status has changed
49 @signal undoAvailable(bool) emitted to signal the undo availability 49 @signal undoAvailable(bool) emitted to signal the undo availability
50 @signal redoAvailable(bool) emitted to signal the redo availability 50 @signal redoAvailable(bool) emitted to signal the redo availability
6103 if Preferences.getEditor("AutoReopen") and not self.isModified(): 6103 if Preferences.getEditor("AutoReopen") and not self.isModified():
6104 self.refresh() 6104 self.refresh()
6105 else: 6105 else:
6106 msg = self.tr( 6106 msg = self.tr(
6107 """<p>The file <b>{0}</b> has been changed while it""" 6107 """<p>The file <b>{0}</b> has been changed while it"""
6108 """ was opened in eric5. Reread it?</p>""")\ 6108 """ was opened in eric6. Reread it?</p>""")\
6109 .format(self.fileName) 6109 .format(self.fileName)
6110 yesDefault = True 6110 yesDefault = True
6111 if self.isModified(): 6111 if self.isModified():
6112 msg += self.tr( 6112 msg += self.tr(
6113 """<br><b>Warning:</b> You will lose""" 6113 """<br><b>Warning:</b> You will lose"""

eric ide

mercurial