widgets.mapping_widget

MappingWidget and MappingOptionsWidget class.

author:
  1. Vennström (VTT)
date:

1.6.2019

Module Contents

widgets.mapping_widget.MAPPING_CHOICES = ['Constant', 'Column', 'Row', 'Header', 'None'][source]
class widgets.mapping_widget.MappingWidget(parent=None)[source]

Bases: PySide2.QtWidgets.QWidget

A widget for managing Mappings (add, remove, edit, visualize, and so on). Intended to be embeded in a ImportPreviewWidget.

mappingChanged[source]
mappingDataChanged[source]
set_data_source_column_num(self, num)[source]
set_model(self, model)[source]

Sets new model

data_changed(self)[source]
new_mapping(self)[source]

Adds new empty mapping

delete_selected_mapping(self)[source]

deletes selected mapping

select_mapping(self, selection)[source]

gets selected mapping and emits mappingChanged

class widgets.mapping_widget.MappingOptionsWidget(parent=None)[source]

Bases: PySide2.QtWidgets.QWidget

A widget for managing Mapping options (class type, dimensions, parameter type, ignore columns, and so on). Intended to be embeded in a MappingWidget.

set_num_available_columns(self, num)[source]
change_skip_columns(self, filterw, skip_cols, has_filter)[source]
set_model(self, model)[source]
update_ui(self)[source]

updates ui to RelationshipClassMapping or ObjectClassMapping model

change_class(self, new_class)[source]
change_dimension(self, dim)[source]
change_parameter(self, par)[source]
change_import_objects(self, state)[source]