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