spinetoolbox.import_editor.widgets.import_mappings¶
ImportMappings widget.
| author: |
|
|---|---|
| date: | 1.6.2019 |
Module Contents¶
Classes¶
ImportMappings |
Provides methods for managing Mappings (add, remove, edit, visualize, and so on). |
-
spinetoolbox.import_editor.widgets.import_mappings.MAPPING_CHOICES= ['Constant', 'Column', 'Row', 'Column Header', 'Headers', 'Table Name', 'None'][source]¶
-
class
spinetoolbox.import_editor.widgets.import_mappings.ImportMappings(ui, undo_stack)[source]¶ Bases:
PySide2.QtCore.QObjectProvides methods for managing Mappings (add, remove, edit, visualize, and so on).
Parameters: - ui (QWidget) – importer window’s UI
- undo_stack (QUndoStack) – undo stack
-
mapping_selection_changed[source]¶ Emitted when a new mapping specification is selected from the Mappings list.
-
set_mappings_model(self, source_table_name, model)[source]¶ Sets new mappings.
Parameters: - source_table_name (str) – source table’s name
- model (MappingListModel) – mapping list model
-
focus_on_changing_specification(self, source_table_name, mapping_name)[source]¶ Selects the given mapping from the list and emits about_to_undo.
Parameters: - source_table_name (str) – name of the source table
- mapping_name (str) – name of the mapping specification