- All Known Subinterfaces:
ApplicationAccessManager
,DocumentAccessManager
public interface AbstractAccessManager
This interface allows to access features of the Omix Plugin Interface
as super type of
ApplicationAccessManager
and DocumentAccessManager
.- Since:
- Omix 2.0.0
- Author:
- Dr. Peter Droste, Omix Visualization
-
Method Summary
Modifier and Type Method Description void
addDockWidget(QDockWidget dockWidget)
Adds a dock widget to the Omix mainwindow.void
addDockWidget(QDockWidget dockWidget, Qt.DockWidgetArea preferredDockWidgetArea)
Adds a dock widget to the Omix mainwindow.void
addMenu(QMenu menu)
Adds a menu to the menubar of Omix.void
addMenuItem(QAction action)
Adds an action to the extras menu of Omix.void
addMenuItem(QAction action, PluginMenuItemType type)
Adds an action to the menubar of Omix according to thePluginMenuItemType
parameter.void
addToolBar(QToolBar toolbar)
Adds a toolbar to the mainwindow.void
addToolBar(QToolBar toolbar, Qt.ToolBarArea preferredToolBarArea)
Adds a toolbar to the mainwindow.void
addToolBarAction(QAction action)
Adds an action to the plugin toolbar of Omix.void
addToolBarAction(QAction action, PluginToolbarItemType type)
Adds an action to the plugin toolbar of Omix according to thePluginToolbarItemType
parameter.Authenticator
authenticator()
An authenticator asking the user for passwords.<T> T
editValue(T value, Class<T> cls, boolean allowNullValue, String windowTitle, String message)
Causes a dialog to appear for editing the given value type.LicenseKey
getPluginLicense()
Returns the license key of the plugin.PublicIdentifierManager
getPublicIdentifierManager()
Returns the manager for public model identifiers.Proxy
httpProxy()
HTTP proxyvoid
message(String title, String message, String detail, MessageType messageType)
Shows a message from the plugin.OVLCompiler
newOVLCompiler()
Returns a new instance of OVL compiler allowing to compile OVL code to executable OVLPrograms.QWidget
parentWidget()
A parent widget important to create modal dialog windows.
For instance:
QDialog dialog = new QDialog(parentWidget());
dialog.show();void
removeDockWidget(QDockWidget dockWidget)
Removes the dock widget to the Omix mainwindow.void
removeMenu(QMenu menu)
Removes the menu from the menubar of Omix.void
removeMenuItem(QAction action)
Removes the action from the menubar.void
removeToolBar(QToolBar toolbar)
Removes the toolbar from the mainwindow.void
removeToolBarAction(QAction action)
Removes the action from the plugin toolbar.void
requestExportImageProcedure(String dialogtitle, QSizeF size, ImageRenderer exportImageProcedure)
This method allows a plug-in to ask for an image export procedure.Settings
settings()
Omix settings.VoDObjectFactory
vodObjectFactory()
returns a factory for Visualization On Demand Objects
-
Method Details
-
addMenuItem
Adds an action to the extras menu of Omix. equals: addMenuItem(action, PluginMenuItemType.Default)- Parameters:
action
-
-
removeMenuItem
Removes the action from the menubar.- Parameters:
action
-
-
addMenuItem
Adds an action to the menubar of Omix according to thePluginMenuItemType
parameter.- Parameters:
action
-type
- in which menu the new item shall be inserted
-
addToolBarAction
Adds an action to the plugin toolbar of Omix. The same as addToolBarAction(QAction, PluginToolbarItemType.Default)- Parameters:
action
-
-
addToolBarAction
Adds an action to the plugin toolbar of Omix according to thePluginToolbarItemType
parameter.- Parameters:
action
-type
- on which toolbar the new item shall be inserted
-
removeToolBarAction
Removes the action from the plugin toolbar.- Parameters:
action
-
-
addMenu
Adds a menu to the menubar of Omix.- Parameters:
menu
-
-
removeMenu
Removes the menu from the menubar of Omix.- Parameters:
menu
-
-
addToolBar
Adds a toolbar to the mainwindow.- Parameters:
toolbar
-
-
addToolBar
Adds a toolbar to the mainwindow.- Parameters:
toolbar
-preferredToolBarArea
- the preferred ToolBarArea to be used.
-
removeToolBar
Removes the toolbar from the mainwindow.- Parameters:
toolbar
-
-
addDockWidget
Adds a dock widget to the Omix mainwindow.- Parameters:
dockWidget
-
-
addDockWidget
Adds a dock widget to the Omix mainwindow.- Parameters:
preferredDockWidgetArea
- the preferred DockWidgetArea to be used.dockWidget
-
-
removeDockWidget
Removes the dock widget to the Omix mainwindow.- Parameters:
dockWidget
-
-
parentWidget
QWidget parentWidget()A parent widget important to create modal dialog windows.
For instance:
QDialog dialog = new QDialog(parentWidget());
dialog.show();- Returns:
- parent widget
-
message
Shows a message from the plugin. TheMessageType
parameter specifies the way, the message and detail text is displayed.- Parameters:
title
- of the dialog window (not necessary forMessageType.STATUSBAR
)message
- textdetail
- text (not necessary forMessageType.STATUSBAR
)messageType
-
-
requestExportImageProcedure
void requestExportImageProcedure(String dialogtitle, QSizeF size, ImageRenderer exportImageProcedure)This method allows a plug-in to ask for an image export procedure. Here, the plug-in can use all installed image export filters even of other plug-ins.- Parameters:
dialogtitle
- Title of the image export dialog.size
- 1:1 size of the image.exportImageProcedure
- The export executing object.- Since:
- Omix 1.4.20
-
authenticator
Authenticator authenticator()An authenticator asking the user for passwords.- Returns:
- authenticator
-
settings
Settings settings()Omix settings.- Returns:
- Omix settings
-
newOVLCompiler
OVLCompiler newOVLCompiler()Returns a new instance of OVL compiler allowing to compile OVL code to executable OVLPrograms.- Returns:
- ovl compiler
- Since:
- Omix 1.9.0
-
vodObjectFactory
VoDObjectFactory vodObjectFactory()returns a factory for Visualization On Demand Objects- Returns:
- VoDObjectFactory
- Since:
- Omix 1.9.0
-
getPublicIdentifierManager
PublicIdentifierManager getPublicIdentifierManager()Returns the manager for public model identifiers.- Returns:
- PublicIdentifierManager
- Since:
- Omix 1.9.0
-
httpProxy
Proxy httpProxy()HTTP proxy- Returns:
- HTTP Proxy if available.
null
otherwise.
-
getPluginLicense
LicenseKey getPluginLicense()Returns the license key of the plugin.- Returns:
- license
- Since:
- Omix 1.5.22
-
editValue
<T> T editValue(T value, Class<T> cls, boolean allowNullValue, String windowTitle, String message) throws SilentAbortCauses a dialog to appear for editing the given value type.- Parameters:
value
-cls
- class of the valueallowNullValue
- true if value may also be nullwindowTitle
-message
-- Returns:
- the edited value
- Throws:
SilentAbort
- if procedure was canceled by user.- Since:
- Omix 1.9.0
-