Display Locallab Hue, Chroma and Luma reference values on mask curves

Bugfixe: Locallab reference values were only shown for the last control spot instead of selected one
This commit is contained in:
Pandagrapher
2019-02-09 13:03:07 +01:00
parent 33bfa31c1a
commit 8569738cf6
6 changed files with 7 additions and 7 deletions

View File

@@ -922,6 +922,8 @@ void ImProcCoordinator::updatePreviewImage(int todo, bool panningRelatedChange)
CurveFactory::complexCurvelocal(ecomp, black / 65535., hlcompr, hlcomprthresh, shcompr, br, cont, lumar,
hltonecurveloc, shtonecurveloc, tonecurveloc, lightCurveloc, avg,
sca);
// Locallab mask curve references are only shown for selected spot
if (sp == params->locallab.selspot) {
if (locallListener) {
locallListener->refChanged(huer, lumar, chromar);

View File

@@ -247,7 +247,7 @@ CurveEditor::CurveEditor (Glib::ustring text, CurveEditorGroup* ceGroup, CurveEd
{
bgHistValid = false;
locallabRef = 0.0;
locallabRef = 0.0;
remoteDrag = false;
selected = DCT_Linear;
bottomBarCP = nullptr;
@@ -330,11 +330,10 @@ 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
// 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()

View File

@@ -232,7 +232,6 @@ Locallab::Locallab():
defparams(nullptr),
defpedited(nullptr),
pe(nullptr)
{
ToolVBox* const panel = Gtk::manage(new ToolVBox());

View File

@@ -261,8 +261,6 @@ private:
Gtk::Button* const lumaneutralButton;
Gtk::Button* const lumacontrastPlusButton;
sigc::connection lumacontrastMinusPressedConn, lumaneutralPressedConn, lumacontrastPlusPressedConn;
// Gtk::Label* transLabels;
// Gtk::Label* transLabels2;
Gtk::Frame* maskcolFrame;
Gtk::Frame* maskexpFrame;
Gtk::Frame* maskSHFrame;

View File

@@ -165,7 +165,7 @@ void MyFlatCurve::draw ()
Gdk::RGBA c;
// Draw Locallab reference value in the background
// Draw Locallab reference value in the background
if (locallabRef > 0.0) {
cr->set_line_width(1.0);
cr->move_to(double(graphX + 1), double(graphY - 1));
@@ -178,6 +178,7 @@ void MyFlatCurve::draw ()
cr->fill();
cr->stroke();
}
cr->set_line_width (1.0);
// draw f(x)=0.5 line

View File

@@ -140,6 +140,7 @@ public:
void setPos(double pos, int chanIdx) override;
void stopNumericalAdjustment() override;
void updateLocallabBackground(double ref);
};