8 from Vispa.Main.Exceptions import NoCurrentTabControllerException,PluginIgnoredException,exception_traceback
12 except Exception
as e:
20 """ The EdmBrowserPlugin opens edm root files in the EventBrowserTab.
23 def __init__(self, application=None, name=None):
24 logging.debug(__name__ +
": __init__")
25 EventBrowserPlugin.__init__(self, application)
29 EventBrowserPlugin.startUp(self)
34 """ Create EdmBrowserTab and add to MainWindow.
36 logging.debug(__name__ +
": newTab")
41 tab.setController(controller)
43 controller.boxContentDialog().addButton(
"&Label",
"str(object.Label)")
44 controller.boxContentDialog().addButton(
"&Type",
"str(object.Type)")
45 controller.boxContentDialog().addButton(
"&Name",
"str(object.Name)")
46 controller.boxContentDialog().addButton(
"&Pt",
"str(object.Pt)")
52 """ Calls expandToDepthDialog() function of current tab controller.
55 self.
application().currentTabController().expandToDepthDialog()
56 except NoCurrentTabControllerException:
57 logging.warning(self.__class__.__name__ +
": _expandToDepth() - No tab controller found.")
60 """ Fill specific menu.
62 EventBrowserPlugin._fillMenu(self)
64 self._filterBranchesAction.setCheckable(
True)
65 self._filterBranchesAction.setChecked(
True)
68 self._hideUnderscorePropertiesAction.setCheckable(
True)
69 self._hideUnderscorePropertiesAction.setChecked(
True)
71 self._viewMenu.addSeparator()
74 self._viewMenu.addSeparator()
81 self.
application().currentTabController().toggleFilterBranches()
82 except NoCurrentTabControllerException:
83 logging.warning(self.__class__.__name__ +
": _filterBranches() - No tab controller found.")
90 self.
application().currentTabController().eventContent()
91 except NoCurrentTabControllerException:
92 logging.warning(self.__class__.__name__ +
": _eventContent() - No tab controller found.")
99 self.
application().currentTabController().toggleUnderscoreProperties()
100 except NoCurrentTabControllerException:
101 logging.warning(self.__class__.__name__ +
": _hideUnderscoreProperties() - No tab controller found.")
def registerFiletypesFromTabController
_hideUnderscorePropertiesAction
def hideUnderscorePropertiesAction
def _hideUnderscoreProperties