Used new CheckBox in rawcacorrection; don't zero red and blue when autoca is enabled

This commit is contained in:
heckflosse
2017-03-16 13:34:11 +01:00
parent a25a585673
commit bb518eeef8
5 changed files with 29 additions and 68 deletions

View File

@@ -21,19 +21,17 @@
#include <gtkmm.h>
#include "adjuster.h"
#include "checkbox.h"
#include "toolpanel.h"
#include "../rtengine/rawimage.h"
class RAWCACorr : public ToolParamBlock, public AdjusterListener, public FoldableToolPanel
class RAWCACorr : public ToolParamBlock, public AdjusterListener, public CheckBoxListener, public FoldableToolPanel
{
protected:
Gtk::CheckButton* caAutocorrect;
CheckBox* caAutocorrect;
Adjuster* caStrength;
Adjuster* caRed;
Adjuster* caBlue;
bool lastCA;
sigc::connection caacsconn;
public:
@@ -47,7 +45,7 @@ public:
void trimValues (rtengine::procparams::ProcParams* pp);
void adjusterChanged (Adjuster* a, double newval);
void caCorrectionChanged ();
void checkBoxToggled (CheckBox* c, CheckValue newval);
};
#endif