spinetoolbox.spine_db_editor.mvcmodels.tree_item_utility
A tree model for parameter_value lists.
Module Contents
Classes
A tree item that fetches their children as they are inserted. |
|
Paints the item gray if it's the last. |
|
Bolds text. |
|
Guarantees there's always an empty child. |
|
An item representing a db. |
|
A tree item that fetches their children as they are inserted. |
- class spinetoolbox.spine_db_editor.mvcmodels.tree_item_utility.StandardTreeItem(model)[source]
Bases:
spinetoolbox.mvcmodels.minimal_tree_model.TreeItem
A tree item that fetches their children as they are inserted.
- Parameters
model (MinimalTreeModel) – The model where the item belongs.
- class spinetoolbox.spine_db_editor.mvcmodels.tree_item_utility.GrayIfLastMixin[source]
Paints the item gray if it’s the last.
- class spinetoolbox.spine_db_editor.mvcmodels.tree_item_utility.EmptyChildMixin[source]
Guarantees there’s always an empty child.
- class spinetoolbox.spine_db_editor.mvcmodels.tree_item_utility.FetchMoreMixin(*args, **kwargs)[source]
- class spinetoolbox.spine_db_editor.mvcmodels.tree_item_utility.StandardDBItem(model, db_map)[source]
Bases:
SortChildrenMixin
,StandardTreeItem
An item representing a db.
Init class.
- Parameters
model (MinimalTreeModel) –
db_map (DatabaseMapping) –
- class spinetoolbox.spine_db_editor.mvcmodels.tree_item_utility.LeafItem(model, identifier=None)[source]
Bases:
StandardTreeItem
A tree item that fetches their children as they are inserted.
- Parameters
model (MinimalTreeModel) –
identifier (int, optional) – item’s database id