spinetoolbox.project_items.exporter.widgets.parameter_index_settings_window

Parameter indexing settings window for .gdx export.

author:
  1. Soininen (VTT)
date:

25.11.2019

Module Contents

class spinetoolbox.project_items.exporter.widgets.parameter_index_settings_window.ParameterIndexSettingsWindow(indexing_settings, available_existing_domains, new_domains, database_path, parent)[source]

Bases: PySide2.QtWidgets.QWidget

A window which shows a list of ParameterIndexSettings widgets, one for each parameter with indexed values.

Parameters:
  • indexing_settings (dict) – a map from parameter name to IndexingSettings
  • available_existing_domains (dict) – a map from existing domain names to lists of record keys
  • new_domains (dict) – a map from new domain names to lists of record keys
  • database_path (str) – a database url
  • parent (QWidget) – a parent widget
settings_approved[source]

Emitted when the settings have been approved.

settings_rejected[source]

Emitted when the settings have been rejected.

indexing_settings[source]

indexing settings dictionary

new_domains[source]

list of additional domains needed for indexing

reorder_indexes(self, domain_name, first, last, target)[source]
_collect_and_hide(self)[source]

Collects settings from individual ParameterIndexSettings widgets and hides the window.

_reject_and_close(self)[source]
closeEvent(self, event)[source]