equal
deleted
inserted
replaced
606 |
606 |
607 |
607 |
608 def SetCurrentEntry(self, index, subIndex, value, name, editor): |
608 def SetCurrentEntry(self, index, subIndex, value, name, editor): |
609 if self.CurrentNode and self.CurrentNode.IsEntry(index): |
609 if self.CurrentNode and self.CurrentNode.IsEntry(index): |
610 if name == "value": |
610 if name == "value": |
611 if editor == "map": |
611 if editor == None: |
|
612 self.CurrentNode.SetEntry(index, subIndex, value) |
|
613 elif editor == "map": |
612 value = self.CurrentNode.GetMapValue(value) |
614 value = self.CurrentNode.GetMapValue(value) |
613 if value: |
615 if value: |
614 self.CurrentNode.SetEntry(index, subIndex, value) |
616 self.CurrentNode.SetEntry(index, subIndex, value) |
615 elif editor == "bool": |
617 elif editor == "bool": |
616 value = value == "True" |
618 value = value == "True" |
748 self.FilePaths.pop(index) |
750 self.FilePaths.pop(index) |
749 self.FileNames.pop(index) |
751 self.FileNames.pop(index) |
750 |
752 |
751 def GetCurrentNodeIndex(self): |
753 def GetCurrentNodeIndex(self): |
752 return self.NodeIndex |
754 return self.NodeIndex |
|
755 |
|
756 def GetCurrentNode(self): |
|
757 if self.NodeIndex: |
|
758 return self.CurrentNode |
|
759 return None |
753 |
760 |
754 def GetCurrentFilename(self): |
761 def GetCurrentFilename(self): |
755 return self.GetFilename(self.NodeIndex) |
762 return self.GetFilename(self.NodeIndex) |
756 |
763 |
757 def GetAllFilenames(self): |
764 def GetAllFilenames(self): |