spinetoolbox.spine_db_editor.widgets.multi_spine_db_editor
Contains the MultiSpineDBEditor class.
Module Contents
Classes
Database editor's tabbed main window. |
|
- 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
- _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
Opens a context menu for the toolbar.
- Parameters
global_pos (QPoint) – menu position on screen
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) –