def __init__(self, model, parent, style=0): toolBarContext = ZToolBarActionContext(self) self.contentProvider = ZModelBasedToolBarContentProvider( model, toolBarContext) self.eventHandler = ZModelBasedToolBarEventHandler( model, toolBarContext) ZToolBar.__init__(self, self.contentProvider, self.eventHandler, parent, style)
def __init__(self, prefsId, model, parent, style=0, context=None): toolBarContext = None if context is not None: toolBarContext = context else: toolBarContext = ZToolBarActionContext(self) self.contentProvider = ZModelBasedToolBarContentProvider( model, toolBarContext) self.eventHandler = ZModelBasedToolBarEventHandler( model, toolBarContext) ZPersistentToolBar.__init__(self, prefsId, self.contentProvider, self.eventHandler, parent, style)
def __init__(self, editor): self.editor = editor ZToolBarActionContext.__init__(self, editor)
def getToolBarActionContext(self): return ZToolBarActionContext(self)
def __init__(self, window, viewSelection): self.window = window self.viewSelection = viewSelection ZToolBarActionContext.__init__(self, window)