spinetoolbox.spine_db_editor.mvcmodels.multi_db_tree_model

A base model class to represent items from multiple databases in a tree.

Module Contents

Classes

MultiDBTreeModel

Base class for all tree models in Spine db editor.

class spinetoolbox.spine_db_editor.mvcmodels.multi_db_tree_model.MultiDBTreeModel(db_editor, db_mngr, *db_maps)[source]

Bases: spinetoolbox.mvcmodels.minimal_tree_model.MinimalTreeModel

Base class for all tree models in Spine db editor.

Init class.

Parameters
abstract property root_item_type[source]

Implement in subclasses to create a model specific to any entity type.

property root_item[source]
property root_index[source]
property _header_labels[source]
build_tree()[source]

Builds tree.

columnCount(parent=QModelIndex())[source]
headerData(section, orientation, role=Qt.ItemDataRole.DisplayRole)[source]
find_items(db_map, path_prefix, fetch=False)[source]

Returns items at given path prefix.