spinetoolbox.spine_db_editor.widgets.custom_delegates¶
Custom item delegates.
| author: |
|
|---|---|
| date: | 1.9.2018 |
Module Contents¶
Classes¶
RelationshipPivotTableDelegate |
A delegate that places a fully functioning QCheckBox. | ||
ParameterPivotTableDelegate |
|
||
ParameterDelegate |
Base class for all custom parameter delegates. | ||
DatabaseNameDelegate |
A delegate for the database name. | ||
ParameterValueOrDefaultValueDelegate |
A delegate for the either the value or the default value. | ||
ParameterDefaultValueDelegate |
A delegate for the either the default value. | ||
ParameterValueDelegate |
A delegate for the parameter_value. | ||
TagListDelegate |
A delegate for the parameter_tag list. | ||
ValueListDelegate |
A delegate for the parameter_value-list. | ||
ObjectClassNameDelegate |
A delegate for the object_class name. | ||
RelationshipClassNameDelegate |
A delegate for the relationship_class name. | ||
ParameterNameDelegate |
A delegate for the object parameter name. | ||
ObjectNameDelegate |
A delegate for the object name. | ||
AlternativeNameDelegate |
A delegate for the object name. | ||
ObjectNameListDelegate |
A delegate for the object name list. | ||
ManageItemsDelegate |
A custom delegate for the model in {Add/Edit}ItemDialogs. | ||
ManageObjectClassesDelegate |
A delegate for the model and view in {Add/Edit}ObjectClassesDialog. | ||
ManageObjectsDelegate |
A delegate for the model and view in {Add/Edit}ObjectsDialog. | ||
ManageRelationshipClassesDelegate |
A delegate for the model and view in {Add/Edit}RelationshipClassesDialog. | ||
ManageRelationshipsDelegate |
A delegate for the model and view in {Add/Edit}RelationshipsDialog. | ||
RemoveEntitiesDelegate |
A delegate for the model and view in RemoveEntitiesDialog. |
-
class
spinetoolbox.spine_db_editor.widgets.custom_delegates.RelationshipPivotTableDelegate(parent)[source]¶ Bases:
spinetoolbox.widgets.custom_delegates.CheckBoxDelegateA delegate that places a fully functioning QCheckBox.
-
parent¶ either toolbox or spine datapackage widget
Type: QMainWindow
-
centered¶ whether or not the checkbox should be center-aligned in the widget
Type: bool
Parameters: parent (SpineDBEditor) – -
static
_is_relationship_index(index)[source]¶ Checks whether or not the given index corresponds to a relationship, in which case we need to use the check box delegate.
Returns: bool
-
setEditorData(self, editor, index)[source]¶ Do nothing. We’re setting editor data right away in createEditor.
-
-
class
spinetoolbox.spine_db_editor.widgets.custom_delegates.ParameterPivotTableDelegate(parent)[source]¶ Bases:
PySide2.QtWidgets.QStyledItemDelegateParameters: parent (SpineDBEditor) –
-
class
spinetoolbox.spine_db_editor.widgets.custom_delegates.ParameterDelegate(parent, db_mngr)[source]¶ Bases:
PySide2.QtWidgets.QStyledItemDelegateBase class for all custom parameter delegates.
-
parent¶ tree or graph view form
Type: SpineDBEditor
-
db_mngr¶ Type: SpineDBManager
-
-
class
spinetoolbox.spine_db_editor.widgets.custom_delegates.DatabaseNameDelegate(parent, db_mngr)[source]¶ Bases:
spinetoolbox.spine_db_editor.widgets.custom_delegates.ParameterDelegateA delegate for the database name.
-
class
spinetoolbox.spine_db_editor.widgets.custom_delegates.ParameterValueOrDefaultValueDelegate(parent, db_mngr)[source]¶ Bases:
spinetoolbox.spine_db_editor.widgets.custom_delegates.ParameterDelegateA delegate for the either the value or the default value.
-
class
spinetoolbox.spine_db_editor.widgets.custom_delegates.ParameterDefaultValueDelegate(parent, db_mngr)[source]¶ Bases:
spinetoolbox.spine_db_editor.widgets.custom_delegates.ParameterValueOrDefaultValueDelegateA delegate for the either the default value.
-
class
spinetoolbox.spine_db_editor.widgets.custom_delegates.ParameterValueDelegate(parent, db_mngr)[source]¶ Bases:
spinetoolbox.spine_db_editor.widgets.custom_delegates.ParameterValueOrDefaultValueDelegateA delegate for the parameter_value.
-
class
spinetoolbox.spine_db_editor.widgets.custom_delegates.TagListDelegate(parent, db_mngr)[source]¶ Bases:
spinetoolbox.spine_db_editor.widgets.custom_delegates.ParameterDelegateA delegate for the parameter_tag list.
-
class
spinetoolbox.spine_db_editor.widgets.custom_delegates.ValueListDelegate(parent, db_mngr)[source]¶ Bases:
spinetoolbox.spine_db_editor.widgets.custom_delegates.ParameterDelegateA delegate for the parameter_value-list.
-
class
spinetoolbox.spine_db_editor.widgets.custom_delegates.ObjectClassNameDelegate(parent, db_mngr)[source]¶ Bases:
spinetoolbox.spine_db_editor.widgets.custom_delegates.ParameterDelegateA delegate for the object_class name.
-
class
spinetoolbox.spine_db_editor.widgets.custom_delegates.RelationshipClassNameDelegate(parent, db_mngr)[source]¶ Bases:
spinetoolbox.spine_db_editor.widgets.custom_delegates.ParameterDelegateA delegate for the relationship_class name.
-
class
spinetoolbox.spine_db_editor.widgets.custom_delegates.ParameterNameDelegate(parent, db_mngr)[source]¶ Bases:
spinetoolbox.spine_db_editor.widgets.custom_delegates.ParameterDelegateA delegate for the object parameter name.
-
class
spinetoolbox.spine_db_editor.widgets.custom_delegates.ObjectNameDelegate(parent, db_mngr)[source]¶ Bases:
spinetoolbox.spine_db_editor.widgets.custom_delegates.ParameterDelegateA delegate for the object name.
-
class
spinetoolbox.spine_db_editor.widgets.custom_delegates.AlternativeNameDelegate(parent, db_mngr)[source]¶ Bases:
spinetoolbox.spine_db_editor.widgets.custom_delegates.ParameterDelegateA delegate for the object name.
-
class
spinetoolbox.spine_db_editor.widgets.custom_delegates.ObjectNameListDelegate(parent, db_mngr)[source]¶ Bases:
spinetoolbox.spine_db_editor.widgets.custom_delegates.ParameterDelegateA delegate for the object name list.
-
class
spinetoolbox.spine_db_editor.widgets.custom_delegates.ManageItemsDelegate[source]¶ Bases:
PySide2.QtWidgets.QStyledItemDelegateA custom delegate for the model in {Add/Edit}ItemDialogs.
-
parent¶ parent dialog
Type: ManageItemsDialog
-
-
class
spinetoolbox.spine_db_editor.widgets.custom_delegates.ManageObjectClassesDelegate[source]¶ Bases:
spinetoolbox.spine_db_editor.widgets.custom_delegates.ManageItemsDelegateA delegate for the model and view in {Add/Edit}ObjectClassesDialog.
-
parent¶ parent dialog
Type: ManageItemsDialog
-
-
class
spinetoolbox.spine_db_editor.widgets.custom_delegates.ManageObjectsDelegate[source]¶ Bases:
spinetoolbox.spine_db_editor.widgets.custom_delegates.ManageItemsDelegateA delegate for the model and view in {Add/Edit}ObjectsDialog.
-
parent¶ parent dialog
Type: ManageItemsDialog
-
-
class
spinetoolbox.spine_db_editor.widgets.custom_delegates.ManageRelationshipClassesDelegate[source]¶ Bases:
spinetoolbox.spine_db_editor.widgets.custom_delegates.ManageItemsDelegateA delegate for the model and view in {Add/Edit}RelationshipClassesDialog.
-
parent¶ parent dialog
Type: ManageItemsDialog
-
-
class
spinetoolbox.spine_db_editor.widgets.custom_delegates.ManageRelationshipsDelegate[source]¶ Bases:
spinetoolbox.spine_db_editor.widgets.custom_delegates.ManageItemsDelegateA delegate for the model and view in {Add/Edit}RelationshipsDialog.
-
parent¶ parent dialog
Type: ManageItemsDialog
-
-
class
spinetoolbox.spine_db_editor.widgets.custom_delegates.RemoveEntitiesDelegate[source]¶ Bases:
spinetoolbox.spine_db_editor.widgets.custom_delegates.ManageItemsDelegateA delegate for the model and view in RemoveEntitiesDialog.
-
parent¶ parent dialog
Type: ManageItemsDialog
-