|
Krita Source Code Documentation
|
Classes | |
| class | Python |
| class | version |
Class version. More... | |
| class | version_checker |
Class version_checker. More... | |
Enumerations | |
| enum | InitResult { INIT_UNINITIALIZED , INIT_OK , INIT_CANNOT_LOAD_PYTHON_LIBRARY , INIT_CANNOT_SET_PYTHON_PATHS , INIT_CANNOT_LOAD_PYKRITA_MODULE } |
Functions | |
| void | finalize () |
| InitResult | initialize () |
| bool | operator!= (const version &left, const version &right) |
| bool | operator< (const version &left, const version &right) |
| bool | operator<= (const version &left, const version &right) |
| bool | operator== (const version &left, const version &right) |
| bool | operator> (const version &left, const version &right) |
| bool | operator>= (const version &left, const version &right) |
| PythonPluginManager * | pluginManager () |
Variables | |
| static InitResult | initStatus = INIT_UNINITIALIZED |
| static QScopedPointer< PythonPluginManager > | pluginManagerInstance |
| enum PyKrita::InitResult |
| Enumerator | |
|---|---|
| INIT_UNINITIALIZED | |
| INIT_OK | |
| INIT_CANNOT_LOAD_PYTHON_LIBRARY | |
| INIT_CANNOT_SET_PYTHON_PATHS | |
| INIT_CANNOT_LOAD_PYKRITA_MODULE | |
Definition at line 27 of file utilities.h.
| void PyKrita::finalize | ( | ) |
Cleanup after Python. Note: doing this as part of static/global destruction will not work. The call to Py_Finalize() would happen after the Python runtime has already been finalized, leading to a segfault.
Definition at line 99 of file utilities.cpp.
References dbgScript, INIT_UNINITIALIZED, initStatus, PyKrita::Python::libraryUnload(), PyKrita::Python::maybeFinalize(), pluginManagerInstance, and PythonPluginManager::unloadAllModules().
| InitResult PyKrita::initialize | ( | ) |
Initialize the Python environment and plugin manager. This should be called first before using the manager or the Python class.
Definition at line 44 of file utilities.cpp.
References dbgScript, PyKrita::Python::ensureInitialized(), KoResourcePaths::findDirs(), INIT_CANNOT_LOAD_PYKRITA_MODULE, INIT_CANNOT_LOAD_PYTHON_LIBRARY, INIT_CANNOT_SET_PYTHON_PATHS, INIT_OK, initStatus, PyKrita::Python::itemStringSet(), PyKrita::Python::libraryLoad(), pluginManagerInstance, PyKrita::Python::PYKRITA_ENGINE, PYKRITA_INIT, and PyKrita::Python::setPath().
Definition at line 149 of file version_checker.h.
Definition at line 154 of file version_checker.h.
References PyKrita::version::_major(), PyKrita::version::_minor(), and PyKrita::version::patch().
Definition at line 170 of file version_checker.h.
Definition at line 141 of file version_checker.h.
References PyKrita::version::_major(), PyKrita::version::_minor(), and PyKrita::version::patch().
Definition at line 162 of file version_checker.h.
References PyKrita::version::_major(), PyKrita::version::_minor(), and PyKrita::version::patch().
Definition at line 175 of file version_checker.h.
| PythonPluginManager * PyKrita::pluginManager | ( | ) |
Gets the instance of the plugin manager. Note: PyKrita::initialize() must be called before using this function.
Definition at line 92 of file utilities.cpp.
References KIS_SAFE_ASSERT_RECOVER_RETURN_VALUE, pluginManager(), and pluginManagerInstance.
|
static |
Definition at line 41 of file utilities.cpp.
|
static |
Definition at line 42 of file utilities.cpp.