spinetoolbox.spine_db_editor.widgets.spine_db_editor
¶
Contains the SpineDBEditor class.
- author
Marin (KTH)
- date
26.11.2018
Module Contents¶
Classes¶
Base class for SpineDBEditor (i.e. Spine database editor). |
|
A widget to visualize Spine dbs. |
- class spinetoolbox.spine_db_editor.widgets.spine_db_editor.SpineDBEditorBase(db_mngr)[source]¶
Bases:
PySide2.QtWidgets.QMainWindow
Base class for SpineDBEditor (i.e. Spine database editor).
Initializes form.
- Parameters
db_mngr (SpineDBManager) – The manager to use
Returns a menu with all dock toggle/view actions. Called by
self.add_main_menu()
.- Returns
QMenu
Adds a menu with main actions to toolbar.
- add_message(self, msg)[source]¶
Pushes message to notification stack.
- Parameters
msg (str) – String to show in the notification
- add_link_msg(self, msg, open_link=None)[source]¶
Pushes link message to notification stack.
- Parameters
msg (str) – String to show in notification
- refresh_copy_paste_actions(self)[source]¶
Runs when menus are about to show. Enables or disables actions according to selection status.
- show_mass_export_items_dialog(self, checked=False)[source]¶
Shows dialog for user to select dbs and items for export.
- export_session(self, checked=False)[source]¶
Exports changes made in the current session as reported by DiffDatabaseMapping.
- export_data(self, db_map_ids_for_export)[source]¶
Exports data from given dictionary into a file.
- Parameters
db_map_ids_for_export – Dictionary mapping db maps to keyword arguments for spinedb_api.export_data
- show_parameter_value_editor(self, index)[source]¶
Shows the parameter_value editor for the given index of given table view.
- log_changes(self, action, item_type, db_map_data)[source]¶
Enables or disables actions and informs the user about what just happened.
- class spinetoolbox.spine_db_editor.widgets.spine_db_editor.SpineDBEditor(db_mngr, db_url_codenames=None)[source]¶
Bases:
spinetoolbox.spine_db_editor.widgets.tabular_view_mixin.TabularViewMixin
,spinetoolbox.spine_db_editor.widgets.graph_view_mixin.GraphViewMixin
,spinetoolbox.spine_db_editor.widgets.parameter_view_mixin.ParameterViewMixin
,spinetoolbox.spine_db_editor.widgets.tree_view_mixin.TreeViewMixin
,SpineDBEditorBase
A widget to visualize Spine dbs.
Initializes everything.
- Parameters
db_mngr (SpineDBManager) – The manager to use
- tabify_and_raise(self, docks)[source]¶
Tabifies docks in given list, then raises the first.
- Parameters
docks (list) –
- restore_dock_widgets(self)[source]¶
Docks all floating and or hidden QDockWidgets back to the window.
- apply_stacked_style(self, checked=False)[source]¶
Applies the stacked style, inspired in the former tree view.
- apply_pivot_style(self, _action)[source]¶
Applies the pivot style, inspired in the former tabular view.