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.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__
 
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 _fillEventNavigatorMenu
 

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 
15  def __init__(self, application=None):
16  logging.debug(__name__ + ": __init__")
17  BrowserPlugin.__init__(self, application)

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().

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

Definition at line 44 of file EventBrowserPlugin.py.

References Vispa.Plugins.EventBrowser.EventBrowserPlugin.EventBrowserPlugin._eventNumberDisplay.

44 
45  def eventNumberDisplay(self):
46  return self._eventNumberDisplay
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 
48  def first(self):
49  """ Calls first() function of current tab controller.
50  """
51  try:
52  self.application().currentTabController().first()
53  except NoCurrentTabControllerException:
54  logging.warning(self.__class__.__name__ + ": first() - No tab controller found.")
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 
80  def goto(self):
81  """ Calls goto() function of current tab controller.
82  """
83  try:
84  self.application().currentTabController().goto()
85  except NoCurrentTabControllerException:
86  logging.warning(self.__class__.__name__ + ": goto() - No tab controller found.")
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 
72  def last(self):
73  """ Calls last() function of current tab controller.
74  """
75  try:
76  self.application().currentTabController().last()
77  except NoCurrentTabControllerException:
78  logging.warning(self.__class__.__name__ + ": last() - No tab controller found.")
def Vispa.Plugins.EventBrowser.EventBrowserPlugin.EventBrowserPlugin.navigateMenu (   self)

Definition at line 87 of file EventBrowserPlugin.py.

References Vispa.Plugins.EventBrowser.EventBrowserPlugin.EventBrowserPlugin._navigateMenu.

87 
88  def navigateMenu(self):
89  return self._navigateMenu
def Vispa.Plugins.EventBrowser.EventBrowserPlugin.EventBrowserPlugin.navigateToolBar (   self)

Definition at line 90 of file EventBrowserPlugin.py.

References Vispa.Plugins.EventBrowser.EventBrowserPlugin.EventBrowserPlugin._navigateToolBar.

90 
91  def navigateToolBar(self):
return self._navigateToolBar
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().

Referenced by BeautifulSoup.PageElement._invert().

63 
64  def next(self):
65  """ Calls next() function of current tab controller.
66  """
67  try:
68  self.application().currentTabController().next()
69  except NoCurrentTabControllerException:
70  logging.warning(self.__class__.__name__ + ": next() - No tab controller found.")
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().

Referenced by BeautifulSoup.PageElement._invert().

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

Definition at line 18 of file EventBrowserPlugin.py.

References Vispa.Plugins.EventBrowser.EventBrowserPlugin.EventBrowserPlugin._fillEventNavigatorMenu().

18 
19  def startUp(self):
20  BrowserPlugin.startUp(self)

Member Data Documentation

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

Definition at line 32 of file EventBrowserPlugin.py.

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

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

Definition at line 25 of file EventBrowserPlugin.py.

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

Vispa.Plugins.EventBrowser.EventBrowserPlugin.EventBrowserPlugin._navigateToolBar
private

Definition at line 26 of file EventBrowserPlugin.py.

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

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.