Solving issue 2610: "Display curve node input/output values" + add a new tone curve mode (Luminance)

This commit is contained in:
Hombrenatureh.510
2015-05-21 00:07:22 +02:00
parent 06deac5da4
commit 7c0b8e6fe1
41 changed files with 1434 additions and 239 deletions

View File

@@ -46,6 +46,10 @@ CurveEditorGroup::~CurveEditorGroup() {
void CurveEditorGroup::hideCurrentCurve() {
// Setting the curve type to 'Unchanged' hide the CurveEditor
if (diagonalSubGroup)
diagonalSubGroup->stopNumericalAdjustment();
if (flatSubGroup)
flatSubGroup->stopNumericalAdjustment();
if (displayedCurve)
displayedCurve->curveType->set_active(false);
}
@@ -280,10 +284,10 @@ void CurveEditorGroup::curveChanged () {
/*
* Listener called when the user has modified the curve
*/
float CurveEditorGroup::blendPipetteValues (float chan1, float chan2, float chan3) {
float CurveEditorGroup::blendPipetteValues (CurveEditor* ce, float chan1, float chan2, float chan3) {
if (cl)
return cl->blendPipetteValues(chan1, chan2, chan3);
return cl->blendPipetteValues(ce, chan1, chan2, chan3);
return -1.f;
}