spinetoolbox.project_items.exporter.widgets.parameter_merging_settings_window
¶
Parameter merging settings window.
author: |
|
---|---|
date: | 19.2.2020 |
Module Contents¶
-
class
spinetoolbox.project_items.exporter.widgets.parameter_merging_settings_window.
ParameterMergingSettingsWindow
(merging_settings, database_path, parent)[source]¶ Bases:
PySide2.QtWidgets.QWidget
A window which shows a list of ParameterMergingSettings widgets, one for each merged parameter.
Parameters: - merging_settings (dict) – a map from merged parameter name to merging settings
- database_path (str) – database URL
- parent (QWidget) – a parent widget
-
_add_setting
(self, parameter_name=None, merging_setting=None)[source]¶ Inserts a new settings widget to the widget list.
-
_ok_to_accept
(self)[source]¶ Returns True if it is OK to accept the settings, otherwise shows a warning dialog and returns False.
-
class
spinetoolbox.project_items.exporter.widgets.parameter_merging_settings_window.
EntityClassInfo
(name, class_id, domain_names, parameter_names, is_object_class)[source]¶ Contains information of an entity class (object or relationship class) for use in the parameter merging widget.
-
name
¶ entity’s name
Type: str
-
class_id
¶ entity’s database id
Type: int
-
domain_names
¶ object classes that index the entities in this class; for object classes this list contains the entity’s name only, for relationship classes the list contains the relationship’s object classes
Type: list
-
parameter_names
¶ entity’s defined parameters
Type: list
-
is_object_class
¶ True if the entity is a object class, False if it is a relationship class
Type: bool
Parameters: - name (str) – entity’s name
- class_id (int) – entity’s database id
- domain_names (list) – object classes that index the entities in this class; for object classes this list contains the entity’s name only, for relationship classes the list contains the relationship’s object classes
- parameter_names (list) – entity’s defined parameters
- is_object_class (bool) – True if the entity is a object class, False if it is a relationship class
-