spinetoolbox.project_items.exporter.widgets.parameter_merging_settings_window¶
Parameter merging settings window.
| author: |
|
|---|---|
| date: | 19.2.2020 |
Module Contents¶
Classes¶
ParameterMergingSettingsWindow |
A window which shows a list of ParameterMergingSettings widgets, one for each merged parameter. |
EntityClassInfo |
Contains information of an entity_class (object or relationship_class) for use in the parameter merging widget. |
Functions¶
_gather_entity_class_infos(db_map) |
Collects entity_class infos from database. |
-
class
spinetoolbox.project_items.exporter.widgets.parameter_merging_settings_window.ParameterMergingSettingsWindow(merging_settings, database_path, parent)[source]¶ Bases:
PySide2.QtWidgets.QWidgetA 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
-