much ado about nothing when it comes to gain control

git-svn-id: svn://localhost/ardour2/branches/3.0@9748 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2011-06-19 23:02:55 +00:00
parent 182b23e744
commit d5e09076ca
23 changed files with 211 additions and 122 deletions

View file

@ -35,8 +35,7 @@ class VolumeController : public Gtkmm2ext::MotionFeedback
bool with_numeric = true,
int image_width = 40,
int image_height = 40,
bool linear = true,
bool dB = false);
bool linear = true);
virtual ~VolumeController () {}
@ -45,10 +44,13 @@ class VolumeController : public Gtkmm2ext::MotionFeedback
protected:
double to_control_value (double);
double to_display_value (double);
double adjust (double nominal_delta);
double display_value () const;
double control_value () const;
private:
bool _linear;
bool _controllable_uses_dB;
void dB_printer (char buf[32], const boost::shared_ptr<PBD::Controllable>& adj);
};