Issue 2147: white balance slider now non-linear

This commit is contained in:
torger
2013-12-24 14:51:35 +01:00
parent e4e689c06f
commit 5970935529
3 changed files with 71 additions and 11 deletions

View File

@@ -32,6 +32,7 @@ class AdjusterListener {
virtual void adjusterAutoToggled (Adjuster* a, bool newval) {}
};
typedef double(*double2double_fun)(double val);
class Adjuster : public Gtk::VBox {
@@ -70,12 +71,13 @@ class Adjuster : public Gtk::VBox {
double shapeValue (double a);
void refreshLabelStyle ();
double2double_fun value2slider, slider2value;
public:
int delay;
Adjuster (Glib::ustring vlabel, double vmin, double vmax, double vstep, double vdefault, Gtk::Image *imgIcon=NULL);
Adjuster (Glib::ustring vlabel, double vmin, double vmax, double vstep, double vdefault, Gtk::Image *imgIcon=NULL, double2double_fun slider2value=NULL, double2double_fun value2slider=NULL);
virtual ~Adjuster ();
// Add an "Automatic" checkbox next to the reset button.