data_interface¶
Contains DataInterface class.
| authors: |
|
|---|---|
| date: | 10.6.2019 |
Module Contents¶
-
class
data_interface.DataInterface(toolbox, name, description, filepath, settings, x, y)[source]¶ Bases:
project_item.ProjectItemDataInterface class.
-
name¶ Project item name
Type: str
-
description¶ Project item description
Type: str
-
filepath¶ Path to file
Type: str
-
settings¶ dict with mapping settings
Type: dict
-
x¶ Initial icon scene X coordinate
Type: int
-
y¶ Initial icon scene Y coordinate
Type: int
-
make_signal_handler_dict(self)[source]¶ Returns a dictionary of all shared signals and their handlers. This is to enable simpler connecting and disconnecting.
-
restore_selections(self)[source]¶ Restores selections into shared widgets when this project item is selected.
-
save_selections(self)[source]¶ Saves selections in shared widgets for this project item into instance variables.
-
update_name_label(self)[source]¶ Update Data Interface tab name label. Used only when renaming project items.
-
_handle_import_editor_clicked(self, checked=False)[source]¶ Opens Import editor for the file selected in list view.
-
_handle_files_double_clicked(self, index)[source]¶ Opens Import editor for the double clicked index.
-
get_connector(self, importee)[source]¶ Shows a QDialog to select a connector for the given source file. Mimics similar routine in spine_io.widgets.import_widget.ImportDialog
-
select_connector_type(self, index)[source]¶ Opens dialog to select connector type for the given index.
-