Adding functions in EditorPanel API to let panels to define custom save methods
authorLaurent Bessard
Sun, 01 Jul 2012 23:36:44 +0200
changeset 719 bc2e98641bdd
parent 718 0183a66eddf9
child 720 2a9d4eafaddd
Adding functions in EditorPanel API to let panels to define custom save methods
controls/EditorPanel.py
--- a/controls/EditorPanel.py	Thu Jun 28 12:03:27 2012 +0200
+++ b/controls/EditorPanel.py	Sun Jul 01 23:36:44 2012 +0200
@@ -103,6 +103,15 @@
     def ResetBuffer(self):
         pass
     
+    def IsModified(self):
+        return False
+    
+    def Save(self):
+        pass
+    
+    def SaveAs(self):
+        pass
+    
     def GetBufferState(self):
         if self.Controler is not None:
             return self.Controler.GetBufferState()