Krita Source Code Documentation
Loading...
Searching...
No Matches
KisProofingConfigModel.cpp File Reference
#include "KisProofingConfigModel.h"
#include <KisLager.h>
#include <KisZug.h>
#include <KisPortingUtils.h>
#include <kis_display_color_converter.h>
#include <lager/lenses/tuple.hpp>
#include <lager/constant.hpp>

Go to the source code of this file.

Functions

 LAGER_QT (adaptationSwitch)
 
 LAGER_QT (adaptationSwitchState)
 
 LAGER_QT (convBlackPointCompensation)
 
 LAGER_QT (conversionIntent)
 
 LAGER_QT (conversionIntentState)
 
 LAGER_QT (dispBlackPointCompensation)
 
 LAGER_QT (displayIntent)
 
 LAGER_QT (displayTransformMode)
 
 LAGER_QT (displayTransformModeState)
 
 LAGER_QT (effectiveDispBlackPointCompensationState)
 
 LAGER_QT (effectiveDisplayIntent)
 
 LAGER_QT (effectiveDisplayIntentState)
 
 LAGER_QT (enableCustomDisplayConfig)
 
 LAGER_QT (proofingSpaceTuple)
 

Function Documentation

◆ LAGER_QT() [1/14]

LAGER_QT ( adaptationSwitch )

◆ LAGER_QT() [2/14]

LAGER_QT ( adaptationSwitchState )

Definition at line 167 of file KisProofingConfigModel.cpp.

167 {
168 lager::with(LAGER_QT(displayTransformMode),
169 LAGER_QT(displayIntent),
170 LAGER_QT(adaptationSwitch)).map(&calcEffectiveAdaptationSwitchState)
171 }
LAGER_QT(proofingSpaceTuple)

References LAGER_QT().

◆ LAGER_QT() [3/14]

LAGER_QT ( convBlackPointCompensation )

Definition at line 124 of file KisProofingConfigModel.cpp.

bool useBlackPointCompensationFirstTransform
Whether to use BCP on the first transform. All other flags are handled by displayFlags;.

References KisProofingConfiguration::useBlackPointCompensationFirstTransform.

◆ LAGER_QT() [4/14]

LAGER_QT ( conversionIntent )

Definition at line 116 of file KisProofingConfigModel.cpp.

KoColorConversionTransformation::Intent conversionIntent
This is the intent for the first transform.

References KisProofingConfiguration::conversionIntent.

◆ LAGER_QT() [5/14]

LAGER_QT ( conversionIntentState )

Definition at line 117 of file KisProofingConfigModel.cpp.

117 {
118 lager::with(
119 LAGER_QT(conversionIntent),
120 lager::make_constant(true))
121 .map(&calcIntentComboBoxState)
122 }

References LAGER_QT().

◆ LAGER_QT() [6/14]

◆ LAGER_QT() [7/14]

LAGER_QT ( displayIntent )

Definition at line 136 of file KisProofingConfigModel.cpp.

KoColorConversionTransformation::Intent displayIntent
This is the intent for the second transform.

References KisProofingConfiguration::displayIntent.

◆ LAGER_QT() [8/14]

LAGER_QT ( displayTransformMode )

◆ LAGER_QT() [9/14]

LAGER_QT ( displayTransformModeState )

Definition at line 127 of file KisProofingConfigModel.cpp.

127 {
128 LAGER_QT(displayTransformMode)
129 .map(&calcModeComboBoxState)
130 }

References LAGER_QT().

◆ LAGER_QT() [10/14]

LAGER_QT ( effectiveDispBlackPointCompensationState )

Definition at line 152 of file KisProofingConfigModel.cpp.

152 {
153 lager::with(LAGER_QT(displayTransformMode),
154 LAGER_QT(effectiveDisplayIntent),
155 LAGER_QT(dispBlackPointCompensation),
156 displayConfigOptions
157 .zoom(lager::lenses::second)
159 .map(&calcEffectiveUseBPCState)
160 }
QAction * zoom(const QObject *recvr, const char *slot, QObject *parent)

References KoColorConversionTransformation::BlackpointCompensation, and LAGER_QT().

◆ LAGER_QT() [11/14]

LAGER_QT ( effectiveDisplayIntent )

Definition at line 137 of file KisProofingConfigModel.cpp.

137 {
138 lager::with(LAGER_QT(displayTransformMode),
139 LAGER_QT(displayIntent),
140 displayConfigOptions
141 .zoom(lager::lenses::first))
142 .map(&calcEffectiveDisplayIntent)
143 }

References LAGER_QT().

◆ LAGER_QT() [12/14]

LAGER_QT ( effectiveDisplayIntentState )

Definition at line 144 of file KisProofingConfigModel.cpp.

144 {
145 lager::with(
146 LAGER_QT(effectiveDisplayIntent),
147 LAGER_QT(enableCustomDisplayConfig))
148 .map(&calcIntentComboBoxState)
149 }

References LAGER_QT().

◆ LAGER_QT() [13/14]

LAGER_QT ( enableCustomDisplayConfig )

Definition at line 132 of file KisProofingConfigModel.cpp.

132 {
133 LAGER_QT(displayTransformMode)
134 .xform(kiszug::map_equal<int>(KisProofingConfiguration::Custom))}
@ Custom
Let artists configure their own.

References KisProofingConfiguration::Custom, and LAGER_QT().

◆ LAGER_QT() [14/14]