diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2014-07-18 08:47:45 -0500 |
---|---|---|
committer | Ben Loftis <ben@harrisonconsoles.com> | 2014-07-18 08:47:45 -0500 |
commit | b2b736d596123de52dac700db769ac4eb576da5c (patch) | |
tree | c800fa5fd3a84d3c7b0749ba3edb5b9fd89629ed /gtk2_ardour/monitor_section.h | |
parent | ac9219a3c884b69352ff5ab0d13f30fb15cf8e6e (diff) |
tweaks for the monitor section. refactoring of some buttons, using new ArdourKnob instead of VolumeController. New ArdourDisplay shows a controllables user value, and provides support for preset values (hardcoded at present). Further refactoring to come, so that ArdourWidgets are derived from a common class. Controllable now has more responsibility for scaling between internal, user, and interface (knob percent) values. This also needs more refactoring and might have some unintended consequences. tested with audio and nothing seems amiss, yet.
Diffstat (limited to 'gtk2_ardour/monitor_section.h')
-rw-r--r-- | gtk2_ardour/monitor_section.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/gtk2_ardour/monitor_section.h b/gtk2_ardour/monitor_section.h index f7848a3f01..d1fc7d8da1 100644 --- a/gtk2_ardour/monitor_section.h +++ b/gtk2_ardour/monitor_section.h @@ -23,6 +23,8 @@ #include "gtkmm2ext/bindable_button.h" #include "ardour_button.h" +#include "ardour_knob.h" +#include "ardour_display.h" #include "axis_view.h" #include "level_meter.h" #include "route_ui.h" @@ -74,11 +76,16 @@ class MonitorSection : public RouteUI typedef std::vector<ChannelButtonSet*> ChannelButtons; ChannelButtons _channel_buttons; - VolumeController* gain_control; - VolumeController* dim_control; - VolumeController* solo_boost_control; - VolumeController* solo_cut_control; + ArdourKnob* gain_control; + ArdourKnob* dim_control; + ArdourKnob* solo_boost_control; + ArdourKnob* solo_cut_control; + ArdourDisplay* gain_display; + ArdourDisplay* dim_display; + ArdourDisplay* solo_boost_display; + ArdourDisplay* solo_cut_display; + void populate_buttons (); void map_state (); |