spinetoolbox.spine_db_editor.mvcmodels.tool_feature_model

Models to represent tools and features in a tree.

authors
  1. Marin (KTH)

date

1.0.2020

Module Contents

Classes

ToolFeatureModel

A model to display tools and features in a tree view.

class spinetoolbox.spine_db_editor.mvcmodels.tool_feature_model.ToolFeatureModel(parent, db_mngr, *db_maps)[source]

Bases: spinetoolbox.spine_db_editor.mvcmodels.tree_model_base.TreeModelBase

A model to display tools and features in a tree view.

Parameters

Initialize class

static _make_db_item(db_map)[source]
static _top_children()[source]
static make_feature_name(entity_class_name, parameter_definition_name)[source]
_begin_set_features(self, db_map)[source]
get_all_feature_names(self, db_map)[source]
get_feature_data(self, db_map, feature_name)[source]
_begin_set_feature_method(self, db_map, parameter_value_list_id)[source]
get_all_feature_methods(self, db_map, parameter_value_list_id)[source]
get_method_index(self, db_map, parameter_value_list_id, method)[source]
_tool_ids_per_root_item(self, db_map_data)[source]
_feature_ids_per_root_item(self, db_map_data)[source]
_tool_feature_ids_per_root_item(self, db_map_data)[source]
_tool_feature_method_ids_per_root_item(self, db_map_data)[source]
add_features(self, db_map_data)[source]
add_tools(self, db_map_data)[source]
add_tool_features(self, db_map_data)[source]
add_tool_feature_methods(self, db_map_data)[source]
update_features(self, db_map_data)[source]
update_tools(self, db_map_data)[source]
update_tool_features(self, db_map_data)[source]
update_tool_feature_methods(self, db_map_data)[source]
remove_features(self, db_map_data)[source]
remove_tools(self, db_map_data)[source]
remove_tool_features(self, db_map_data)[source]
remove_tool_feature_methods(self, db_map_data)[source]
supportedDropActions(self)[source]
mimeData(self, indexes)[source]

Builds a dict mapping db name to item type to a list of ids.

Returns

QMimeData

canDropMimeData(self, data, drop_action, row, column, parent)[source]
dropMimeData(self, data, drop_action, row, column, parent)[source]