spinetoolbox.spine_db_editor.widgets.multi_spine_db_editor

Contains the MultiSpineDBEditor class.

Module Contents

Classes

MultiSpineDBEditor

Database editor's tabbed main window.

_CustomStatusBar

class spinetoolbox.spine_db_editor.widgets.multi_spine_db_editor.MultiSpineDBEditor(db_mngr, db_url_codenames=None)[source]

Bases: spinetoolbox.widgets.multi_tab_window.MultiTabWindow

Database editor’s tabbed main window.

Parameters
  • db_mngr (SpineDBManager) – database manager

  • db_url_codenames (dict, optional) – mapping from database URL to its codename

_make_other()[source]

Creates a new MultiTabWindow of this type.

Returns

new MultiTabWindow

Return type

MultiTabWindow

_connect_tab_signals(tab)[source]

Connects Spine Db editor window (tab) signals.

Parameters

tab (SpineDBEditor) – Spine Db editor window

Returns

True if ok, False otherwise

Return type

bool

_disconnect_tab_signals(index)[source]

Disconnects signals of Spine Db editor window (tab) in given index.

Parameters

index (int) – Tab index

Returns

True if ok, False otherwise

Return type

bool

_make_new_tab(db_url_codenames=None, window=False)[source]

Makes a new tab, if successful return the tab, returns None otherwise

show_plus_button_context_menu(global_pos)[source]

Opens a context menu for the toolbar.

Parameters

global_pos (QPoint) – menu position on screen

make_context_menu(index)[source]

Creates a context menu for given tab.

Parameters

index (int) – tab index

Returns

context menu or None if tab was not found

Return type

QMenu

_insert_statusbar_button(button)[source]

Inserts given button to the ‘beginning’ of the status bar and decorates it with a shooting label.

Parameters

button (OpenFileButton) –

insert_open_file_button(file_path, progress, is_sqlite)[source]
_open_sqlite_url(url, codename)[source]

Opens sqlite url.

show_user_guide(checked=False)[source]

Opens Spine db editor documentation page in browser.

class spinetoolbox.spine_db_editor.widgets.multi_spine_db_editor._CustomStatusBar(parent=None)[source]

Bases: PySide6.QtWidgets.QStatusBar