Patch from issue 227 (Work In Progress)

This commit is contained in:
natureh 510
2014-01-22 21:18:50 +01:00
parent 8b2eac9a3d
commit a8e3f2cdfa
69 changed files with 4202 additions and 609 deletions

View File

@@ -19,6 +19,7 @@
#include "labcurve.h"
#include <iomanip>
#include "../rtengine/improcfun.h"
#include "edit.h"
using namespace rtengine;
using namespace rtengine::procparams;
@@ -81,7 +82,8 @@ LCurve::LCurve () : Gtk::VBox(), FoldableToolPanel(this) {
lshape = static_cast<DiagonalCurveEditor*>(curveEditorG->addCurve(CT_Diagonal, "L"));
lshape->setTooltip(M("TP_LABCURVE_CURVEEDITOR_LL_TOOLTIP"));
lshape->setEditID(EUID_Lab_LCurve, BT_SINGLEPLANE_FLOAT);
ashape = static_cast<DiagonalCurveEditor*>(curveEditorG->addCurve(CT_Diagonal, "a"));
ashape->setRangeLabels(
M("TP_LABCURVE_CURVEEDITOR_A_RANGE1"), M("TP_LABCURVE_CURVEEDITOR_A_RANGE2"),
@@ -275,6 +277,11 @@ void LCurve::autoOpenCurve () {
if (!active) clshape->openIfNonlinear();
}
void LCurve::setEditProvider (EditDataProvider *provider) {
lshape->setEditProvider(provider);
}
void LCurve::write (ProcParams* pp, ParamsEdited* pedited) {
pp->labCurve.brightness = brightness->getValue ();