widgets.tabular_view_widget

Contains TabularViewForm class and some related constants.

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

1.11.2018

Module Contents

widgets.tabular_view_widget.ParameterValue[source]
widgets.tabular_view_widget.RELATIONSHIP_CLASS = relationship[source]
widgets.tabular_view_widget.OBJECT_CLASS = object[source]
widgets.tabular_view_widget.DATA_JSON = json[source]
widgets.tabular_view_widget.DATA_VALUE = value[source]
widgets.tabular_view_widget.DATA_SET = set[source]
widgets.tabular_view_widget.JSON_TIME_NAME = json time[source]
widgets.tabular_view_widget.PARAMETER_NAME = db parameter[source]
widgets.tabular_view_widget.unpack_json(data)[source]
class widgets.tabular_view_widget.TabularViewForm(data_store, db_map, database)[source]

Bases: PySide2.QtWidgets.QMainWindow

A widget to show and edit Spine objects in a data store.

data_store

The DataStore instance that owns this form

Type:DataStore
db_map

The object relational database mapping

Type:DatabaseMapping
database

The database name

Type:str
pivot_table_edit(self, index, trigger, event)[source]

Starts editing the item at index from pivot_table. If the index contains some ‘complex’ parameter value, we open the parameter value editor window instead.

set_session_menu_enable(self)[source]

Checks if session can commit or rollback and updates session menu actions

load_class_data(self)[source]
load_objects(self)[source]
load_relationships(self)[source]
load_parameter_values(self)[source]
current_object_class_list(self)[source]
get_set_data(self)[source]
update_class_list(self)[source]

update list_select_class with all object classes and relationship classes

show_commit_session_dialog(self)[source]

Query user for a commit message and commit changes to source database.

commit_session(self, commit_msg)[source]
rollback_session(self)[source]
model_has_changes(self)[source]

checks if PivotModel has any changes

change_frozen_value(self, newSelection)[source]
get_selected_class(self)[source]
pack_dict_json(self)[source]

Pack down values with json_index into a json_array

delete_parameter_values(self, delete_values)[source]
delete_relationships(self, delete_relationships)[source]
delete_index_values_from_db(self, delete_indexes)[source]
add_index_values_to_db(self, add_indexes)[source]
save_model_set(self)[source]
save_model(self)[source]
save_parameter_values(self, data, data_value)[source]
save_relationships(self)[source]
update_pivot_lists_to_new_model(self)[source]
update_frozen_table_to_model(self)[source]
change_class(self)[source]
get_pivot_preferences(self, selection_key, index_names)[source]
get_valid_entries_dicts(self)[source]
select_data(self, text='')[source]
table_index_entries_changed(self, added_entries, deleted_enties)[source]
update_filters_to_new_model(self)[source]
create_filter_widget(self, name)[source]
change_filter(self, menu, valid, has_filter)[source]
change_pivot(self, parent, event)[source]
find_frozen_values(self, frozen)[source]
show_commit_session_prompt(self)[source]

Shows the commit session message box.

restore_ui(self)[source]

Restore UI state from previous session.

save_ui(self)[source]

Saves UI state

closeEvent(self, event=None)[source]

Handle close window.

Parameters:event (QEvent) – Closing event if ‘X’ is clicked.