diff options
author | Carl Hetherington <carl@carlh.net> | 2012-06-06 11:47:09 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2012-06-06 11:47:09 +0000 |
commit | 46e448252f74ce35f37a1a41bb3ebe0f0312cd5d (patch) | |
tree | 727768ad3569c3e4becb9694e93fbf6f1b909691 /gtk2_ardour/mono_panner.cc | |
parent | 31f94b9b048f55b06b7de8fa0b8612b0fa2ea274 (diff) |
Provide dialogs to edit pan values numerically, at least for
mono and stereo panners.
git-svn-id: svn://localhost/ardour2/branches/3.0@12577 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/mono_panner.cc')
-rw-r--r-- | gtk2_ardour/mono_panner.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gtk2_ardour/mono_panner.cc b/gtk2_ardour/mono_panner.cc index 8ba9c411bd..8b28d7f1a4 100644 --- a/gtk2_ardour/mono_panner.cc +++ b/gtk2_ardour/mono_panner.cc @@ -38,6 +38,7 @@ #include "ardour_ui.h" #include "global_signals.h" #include "mono_panner.h" +#include "mono_panner_editor.h" #include "rgb_macros.h" #include "utils.h" @@ -246,6 +247,10 @@ MonoPanner::on_expose_event (GdkEventExpose*) bool MonoPanner::on_button_press_event (GdkEventButton* ev) { + if (PannerInterface::on_button_press_event (ev)) { + return true; + } + drag_start_x = ev->x; last_drag_x = ev->x; @@ -304,6 +309,10 @@ MonoPanner::on_button_press_event (GdkEventButton* ev) bool MonoPanner::on_button_release_event (GdkEventButton* ev) { + if (PannerInterface::on_button_release_event (ev)) { + return true; + } + if (ev->button != 1) { return false; } @@ -440,3 +449,8 @@ MonoPanner::color_handler () queue_draw (); } +PannerEditor* +MonoPanner::editor () +{ + return new MonoPannerEditor (this); +} |