digiKam
Digikam::IccSettings Class Reference
+ Inheritance diagram for Digikam::IccSettings:

Classes

class  Private
 

Signals

void signalICCSettingsChanged (const ICCSettingsContainer &current, const ICCSettingsContainer &previous)
 
void signalSettingsChanged ()
 

Public Member Functions

QList< IccProfileallProfiles ()
 
QList< IccProfiledisplayProfiles ()
 
QList< IccProfileinputProfiles ()
 
bool isEnabled () const
 
void loadAllProfilesProperties ()
 
IccProfile monitorProfile (QWidget *const widget=nullptr)
 
bool monitorProfileFromSystem () const
 
QList< IccProfileoutputProfiles ()
 
QList< IccProfileprofilesForDescription (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< IccProfileworkspaceProfiles ()
 

Static Public Member Functions

static IccSettingsinstance ()
 

Friends

class IccSettingsCreator
 
class Private
 

Member Function Documentation

◆ allProfiles()

◆ displayProfiles()

QList< IccProfile > Digikam::IccSettings::displayProfiles ( )

Get available profiles suitable as monitor/display profile

References allProfiles(), Digikam::IccProfile::Display, and Digikam::IccProfile::type().

◆ inputProfiles()

QList< IccProfile > Digikam::IccSettings::inputProfiles ( )

Get available profiles suitable as input profile

References allProfiles(), Digikam::IccProfile::ColorSpace, Digikam::IccProfile::Input, and Digikam::IccProfile::type().

◆ instance()

◆ isEnabled()

bool Digikam::IccSettings::isEnabled ( ) const

◆ loadAllProfilesProperties()

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().

◆ monitorProfile()

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().

◆ monitorProfileFromSystem()

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.

◆ outputProfiles()

QList< IccProfile > Digikam::IccSettings::outputProfiles ( )

Get available profiles suitable as proof/output profiles

References allProfiles(), Digikam::IccProfile::Output, and Digikam::IccProfile::type().

◆ profilesForDescription()

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().

◆ setIccPath()

◆ setSettings()

◆ settings()

◆ setUseManagedPreviews()

◆ setUseManagedView()

◆ signalICCSettingsChanged

void Digikam::IccSettings::signalICCSettingsChanged ( const ICCSettingsContainer current,
const ICCSettingsContainer previous 
)
signal

◆ signalSettingsChanged

void Digikam::IccSettings::signalSettingsChanged ( )
signal

◆ useManagedPreviews()

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().

◆ workspaceProfiles()

QList< IccProfile > Digikam::IccSettings::workspaceProfiles ( )

Get available profiles suitable as workspace profile

References allProfiles(), Digikam::IccProfile::ColorSpace, Digikam::IccProfile::Display, and Digikam::IccProfile::type().

Friends And Related Function Documentation

◆ IccSettingsCreator

friend class IccSettingsCreator
friend

◆ Private

friend class Private
friend

The documentation for this class was generated from the following files: