eric6.E5Gui.E5Application

Class implementing a specialized application class.

Global Attributes

e5App

Classes

E5Application Eric application class with an object registry.

Functions

None


E5Application

Eric application class with an object registry.

Derived from

QApplication

Class Attributes

None

Class Methods

None

Methods

E5Application Constructor
getObject Public method to get a reference to a registered object.
getPluginObject Public method to get a reference to a registered plugin object.
getPluginObjectType Public method to get the type of a registered plugin object.
getPluginObjects Public method to get a list of (name, reference) pairs of all registered plugin objects.
registerObject Public method to register an object in the object registry.
registerPluginObject Public method to register a plugin object in the object registry.
unregisterPluginObject Public method to unregister a plugin object in the object registry.

Static Methods

None

E5Application (Constructor)

E5Application(argv)

Constructor

argv
command line arguments

E5Application.getObject

getObject(name)

Public method to get a reference to a registered object.

name
name of the object (string)
Returns:
reference to the registered object
Raises KeyError:
raised when the given name is not known

E5Application.getPluginObject

getPluginObject(name)

Public method to get a reference to a registered plugin object.

name
name of the plugin object (string)
Returns:
reference to the registered plugin object
Raises KeyError:
raised when the given name is not known

E5Application.getPluginObjectType

getPluginObjectType(name)

Public method to get the type of a registered plugin object.

name
name of the plugin object (string)
Returns:
type of the plugin object (string)
Raises KeyError:
raised when the given name is not known

E5Application.getPluginObjects

getPluginObjects()

Public method to get a list of (name, reference) pairs of all registered plugin objects.

Returns:
list of (name, reference) pairs

E5Application.registerObject

registerObject(name, object)

Public method to register an object in the object registry.

name
name of the object (string)
object
reference to the object
Raises KeyError:
raised when the given name is already in use

E5Application.registerPluginObject

registerPluginObject(name, object, pluginType=None)

Public method to register a plugin object in the object registry.

name
name of the plugin object (string)
object
reference to the plugin object
pluginType=
type of the plugin object (string)
Raises KeyError:
raised when the given name is already in use

E5Application.unregisterPluginObject

unregisterPluginObject(name)

Public method to unregister a plugin object in the object registry.

name
name of the plugin object (string)
Up