spinetoolbox.widgets.custom_delegates¶
Custom item delegates.
| author: |
|
|---|---|
| date: | 1.9.2018 |
Module Contents¶
-
class
spinetoolbox.widgets.custom_delegates.ComboBoxDelegate(parent, choices)[source]¶ Bases:
PySide2.QtWidgets.QItemDelegate
-
class
spinetoolbox.widgets.custom_delegates.LineEditDelegate[source]¶ Bases:
PySide2.QtWidgets.QItemDelegateA delegate that places a fully functioning QLineEdit.
-
parent¶ either data store or spine datapackage widget
Type: QMainWindow
-
-
class
spinetoolbox.widgets.custom_delegates.CheckBoxDelegate(parent, centered=True)[source]¶ Bases:
PySide2.QtWidgets.QItemDelegateA 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
-
createEditor(self, parent, option, index)[source]¶ Important, otherwise an editor is created if the user clicks in this cell. ** Need to hook up a signal to the model.
-
editorEvent(self, event, model, option, index)[source]¶ Change the data in the model and the state of the checkbox when user presses left mouse button and this cell is editable. Otherwise do nothing.
-
-
class
spinetoolbox.widgets.custom_delegates.PivotTableDelegate[source]¶ Bases:
spinetoolbox.widgets.custom_delegates.CheckBoxDelegate
-
class
spinetoolbox.widgets.custom_delegates.GetObjectClassIdMixin[source]¶ Allows getting the object class id from the name.
-
class
spinetoolbox.widgets.custom_delegates.GetRelationshipClassIdMixin[source]¶ Allows getting the relationship class id from the name.
-
class
spinetoolbox.widgets.custom_delegates.ParameterDelegate(parent, db_mngr)[source]¶ Bases:
PySide2.QtWidgets.QItemDelegateBase class for all custom parameter delegates.
-
parent¶ tree or graph view form
Type: DataStoreForm
-
db_mngr¶ Type: SpineDBManager
-
-
class
spinetoolbox.widgets.custom_delegates.DatabaseNameDelegate[source]¶ Bases:
spinetoolbox.widgets.custom_delegates.ParameterDelegateA delegate for the database name.
-
class
spinetoolbox.widgets.custom_delegates.ParameterValueOrDefaultValueDelegate[source]¶ Bases:
spinetoolbox.widgets.custom_delegates.ParameterDelegateA delegate for the either the value or the default value.
-
class
spinetoolbox.widgets.custom_delegates.ParameterDefaultValueDelegate[source]¶ Bases:
spinetoolbox.widgets.custom_delegates.ParameterValueOrDefaultValueDelegateA delegate for the either the default value.
-
class
spinetoolbox.widgets.custom_delegates.ParameterValueDelegate[source]¶ Bases:
spinetoolbox.widgets.custom_delegates.ParameterValueOrDefaultValueDelegateA delegate for the parameter value.
-
class
spinetoolbox.widgets.custom_delegates.ObjectParameterValueDelegate[source]¶ Bases:
spinetoolbox.widgets.custom_delegates.GetObjectClassIdMixin,spinetoolbox.widgets.custom_delegates.ParameterValueDelegateA delegate for the object parameter value.
-
class
spinetoolbox.widgets.custom_delegates.RelationshipParameterValueDelegate[source]¶ Bases:
spinetoolbox.widgets.custom_delegates.GetRelationshipClassIdMixin,spinetoolbox.widgets.custom_delegates.ParameterValueDelegateA delegate for the relationship parameter value.
-
class
spinetoolbox.widgets.custom_delegates.TagListDelegate[source]¶ Bases:
spinetoolbox.widgets.custom_delegates.ParameterDelegateA delegate for the parameter tag list.
-
class
spinetoolbox.widgets.custom_delegates.ValueListDelegate[source]¶ Bases:
spinetoolbox.widgets.custom_delegates.ParameterDelegateA delegate for the parameter value-list.
-
class
spinetoolbox.widgets.custom_delegates.ObjectClassNameDelegate[source]¶ Bases:
spinetoolbox.widgets.custom_delegates.ParameterDelegateA delegate for the object class name.
-
class
spinetoolbox.widgets.custom_delegates.RelationshipClassNameDelegate[source]¶ Bases:
spinetoolbox.widgets.custom_delegates.ParameterDelegateA delegate for the relationship class name.
-
class
spinetoolbox.widgets.custom_delegates.ObjectParameterNameDelegate[source]¶ Bases:
spinetoolbox.widgets.custom_delegates.GetObjectClassIdMixin,spinetoolbox.widgets.custom_delegates.ParameterDelegateA delegate for the object parameter name.
-
class
spinetoolbox.widgets.custom_delegates.RelationshipParameterNameDelegate[source]¶ Bases:
spinetoolbox.widgets.custom_delegates.GetRelationshipClassIdMixin,spinetoolbox.widgets.custom_delegates.ParameterDelegateA delegate for the relationship parameter name.
-
class
spinetoolbox.widgets.custom_delegates.ObjectNameDelegate[source]¶ Bases:
spinetoolbox.widgets.custom_delegates.GetObjectClassIdMixin,spinetoolbox.widgets.custom_delegates.ParameterDelegateA delegate for the object name.
-
class
spinetoolbox.widgets.custom_delegates.ObjectNameListDelegate[source]¶ Bases:
spinetoolbox.widgets.custom_delegates.GetRelationshipClassIdMixin,spinetoolbox.widgets.custom_delegates.ParameterDelegateA delegate for the object name list.
-
class
spinetoolbox.widgets.custom_delegates.ManageItemsDelegate[source]¶ Bases:
PySide2.QtWidgets.QItemDelegateA custom delegate for the model in {Add/Edit}ItemDialogs.
-
parent¶ parent dialog
Type: ManageItemsDialog
-
-
class
spinetoolbox.widgets.custom_delegates.ManageObjectClassesDelegate[source]¶ Bases:
spinetoolbox.widgets.custom_delegates.ManageItemsDelegateA delegate for the model and view in {Add/Edit}ObjectClassesDialog.
-
parent¶ parent dialog
Type: ManageItemsDialog
-
-
class
spinetoolbox.widgets.custom_delegates.ManageObjectsDelegate[source]¶ Bases:
spinetoolbox.widgets.custom_delegates.ManageItemsDelegateA delegate for the model and view in {Add/Edit}ObjectsDialog.
-
parent¶ parent dialog
Type: ManageItemsDialog
-
-
class
spinetoolbox.widgets.custom_delegates.ManageRelationshipClassesDelegate[source]¶ Bases:
spinetoolbox.widgets.custom_delegates.ManageItemsDelegateA delegate for the model and view in {Add/Edit}RelationshipClassesDialog.
-
parent¶ parent dialog
Type: ManageItemsDialog
-
-
class
spinetoolbox.widgets.custom_delegates.ManageRelationshipsDelegate[source]¶ Bases:
spinetoolbox.widgets.custom_delegates.ManageItemsDelegateA delegate for the model and view in {Add/Edit}RelationshipsDialog.
-
parent¶ parent dialog
Type: ManageItemsDialog
-
-
class
spinetoolbox.widgets.custom_delegates.RemoveEntitiesDelegate[source]¶ Bases:
spinetoolbox.widgets.custom_delegates.ManageItemsDelegateA delegate for the model and view in RemoveEntitiesDialog.
-
parent¶ parent dialog
Type: ManageItemsDialog
-
-
class
spinetoolbox.widgets.custom_delegates.ManageParameterTagsDelegate[source]¶ Bases:
spinetoolbox.widgets.custom_delegates.ManageItemsDelegateA delegate for the model and view in ManageParameterTagsDialog.
-
parent¶ parent dialog
Type: ManageItemsDialog
-
-
class
spinetoolbox.widgets.custom_delegates.ForeignKeysDelegate(parent)[source]¶ Bases:
PySide2.QtWidgets.QItemDelegateA QComboBox delegate with checkboxes.
-
parent¶ spine datapackage widget
Type: SpineDatapackageWidget
-