Add tooltip to send fader.
authorCarl Hetherington <carl@carlh.net>
Sat, 15 Jan 2011 00:45:32 +0000 (00:45 +0000)
committerCarl Hetherington <carl@carlh.net>
Sat, 15 Jan 2011 00:45:32 +0000 (00:45 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@8513 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/processor_box.cc

index 7548e9f6b6b3574fe7c49faf8596e8a7d272b618..05f49a4e4e72413b8ede768006203bd2b9d87e16 100644 (file)
@@ -54,6 +54,7 @@
 #include "ardour/route.h"
 #include "ardour/send.h"
 #include "ardour/session.h"
+#include "ardour/dB.h"
 
 #include "actions.h"
 #include "ardour_dialog.h"
@@ -323,6 +324,12 @@ SendProcessorEntry::show_gain ()
                _ignore_gain_change = true;
                _adjustment.set_value (value);
                _ignore_gain_change = false;
+
+               stringstream s;
+               s.precision (1);
+               s.setf (ios::fixed, ios::floatfield);
+               s << accurate_coefficient_to_dB (_send->amp()->gain ()) << _("dB");
+               _fader.set_tooltip_text (s.str ());
        }
 }