spinetoolbox.spine_db_editor.widgets.tree_view_mixin

Contains the TreeViewMixin class.

Module Contents

Classes

TreeViewMixin

Provides object and relationship trees for the Spine db editor.

class spinetoolbox.spine_db_editor.widgets.tree_view_mixin.TreeViewMixin(*args, **kwargs)[source]

Provides object and relationship trees for the Spine db editor.

init_models()[source]

Initializes models.

_db_map_ids(indexes)[source]
export_selected(selected_indexes)[source]

Exports data from given indexes in the entity tree.

show_add_entity_classes_form(parent_item)[source]

Shows dialog to add new entity classes.

show_add_entities_form(parent_item)[source]

Shows dialog to add new entities.

show_add_entity_group_form(entity_class_item)[source]

Shows dialog to add new entity group.

show_manage_members_form(entity_item)[source]

Shows dialog to manage an entity group.

show_manage_elements_form(parent_item)[source]
show_select_superclass_form(entity_class_item)[source]
edit_entity_tree_items(selected_indexes)[source]

Starts editing given indexes.

show_edit_entity_classes_form(items)[source]
show_edit_entities_form(items)[source]
remove_entity_tree_items(selected_indexes)[source]

Shows form to remove items from object treeview.

show_remove_entity_tree_items_form(selected)[source]