spinetoolbox.project_items.combiner.combiner¶
Module for view class.
| authors: |
|
|---|---|
| date: | 14.07.2018 |
Module Contents¶
Classes¶
Combiner |
Class for project items that are not category nor root. |
-
class
spinetoolbox.project_items.combiner.combiner.Combiner(toolbox, project, logger, name, description, x, y, cancel_on_error=False)[source]¶ Bases:
spinetoolbox.project_item.ProjectItemClass for project items that are not category nor root. These items can be executed, refreshed, and so on.
-
x¶ horizontal position in the screen
Type: float
-
y¶ vertical position in the screen
Type: float
Combiner class.
Parameters: - toolbox (ToolboxUI) – a toolbox instance
- project (SpineToolboxProject) – the project this item belongs to
- logger (LoggerInterface) – a logger instance
- name (str) – Object name
- description (str) – Object description
- x (float) – Initial X coordinate of item icon
- y (float) – Initial Y coordinate of item icon
- cancel_on_error (bool, optional) – if True, changes will be reverted on errors
-
make_signal_handler_dict(self)[source]¶ Returns a dictionary of all shared signals and their handlers. This is to enable simpler connecting and disconnecting.
-
restore_selections(self)[source]¶ Restore selections into shared widgets when this project item is selected.
-
save_selections(self)[source]¶ Save selections in shared widgets for this project item into instance variables.
-
update_name_label(self)[source]¶ Update Combiner tab name label. Used only when renaming project items.
-
handle_execution_successful(self, execution_direction, engine_state)[source]¶ Notifies Toolbox of successful database import.
-
_do_handle_dag_changed(self, resources)[source]¶ Update the list of references that this item is viewing.
-
_update_references_list(self, resources_upstream)[source]¶ Updates the references list with resources upstream.
Parameters: resources_upstream (list) – ProjectItemResource instances
-