spinetoolbox.project_items.view.view
¶
Module for view class.
authors: |
|
---|---|
date: | 14.07.2018 |
Module Contents¶
-
class
spinetoolbox.project_items.view.view.
View
(name, description, x, y, toolbox, project, logger)[source]¶ Bases:
spinetoolbox.project_item.ProjectItem
View class.
Parameters: - name (str) – Object name
- description (str) – Object description
- x (float) – Initial X coordinate of item icon
- y (float) – Initial Y coordinate of item icon
- toolbox (ToolboxUI) – a toolbox instance
- project (SpineToolboxProject) – the project this item belongs to
- logger (LoggerInterface) – a logger instance
-
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.
-
_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
-
_restore_existing_view_window
(self, view_id)[source]¶ Restores an existing view window and returns True if the operation was successful.