spinetoolbox.spine_db_editor.mvcmodels.tree_item_utility
¶
A tree model for parameter_value lists.
- authors
Marin (KTH)
- date
28.6.2019
Module Contents¶
Classes¶
A tree item that fetches their children as they are inserted. |
|
Paints the last item gray. |
|
Bolds text. |
|
Guarantess there’s always an empty child. |
|
An item representing a db. |
|
A root item. |
|
Guarantess there’s always an empty child. |
|
A tree item that fetches their children as they are inserted. |
- class spinetoolbox.spine_db_editor.mvcmodels.tree_item_utility.NonLazyTreeItem(model=None)[source]¶
Bases:
spinetoolbox.mvcmodels.minimal_tree_model.TreeItem
A tree item that fetches their children as they are inserted.
Initializes item.
- Parameters
model (MinimalTreeModel, NoneType) – The model where the item belongs.
- class spinetoolbox.spine_db_editor.mvcmodels.tree_item_utility.LastGrayMixin[source]¶
Paints the last item gray.
- class spinetoolbox.spine_db_editor.mvcmodels.tree_item_utility.EmptyChildMixin[source]¶
Guarantess there’s always an empty child.
- class spinetoolbox.spine_db_editor.mvcmodels.tree_item_utility.NonLazyDBItem(db_map)[source]¶
Bases:
NonLazyTreeItem
An item representing a db.
Init class.
- Args
db_mngr (SpineDBManager) db_map (DiffDatabaseMapping)
- class spinetoolbox.spine_db_editor.mvcmodels.tree_item_utility.RootItem(model=None)[source]¶
Bases:
AllBoldMixin
,NonLazyTreeItem
A root item.
Initializes item.
- Parameters
model (MinimalTreeModel, NoneType) – The model where the item belongs.
- class spinetoolbox.spine_db_editor.mvcmodels.tree_item_utility.EmptyChildRootItem(model=None)[source]¶
Bases:
EmptyChildMixin
,RootItem
Guarantess there’s always an empty child.
Initializes item.
- Parameters
model (MinimalTreeModel, NoneType) – The model where the item belongs.
- class spinetoolbox.spine_db_editor.mvcmodels.tree_item_utility.LeafItem(identifier=None)[source]¶
Bases:
NonLazyTreeItem
A tree item that fetches their children as they are inserted.
Initializes item.
- Parameters
model (MinimalTreeModel, NoneType) – The model where the item belongs.