Esempio n. 1
0
 def renameCtrlRefs(self, oldName, newName):
     ContainerDTC.renameCtrlRefs(self, oldName, newName)
     # Check if subwindow references have changed
     # XXX should maybe be done with notification, action = 'rename'
     oldSrc = Utils.srcRefFromCtrlName(oldName)
     for prop in self.textPropList:
         if prop.prop_setter in ('SplitVertically', 'SplitHorizontally'):
             if oldSrc in prop.params:
                 prop.params[prop.params.index(oldSrc)] = \
                       Utils.srcRefFromCtrlName(newName)
Esempio n. 2
0
 def renameCtrlRefs(self, oldName, newName):
     ContainerDTC.renameCtrlRefs(self, oldName, newName)
     # Check if subwindow references have changed
     # XXX should maybe be done with notification, action = 'rename'
     oldSrc = Utils.srcRefFromCtrlName(oldName)
     for prop in self.textPropList:
         if prop.prop_setter in ('SplitVertically', 'SplitHorizontally'):
             if oldSrc in prop.params:
                 prop.params[prop.params.index(oldSrc)] = \
                       Utils.srcRefFromCtrlName(newName)