src/eric7/QScintilla/MiniEditor.py

branch
eric7
changeset 10523
e4069ddd7dc7
parent 10518
1682f3203ae5
child 10692
9becf9ca115c
--- a/src/eric7/QScintilla/MiniEditor.py	Tue Jan 23 12:21:15 2024 +0100
+++ b/src/eric7/QScintilla/MiniEditor.py	Wed Jan 24 18:52:50 2024 +0100
@@ -3386,6 +3386,15 @@
         """
         return self.__curFile
 
+    def setFileName(self, name):
+        """
+        Public method to set the file name of the file being displayed.
+
+        @param name name of the displayed file
+        @type str
+        """
+        self.__setCurrentFile(name)
+
     def __strippedName(self, fullFileName):
         """
         Private method to return the filename part of the given path.
@@ -4345,6 +4354,15 @@
         self.__textEdit.setFirstVisibleLine(line - 1)
         self.__textEdit.ensureCursorVisible()
 
+    def setModified(self, modified):
+        """
+        Public method to set the editor modification state.
+
+        @param modified new editor modification state
+        @type bool
+        """
+        self.__textEdit.setModified(modified)
+
     #######################################################################
     ## Methods implementing the interface to EditorConfig
     #######################################################################

eric ide

mercurial