示例#1
0
    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)
示例#2
0
    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)
示例#3
0
 def __init__(self, editor):
     self.editor = editor
     ZToolBarActionContext.__init__(self, editor)
示例#4
0
 def getToolBarActionContext(self):
     return ZToolBarActionContext(self)
示例#5
0
 def __init__(self, editor):
     self.editor = editor
     ZToolBarActionContext.__init__(self, editor)
示例#6
0
文件: standard.py 项目: mpm2050/Raven
 def __init__(self, window, viewSelection):
     self.window = window
     self.viewSelection = viewSelection
     ZToolBarActionContext.__init__(self, window)