diff options
author | Robin Gareus <robin@gareus.org> | 2020-04-18 01:04:45 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-04-18 01:04:45 +0200 |
commit | 5c5f0c8282866aecd41de070c33edd8b22dc3d77 (patch) | |
tree | f24008783521bf2e3f01e8fa56615212215faa9e /gtk2_ardour/processor_box.h | |
parent | 929754f48c7e818d7cb37107a553d2f2de8c5ce6 (diff) |
Allow to hide inline-controls using shift+right click
Diffstat (limited to 'gtk2_ardour/processor_box.h')
-rw-r--r-- | gtk2_ardour/processor_box.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk2_ardour/processor_box.h b/gtk2_ardour/processor_box.h index 4b49dbe67f..2063ab064b 100644 --- a/gtk2_ardour/processor_box.h +++ b/gtk2_ardour/processor_box.h @@ -200,7 +200,7 @@ private: class Control : public sigc::trackable { public: - Control (boost::shared_ptr<ARDOUR::AutomationControl>, std::string const &); + Control (ProcessorEntry&, boost::shared_ptr<ARDOUR::AutomationControl>, std::string const &); ~Control (); void set_visible (bool); @@ -230,6 +230,9 @@ private: void start_touch (); void end_touch (); + bool button_released (GdkEventButton*); + + ProcessorEntry& _entry; boost::weak_ptr<ARDOUR::AutomationControl> _control; /* things for a slider */ Gtk::Adjustment _adjustment; @@ -245,7 +248,9 @@ private: std::list<Control*> _controls; + friend class Control; void toggle_control_visibility (Control *); + void toggle_panner_link (); void toggle_allow_feedback (); |