spinetoolbox.project_items.exporter.widgets.gdx_export_settings
¶
Export item’s settings window for .gdx export.
author: |
|
---|---|
date: | 9.9.2019 |
Module Contents¶
Classes¶
State |
Gdx Export Settings window state |
GdxExportSettings |
A setting window for exporting .gdx files. |
-
class
spinetoolbox.project_items.exporter.widgets.gdx_export_settings.
State
[source]¶ Bases:
enum.Enum
Gdx Export Settings window state
Create and return a new object. See help(type) for accurate signature.
-
class
spinetoolbox.project_items.exporter.widgets.gdx_export_settings.
GdxExportSettings
(set_settings, indexing_settings, merging_settings, none_fallback, none_export, scenario, database_url, parent)[source]¶ Bases:
PySide2.QtWidgets.QWidget
A setting window for exporting .gdx files.
Parameters: - set_settings (gdx.SetSettings) – export settings for GAMS sets
- indexing_settings (dict) – indexing domain information for indexed parameter values
- merging_settings (dict) – parameter merging settings
- none_fallback (NoneFallback) – fallback for None parameter values
- none_export (NoneExport) – how to handle None values while exporting
- scenario (str, optional) – scenario name
- database_url (str) – database URL
- parent (QWidget) – a parent widget
-
reset_settings
(self, set_settings, indexing_settings, merging_settings)[source]¶ Resets all settings.
-
_set_none_fallback
(self, option)[source]¶ Sets the None fallback option.
Parameters: option (str) – option as a label in the combo box
-
_init_none_fallback_combo_box
(self, fallback)[source]¶ Sets the current text in None fallback combo box.
Parameters: fallback (NoneFallback) – option
-
_set_none_export
(self, option)[source]¶ Sets the None export option.
Parameters: option (str) – option as a label in the combo box
-
_init_none_export_combo_box
(self, export)[source]¶ Sets the current text in None export combo box
Parameters: export (NoneExport) – option
-
_populate_global_parameters_combo_box
(self, settings)[source]¶ (Re)populates the global parameters combo box.
-
_set_records_ordering_controls_enabled
(self, enabled)[source]¶ Sets or unsets the enabled state of buttons that control the record key order.
Parameters: enabled – True if the buttons should be enabled, False otherwise
-
_populate_set_contents
(self, selected, _)[source]¶ Populates the record list by the selected domain’s or set’s records.
-
_gather_parameter_indexing_settings
(self)[source]¶ Gathers settings from the indexed parameters settings window.
-
_parameter_merging_approved
(self)[source]¶ Collects merging settings from the parameter merging window.
-
_dispose_parameter_indexing_settings_window
(self)[source]¶ Removes references to the indexed parameter settings window.