Adding per curve default curve capabilities, used in the Color Toning tool as of now. See issue 2014

This commit is contained in:
Hombre
2014-07-15 22:07:11 +02:00
parent 918a922499
commit 1921141cb7
20 changed files with 247 additions and 183 deletions

View File

@@ -445,10 +445,15 @@ void FlatCurveEditorSubGroup::removeEditor () {
removeIfThere (parent, CPointsCurveBox, false);
}
bool FlatCurveEditorSubGroup::curveReset(int cType, double iValue) {
switch ((FlatCurveType) cType) {
bool FlatCurveEditorSubGroup::curveReset(CurveEditor *ce) {
if (!ce)
return false;
FlatCurveEditor *fce = static_cast<FlatCurveEditor*>(ce);
switch (FlatCurveType(ce->selected)) {
case (FCT_MinMaxCPoints) : // = Control cage
CPointsCurve->reset (iValue);
CPointsCurve->reset (fce->controlPointsResetCurve, fce->getIdentityValue());
return true;
break;
/*case (FCT_Parametric) :