Merge branch 'dev' into spot-removal-tool

This commit is contained in:
Ingo Weyrich
2020-11-24 17:16:41 +01:00
257 changed files with 79066 additions and 10075 deletions

View File

@@ -248,6 +248,7 @@ CurveEditor::CurveEditor (Glib::ustring text, CurveEditorGroup* ceGroup, CurveEd
{
bgHistValid = false;
locallabRef = 0.0;
remoteDrag = false;
selected = DCT_Linear;
bottomBarCP = nullptr;
@@ -322,6 +323,18 @@ void CurveEditor::updateBackgroundHistogram(const LUTu& hist)
subGroup->updateBackgroundHistogram(this);
}
/*
* Update Locallab reference value displayed in the background
*/
void CurveEditor::updateLocallabBackground(double ref)
{
// Copy Locallab reference value in the curve editor cache
locallabRef = ref;
// Then call the curve editor group to eventually update the histogram
subGroup->updateLocallabBackground(this);
}
// Open up the curve if it has modifications and it's not already opened
// Returns: true if curve was non linear and opened
bool CurveEditor::openIfNonlinear()