CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
Vispa.Plugins.EdmBrowser.EdmBrowserPlugin.EdmBrowserPlugin Class Reference
Inheritance diagram for Vispa.Plugins.EdmBrowser.EdmBrowserPlugin.EdmBrowserPlugin:
Vispa.Plugins.EventBrowser.EventBrowserPlugin.EventBrowserPlugin Vispa.Plugins.Browser.BrowserPlugin.BrowserPlugin Vispa.Main.VispaPlugin.VispaPlugin

Public Member Functions

def __init__ (self, application=None, name=None)
 
def eventContentAction (self)
 
def filterBranchesAction (self)
 
def hideUnderscorePropertiesAction (self)
 
def newTab (self)
 
def startUp (self)
 
- Public Member Functions inherited from Vispa.Plugins.EventBrowser.EventBrowserPlugin.EventBrowserPlugin
def __init__ (self, application=None)
 
def eventNumberDisplay (self)
 
def first (self)
 
def goto (self)
 
def last (self)
 
def navigateMenu (self)
 
def navigateToolBar (self)
 
def next (self)
 
def previous (self)
 
def startUp (self)
 
- Public Member Functions inherited from Vispa.Plugins.Browser.BrowserPlugin.BrowserPlugin
def __init__ (self, application=None)
 
def addCenterView (self, viewClass, default=False, enabled=True)
 
def availableCenterViews (self)
 
def boxContentAction (self)
 
def collapseAllAction (self)
 
def defaultCenterViewId (self)
 
def disabledCenterViewIds (self)
 
def expandAllAction (self)
 
def expandToDepthAction (self)
 
def filterDialog (self)
 
def newTab (self)
 
def openFile (self, filename=None)
 
def saveImage (self)
 
def saveImageAction (self)
 
def setDisabledCenterViewIds (self, ids)
 
def startUp (self)
 
def switchCenterViewSlot (self)
 
def viewClassId (self, viewClass)
 
def viewMenu (self)
 
def zoomAction (self)
 
def zoomDialog (self)
 
- Public Member Functions inherited from Vispa.Main.VispaPlugin.VispaPlugin
def __init__ (self, application=None)
 
def addNewFileAction (self, label, slot=None)
 
def application (self)
 
def filetypes (self)
 
def getNewFileActions (self)
 
def openFile (self, filename)
 
def registerFiletype (self, ext, description)
 
def registerFiletypesFromTabController (self, TabControllerClass)
 
def shutdown (self)
 

Private Member Functions

def _eventContent (self)
 
def _expandToDepth (self)
 
def _fillMenu (self)
 
def _filterBranches (self)
 
def _hideUnderscoreProperties (self)
 

Private Attributes

 _eventContentAction
 
 _filterBranchesAction
 
 _hideUnderscorePropertiesAction
 

Detailed Description

The EdmBrowserPlugin opens edm root files in the EventBrowserTab.

Definition at line 19 of file EdmBrowserPlugin.py.

Constructor & Destructor Documentation

def Vispa.Plugins.EdmBrowser.EdmBrowserPlugin.EdmBrowserPlugin.__init__ (   self,
  application = None,
  name = None 
)

Definition at line 23 of file EdmBrowserPlugin.py.

References Vispa.Main.VispaPlugin.VispaPlugin.registerFiletypesFromTabController().

23  def __init__(self, application=None, name=None):
24  logging.debug(__name__ + ": __init__")
25  EventBrowserPlugin.__init__(self, application)
26  self.registerFiletypesFromTabController(EdmBrowserTabController)
27 
def registerFiletypesFromTabController(self, TabControllerClass)
Definition: VispaPlugin.py:34

Member Function Documentation

def Vispa.Plugins.EdmBrowser.EdmBrowserPlugin.EdmBrowserPlugin._eventContent (   self)
private

Definition at line 88 of file EdmBrowserPlugin.py.

References Vispa.Main.VispaPlugin.VispaPlugin.application(), and Vispa.Main.MainWindow.MainWindow.application().

88  def _eventContent(self):
89  try:
90  self.application().currentTabController().eventContent()
91  except NoCurrentTabControllerException:
92  logging.warning(self.__class__.__name__ + ": _eventContent() - No tab controller found.")
93 
def Vispa.Plugins.EdmBrowser.EdmBrowserPlugin.EdmBrowserPlugin._expandToDepth (   self)
private
Calls expandToDepthDialog() function of current tab controller.

Definition at line 51 of file EdmBrowserPlugin.py.

References Vispa.Main.VispaPlugin.VispaPlugin.application(), and Vispa.Main.MainWindow.MainWindow.application().

51  def _expandToDepth(self):
52  """ Calls expandToDepthDialog() function of current tab controller.
53  """
54  try:
55  self.application().currentTabController().expandToDepthDialog()
56  except NoCurrentTabControllerException:
57  logging.warning(self.__class__.__name__ + ": _expandToDepth() - No tab controller found.")
58 
def Vispa.Plugins.EdmBrowser.EdmBrowserPlugin.EdmBrowserPlugin._fillMenu (   self)
private
Fill specific menu.

Definition at line 59 of file EdmBrowserPlugin.py.

59  def _fillMenu(self):
60  """ Fill specific menu.
61  """
62  EventBrowserPlugin._fillMenu(self)
63  self._filterBranchesAction = self.application().createAction('&Filter invalid branches', self._filterBranches, "Ctrl+Shift+F")
64  self._filterBranchesAction.setCheckable(True)
65  self._filterBranchesAction.setChecked(True)
66  self._viewMenu.addAction(self._filterBranchesAction)
67  self._hideUnderscorePropertiesAction = self.application().createAction('&Hide _underscore properties', self._hideUnderscoreProperties, "Ctrl+Shift+U")
68  self._hideUnderscorePropertiesAction.setCheckable(True)
69  self._hideUnderscorePropertiesAction.setChecked(True)
70  self._viewMenu.addAction(self._hideUnderscorePropertiesAction)
71  self._viewMenu.addSeparator()
72  self._eventContentAction = self.application().createAction('&Browse event content...', self._eventContent, "Ctrl+Shift+C")
73  self._viewMenu.addAction(self._eventContentAction)
74  self._viewMenu.addSeparator()
75 
def Vispa.Plugins.EdmBrowser.EdmBrowserPlugin.EdmBrowserPlugin._filterBranches (   self)
private

Definition at line 79 of file EdmBrowserPlugin.py.

References Vispa.Main.VispaPlugin.VispaPlugin.application(), and Vispa.Main.MainWindow.MainWindow.application().

79  def _filterBranches(self):
80  try:
81  self.application().currentTabController().toggleFilterBranches()
82  except NoCurrentTabControllerException:
83  logging.warning(self.__class__.__name__ + ": _filterBranches() - No tab controller found.")
84 
def Vispa.Plugins.EdmBrowser.EdmBrowserPlugin.EdmBrowserPlugin._hideUnderscoreProperties (   self)
private

Definition at line 97 of file EdmBrowserPlugin.py.

References Vispa.Main.VispaPlugin.VispaPlugin.application(), and Vispa.Main.MainWindow.MainWindow.application().

98  try:
99  self.application().currentTabController().toggleUnderscoreProperties()
100  except NoCurrentTabControllerException:
101  logging.warning(self.__class__.__name__ + ": _hideUnderscoreProperties() - No tab controller found.")
def Vispa.Plugins.EdmBrowser.EdmBrowserPlugin.EdmBrowserPlugin.filterBranchesAction (   self)
def Vispa.Plugins.EdmBrowser.EdmBrowserPlugin.EdmBrowserPlugin.hideUnderscorePropertiesAction (   self)
def Vispa.Plugins.EdmBrowser.EdmBrowserPlugin.EdmBrowserPlugin.newTab (   self)
Create EdmBrowserTab and add to MainWindow.

Definition at line 33 of file EdmBrowserPlugin.py.

References Vispa.Main.VispaPlugin.VispaPlugin.application(), and Vispa.Main.MainWindow.MainWindow.application().

33  def newTab(self):
34  """ Create EdmBrowserTab and add to MainWindow.
35  """
36  logging.debug(__name__ + ": newTab")
37  tab = EdmBrowserTab(self.application().mainWindow())
38 
39  controller = EdmBrowserTabController(self)
40  controller.setDataAccessor(EdmDataAccessor())
41  tab.setController(controller)
42 
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)")
47 
48  self.application().mainWindow().addTab(tab)
49  return tab
50 
def Vispa.Plugins.EdmBrowser.EdmBrowserPlugin.EdmBrowserPlugin.startUp (   self)

Definition at line 28 of file EdmBrowserPlugin.py.

References Vispa.Plugins.Browser.BrowserPlugin.BrowserPlugin.addCenterView().

28  def startUp(self):
29  EventBrowserPlugin.startUp(self)
30  self.addCenterView(EdmBrowserBoxView)
31  self.addCenterView(TableView)
32 
def addCenterView(self, viewClass, default=False, enabled=True)

Member Data Documentation

Vispa.Plugins.EdmBrowser.EdmBrowserPlugin.EdmBrowserPlugin._eventContentAction
private
Vispa.Plugins.EdmBrowser.EdmBrowserPlugin.EdmBrowserPlugin._filterBranchesAction
private
Vispa.Plugins.EdmBrowser.EdmBrowserPlugin.EdmBrowserPlugin._hideUnderscorePropertiesAction
private