spinetoolbox.project_items.tool.tool_factory

The ToolFactory class.

author:
  1. Marin (KTH)
date:

15.4.2020

Module Contents

Classes

ToolFactory Class for project item factories.
class spinetoolbox.project_items.tool.tool_factory.ToolFactory(toolbox)[source]

Bases: spinetoolbox.project_item.ProjectItemFactory

Class for project item factories.

Parameters:toolbox (ToolboxUI) –
item_maker[source]

Returns a ProjectItem subclass.

Returns:class
icon_maker[source]

Returns a ProjectItemIcon subclass.

Returns:class
add_form_maker[source]

Returns an AddProjectItem subclass.

Returns:class
specification_form_maker[source]

Returns a QWidget subclass to create and edit specifications.

Returns:class
specification_menu_maker[source]

Returns an ItemSpecificationMenu subclass.

Returns:class
static icon()[source]

Returns the icon resource path.

Returns:str
static supports_specifications()[source]

Returns whether or not this factory supports specs.

If the subclass implementation returns True, then it must also implement specification_form_maker, and specification_menu_maker.

Returns:bool
static _make_properties_widget(toolbox)[source]

Creates the item’s properties tab widget.

Returns:QWidget