spinetoolbox.widgets.import_preview_window

Contains ImportPreviewWindow class.

authors:
  1. Savolainen (VTT), A. Soininen (VTT), P. Vennström (VTT)
date:

10.6.2019

Module Contents

class spinetoolbox.widgets.import_preview_window.ImportPreviewWindow(importer, filepath, connector, settings, toolbox)[source]

Bases: PySide2.QtWidgets.QMainWindow

A QMainWindow to let users define Mappings for an Importer item.

Parameters:
settings_updated[source]
connection_failed[source]
import_mapping_from_file(self)[source]

Imports mapping spec from a user selected .json file to the preview window.

export_mapping_to_file(self)[source]

Exports all mapping specs in current preview window to .json file.

apply_and_close(self)[source]

Apply changes to mappings and close preview window.

start_ui(self)[source]
restore_ui(self)[source]

Restore UI state from previous session.

closeEvent(self, event=None)[source]

Handle close window.

Parameters:event (QEvent) – Closing event if ‘X’ is clicked.