spinetoolbox.spine_db_editor.widgets.object_name_list_editor

Contains the ObjectNameListEditor class.

author
  1. Marin (KTH)

date

27.11.2019

Module Contents

Classes

SearchBarDelegate

A custom delegate to use with ObjectNameListEditor.

ObjectNameListEditor

A dialog to select the object name list for a relationship using Google-like search bars.

class spinetoolbox.spine_db_editor.widgets.object_name_list_editor.SearchBarDelegate[source]

Bases: PySide2.QtWidgets.QItemDelegate

A custom delegate to use with ObjectNameListEditor.

data_committed[source]
setModelData(self, editor, model, index)[source]
createEditor(self, parent, option, index)[source]
updateEditorGeometry(self, editor, option, index)[source]
close_editor(self, editor, index, model)[source]
eventFilter(self, editor, event)[source]
class spinetoolbox.spine_db_editor.widgets.object_name_list_editor.ObjectNameListEditor(parent, index, object_class_names, object_names_lists, current_object_names)[source]

Bases: spinetoolbox.spine_db_editor.widgets.manage_items_dialogs.ManageItemsDialog

A dialog to select the object name list for a relationship using Google-like search bars.

Initializes widget.

Parameters
  • parent (SpineDBEditor) –

  • index (QModelIndex) –

  • object_class_names (list) – string object_class names

  • object_names_lists (list) – lists of string object names

  • current_object_names (list) –

init_model(self, object_class_names, object_names_lists, current_object_names)[source]
accept(self)[source]