etherlab/ConfigEditor.py
changeset 2048 5726f2bbdace
parent 2043 27d4cb689a79
child 2053 5998beb54a6c
equal deleted inserted replaced
2047:b0b7bd288b6e 2048:5726f2bbdace
   166     
   166     
   167     def __del__(self):
   167     def __del__(self):
   168         self.Controler.OnCloseEditor(self)
   168         self.Controler.OnCloseEditor(self)
   169     
   169     
   170     def GetTitle(self):
   170     def GetTitle(self):
   171         return self.Controler.PlugFullName()
   171         return self.Controler.CTNFullName()
   172     
   172     
   173     def GetBufferState(self):
   173     def GetBufferState(self):
   174         return False, False
   174         return False, False
   175         
   175         
   176     def RefreshView(self):
   176     def RefreshView(self):
   242             if (col == -1 and pdo_mapping != "" and
   242             if (col == -1 and pdo_mapping != "" and
   243                 self.Controler.GetSizeOfType(data_type) is not None):
   243                 self.Controler.GetSizeOfType(data_type) is not None):
   244                 
   244                 
   245                 entry_index = self.Controler.ExtractHexDecValue(entry.get("Index", "0"))
   245                 entry_index = self.Controler.ExtractHexDecValue(entry.get("Index", "0"))
   246                 entry_subindex = self.Controler.ExtractHexDecValue(entry.get("SubIndex", "0"))
   246                 entry_subindex = self.Controler.ExtractHexDecValue(entry.get("SubIndex", "0"))
   247                 var_name = "%s_%4.4x_%2.2x" % (self.Controler.PlugName(), entry_index, entry_subindex)
   247                 var_name = "%s_%4.4x_%2.2x" % (self.Controler.CTNName(), entry_index, entry_subindex)
   248                 if pdo_mapping == "R":
   248                 if pdo_mapping == "R":
   249                     dir = "%I"
   249                     dir = "%I"
   250                 else:
   250                 else:
   251                     dir = "%Q"
   251                     dir = "%Q"
   252                 location = "%s%s" % (dir, self.Controler.GetSizeOfType(data_type)) + \
   252                 location = "%s%s" % (dir, self.Controler.GetSizeOfType(data_type)) + \