2 * Copyright (C) 2005-2014 Paul Davis <paul@linuxaudiosystems.com>
3 * Copyright (C) 2005 Karsten Wiese <fzuuzf@googlemail.com>
4 * Copyright (C) 2005 Nick Mainsbridge <mainsbridge@gmail.com>
5 * Copyright (C) 2005 Taybin Rutkin <taybin@taybin.com>
6 * Copyright (C) 2006-2009 David Robillard <d@drobilla.net>
7 * Copyright (C) 2009-2012 Carl Hetherington <carl@carlh.net>
8 * Copyright (C) 2015-2017 Robin Gareus <robin@gareus.org>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License along
21 * with this program; if not, write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25 #ifndef __ardour_gtk_region_gain_line_h__
26 #define __ardour_gtk_region_gain_line_h__
28 #include "ardour/ardour.h"
31 #include "automation_line.h"
38 class AudioRegionView;
40 class AudioRegionGainLine : public AutomationLine
43 AudioRegionGainLine (const std::string & name, AudioRegionView&, ArdourCanvas::Container& parent, boost::shared_ptr<ARDOUR::AutomationList>);
45 void start_drag_single (ControlPoint*, double, float);
46 void end_drag (bool with_push, uint32_t final_index);
48 void remove_point (ControlPoint&);
49 AudioRegionView& region_view () { return rv; }
52 PBD::ScopedConnection _region_changed_connection;
53 void region_changed (const PBD::PropertyChange& what_changed);
57 #endif /* __ardour_gtk_region_gain_line_h__ */