![]() |
![]() |
Public Member Functions | |
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 Attributes | |
_application | |
_createNewFileActions | |
_filetypes | |
Interface for all VispaPlugins
Definition at line 7 of file VispaPlugin.py.
Definition at line 10 of file VispaPlugin.py.
Creates a new file action with label and optionally with a callable slot set and appends it to local new file actions list.
Definition at line 50 of file VispaPlugin.py.
Referenced by Vispa.Plugins.ConfigEditor.ConfigEditorPlugin.ConfigEditorPlugin.__init__().
def Vispa.Main.VispaPlugin.VispaPlugin.application | ( | self | ) |
Returns application object.
Definition at line 17 of file VispaPlugin.py.
References Vispa.Main.AboutDialog.AboutDialog._application, Vispa.Main.VispaPlugin.VispaPlugin._application, and Vispa.Main.MainWindow.MainWindow._application.
Referenced by Vispa.Plugins.ConfigEditor.ConfigEditorPlugin.ConfigEditorPlugin.__init__(), Vispa.Plugins.Browser.BrowserPlugin.BrowserPlugin._collapseAll(), Vispa.Plugins.EdmBrowser.EdmBrowserPlugin.EdmBrowserPlugin._eventContent(), Vispa.Plugins.Browser.BrowserPlugin.BrowserPlugin._expandAll(), Vispa.Plugins.EdmBrowser.EdmBrowserPlugin.EdmBrowserPlugin._expandToDepth(), Vispa.Plugins.Browser.BrowserPlugin.BrowserPlugin._expandToDepth(), Vispa.Plugins.EdmBrowser.EdmBrowserPlugin.EdmBrowserPlugin._filterBranches(), Vispa.Plugins.EdmBrowser.EdmBrowserPlugin.EdmBrowserPlugin._hideUnderscoreProperties(), Vispa.Plugins.Browser.BrowserPlugin.BrowserPlugin._showBoxContentDialog(), Vispa.Plugins.Browser.BrowserPlugin.BrowserPlugin.addCenterView(), Vispa.Plugins.Browser.BrowserPlugin.BrowserPlugin.filterDialog(), Vispa.Plugins.EventBrowser.EventBrowserPlugin.EventBrowserPlugin.first(), Vispa.Plugins.EventBrowser.EventBrowserPlugin.EventBrowserPlugin.goto(), Vispa.Plugins.EventBrowser.EventBrowserPlugin.EventBrowserPlugin.last(), Vispa.Plugins.ConfigEditor.ConfigEditorPlugin.ConfigEditorPlugin.newFile(), Vispa.Plugins.EdmBrowser.EdmBrowserPlugin.EdmBrowserPlugin.newTab(), Vispa.Plugins.ConfigEditor.ConfigEditorPlugin.ConfigEditorPlugin.newTab(), Vispa.Plugins.EventBrowser.EventBrowserPlugin.EventBrowserPlugin.next(), Vispa.Main.VispaPlugin.VispaPlugin.openFile(), Vispa.Plugins.EventBrowser.EventBrowserPlugin.EventBrowserPlugin.previous(), Vispa.Plugins.Browser.BrowserPlugin.BrowserPlugin.saveImage(), Vispa.Plugins.Browser.BrowserPlugin.BrowserPlugin.switchCenterViewSlot(), and Vispa.Plugins.Browser.BrowserPlugin.BrowserPlugin.zoomDialog().
def Vispa.Main.VispaPlugin.VispaPlugin.filetypes | ( | self | ) |
Returns local list of Filetype objects.
Definition at line 29 of file VispaPlugin.py.
References Vispa.Main.VispaPlugin.VispaPlugin._filetypes.
Referenced by Vispa.Plugins.Browser.BrowserPlugin.BrowserPlugin.openFile().
def Vispa.Main.VispaPlugin.VispaPlugin.getNewFileActions | ( | self | ) |
Returns local list of new file actions.
Definition at line 54 of file VispaPlugin.py.
References Vispa.Main.VispaPlugin.VispaPlugin._createNewFileActions.
def Vispa.Main.VispaPlugin.VispaPlugin.openFile | ( | self, | |
filename | |||
) |
This function has to be implemented by each plugin which can open files. On success it should return True
Definition at line 41 of file VispaPlugin.py.
References Vispa.Main.VispaPlugin.VispaPlugin.application(), and Vispa.Main.MainWindow.MainWindow.application().
def Vispa.Main.VispaPlugin.VispaPlugin.registerFiletype | ( | self, | |
ext, | |||
description | |||
) |
Registers Filetype object for given extension with description. Description will be shown in open and save dialogs.
Definition at line 22 of file VispaPlugin.py.
Referenced by Vispa.Main.VispaPlugin.VispaPlugin.registerFiletypesFromTabController().
def Vispa.Main.VispaPlugin.VispaPlugin.registerFiletypesFromTabController | ( | self, | |
TabControllerClass | |||
) |
Adds supported file types from TabControllerClass. Evaluates the static function staticSupportedFileTypes() of class TabControllerClass.
Definition at line 34 of file VispaPlugin.py.
References Vispa.Main.VispaPlugin.VispaPlugin.registerFiletype().
Referenced by Vispa.Plugins.EdmBrowser.EdmBrowserPlugin.EdmBrowserPlugin.__init__(), and Vispa.Plugins.ConfigEditor.ConfigEditorPlugin.ConfigEditorPlugin.__init__().
def Vispa.Main.VispaPlugin.VispaPlugin.shutdown | ( | self | ) |
|
private |
Definition at line 12 of file VispaPlugin.py.
Referenced by Vispa.Main.VispaPlugin.VispaPlugin.application().
|
private |
Definition at line 14 of file VispaPlugin.py.
Referenced by Vispa.Main.VispaPlugin.VispaPlugin.getNewFileActions().
|
private |
Definition at line 15 of file VispaPlugin.py.
Referenced by Vispa.Main.VispaPlugin.VispaPlugin.filetypes().