Krita Source Code Documentation
Loading...
Searching...
No Matches
KisColorManager Class Reference

The KisColorManager class can be used as a cross-platform way to get the display profile associated with a device. More...

#include <kis_color_manager.h>

+ Inheritance diagram for KisColorManager:

Classes

class  Private
 

Public Types

enum  DeviceType { screen , printer , camera , scanner }
 

Signals

void changed (const QString device)
 

Public Member Functions

QString deviceName (const QString &id)
 Return the user-visible name for the given device.
 
QStringList devices (DeviceType type=screen) const
 Return a list of device id's for the specified type.
 
QByteArray displayProfile (const QString &device, int profile=0) const
 Return the icc profile for the given device and index (if a device has more than one profile)
 
 KisColorManager ()
 
 ~KisColorManager () override
 

Static Public Member Functions

static KisColorManagerinstance ()
 

Private Member Functions

 KisColorManager (const KisColorManager &)
 
KisColorManager operator= (const KisColorManager &)
 

Private Attributes

const Private *const d
 

Detailed Description

The KisColorManager class can be used as a cross-platform way to get the display profile associated with a device.

TODO: support other devices than monitors

Definition at line 21 of file kis_color_manager.h.

Member Enumeration Documentation

◆ DeviceType

Enumerator
screen 
printer 
camera 
scanner 

Definition at line 29 of file kis_color_manager.h.

Constructor & Destructor Documentation

◆ KisColorManager() [1/2]

KisColorManager::KisColorManager ( )
explicit

Definition at line 17 of file kis_color_manager.cpp.

18 : QObject()
19 , d(new Private(this))
20{
21}
const Private *const d

◆ ~KisColorManager()

KisColorManager::~KisColorManager ( )
override

Definition at line 23 of file kis_color_manager.cpp.

24{
25 delete d;
26}

References d.

◆ KisColorManager() [2/2]

KisColorManager::KisColorManager ( const KisColorManager & )
private

Member Function Documentation

◆ changed

void KisColorManager::changed ( const QString device)
signal

◆ deviceName()

QString KisColorManager::deviceName ( const QString & id)

Return the user-visible name for the given device.

Definition at line 28 of file kis_color_manager.cpp.

29{
30 return QString();
31}

◆ devices()

QStringList KisColorManager::devices ( DeviceType type = screen) const

Return a list of device id's for the specified type.

Definition at line 33 of file kis_color_manager.cpp.

34{
35 return QStringList();
36}
QList< QString > QStringList

◆ displayProfile()

QByteArray KisColorManager::displayProfile ( const QString & device,
int profile = 0 ) const

Return the icc profile for the given device and index (if a device has more than one profile)

Definition at line 38 of file kis_color_manager.cpp.

39{
40 return QByteArray();
41}

◆ instance()

KisColorManager * KisColorManager::instance ( )
static

Definition at line 43 of file kis_color_manager.cpp.

44{
45 return s_instance;
46}

◆ operator=()

KisColorManager KisColorManager::operator= ( const KisColorManager & )
private

Member Data Documentation

◆ d

const Private* const KisColorManager::d
private

Definition at line 59 of file kis_color_manager.h.


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