Normalized RAW tab and enhanced slider behaviour for the RAW tab

This commit is contained in:
Hombre
2011-02-16 02:33:49 +01:00
parent a8a350bba4
commit 4d1936e008
46 changed files with 1270 additions and 789 deletions

View File

@@ -21,17 +21,19 @@
#include <math.h>
#include <multilangmgr.h>
#include <rtengine.h>
#include <options.h>
extern Glib::ustring argv0;
int Adjuster::delay = 1000;
Adjuster::Adjuster (Glib::ustring vlabel, double vmin, double vmax, double vstep, double vdefault, bool editedcb) {
adjusterListener = NULL;
afterReset = false;
blocked = false;
// TODO: let the user chose the default value of Adjuster::delay, for slow machines
delay = options.adjusterDelay; // delay is no more static, so we can set the delay individually (usefull for the RAW editor tab)
set_border_width (2);
hbox = Gtk::manage (new Gtk::HBox ());
@@ -212,6 +214,16 @@ double Adjuster::getValue () {
return spin->get_value ();
}
int Adjuster::getIntValue () {
return spin->get_value_as_int ();
}
Glib::ustring Adjuster::getTextValue () {
return spin->get_text ();
}
bool Adjuster::notifyListener () {
if (adjusterListener!=NULL && !blocked) {