spinetoolbox.project_items.exporter.widgets.parameter_index_settings_window¶
Parameter indexing settings window for .gdx export.
| author: |
|
|---|---|
| date: | 25.11.2019 |
Module Contents¶
Classes¶
ParameterIndexSettingsWindow |
A window which shows a list of ParameterIndexSettings widgets, one for each parameter with indexed values. |
Functions¶
_disable_domain_updates(window) |
A context manager which disables updates on the indexing settings widgets. |
-
class
spinetoolbox.project_items.exporter.widgets.parameter_index_settings_window.ParameterIndexSettingsWindow(indexing_settings, set_settings, database_path, scenario, parent)[source]¶ Bases:
PySide2.QtWidgets.QWidgetA 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
IndexingSetting - set_settings (SetSettings) – export settings
- database_path (str) – a database url
- scenario (str) – scenario name
- parent (QWidget) – a parent widget
-
set_domain_updated_enabled(self, enabled)[source]¶ Enables or disables updating the indexing settings widgets.
Parameters: enabled (bool) – if True, allow the widgets to update
-
_switch_additional_domain_widgets_enabled_state(self, using_expression)[source]¶ Enabled and disables additional domain widgets.
Parameters: using_expression (bool) – True if expression is used, False if record keys are extracted from existing parameter
-
_collect_and_hide(self)[source]¶ Collects settings from individual ParameterIndexSettings widgets and hides the window.
-
_send_domains_to_indexing_widgets(self, parent, first, last)[source]¶ Updates the available domains combo boxes in indexing widgets.
-
_update_after_domain_rename(self, old_name, new_name)[source]¶ Propagates changes in domain names to widgets.
Parameters: - old_name (str) – domain’s previous name
- new_name (str) – domain’s current name
-
_update_expression(self, expression)[source]¶ Updates the domain’s record key expression.
Parameters: expression (str) – new expression
-
_update_length(self, length)[source]¶ Updates the number of additional domain’s records.
Parameters: length (int) – new record count
- indexing_settings (dict) – a map from parameter name to
-
spinetoolbox.project_items.exporter.widgets.parameter_index_settings_window._disable_domain_updates(window)[source]¶ A context manager which disables updates on the indexing settings widgets.
Parameters: window (ParameterIndexSettingsWindow) – settings window