|
Krita Source Code Documentation
|
#include <kis_image_config.h>
Static Public Member Functions | |
| static void | resetConfig () |
| static int | totalRAM () |
Private Member Functions | |
| QString | safelyGetWritableTempLocation (const QString &suffix, const QString &configKey, bool requestDefault) const |
Private Attributes | |
| KConfigGroup | m_config |
| bool | m_readOnly |
Definition at line 15 of file kis_image_config.h.
| KisImageConfig::KisImageConfig | ( | bool | readOnly | ) |
Definition at line 34 of file kis_image_config.cpp.
References KIS_SAFE_ASSERT_RECOVER_RETURN, and m_config.
| KisImageConfig::~KisImageConfig | ( | ) |
Definition at line 50 of file kis_image_config.cpp.
References dbgKrita, kisBacktrace(), m_config, and m_readOnly.
| QString KisImageConfig::animationCacheDir | ( | bool | defaultValue = false | ) | const |
Definition at line 637 of file kis_image_config.cpp.
References safelyGetWritableTempLocation().
| int KisImageConfig::animationCacheFrameSizeLimit | ( | bool | defaultValue = false | ) | const |
| qreal KisImageConfig::animationCacheRegionOfInterestMargin | ( | bool | defaultValue = false | ) | const |
| bool KisImageConfig::autoKeyEnabled | ( | bool | requestDefault = false | ) | const |
Definition at line 390 of file kis_image_config.cpp.
References m_config.
| bool KisImageConfig::autoKeyModeDuplicate | ( | bool | requestDefault = false | ) | const |
Definition at line 401 of file kis_image_config.cpp.
References m_config.
| int KisImageConfig::defaultFrameColorLabel | ( | ) | const |
Definition at line 505 of file kis_image_config.cpp.
References m_config.
| KisProofingConfigurationSP KisImageConfig::defaultProofingconfiguration | ( | bool | requestDefault = false | ) |
Definition at line 515 of file kis_image_config.cpp.
References KoColorConversionTransformation::BlackpointCompensation, KisProofingConfiguration::conversionIntent, KisProofingConfiguration::displayFlags, KisProofingConfiguration::displayIntent, KisProofingConfiguration::displayMode, KoColor::fromQColor(), KoColorSpaceRegistry::instance(), INTENT_ABSOLUTE_COLORIMETRIC, INTENT_RELATIVE_COLORIMETRIC, m_config, KisProofingConfiguration::Paper, KisProofingConfiguration::proofingDepth, KisProofingConfiguration::proofingModel, KisProofingConfiguration::proofingProfile, KisProofingConfiguration::setLegacyAdaptationState(), KoColor::setOpacity(), toQShared(), KisProofingConfiguration::useBlackPointCompensationFirstTransform, and KisProofingConfiguration::warningColor.
| bool KisImageConfig::detectFpsLimit | ( | bool | defaultValue = false | ) | const |
Definition at line 617 of file kis_image_config.cpp.
References m_config.
| bool KisImageConfig::enablePerfLog | ( | bool | requestDefault = false | ) | const |
Definition at line 73 of file kis_image_config.cpp.
References m_config.
| bool KisImageConfig::enableProgressReporting | ( | bool | requestDefault = false | ) | const |
Definition at line 62 of file kis_image_config.cpp.
References m_config.
| KisPropertiesConfigurationSP KisImageConfig::exportConfiguration | ( | const QString & | exportConfigId, |
| bool | defaultValue = false ) const |
Definition at line 753 of file kis_image_config.cpp.
References exportConfigurationXML().
| QString KisImageConfig::exportConfigurationXML | ( | const QString & | exportConfigId, |
| bool | defaultValue = false ) const |
Definition at line 743 of file kis_image_config.cpp.
References m_config.
| int KisImageConfig::fpsLimit | ( | bool | defaultValue = false | ) | const |
Definition at line 606 of file kis_image_config.cpp.
References m_config.
| int KisImageConfig::frameRenderingClones | ( | bool | defaultValue = false | ) | const |
Definition at line 584 of file kis_image_config.cpp.
References m_config, and maxNumberOfThreads().
| int KisImageConfig::frameRenderingTimeout | ( | bool | defaultValue = false | ) | const |
Definition at line 595 of file kis_image_config.cpp.
References m_config.
| bool KisImageConfig::hasExportConfiguration | ( | const QString & | exportConfigID | ) |
Definition at line 748 of file kis_image_config.cpp.
References m_config.
| int KisImageConfig::maxBrushSize | ( | bool | defaultValue = false | ) | const |
Definition at line 708 of file kis_image_config.cpp.
References m_config.
| qreal KisImageConfig::maxCollectAlpha | ( | ) | const |
Definition at line 113 of file kis_image_config.cpp.
References m_config.
| int KisImageConfig::maxMaskingBrushSize | ( | ) | const |
Definition at line 718 of file kis_image_config.cpp.
References maxBrushSize().
| qreal KisImageConfig::maxMergeAlpha | ( | ) | const |
Definition at line 118 of file kis_image_config.cpp.
References m_config.
| qreal KisImageConfig::maxMergeCollectAlpha | ( | ) | const |
Definition at line 123 of file kis_image_config.cpp.
References m_config.
| int KisImageConfig::maxNumberOfThreads | ( | bool | defaultValue = false | ) | const |
Definition at line 570 of file kis_image_config.cpp.
References m_config.
| int KisImageConfig::maxSwapSize | ( | bool | requestDefault = false | ) | const |
Definition at line 141 of file kis_image_config.cpp.
References m_config.
| qreal KisImageConfig::memoryHardLimitPercent | ( | bool | requestDefault = false | ) | const |
Definition at line 195 of file kis_image_config.cpp.
References m_config.
| qreal KisImageConfig::memoryPoolLimitPercent | ( | bool | requestDefault = false | ) | const |
Definition at line 217 of file kis_image_config.cpp.
References m_config.
| qreal KisImageConfig::memorySoftLimitPercent | ( | bool | requestDefault = false | ) | const |
Definition at line 206 of file kis_image_config.cpp.
References m_config.
| int KisImageConfig::numberOfOnionSkins | ( | ) | const |
Definition at line 319 of file kis_image_config.cpp.
References m_config.
| int KisImageConfig::onionSkinOpacity | ( | int | offset, |
| bool | requestDefault = false ) const |
Definition at line 339 of file kis_image_config.cpp.
References m_config, numberOfOnionSkins(), pow2(), and value().
| bool KisImageConfig::onionSkinState | ( | int | offset | ) | const |
Definition at line 359 of file kis_image_config.cpp.
References m_config.
| QColor KisImageConfig::onionSkinTintColorBackward | ( | ) | const |
Definition at line 370 of file kis_image_config.cpp.
References m_config.
| QColor KisImageConfig::onionSkinTintColorForward | ( | ) | const |
Definition at line 380 of file kis_image_config.cpp.
References m_config.
| int KisImageConfig::onionSkinTintFactor | ( | ) | const |
Definition at line 329 of file kis_image_config.cpp.
References m_config.
| int KisImageConfig::poolLimit | ( | ) | const |
Definition at line 187 of file kis_image_config.cpp.
References memoryHardLimitPercent(), memoryPoolLimitPercent(), and totalRAM().
|
inline |
Definition at line 165 of file kis_image_config.h.
|
inline |
Definition at line 170 of file kis_image_config.h.
| bool KisImageConfig::renameDuplicatedLayers | ( | bool | defaultValue = false | ) | const |
Definition at line 733 of file kis_image_config.cpp.
References m_config.
| bool KisImageConfig::renameMergedLayers | ( | bool | defaultValue = false | ) | const |
Definition at line 723 of file kis_image_config.cpp.
References m_config.
|
static |
Definition at line 768 of file kis_image_config.cpp.
|
private |
On NTFS, isWritable() doesn't check for attributes due to performance reasons, so we should try it in a brute-force way... (yes, there is a hacky-global-variable workaround, but let's be safe)
Definition at line 228 of file kis_image_config.cpp.
References KisMacosSecurityBookmarkManager::instance(), KisMacosSecurityBookmarkManager::isSandboxed(), and m_config.
| qreal KisImageConfig::schedulerBalancingRatio | ( | ) | const |
updates-queue-size / strokes-queue-size
Definition at line 128 of file kis_image_config.cpp.
References m_config.
| qreal KisImageConfig::selectionOutlineOpacity | ( | bool | defaultValue = false | ) | const |
Definition at line 687 of file kis_image_config.cpp.
References m_config.
| QColor KisImageConfig::selectionOverlayMaskColor | ( | bool | defaultValue = false | ) | const |
Definition at line 697 of file kis_image_config.cpp.
References m_config.
| void KisImageConfig::setAnimationCacheDir | ( | const QString & | value | ) |
| void KisImageConfig::setAnimationCacheFrameSizeLimit | ( | int | value | ) |
| void KisImageConfig::setAnimationCacheRegionOfInterestMargin | ( | qreal | value | ) |
| void KisImageConfig::setAutoKeyEnabled | ( | bool | value | ) |
| void KisImageConfig::setAutoKeyModeDuplicate | ( | bool | value | ) |
| void KisImageConfig::setDefaultFrameColorLabel | ( | int | label | ) |
Definition at line 510 of file kis_image_config.cpp.
References m_config.
| void KisImageConfig::setDefaultProofingConfig | ( | const KisProofingConfiguration & | config | ) |
Definition at line 539 of file kis_image_config.cpp.
References KoColorConversionTransformation::BlackpointCompensation, KisProofingConfiguration::conversionIntent, defaultProofingconfiguration(), KisProofingConfiguration::displayFlags, KisProofingConfiguration::displayIntent, KisProofingConfiguration::displayMode, KisImageConfigNotifier::instance(), KisProofingConfiguration::legacyAdaptationState(), m_config, KisImageConfigNotifier::notifyGlobalProofingConfigChanged(), KisProofingConfiguration::proofingDepth, KisProofingConfiguration::proofingModel, KisProofingConfiguration::proofingProfile, KoColor::toQColor(), KisProofingConfiguration::useBlackPointCompensationFirstTransform, and KisProofingConfiguration::warningColor.
| void KisImageConfig::setDetectFpsLimit | ( | bool | value | ) |
| void KisImageConfig::setEnablePerfLog | ( | bool | value | ) |
| void KisImageConfig::setEnableProgressReporting | ( | bool | value | ) |
| void KisImageConfig::setExportConfiguration | ( | const QString & | exportConfigId, |
| KisPropertiesConfigurationSP | properties ) |
Definition at line 761 of file kis_image_config.cpp.
References m_config.
| void KisImageConfig::setFpsLimit | ( | int | value | ) |
| void KisImageConfig::setFrameRenderingClones | ( | int | value | ) |
| void KisImageConfig::setFrameRenderingTimeout | ( | int | value | ) |
| void KisImageConfig::setMaxBrushSize | ( | int | value | ) |
| void KisImageConfig::setMaxNumberOfThreads | ( | int | value | ) |
| void KisImageConfig::setMaxSwapSize | ( | int | value | ) |
| void KisImageConfig::setMemoryHardLimitPercent | ( | qreal | value | ) |
| void KisImageConfig::setMemoryPoolLimitPercent | ( | qreal | value | ) |
| void KisImageConfig::setMemorySoftLimitPercent | ( | qreal | value | ) |
| void KisImageConfig::setNumberOfOnionSkins | ( | int | value | ) |
| void KisImageConfig::setOnionSkinOpacity | ( | int | offset, |
| int | value ) |
| void KisImageConfig::setOnionSkinState | ( | int | offset, |
| bool | value ) |
| void KisImageConfig::setOnionSkinTintColorBackward | ( | const QColor & | value | ) |
| void KisImageConfig::setOnionSkinTintColorForward | ( | const QColor & | value | ) |
| void KisImageConfig::setOnionSkinTintFactor | ( | int | value | ) |
| void KisImageConfig::setRenameDuplicatedLayers | ( | bool | value | ) |
| void KisImageConfig::setRenameMergedLayers | ( | bool | value | ) |
| void KisImageConfig::setSchedulerBalancingRatio | ( | qreal | value | ) |
| void KisImageConfig::setSelectionOutlineOpacity | ( | qreal | value | ) |
| void KisImageConfig::setSelectionOverlayMaskColor | ( | const QColor & | color | ) |
Definition at line 703 of file kis_image_config.cpp.
References m_config.
| void KisImageConfig::setShowAdditionalOnionSkinsSettings | ( | bool | value | ) |
| void KisImageConfig::setSwapDir | ( | const QString & | swapDir | ) |
Definition at line 314 of file kis_image_config.cpp.
| void KisImageConfig::setSwapSlabSize | ( | int | value | ) |
| void KisImageConfig::setSwapWindowSize | ( | int | value | ) |
| void KisImageConfig::setUpdatePatchHeight | ( | int | value | ) |
| void KisImageConfig::setUpdatePatchWidth | ( | int | value | ) |
| void KisImageConfig::setUseAnimationCacheFrameSizeLimit | ( | bool | value | ) |
| void KisImageConfig::setUseAnimationCacheRegionOfInterest | ( | bool | value | ) |
| void KisImageConfig::setUseLodForColorizeMask | ( | bool | value | ) |
| void KisImageConfig::setUseOnDiskAnimationCacheSwapping | ( | bool | value | ) |
| bool KisImageConfig::showAdditionalOnionSkinsSettings | ( | bool | requestDefault = false | ) | const |
Definition at line 494 of file kis_image_config.cpp.
References m_config.
| QString KisImageConfig::swapDir | ( | bool | requestDefault = false | ) |
Definition at line 309 of file kis_image_config.cpp.
References safelyGetWritableTempLocation().
| int KisImageConfig::swapSlabSize | ( | ) | const |
Definition at line 152 of file kis_image_config.cpp.
References m_config.
| int KisImageConfig::swapWindowSize | ( | ) | const |
Definition at line 162 of file kis_image_config.cpp.
References m_config.
| int KisImageConfig::tilesHardLimit | ( | ) | const |
Definition at line 172 of file kis_image_config.cpp.
References memoryHardLimitPercent(), memoryPoolLimitPercent(), and totalRAM().
| int KisImageConfig::tilesSoftLimit | ( | ) | const |
Definition at line 180 of file kis_image_config.cpp.
References memorySoftLimitPercent(), and tilesHardLimit().
|
static |
Definition at line 425 of file kis_image_config.cpp.
| qreal KisImageConfig::transformMaskOffBoundsReadArea | ( | ) | const |
Definition at line 84 of file kis_image_config.cpp.
References m_config.
| int KisImageConfig::updatePatchHeight | ( | ) | const |
Definition at line 89 of file kis_image_config.cpp.
References m_config.
| int KisImageConfig::updatePatchWidth | ( | ) | const |
Definition at line 101 of file kis_image_config.cpp.
References m_config.
| bool KisImageConfig::useAnimationCacheFrameSizeLimit | ( | bool | defaultValue = false | ) | const |
| bool KisImageConfig::useAnimationCacheRegionOfInterest | ( | bool | defaultValue = false | ) | const |
| bool KisImageConfig::useLodForColorizeMask | ( | bool | requestDefault = false | ) | const |
Definition at line 559 of file kis_image_config.cpp.
References m_config.
| bool KisImageConfig::useOnDiskAnimationCacheSwapping | ( | bool | defaultValue = false | ) | const |
|
inline |
Definition at line 155 of file kis_image_config.h.
References value().
|
inline |
Definition at line 160 of file kis_image_config.h.
References value().
|
private |
Definition at line 190 of file kis_image_config.h.
|
private |
Definition at line 191 of file kis_image_config.h.