spinetoolbox.spine_db_editor.mvcmodels.parameter_tag_model
¶
A tree model for parameter_tags.
- authors
Marin (KTH)
- date
28.6.2019
Module Contents¶
Classes¶
An item representing a db. |
|
Paints the last item gray. |
|
A model to display parameter_tag data in a tree view. |
- class spinetoolbox.spine_db_editor.mvcmodels.parameter_tag_model.DBItem(db_map)[source]¶
Bases:
spinetoolbox.spine_db_editor.mvcmodels.tree_item_utility.EmptyChildMixin
,spinetoolbox.spine_db_editor.mvcmodels.tree_item_utility.NonLazyDBItem
An item representing a db.
Init class.
- Args
db_mngr (SpineDBManager) db_map (DiffDatabaseMapping)
- class spinetoolbox.spine_db_editor.mvcmodels.parameter_tag_model.TagItem(identifier=None)[source]¶
Bases:
spinetoolbox.spine_db_editor.mvcmodels.tree_item_utility.LastGrayMixin
,spinetoolbox.spine_db_editor.mvcmodels.tree_item_utility.EditableMixin
,spinetoolbox.spine_db_editor.mvcmodels.tree_item_utility.NonLazyTreeItem
Paints the last item gray.
Initializes item.
- Parameters
model (MinimalTreeModel, NoneType) – The model where the item belongs.
- class spinetoolbox.spine_db_editor.mvcmodels.parameter_tag_model.ParameterTagModel(parent, db_mngr, *db_maps)[source]¶
Bases:
spinetoolbox.spine_db_editor.mvcmodels.tree_model_base.TreeModelBase
A model to display parameter_tag data in a tree view.
- Parameters
parent (SpineDBEditor) –
db_mngr (SpineDBManager) –
db_maps (iter) – DiffDatabaseMapping instances
Initialize class