'Add this ViewBox to the registered list of views.
This allows users to manually link the axes of any other ViewBox to
this one. The specified *name* will appear in the drop-down lists for
axis linking in the context menus of all other views.
The same can be accomplished by initializing the ViewBox with the *name* attribute.'

def register(self, name):

    ViewBox.AllViews[self] = None
    if (self.name is not None):
        del ViewBox.NamedViews[self.name]
    self.name = name
    if (name is not None):
        ViewBox.NamedViews[name] = self
        ViewBox.updateAllViewLists()
        sid = id(self)
        self.destroyed.connect((lambda : (ViewBox.forgetView(sid, name) if ((ViewBox is not None) and ('sid' in locals()) and ('name' in locals())) else None)))
