13
0

Add tooltip to send fader.

git-svn-id: svn://localhost/ardour2/branches/3.0@8513 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2011-01-15 00:45:32 +00:00
parent 510afcb2d4
commit 507cbd025e

View 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 ());
}
}