core — Instances of core classes, initialize and terminate the system¶
Module initializes system at startup, terminates it, when Enki closed, and used for get core instances, such as main window, workspace, etc.
-
class
enki.core.core.Core¶ Bases:
QObjectCore object initializes system at startup and terminates when closing.
It creates instances of other core modules and holds references to it
-
restoreSession¶ restoreSession()
Signal for session plugin. Emitted, when initialization has been finished and all files, listed in the command line has been opened. Only if user hadn’t passed –no-session key
-
aboutToTerminate¶ aboutToTerminate()
Signal emitted, before closing all files and terminating Enki
-
settingsDialogAccepted¶ settingsDialogAccepted()
Signal emitted, when settings dialog had been accepted
-
init(profiler, cmdLine)¶ Initialize core.
Called only by main()
-
term()¶ Terminate plugins and core modules
Called only by main()
-
mainWindow()¶ Get
enki.core.mainwindow.MainWindowinstance
-
actionManager()¶ Get main window :
enki.core.actionmanager.ActionManagerinstance
-
workspace()¶ Get
enki.core.workspace.Workspaceinstance
-
config()¶ Get
enki.core.config.Configinstance
-
loadedPlugins()¶ Get list of curretly loaded plugins (:
enki.core.Plugininstances)
-
fileFilter()¶ Negative file filter
See :
enki.core.filefilter
-
locator()¶ :
enki.core.locator.LocatorinstanceWidget, which appears on Ctrl+L. Allows to execute textual commands Extendable with new commands
-
uiSettingsManager()¶ :
enki.core.uisettings.UISettingsManagerinstanceSettings dialogue (Edit -> Settings) manager. Use it for adding own settings to the dialogue
-
commandLineArgs()¶ Dictionary of command line arguments, passed on Enki start
-
project()¶ Project support core module
:
enki.core.project.Project
-
-
enki.core.core.core= <enki.core.core.Core object>¶ Core instance. It is accessible as:
from enki.core.core import core core.anyMethod()