spinetoolbox.project_items.view.view

Module for view class.

authors:
  1. Savolainen (VTT), M. Marin (KHT), J. Olauson (KTH)
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
static item_type()[source]

See base class.

static category()[source]

See base class.

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.

open_view(self, checked=False)[source]

Opens references in a view window.

populate_reference_list(self)[source]

Populates reference list.

update_name_label(self)[source]

Update View tab name label. Used only when renaming project items.

execute_forward(self, resources)[source]

see base class

_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
_selected_indexes(self)[source]

Returns selected indexes.

_database_urls(self, indexes)[source]

Returns list of tuples (url, provider) for given indexes.

_restore_existing_view_window(self, view_id)[source]

Restores an existing view window and returns True if the operation was successful.

_make_view_window(self, db_maps)[source]
tear_down(self)[source]

Tears down this item. Called by toolbox just before closing. Closes all view windows.

notify_destination(self, source_item)[source]

See base class.

static default_name_prefix()[source]

see base class