X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fregion_gain_line.h;h=61b361210bb8964b4b0a3787f50cc92ca28f7cd1;hb=4a6412aebe4f18578f201e99ddc74fc5d9cb6bfc;hp=62e60a2626f283e04349a4c3967e96f170d10300;hpb=170d6b24cec9b7fe51d74b75544a097948e03082;p=ardour.git diff --git a/gtk2_ardour/region_gain_line.h b/gtk2_ardour/region_gain_line.h index 62e60a2626..61b361210b 100644 --- a/gtk2_ardour/region_gain_line.h +++ b/gtk2_ardour/region_gain_line.h @@ -1,8 +1,32 @@ +/* + Copyright (C) 2000-2007 Paul Davis + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +*/ + #ifndef __ardour_gtk_region_gain_line_h__ #define __ardour_gtk_region_gain_line_h__ -#include -#include +#include "ardour/ardour.h" + +#ifdef interface +#undef interface +#endif + +#include #include "automation_line.h" @@ -16,23 +40,15 @@ class AudioRegionView; class AudioRegionGainLine : public AutomationLine { public: - AudioRegionGainLine (ARDOUR::stringcr_t name, ARDOUR::Session&, AudioRegionView&, ArdourCanvas::Group& parent, ARDOUR::Curve&); - - void view_to_model_y (double&); - void model_to_view_y (double&); + AudioRegionGainLine (const std::string & name, AudioRegionView&, ArdourCanvas::Group& parent, boost::shared_ptr); - void start_drag (ControlPoint*, float fraction); - void end_drag (ControlPoint*); + void start_drag_single (ControlPoint*, double, float); + void end_drag (bool with_push, uint32_t final_index); void remove_point (ControlPoint&); - - - private: - ARDOUR::Session& session; +private: AudioRegionView& rv; - - UndoAction get_memento(); };