editors/Viewer.py
changeset 1233 5e6d0969bb5d
parent 1229 137fd7e7b102
child 1236 a5d1d2a2f366
equal deleted inserted replaced
1232:b6894285d4cc 1233:5e6d0969bb5d
   269                         self.ParentWindow.RefreshBlockModel(block)
   269                         self.ParentWindow.RefreshBlockModel(block)
   270                         self.ParentWindow.RefreshBuffer()
   270                         self.ParentWindow.RefreshBuffer()
   271                         self.ParentWindow.RefreshScrollBars()
   271                         self.ParentWindow.RefreshScrollBars()
   272                         self.ParentWindow.RefreshVisibleElements()
   272                         self.ParentWindow.RefreshVisibleElements()
   273                         self.ParentWindow.RefreshVariablePanel()
   273                         self.ParentWindow.RefreshVariablePanel()
       
   274                         self.ParentWindow.ParentWindow.RefreshPouInstanceVariablesPanel()
   274                         self.ParentWindow.Refresh(False)
   275                         self.ParentWindow.Refresh(False)
   275             elif values[1] == "location":
   276             elif values[1] == "location":
   276                 if pou_type == "program":
   277                 if pou_type == "program":
   277                     location = values[0]
   278                     location = values[0]
   278                     if not location.startswith("%"):
   279                     if not location.startswith("%"):
   316                     message = _("\"%s\" pou already exists!")%var_name
   317                     message = _("\"%s\" pou already exists!")%var_name
   317                 else:
   318                 else:
   318                     if not var_name.upper() in [name.upper() for name in self.ParentWindow.Controler.GetEditedElementVariables(tagname, self.ParentWindow.Debug)]:
   319                     if not var_name.upper() in [name.upper() for name in self.ParentWindow.Controler.GetEditedElementVariables(tagname, self.ParentWindow.Debug)]:
   319                         self.ParentWindow.Controler.AddEditedElementPouExternalVar(tagname, values[2], var_name)
   320                         self.ParentWindow.Controler.AddEditedElementPouExternalVar(tagname, values[2], var_name)
   320                         self.ParentWindow.RefreshVariablePanel()
   321                         self.ParentWindow.RefreshVariablePanel()
       
   322                         self.ParentWindow.ParentWindow.RefreshPouInstanceVariablesPanel()
   321                     self.ParentWindow.AddVariableBlock(x, y, scaling, INPUT, var_name, values[2])
   323                     self.ParentWindow.AddVariableBlock(x, y, scaling, INPUT, var_name, values[2])
   322             elif values[1] == "Constant":
   324             elif values[1] == "Constant":
   323                 self.ParentWindow.AddVariableBlock(x, y, scaling, INPUT, values[0], None)
   325                 self.ParentWindow.AddVariableBlock(x, y, scaling, INPUT, values[0], None)
   324             elif values[3] == tagname:
   326             elif values[3] == tagname:
   325                 if values[1] == "Output":
   327                 if values[1] == "Output":