Free output gamma see #issue679 and #issue672 with the help and advice of Michael and Olli

This commit is contained in:
jdc
2011-05-17 06:50:34 +02:00
parent 860fa2e35b
commit 3008d61a3f
18 changed files with 244 additions and 36 deletions

View File

@@ -20,6 +20,8 @@
#define _ICMPANEL_
#include <gtkmm.h>
#include <adjuster.h>
#include <toolpanel.h>
class ICMPanelListener {
@@ -28,10 +30,18 @@ class ICMPanelListener {
virtual void saveInputICCReference (Glib::ustring fname) {}
};
class ICMPanel : public Gtk::VBox, public FoldableToolPanel {
class ICMPanel : public Gtk::VBox, public AdjusterListener, public FoldableToolPanel {
protected:
Adjuster* g_ampos;
Adjuster* s_lpos;
bool lastgamfree;
sigc::connection gamcsconn;
//bool freegamma;
private:
Gtk::RadioButton* inone;
Gtk::CheckButton* freegamma;
Gtk::RadioButton* inone;
Gtk::RadioButton* iembedded;
Gtk::RadioButton* icamera;
Gtk::RadioButton* ifromfile;
@@ -56,12 +66,14 @@ class ICMPanel : public Gtk::VBox, public FoldableToolPanel {
void read (const rtengine::procparams::ProcParams* pp, const ParamsEdited* pedited=NULL);
void write (rtengine::procparams::ProcParams* pp, ParamsEdited* pedited=NULL);
void setBatchMode (bool batchMode);
void setDefaults (const rtengine::procparams::ProcParams* defParams, const ParamsEdited* pedited=NULL);
void adjusterChanged (Adjuster* a, double newval);
void wpChanged ();
void opChanged ();
void ipChanged ();
void gpChanged ();
void GamChanged ();
void ipSelectionChanged ();
void setRaw (bool raw);