API Reference for Enthought Tool Suite 3.0.1
Unit Sytem Plugin
cookies = CookieImplementations(implementations = [ CookieImplementation(resource_type = QUANTITY_RESOURCE_TYPE, cookie_interface = ('enthought.envisage.project.action' + '.open_cookie.OpenCookie'), cookie_implementation = ('enthought.units.plugin' + '.quantity_resource_open_cookie.QuantityResourceOpenCookie')) ])
The plugin's globally unique identifier (also used as the prefix for all identifiers defined in this module).
ID = 'Units'
preferences = Preferences(defaults = { Const('default_unit_system') : Const('KGS') })
### Resource Types ###########################################################
QUANTITY_RESOURCE_TYPE = 'enthought.units.plugin.quantity_resource_type.QuantityResourceType'
resource_manager = ResourceManager(resource_types = [ ResourceType(class_name = QUANTITY_RESOURCE_TYPE, precedes = [ INSTANCE_RESOURCE_TYPE ]) ])
## Resource Wizards ##########################################################
resource_wizards = ResourceWizards(resource_wizards = [ ResourceWizard(category = 'Data Resources', name = 'Quantity', class_name = 'enthought.units.plugin.new_quantity_wizard.NewQuantityWizard'), ResourceWizard(category = 'Data Resources', name = 'Scalar', class_name = 'enthought.units.plugin.new_scalar_wizard.NewScalarWizard') ])
### Menus/Actions ############################################################
set_unit_system = Action(id = 'action.SetUnitSystem', class_name = 'enthought.units.plugin.action.set_unit_system_action.SetUnitSystem', name = 'Set Unit System...', description = 'Set the system-wide default unit system', image = '', tooltip = 'Set the system-wide default unit system', menu_bar_path = 'ToolsMenu/', tool_bar_path = '')
ui_actions = UIActions(actions = [ set_unit_system ])
| Local name | Refers to |
|---|---|
| Action | enthought.envisage.ui.ui_plugin_definition.Action |
| CookieImplementation | enthought.envisage.resource.resource_ui_plugin_definition.CookieImplementation |
| CookieImplementations | enthought.envisage.resource.resource_ui_plugin_definition.CookieImplementations |
| INSTANCE_RESOURCE_TYPE | enthought.envisage.resource.resource_plugin_definition.INSTANCE_RESOURCE_TYPE |
| PluginDefinition | enthought.envisage.core.core_plugin_definition.PluginDefinition |
| Preferences | enthought.envisage.core.core_plugin_definition.Preferences |
| ResourceManager | enthought.envisage.resource.resource_plugin_definition.ResourceManager |
| ResourceType | enthought.envisage.resource.resource_plugin_definition.ResourceType |
| ResourceWizard | enthought.envisage.resource.resource_ui_plugin_definition.ResourceWizard |
| ResourceWizards | enthought.envisage.resource.resource_ui_plugin_definition.ResourceWizards |
| UIActions | enthought.envisage.ui.ui_plugin_definition.UIActions |
© Copyright 2002-2008 Enthought, Inc.