CMS 3D CMS Logo

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

Public Member Functions

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 _fillEventNavigatorMenu (self)
 

Private Attributes

 _eventNumberDisplay
 
 _firstAction
 
 _gotoAction
 
 _lastAction
 
 _navigateMenu
 
 _navigateToolBar
 
 _nextAction
 
 _previousAction
 

Detailed Description

The EventBrowserPlugin supports navigation in files.

Definition at line 10 of file EventBrowserPlugin.py.

Constructor & Destructor Documentation

def Vispa.Plugins.EventBrowser.EventBrowserPlugin.EventBrowserPlugin.__init__ (   self,
  application = None 
)

Definition at line 14 of file EventBrowserPlugin.py.

14  def __init__(self, application=None):
15  logging.debug(__name__ + ": __init__")
16  BrowserPlugin.__init__(self, application)
17 

Member Function Documentation

def Vispa.Plugins.EventBrowser.EventBrowserPlugin.EventBrowserPlugin._fillEventNavigatorMenu (   self)
private
Fill EventNavigator specific menu.

Definition at line 22 of file EventBrowserPlugin.py.

Referenced by Vispa.Plugins.EventBrowser.EventBrowserPlugin.EventBrowserPlugin.startUp().

23  """ Fill EventNavigator specific menu.
24  """
25  self._navigateMenu = self._application.createPluginMenu('&Navigate')
26  self._navigateToolBar = self._application.createPluginToolBar('&Navigate')
27  self._firstAction = self._application.createAction('&First', self.first, "Ctrl+Home", "first")
28  self._previousAction = self._application.createAction('&Previous', self.previous, "Ctrl+PgUp", "previous")
29  self._nextAction = self._application.createAction('&Next', self.next, "Ctrl+PgDown", "next")
30  self._lastAction = self._application.createAction('&Last', self.last, "Ctrl+End", "last")
31  self._gotoAction = self._application.createAction('&Goto...', self.goto, "Ctrl+G")
32  self._eventNumberDisplay = QLabel("")
33  self._navigateMenu.addAction(self._firstAction)
34  self._navigateMenu.addAction(self._previousAction)
35  self._navigateMenu.addAction(self._nextAction)
36  self._navigateMenu.addAction(self._lastAction)
37  self._navigateMenu.addAction(self._gotoAction)
38  self._navigateToolBar.addAction(self._firstAction)
39  self._navigateToolBar.addAction(self._previousAction)
40  self._navigateToolBar.addWidget(self._eventNumberDisplay)
41  self._navigateToolBar.addAction(self._nextAction)
42  self._navigateToolBar.addAction(self._lastAction)
43 
def Vispa.Plugins.EventBrowser.EventBrowserPlugin.EventBrowserPlugin.eventNumberDisplay (   self)
def Vispa.Plugins.EventBrowser.EventBrowserPlugin.EventBrowserPlugin.first (   self)
Calls first() function of current tab controller.

Definition at line 47 of file EventBrowserPlugin.py.

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

47  def first(self):
48  """ Calls first() function of current tab controller.
49  """
50  try:
51  self.application().currentTabController().first()
52  except NoCurrentTabControllerException:
53  logging.warning(self.__class__.__name__ + ": first() - No tab controller found.")
54 
def Vispa.Plugins.EventBrowser.EventBrowserPlugin.EventBrowserPlugin.goto (   self)
Calls goto() function of current tab controller.

Definition at line 79 of file EventBrowserPlugin.py.

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

79  def goto(self):
80  """ Calls goto() function of current tab controller.
81  """
82  try:
83  self.application().currentTabController().goto()
84  except NoCurrentTabControllerException:
85  logging.warning(self.__class__.__name__ + ": goto() - No tab controller found.")
86 
def Vispa.Plugins.EventBrowser.EventBrowserPlugin.EventBrowserPlugin.last (   self)
Calls last() function of current tab controller.

Definition at line 71 of file EventBrowserPlugin.py.

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

71  def last(self):
72  """ Calls last() function of current tab controller.
73  """
74  try:
75  self.application().currentTabController().last()
76  except NoCurrentTabControllerException:
77  logging.warning(self.__class__.__name__ + ": last() - No tab controller found.")
78 
def Vispa.Plugins.EventBrowser.EventBrowserPlugin.EventBrowserPlugin.navigateMenu (   self)
def Vispa.Plugins.EventBrowser.EventBrowserPlugin.EventBrowserPlugin.navigateToolBar (   self)
def Vispa.Plugins.EventBrowser.EventBrowserPlugin.EventBrowserPlugin.next (   self)
Calls next() function of current tab controller.

Definition at line 63 of file EventBrowserPlugin.py.

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

63  def next(self):
64  """ Calls next() function of current tab controller.
65  """
66  try:
67  next(self.application().currentTabController())
68  except NoCurrentTabControllerException:
69  logging.warning(self.__class__.__name__ + ": next() - No tab controller found.")
70 
def Vispa.Plugins.EventBrowser.EventBrowserPlugin.EventBrowserPlugin.previous (   self)
Calls previous() function of current tab controller.

Definition at line 55 of file EventBrowserPlugin.py.

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

55  def previous(self):
56  """ Calls previous() function of current tab controller.
57  """
58  try:
59  self.application().currentTabController().previous()
60  except NoCurrentTabControllerException:
61  logging.warning(self.__class__.__name__ + ": previous() - No tab controller found.")
62 
def Vispa.Plugins.EventBrowser.EventBrowserPlugin.EventBrowserPlugin.startUp (   self)

Member Data Documentation

Vispa.Plugins.EventBrowser.EventBrowserPlugin.EventBrowserPlugin._eventNumberDisplay
private
Vispa.Plugins.EventBrowser.EventBrowserPlugin.EventBrowserPlugin._firstAction
private

Definition at line 27 of file EventBrowserPlugin.py.

Vispa.Plugins.EventBrowser.EventBrowserPlugin.EventBrowserPlugin._gotoAction
private

Definition at line 31 of file EventBrowserPlugin.py.

Vispa.Plugins.EventBrowser.EventBrowserPlugin.EventBrowserPlugin._lastAction
private

Definition at line 30 of file EventBrowserPlugin.py.

Vispa.Plugins.EventBrowser.EventBrowserPlugin.EventBrowserPlugin._navigateMenu
private
Vispa.Plugins.EventBrowser.EventBrowserPlugin.EventBrowserPlugin._navigateToolBar
private
Vispa.Plugins.EventBrowser.EventBrowserPlugin.EventBrowserPlugin._nextAction
private

Definition at line 29 of file EventBrowserPlugin.py.

Vispa.Plugins.EventBrowser.EventBrowserPlugin.EventBrowserPlugin._previousAction
private

Definition at line 28 of file EventBrowserPlugin.py.