digiKam
|
Classes | |
class | Private |
Signals | |
void | signalICCSettingsChanged (const ICCSettingsContainer ¤t, const ICCSettingsContainer &previous) |
void | signalSettingsChanged () |
Public Member Functions | |
QList< IccProfile > | allProfiles () |
QList< IccProfile > | displayProfiles () |
QList< IccProfile > | inputProfiles () |
bool | isEnabled () const |
void | loadAllProfilesProperties () |
IccProfile | monitorProfile (QWidget *const widget=nullptr) |
bool | monitorProfileFromSystem () const |
QList< IccProfile > | outputProfiles () |
QList< IccProfile > | profilesForDescription (const QString &description) |
void | setIccPath (const QString &path) |
void | setSettings (const ICCSettingsContainer &settings) |
ICCSettingsContainer | settings () |
void | setUseManagedPreviews (bool useManagedPreviews) |
void | setUseManagedView (bool useManagedView) |
bool | useManagedPreviews () const |
QList< IccProfile > | workspaceProfiles () |
Static Public Member Functions | |
static IccSettings * | instance () |
Friends | |
class | IccSettingsCreator |
class | Private |
QList< IccProfile > Digikam::IccSettings::allProfiles | ( | ) |
References Digikam::IccProfile::defaultProfiles(), Digikam::IccProfile::defaultSearchPaths(), Digikam::ICCSettingsContainer::iccFolder, Digikam::IccSettings::Private::mutex, Digikam::IccSettings::Private::profiles, Digikam::IccSettings::Private::scanDirectories(), and Digikam::IccSettings::Private::settings.
Referenced by displayProfiles(), inputProfiles(), loadAllProfilesProperties(), outputProfiles(), profilesForDescription(), and workspaceProfiles().
QList< IccProfile > Digikam::IccSettings::displayProfiles | ( | ) |
Get available profiles suitable as monitor/display profile
References allProfiles(), Digikam::IccProfile::Display, and Digikam::IccProfile::type().
QList< IccProfile > Digikam::IccSettings::inputProfiles | ( | ) |
Get available profiles suitable as input profile
References allProfiles(), Digikam::IccProfile::ColorSpace, Digikam::IccProfile::Input, and Digikam::IccProfile::type().
|
static |
Global container for ICC settings. All accessor methods are thread-safe.
Referenced by Digikam::EditorWindow::applyColorManagementSettings(), Digikam::EditorWindow::applyIOSettings(), Digikam::QueuePool::applySettings(), Digikam::SetupICC::applySettings(), Digikam::ColorCorrectionDlg::ColorCorrectionDlg(), Digikam::EditorWindow::colorManage(), Digikam::PreviewLoadThread::createLoadingDescription(), Digikam::ThumbnailLoadThread::Private::createLoadingDescription(), Digikam::DigikamApp::DigikamApp(), Digikam::IccManager::displayProfile(), Digikam::IccProfilesSettings::IccProfilesSettings(), Digikam::ImportCategorizedView::ImportCategorizedView(), Digikam::IccManager::isSRGB(), Digikam::ItemCategorizedView::ItemCategorizedView(), Digikam::IccTransformFilter::readParameters(), Digikam::SoftProofDialog::readSettings(), Digikam::EditorWindow::setupStandardConnections(), Digikam::LightTableWindow::slotColorManagementOptionsChanged(), Digikam::SoftProofDialog::SoftProofDialog(), and Digikam::SoftProofDialog::writeSettings().
bool Digikam::IccSettings::isEnabled | ( | ) | const |
Returns if color management is enabled.
References Digikam::ICCSettingsContainer::enableCM, and Digikam::IccSettings::Private::settings.
Referenced by Digikam::IccManager::isSRGB(), and useManagedPreviews().
void Digikam::IccSettings::loadAllProfilesProperties | ( | ) |
IccProfile caches some of its properties (description, type) when it was read once. Subsequently, to read these values no opening is needed. This ensures that all profiles have these values read. May imply scanning and opening all profiles.
References allProfiles(), Digikam::IccProfile::close(), Digikam::IccProfile::description(), Digikam::IccProfile::isOpen(), Digikam::IccSettings::Private::profiles, and Digikam::IccProfile::type().
Referenced by Digikam::DigikamApp::DigikamApp().
IccProfile Digikam::IccSettings::monitorProfile | ( | QWidget *const | widget = nullptr | ) |
Returns the monitor profile (for color managed view). If there are multiple screens, a system-wide settings specifies the monitor profile, and the widget parameter is passed, the returned profile is for the widget's screen. If no settings is specified, the default sRGB profile is returned.
References Digikam::IccProfile::isNull(), Digikam::ICCSettingsContainer::monitorProfile, Digikam::IccSettings::Private::mutex, Digikam::IccSettings::Private::profileFromWindowSystem(), Digikam::IccSettings::Private::settings, and Digikam::IccProfile::sRGB().
Referenced by Digikam::IccManager::displayProfile().
bool Digikam::IccSettings::monitorProfileFromSystem | ( | ) | const |
Returns if the monitor profile (as returned by monitorProfile()) is set system-wide, so that the monitorProfile field of the current settings need not be set and will not be used by monitorProfile().
References Digikam::IccProfile::isNull(), Digikam::IccSettings::Private::mutex, Digikam::IccSettings::Private::profileFromWindowSystem(), and Digikam::IccSettings::Private::screenProfiles.
QList< IccProfile > Digikam::IccSettings::outputProfiles | ( | ) |
Get available profiles suitable as proof/output profiles
References allProfiles(), Digikam::IccProfile::Output, and Digikam::IccProfile::type().
QList< IccProfile > Digikam::IccSettings::profilesForDescription | ( | const QString & | description | ) |
Returns a list of profiles with the given description()
References allProfiles(), and Digikam::IccProfile::description().
Referenced by Digikam::IccTransformFilter::readParameters().
void Digikam::IccSettings::setIccPath | ( | const QString & | path | ) |
void Digikam::IccSettings::setSettings | ( | const ICCSettingsContainer & | settings | ) |
Sets the current ICC settings and writes them to config.
References Digikam::ICCSettingsContainer::iccFolder, Digikam::IccSettings::Private::mutex, Digikam::IccSettings::Private::profiles, settings(), Digikam::IccSettings::Private::settings, signalICCSettingsChanged(), signalSettingsChanged(), and Digikam::IccSettings::Private::writeToConfig().
Referenced by Digikam::SetupICC::applySettings(), and Digikam::SoftProofDialog::writeSettings().
ICCSettingsContainer Digikam::IccSettings::settings | ( | ) |
Returns the current ICC settings.
References Digikam::IccSettings::Private::mutex, and Digikam::IccSettings::Private::settings.
Referenced by Digikam::EditorWindow::applyColorManagementSettings(), Digikam::EditorWindow::applyIOSettings(), Digikam::QueuePool::applySettings(), Digikam::ColorCorrectionDlg::ColorCorrectionDlg(), Digikam::PreviewLoadThread::createLoadingDescription(), Digikam::SoftProofDialog::readSettings(), setSettings(), Digikam::LightTableWindow::slotColorManagementOptionsChanged(), Digikam::IccSettings::Private::writeManagedPreviewsToConfig(), Digikam::IccSettings::Private::writeManagedViewToConfig(), Digikam::SoftProofDialog::writeSettings(), and Digikam::IccSettings::Private::writeToConfig().
void Digikam::IccSettings::setUseManagedPreviews | ( | bool | useManagedPreviews | ) |
void Digikam::IccSettings::setUseManagedView | ( | bool | useManagedView | ) |
Set single parts of the settings
References Digikam::IccSettings::Private::mutex, Digikam::IccSettings::Private::settings, signalICCSettingsChanged(), signalSettingsChanged(), Digikam::ICCSettingsContainer::useManagedView, and Digikam::IccSettings::Private::writeManagedViewToConfig().
|
signal |
Referenced by setIccPath(), setSettings(), setUseManagedPreviews(), and setUseManagedView().
|
signal |
Referenced by setIccPath(), setSettings(), setUseManagedPreviews(), and setUseManagedView().
bool Digikam::IccSettings::useManagedPreviews | ( | ) | const |
Returns if color management for previews is enabled.
References isEnabled(), Digikam::IccSettings::Private::settings, and Digikam::ICCSettingsContainer::useManagedPreviews.
Referenced by setUseManagedPreviews().
QList< IccProfile > Digikam::IccSettings::workspaceProfiles | ( | ) |
Get available profiles suitable as workspace profile
References allProfiles(), Digikam::IccProfile::ColorSpace, Digikam::IccProfile::Display, and Digikam::IccProfile::type().
|
friend |
|
friend |