widgets.custom_delegates¶
Custom item delegates.
| author: |
|
|---|---|
| date: | 1.9.2018 |
Module Contents¶
-
class
widgets.custom_delegates.ComboBoxDelegate(parent, choices)[source]¶ Bases:
PySide2.QtWidgets.QItemDelegate
-
class
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
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
widgets.custom_delegates.ParameterDelegate(parent)[source]¶ Bases:
PySide2.QtWidgets.QItemDelegateA custom delegate for the parameter models and views in TreeViewForm.
-
parent¶ tree or graph view form
Type: DataStoreForm
-
-
class
widgets.custom_delegates.ObjectParameterValueDelegate[source]¶ Bases:
widgets.custom_delegates.ParameterDelegateA delegate for the object parameter value model and view in TreeViewForm.
-
parent¶ tree or graph view form
Type: DataStoreForm
-
-
class
widgets.custom_delegates.ObjectParameterDefinitionDelegate[source]¶ Bases:
widgets.custom_delegates.ParameterDelegateA delegate for the object parameter definition model and view in TreeViewForm.
-
parent¶ tree or graph view form
Type: DataStoreForm
-
-
class
widgets.custom_delegates.RelationshipParameterValueDelegate[source]¶ Bases:
widgets.custom_delegates.ParameterDelegateA delegate for the relationship parameter value model and view in TreeViewForm.
-
parent¶ tree or graph view form
Type: DataStoreForm
-
-
class
widgets.custom_delegates.RelationshipParameterDefinitionDelegate[source]¶ Bases:
widgets.custom_delegates.ParameterDelegateA delegate for the object parameter definition model and view in TreeViewForm.
-
parent¶ tree or graph view form
Type: DataStoreForm
-
-
class
widgets.custom_delegates.ManageItemsDelegate(parent)[source]¶ Bases:
PySide2.QtWidgets.QItemDelegateA custom delegate for the model in {Add/Edit}ItemDialogs.
-
parent¶ parent dialog
Type: ManageItemsDialog
-
-
class
widgets.custom_delegates.ManageObjectClassesDelegate(parent)[source]¶ Bases:
widgets.custom_delegates.ManageItemsDelegateA delegate for the model and view in {Add/Edit}ObjectClassesDialog.
-
parent¶ parent dialog
Type: ManageItemsDialog
-
-
class
widgets.custom_delegates.ManageObjectsDelegate[source]¶ Bases:
widgets.custom_delegates.ManageItemsDelegateA delegate for the model and view in {Add/Edit}ObjectsDialog.
-
parent¶ parent dialog
Type: ManageItemsDialog
-
-
class
widgets.custom_delegates.ManageRelationshipClassesDelegate[source]¶ Bases:
widgets.custom_delegates.ManageItemsDelegateA delegate for the model and view in {Add/Edit}RelationshipClassesDialog.
-
parent¶ parent dialog
Type: ManageItemsDialog
-
-
class
widgets.custom_delegates.ManageRelationshipsDelegate[source]¶ Bases:
widgets.custom_delegates.ManageItemsDelegateA delegate for the model and view in {Add/Edit}RelationshipsDialog.
-
parent¶ parent dialog
Type: ManageItemsDialog
-
-
class
widgets.custom_delegates.RemoveTreeItemsDelegate[source]¶ Bases:
widgets.custom_delegates.ManageItemsDelegateA delegate for the model and view in RemoveTreeItemsDialog.
-
parent¶ parent dialog
Type: ManageItemsDialog
-
-
class
widgets.custom_delegates.ManageParameterTagsDelegate[source]¶ Bases:
widgets.custom_delegates.ManageItemsDelegateA delegate for the model and view in ManageParameterTagsDialog.
-
parent¶ parent dialog
Type: ManageItemsDialog
-
-
class
widgets.custom_delegates.ForeignKeysDelegate(parent)[source]¶ Bases:
PySide2.QtWidgets.QItemDelegateA QComboBox delegate with checkboxes.
-
parent¶ spine datapackage widget
Type: SpineDatapackageWidget
-