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:
QObject
Core 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.MainWindow
instance
-
actionManager
()¶ Get main window :
enki.core.actionmanager.ActionManager
instance
-
workspace
()¶ Get
enki.core.workspace.Workspace
instance
-
config
()¶ Get
enki.core.config.Config
instance
-
loadedPlugins
()¶ Get list of curretly loaded plugins (:
enki.core.Plugin
instances)
-
fileFilter
()¶ Negative file filter
See :
enki.core.filefilter
-
locator
()¶ :
enki.core.locator.Locator
instanceWidget, which appears on Ctrl+L. Allows to execute textual commands Extendable with new commands
-
uiSettingsManager
()¶ :
enki.core.uisettings.UISettingsManager
instanceSettings 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()