spinetoolbox.spine_db_editor.widgets.parameter_view_mixin¶
Contains the ParameterViewMixin class.
| author: |
|
|---|---|
| date: | 26.11.2018 |
Module Contents¶
Classes¶
ParameterViewMixin |
Provides stacked parameter tables for the Spine db editor. |
-
class
spinetoolbox.spine_db_editor.widgets.parameter_view_mixin.ParameterViewMixin(*args, **kwargs)[source]¶ Provides stacked parameter tables for the Spine db editor.
Initialize self. See help(type(self)) for accurate signature.
Adds toggle view actions to View menu.
-
set_parameter_data(self, index, new_value)[source]¶ Updates (object or relationship) parameter_definition or value with newly edited data.
-
show_object_name_list_editor(self, index, rel_cls_id, db_map)[source]¶ Shows the object names list editor.
Parameters: - index (QModelIndex) –
- rel_cls_id (int) –
- db_map (DiffDatabaseMapping) –
-
set_default_parameter_data(self, index=None)[source]¶ Sets default rows for parameter models according to given index.
Parameters: index (QModelIndex) – and index of the object or relationship tree
-
_get_filter_class_ids(self)[source]¶ Returns filter class ids by combining filter class ids from entity tree and parameter_tag toolbar.
Returns: mapping db maps to sets of ids, or None if no filter (none shall pass) Return type: dict, NoneType
-
_handle_graph_selection_changed(self, selected_items)[source]¶ Resets filter according to graph selection.
-
_handle_object_tree_selection_changed(self, selected_indexes)[source]¶ Resets filter according to object tree selection.
-
_handle_relationship_tree_selection_changed(self, selected_indexes)[source]¶ Resets filter according to relationship tree selection.
-
_handle_alternative_selection_changed(self, selected_db_map_alt_ids)[source]¶ Resets filter according to selection in alternative tree view.
-
_handle_tag_selection_changed(self, selected_db_map_tag_ids)[source]¶ Resets filter according to selection in parameter_tag tree view.
-
save_window_state(self)[source]¶ Saves window state parameters (size, position, state) via QSettings.