CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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__
 
def eventContentAction
 
def filterBranchesAction
 
def hideUnderscorePropertiesAction
 
def newTab
 
def startUp
 
- Public Member Functions inherited from Vispa.Plugins.EventBrowser.EventBrowserPlugin.EventBrowserPlugin
def __init__
 
def eventNumberDisplay
 
def first
 
def goto
 
def last
 
def navigateMenu
 
def navigateToolBar
 
def next
 
def previous
 
def startUp
 
- Public Member Functions inherited from Vispa.Plugins.Browser.BrowserPlugin.BrowserPlugin
def __init__
 
def addCenterView
 
def availableCenterViews
 
def boxContentAction
 
def collapseAllAction
 
def defaultCenterViewId
 
def disabledCenterViewIds
 
def expandAllAction
 
def expandToDepthAction
 
def filterDialog
 
def newTab
 
def openFile
 
def saveImage
 
def saveImageAction
 
def setDisabledCenterViewIds
 
def startUp
 
def switchCenterViewSlot
 
def viewClassId
 
def viewMenu
 
def zoomAction
 
def zoomDialog
 
- Public Member Functions inherited from Vispa.Main.VispaPlugin.VispaPlugin
def __init__
 
def addNewFileAction
 
def application
 
def filetypes
 
def getNewFileActions
 
def openFile
 
def registerFiletype
 
def registerFiletypesFromTabController
 
def shutdown
 

Private Member Functions

def _eventContent
 
def _expandToDepth
 
def _fillMenu
 
def _filterBranches
 
def _hideUnderscoreProperties
 

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 
24  def __init__(self, application=None, name=None):
25  logging.debug(__name__ + ": __init__")
26  EventBrowserPlugin.__init__(self, application)
27  self.registerFiletypesFromTabController(EdmBrowserTabController)

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 
89  def _eventContent(self):
90  try:
91  self.application().currentTabController().eventContent()
92  except NoCurrentTabControllerException:
93  logging.warning(self.__class__.__name__ + ": _eventContent() - No tab controller found.")
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 
52  def _expandToDepth(self):
53  """ Calls expandToDepthDialog() function of current tab controller.
54  """
55  try:
56  self.application().currentTabController().expandToDepthDialog()
57  except NoCurrentTabControllerException:
58  logging.warning(self.__class__.__name__ + ": _expandToDepth() - No tab controller found.")
def Vispa.Plugins.EdmBrowser.EdmBrowserPlugin.EdmBrowserPlugin._fillMenu (   self)
private
Fill specific menu.

Definition at line 59 of file EdmBrowserPlugin.py.

59 
60  def _fillMenu(self):
61  """ Fill specific menu.
62  """
63  EventBrowserPlugin._fillMenu(self)
64  self._filterBranchesAction = self.application().createAction('&Filter invalid branches', self._filterBranches, "Ctrl+Shift+F")
65  self._filterBranchesAction.setCheckable(True)
66  self._filterBranchesAction.setChecked(True)
67  self._viewMenu.addAction(self._filterBranchesAction)
68  self._hideUnderscorePropertiesAction = self.application().createAction('&Hide _underscore properties', self._hideUnderscoreProperties, "Ctrl+Shift+U")
69  self._hideUnderscorePropertiesAction.setCheckable(True)
70  self._hideUnderscorePropertiesAction.setChecked(True)
71  self._viewMenu.addAction(self._hideUnderscorePropertiesAction)
72  self._viewMenu.addSeparator()
73  self._eventContentAction = self.application().createAction('&Browse event content...', self._eventContent, "Ctrl+Shift+C")
74  self._viewMenu.addAction(self._eventContentAction)
75  self._viewMenu.addSeparator()
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 
80  def _filterBranches(self):
81  try:
82  self.application().currentTabController().toggleFilterBranches()
83  except NoCurrentTabControllerException:
84  logging.warning(self.__class__.__name__ + ": _filterBranches() - No tab controller found.")
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().

97 
98  def _hideUnderscoreProperties(self):
99  try:
100  self.application().currentTabController().toggleUnderscoreProperties()
101  except NoCurrentTabControllerException:
102  logging.warning(self.__class__.__name__ + ": _hideUnderscoreProperties() - No tab controller found.")
def Vispa.Plugins.EdmBrowser.EdmBrowserPlugin.EdmBrowserPlugin.eventContentAction (   self)

Definition at line 85 of file EdmBrowserPlugin.py.

References Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController._eventContentAction, and Vispa.Plugins.EdmBrowser.EdmBrowserPlugin.EdmBrowserPlugin._eventContentAction.

85 
86  def eventContentAction(self):
87  return self._eventContentAction
def Vispa.Plugins.EdmBrowser.EdmBrowserPlugin.EdmBrowserPlugin.filterBranchesAction (   self)

Definition at line 76 of file EdmBrowserPlugin.py.

References Vispa.Plugins.EdmBrowser.EdmBrowserPlugin.EdmBrowserPlugin._filterBranchesAction.

76 
77  def filterBranchesAction(self):
78  return self._filterBranchesAction
def Vispa.Plugins.EdmBrowser.EdmBrowserPlugin.EdmBrowserPlugin.hideUnderscorePropertiesAction (   self)

Definition at line 94 of file EdmBrowserPlugin.py.

References Vispa.Plugins.EdmBrowser.EdmBrowserPlugin.EdmBrowserPlugin._hideUnderscorePropertiesAction.

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 
34  def newTab(self):
35  """ Create EdmBrowserTab and add to MainWindow.
36  """
37  logging.debug(__name__ + ": newTab")
38  tab = EdmBrowserTab(self.application().mainWindow())
39 
40  controller = EdmBrowserTabController(self)
41  controller.setDataAccessor(EdmDataAccessor())
42  tab.setController(controller)
43 
44  controller.boxContentDialog().addButton("&Label", "str(object.Label)")
45  controller.boxContentDialog().addButton("&Type", "str(object.Type)")
46  controller.boxContentDialog().addButton("&Name", "str(object.Name)")
47  controller.boxContentDialog().addButton("&Pt", "str(object.Pt)")
48 
49  self.application().mainWindow().addTab(tab)
50  return tab
def Vispa.Plugins.EdmBrowser.EdmBrowserPlugin.EdmBrowserPlugin.startUp (   self)

Definition at line 28 of file EdmBrowserPlugin.py.

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

28 
29  def startUp(self):
30  EventBrowserPlugin.startUp(self)
31  self.addCenterView(EdmBrowserBoxView)
32  self.addCenterView(TableView)

Member Data Documentation

Vispa.Plugins.EdmBrowser.EdmBrowserPlugin.EdmBrowserPlugin._eventContentAction
private

Definition at line 72 of file EdmBrowserPlugin.py.

Referenced by Vispa.Plugins.EdmBrowser.EdmBrowserPlugin.EdmBrowserPlugin.eventContentAction().

Vispa.Plugins.EdmBrowser.EdmBrowserPlugin.EdmBrowserPlugin._filterBranchesAction
private

Definition at line 63 of file EdmBrowserPlugin.py.

Referenced by Vispa.Plugins.EdmBrowser.EdmBrowserPlugin.EdmBrowserPlugin.filterBranchesAction().

Vispa.Plugins.EdmBrowser.EdmBrowserPlugin.EdmBrowserPlugin._hideUnderscorePropertiesAction
private

Definition at line 67 of file EdmBrowserPlugin.py.

Referenced by Vispa.Plugins.EdmBrowser.EdmBrowserPlugin.EdmBrowserPlugin.hideUnderscorePropertiesAction().