def __init__(self, view=None, parent=None): BaseToolBar.__init__(self, name="Taurus selection toolbar", view=view, parent=parent) self._goIntoAction = getAction("Go Into", parent=self, icon=getIcon("go-down"), tooltip="Go into the selected item", triggered=self.goInto) self._goUpAction = getAction("Go Up", parent=self, icon=getIcon("go-up"), tooltip="Go up one level", triggered=self.goUp) self._goTopAction = getAction("Go Top", parent=self, icon=getIcon("go-top"), tooltip="Go to top level", triggered=self.goTop) self.addAction(self._goIntoAction) self.addAction(self._goUpAction) self.addAction(self._goTopAction) self._navigationWidget = _NavigationWidget(view, self, parent=self) self._navigationAction = self.addWidget(self._navigationWidget)
def __init__(self, view=None, parent=None): BaseToolBar.__init__(self, name="Taurus selection toolbar", view=view, parent=parent) self._expandAllAction = getAction( "Expand All", parent=self, icon=getIcon(":/controls/expand.png"), tooltip="Expand all items", triggered=self.onExpandAll) self._collapseAllAction = getAction( "Collapse All", parent=self, icon=getIcon(":/controls/collapse.png"), tooltip="Collapse all items", triggered=self.onCollapseAll) self._expandSelectionAction = getAction( "Expand selection", parent=self, icon=getIcon(":/controls/expand-selection.png"), tooltip="Expand selection", triggered=self.onExpandSelection) self._collapseSelectionAction = getAction( "Collapse All", parent=self, icon=getIcon(":/controls/collapse-selection.png"), tooltip="Collapse selection", triggered=self.onCollapseSelection) self.addAction(self._expandAllAction) self.addAction(self._collapseAllAction) self.addAction(self._expandSelectionAction) self.addAction(self._collapseSelectionAction)
def __init__(self, view=None, parent=None): BaseToolBar.__init__(self, name="Taurus selection toolbar", view=view, parent=parent) self._expandAllAction = getAction("Expand All", parent=self, icon=getIcon(":/controls/expand.png"), tooltip="Expand all items", triggered=self.onExpandAll) self._collapseAllAction = getAction("Collapse All", parent=self, icon=getIcon(":/controls/collapse.png"), tooltip="Collapse all items", triggered=self.onCollapseAll) self._expandSelectionAction = getAction("Expand selection", parent=self, icon=getIcon(":/controls/expand-selection.png"), tooltip="Expand selection", triggered=self.onExpandSelection) self._collapseSelectionAction = getAction("Collapse All", parent=self, icon=getIcon(":/controls/collapse-selection.png"), tooltip="Collapse selection", triggered=self.onCollapseSelection) self.addAction(self._expandAllAction) self.addAction(self._collapseAllAction) self.addAction(self._expandSelectionAction) self.addAction(self._collapseSelectionAction)