view
¶
Module for view class.
authors: |
|
---|---|
date: | 14.07.2018 |
Module Contents¶
-
class
view.
View
(toolbox, name, description, x, y)[source]¶ Bases:
project_item.ProjectItem
View class.
-
name
¶ Object name
Type: str
-
description
¶ Object description
Type: str
-
x
¶ Initial X coordinate of item icon
Type: int
-
y
¶ Initial Y coordinate of item icon
Type: int
-
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.
-
find_input_items
(self)[source]¶ Find input project items (only Data Stores now) that are connected to this View.
Returns: List of Data Store items.
-
open_graph_view_btn_clicked
(self, checked=False)[source]¶ Slot for handling the signal emitted by clicking on ‘Graph view’ button.
-
open_tabular_view_btn_clicked
(self, checked=False)[source]¶ Slot for handling the signal emitted by clicking on ‘Tabular view’ button.
-
open_tree_view_btn_clicked
(self, checked=False)[source]¶ Slot for handling the signal emitted by clicking on ‘Tree view’ button.
-
_open_view
(self, view_store, supports_multiple_databases)[source]¶ Opens references in a view window.
Parameters: - view_store (dict) – a dictionary where to store the view window
- supports_multiple_databases (bool) – True if the view supports more than one database
-
populate_reference_list
(self, items)[source]¶ Add given list of items to the reference model. If None or an empty list given, the model is cleared.
-