From b2b736d596123de52dac700db769ac4eb576da5c Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Fri, 18 Jul 2014 08:47:45 -0500 Subject: 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. --- gtk2_ardour/ardour3_ui_default.conf.in | 2 +- gtk2_ardour/ardour_button.h | 2 +- gtk2_ardour/ardour_display.cc | 149 +++++++++++ gtk2_ardour/ardour_display.h | 62 +++++ gtk2_ardour/ardour_knob.cc | 458 +++++++++++++++++++++++++++++++++ gtk2_ardour/ardour_knob.h | 97 +++++++ gtk2_ardour/monitor_section.cc | 125 +++++++-- gtk2_ardour/monitor_section.h | 15 +- gtk2_ardour/wscript | 2 + 9 files changed, 880 insertions(+), 32 deletions(-) create mode 100644 gtk2_ardour/ardour_display.cc create mode 100644 gtk2_ardour/ardour_display.h create mode 100644 gtk2_ardour/ardour_knob.cc create mode 100644 gtk2_ardour/ardour_knob.h (limited to 'gtk2_ardour') diff --git a/gtk2_ardour/ardour3_ui_default.conf.in b/gtk2_ardour/ardour3_ui_default.conf.in index a91aec32bf..d9f3a26a52 100644 --- a/gtk2_ardour/ardour3_ui_default.conf.in +++ b/gtk2_ardour/ardour3_ui_default.conf.in @@ -180,7 +180,7 @@