178 def createModule(moduleType, moduleName, moduleIsReadyCallback, connectionSettings):
354class BaseBoxControl(WidgetControl):
393class ButtonBoxControl(BaseBoxControl):
510class DateTimeControl(WidgetControl):
725class LineEditControl(WidgetControl):
845class NumberEdit(Widget):
872class NumberEditControl(WidgetControl):
935class ProgressBar(Widget):
1467class WidgetControl(WidgetControlModuleInterface):
1502class WidgetControlFactory:
Base class for objects with signals and slots.
__init__()
Creates a new MLAB.Core.Object.
getCursorURL()
Returns the url to a cursor file, the location might be configurable in future.
getURLToMLABRoot()
Returns the url to MLAB_ROOT.
The application class manages the steps to create the web application.
showError()
Displays an error as an alert.
moduleWindowCreated(windowControl)
Is emitted when a module panel is created.
createModule(moduleType, moduleName, moduleIsReadyCallback, connectionSettings)
Creates a new module.
closeBrowserWindow(windowName)
Closes a window that was created by MLAB.GUI.Application.createBrowserWindow().
createBrowserWindow(windowName, windowTitle, specs)
Creates a new browser window with the given name, title, and specifications.
getArguments()
Returns the application arguments, which may be specified as url arguments or as attributes of the ar...
modules()
Returns all parent modules that are created.
setRequestTimeoutHandler(handler)
Sets the request timeout handler.
setDisconnectedHandler(handler)
Sets the disconnected handler.
modulesAreReady()
Is emitted immediately when the module objects are fully initialized.
_notifyModulesAreReady(modules)
module(moduleName)
Returns the module by the given name.
allPluginsLoaded()
Is emitted when all plugins have been loaded.
_createModuleContextCreator()
_allPluginsLoaded()
This is called when all plugins have been loaded.
hideLoadDialog()
Is emitted when a load dialog should be hidden again.
showLoadDialog()
Is emitted when a load dialog should be shown.
enableLeaveCurrentPageConfirmationDialog(message, conditionalCallback)
Registers a handler for the beforeunload event that may cause a confirmation dialog to popup.
_handleCoreModulesLoaded()
This is called after the core modules (core and gui) have been loaded.
getBrowserWindow(windowName)
Returns a window that was created by MLAB.GUI.Application.createBrowserWindow().
setConnectionErrorHandler(handler)
Sets the connection error handler.
setConnectedHandler(handler)
Sets the connected handler.
shutdown()
Shuts the application down by disconnecting all module contexts and closing all browser windows.
setConnectionTimeoutHandler(handler)
Sets the connection timeout handler.
creatingModuleContexts()
Is emitted immediately before the module contexts are created.
setClientSettings(clientSettings)
Sets the settings from the client which should be passed to the remote worker process.
initialize(args)
Initializes the global application instance.
getUnauthenticatedModuleContexts()
Returns all unauthenticated module context.
hasAnyUnauthenticatedModuleContext()
Returns true if at least one unauthenticated module context exists.
setAuthentication(username, password)
Sets the authentication data.
requestAuthentication()
Asks the user for a user name and password to be passed as authentication to the modules.
addUnauthenticatedModuleContext(moduleContext)
getAuthentication()
Returns the authentication data.
authenticateModuleContexts()
setEditable()
Set whether the date input is editable.
HTML container for the items.
Item container inside ItemView.
isReturnPressed()
Returns true when the return key is pressed.
setEditable()
Set whether the text is editable.
layoutChanged()
Is emitted whenever the layout of the table has changed.
_createModuleContext(data)
This method creates an MLAB.Core.ModuleContext instance.
hasAnyModule()
Returns true if any module was created.
getMeVisLabData()
Returns custom data attributes with the given tag name.
getModules()
Returns all top level modules.
_parseAttributeData()
Returns an object with the attributes given in the argument string.
notifyBodyIsVisible()
Calls MLAB.Core.Module.setBodyIsVisible() on each module.
showIDEs()
Calls MLAB.Core.Module.showIDE() on each module.
_createGUIFromDOMElements()
_handleModuleContextReady(moduleContext, moduleCreationStatus)
This method is passed as a callback to MLAB.Core.ModuleContext.setModuleContextReadyCallback().
createModuleContexts()
Collects all DOM elements that have the "data-mevislab-create-macro" attribute and creates module con...
disconnectModules()
Calls MLAB.Core.Module.closeConnection() for each module.
getModule(moduleName)
Returns the module by the given name.
isReturnPressed()
Returns true when the return key is pressed.
setEditable()
Set whether the text is editable.
_updateValue()
Reads the input value and validates it, if a validator is available.
appendToDOM(domParent)
Called when this panel is top level, otherwise setupChildren() and setupFinished() are called from ML...
loadStyles(finishedLoadingCallback)
Loads all resources and calls setup() and the given callback function when all resources have finishe...
module()
Returns the module that loaded this plugin.
resourcesBaseUrl()
Returns the resources base URL.
setupTypicalTags()
Reimplements MLAB.GUI.WidgetControl.setupTypicalTags() to check if a fixed size is given.
metaInformationChanged(metaInformation)
Is emitted whenever new image meta information is received from the server.
setSizeHint(sizeHint)
Sets the size hint for the viewport.
slaveWasAdded()
Called from the slave when it is added.
useSizeHintHeight()
Returns true if the height of the size hint should be used.
getMinimumSize()
Returns the minimum size of the viewport.
resizeViewportToSizeHint()
This method resizes the viewport to the size hint, or the viewport size if the size hint is invalid.
useSizeHintWidth()
Returns true if the width of the size hint should be used.
setMinimumSize(size)
Sets the maximum size of the viewport.
getViewportSize()
Returns the viewport size.
setScaleImageOnResize(flag)
Sets if scaling of the image on the canvas is done on resize.
fieldChanged()
Reimplemented from MLAB.GUI.WidgetControl to react on changes of the base field type.
_createSlave()
Creates the remote rendering slave.
getMaximumSize()
Returns the maximum size of the viewport.
setMaximumSize(size)
Sets the maximum size of the viewport.
getSlave()
Returns the remote rendering slave.
_destroySlave()
Deactivates the slave (MLAB.Core.RemoteRenderingSlave.remove()) and removes it from the remote render...
resizeViewport(w, h)
Resizes the viewport.
A window controller creates MDL controls for modules using the MLAB.GUI.WidgetControlFactory from the...
windowCreated(windowControl)
Is emitted when a Window is created.
createPanel()
Creates a panel from an MDL window.
control(controlName)
Returns the first widget control with the given name.
__init__()
Creates a new window controller.
debugRemoteMessages()
Returns true if remote messages are being printed to the debugging console.
getDOMWindow(domElement)
Returns the window of the given domElement.
removeStyleProperty(domElement, property)
Remove a property from the style attribute of a DOM element.
getNextID()
Increments the last id by 1 and returns it.
setDOMElementVisible(domElement, visible)
Shows/hides the given DOM element.
isDOMElementEnabled()
Returns if the DOM element is enabled.
setDOMElementEnabled(domElement, enabled)
Enables/disables the given DOM element.
addStyleSheetClass(domElement, styleSheetClass)
Appends the given style sheet class to the DOM element.
isDOMElementVisible()
Returns if the DOM element is visible.
hasStyleSheetClass(domElement, styleSheetClass)
Returns true if the dom element has the given style sheet class, or false otherwise.
getGlobalPosition(domElement)
Returns the global position of the given domElement.
removeStyleSheetClass(domElement, styleSheetClass)
Removes the given style sheet class from the DOM element.
blurElement(domElement)
Blurs (removes the focus) of the given DOM element.