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""" |