|
Krita Source Code Documentation
|
#include <KisPlatformPluginInterfaceFactory.h>
Public Member Functions | |
| QString | colorManagementReport (QWidget *widget) |
| KisExtendedModifiersMapperPluginInterface * | createExtendedModifiersMapper () |
| KisPlatformPluginInterfaceFactory () | |
| QString | osPreferredColorSpaceReport (QWidget *widget) |
| bool | surfaceColorManagedByOS () |
Static Public Member Functions | |
| static KisPlatformPluginInterfaceFactory * | instance () |
Private Attributes | |
| bool | m_surfaceColorManagedByOS {false} |
Definition at line 25 of file KisPlatformPluginInterfaceFactory.h.
| KisPlatformPluginInterfaceFactory::KisPlatformPluginInterfaceFactory | ( | ) |
Definition at line 28 of file KisPlatformPluginInterfaceFactory.cpp.
References KoPluginLoader::instance(), and KoPluginLoader::loadSinglePlugin().
| QString KisPlatformPluginInterfaceFactory::colorManagementReport | ( | QWidget * | widget | ) |
Return user-facing information about color management status of the main window surface. The information is intentionally left untranslated, since it is supposed to be used for bugreports.
Definition at line 81 of file KisPlatformPluginInterfaceFactory.cpp.
References KisRootSurfaceInfoProxy::colorManagementReport(), instance(), KisRootSurfaceInfoProxy::isReady(), KIS_SAFE_ASSERT_RECOVER_NOOP, and surfaceColorManagedByOS().
| KisExtendedModifiersMapperPluginInterface * KisPlatformPluginInterfaceFactory::createExtendedModifiersMapper | ( | ) |
Creates an instance of the extended modifiers interface using the platform plugin
If the current platform plugin doesn't profide this interface, returns nullptr
Definition at line 112 of file KisPlatformPluginInterfaceFactory.cpp.
References KoPluginLoader::instance(), and KoPluginLoader::loadSinglePlugin().
|
static |
Definition at line 50 of file KisPlatformPluginInterfaceFactory.cpp.
| QString KisPlatformPluginInterfaceFactory::osPreferredColorSpaceReport | ( | QWidget * | widget | ) |
Return user-facing information about the preferred color space of the operating system. This information is supposed to be used in the preferences dialog, so it is supposed to be translated.
Definition at line 96 of file KisPlatformPluginInterfaceFactory.cpp.
References instance(), KisRootSurfaceInfoProxy::isReady(), KIS_SAFE_ASSERT_RECOVER_NOOP, KisRootSurfaceInfoProxy::osPreferredColorSpaceReport(), and surfaceColorManagedByOS().
| bool KisPlatformPluginInterfaceFactory::surfaceColorManagedByOS | ( | ) |
Returns true if Krita is running on a system that manages the color space of the underlying surface. If it is true, the canvas should use KisCanvasSurfaceColorSpaceManager and all other windows should use KisSRGBSurfaceColorSpaceManager to set up the color space properly.
Definition at line 76 of file KisPlatformPluginInterfaceFactory.cpp.
References m_surfaceColorManagedByOS.
|
private |
Definition at line 70 of file KisPlatformPluginInterfaceFactory.h.