547 tmarker = stream.readUInt16() |
547 tmarker = stream.readUInt16() |
548 if tmarker != E5ToolBarManager.ToolBarMarker: |
548 if tmarker != E5ToolBarManager.ToolBarMarker: |
549 return False |
549 return False |
550 |
550 |
551 toolBarCount = stream.readUInt16() |
551 toolBarCount = stream.readUInt16() |
552 for i in range(toolBarCount): |
552 for _i in range(toolBarCount): |
553 objectName = Utilities.readStringFromStream(stream) |
553 objectName = Utilities.readStringFromStream(stream) |
554 actionCount = stream.readUInt16() |
554 actionCount = stream.readUInt16() |
555 actions = [] |
555 actions = [] |
556 for j in range(actionCount): |
556 for _j in range(actionCount): |
557 actionName = Utilities.readStringFromStream(stream) |
557 actionName = Utilities.readStringFromStream(stream) |
558 if actionName: |
558 if actionName: |
559 action = self.__findAction(actionName) |
559 action = self.__findAction(actionName) |
560 if action is not None: |
560 if action is not None: |
561 actions.append(action) |
561 actions.append(action) |
570 return False |
570 return False |
571 |
571 |
572 oldCustomToolBars = self.__customToolBars[:] |
572 oldCustomToolBars = self.__customToolBars[:] |
573 |
573 |
574 toolBarCount = stream.readUInt16() |
574 toolBarCount = stream.readUInt16() |
575 for i in range(toolBarCount): |
575 for _i in range(toolBarCount): |
576 objectName = Utilities.readStringFromStream(stream) |
576 objectName = Utilities.readStringFromStream(stream) |
577 toolBarTitle = Utilities.readStringFromStream(stream) |
577 toolBarTitle = Utilities.readStringFromStream(stream) |
578 actionCount = stream.readUInt16() |
578 actionCount = stream.readUInt16() |
579 actions = [] |
579 actions = [] |
580 for j in range(actionCount): |
580 for _j in range(actionCount): |
581 actionName = Utilities.readStringFromStream(stream) |
581 actionName = Utilities.readStringFromStream(stream) |
582 if actionName: |
582 if actionName: |
583 action = self.__findAction(actionName) |
583 action = self.__findAction(actionName) |
584 if action is not None: |
584 if action is not None: |
585 actions.append(action) |
585 actions.append(action) |