Bug on FileMenu not refreshed when modifications fixed
authorlaurent
Wed, 16 Dec 2009 14:22:57 +0100
changeset 494 c91644c2bfa7
parent 493 45724c355a20
child 495 d1c9517c0fe0
Bug on FileMenu not refreshed when modifications fixed
DataTypeEditor.py
RessourceEditor.py
VariablePanel.py
--- a/DataTypeEditor.py	Wed Dec 16 13:37:09 2009 +0100
+++ b/DataTypeEditor.py	Wed Dec 16 14:22:57 2009 +0100
@@ -917,6 +917,7 @@
             infos["initial"] = ""
         self.Controler.SetDataTypeInfos(self.TagName, infos)
         self.ParentWindow.RefreshTitle()
+        self.ParentWindow.RefreshFileMenu()
         self.ParentWindow.RefreshEditMenu()
 
 #-------------------------------------------------------------------------------
--- a/RessourceEditor.py	Wed Dec 16 13:37:09 2009 +0100
+++ b/RessourceEditor.py	Wed Dec 16 14:22:57 2009 +0100
@@ -496,6 +496,7 @@
     def RefreshBuffer(self):
         self.Controler.BufferProject()
         self.ParentWindow.RefreshTitle()
+        self.ParentWindow.RefreshFileMenu()
         self.ParentWindow.RefreshEditMenu()
 
     def RefreshView(self):
--- a/VariablePanel.py	Wed Dec 16 13:37:09 2009 +0100
+++ b/VariablePanel.py	Wed Dec 16 14:22:57 2009 +0100
@@ -629,7 +629,7 @@
         self.Controler.SetPouInterfaceReturnType(words[1], self.ReturnType.GetStringSelection())
         self.Controler.BufferProject()
         self.ParentWindow.RefreshEditor(variablepanel = False)
-        self.ParentWindow._Refresh(TITLE, EDITMENU, INSTANCESTREE, LIBRARYTREE)
+        self.ParentWindow._Refresh(TITLE, FILEMENU, EDITMENU, INSTANCESTREE, LIBRARYTREE)
         event.Skip()
     
     def OnClassFilter(self, event):
@@ -803,7 +803,7 @@
             self.SaveValues(False)
             self.ParentWindow.RefreshEditor(variablepanel = False)
             self.Controler.BufferProject()
-            self.ParentWindow._Refresh(TITLE, EDITMENU, INSTANCESTREE, LIBRARYTREE)
+            self.ParentWindow._Refresh(TITLE, FILEMENU, EDITMENU, INSTANCESTREE, LIBRARYTREE)
         return VariableTypeFunction
     
     def OnVariablesGridCellLeftClick(self, event):
@@ -869,7 +869,7 @@
             self.Controler.SetPouInterfaceVars(words[1], self.Values)
         if buffer:
             self.Controler.BufferProject()
-            self.ParentWindow._Refresh(TITLE, EDITMENU, INSTANCESTREE, LIBRARYTREE)            
+            self.ParentWindow._Refresh(TITLE, FILEMENU, EDITMENU, INSTANCESTREE, LIBRARYTREE)            
 
     def AddVariableError(self, infos):
         if isinstance(infos[0], TupleType):