Preferences/Config changes for image-surface settings
[ardour.git] / gtk2_ardour / region_gain_line.h
1 /*
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>
9  *
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.
14  *
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.
19  *
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.
23  */
24
25 #ifndef __ardour_gtk_region_gain_line_h__
26 #define __ardour_gtk_region_gain_line_h__
27
28 #include "ardour/ardour.h"
29
30
31 #include "automation_line.h"
32
33 namespace ARDOUR {
34         class Session;
35 }
36
37 class TimeAxisView;
38 class AudioRegionView;
39
40 class AudioRegionGainLine : public AutomationLine
41 {
42 public:
43         AudioRegionGainLine (const std::string & name, AudioRegionView&, ArdourCanvas::Container& parent, boost::shared_ptr<ARDOUR::AutomationList>);
44
45         void start_drag_single (ControlPoint*, double, float);
46         void end_drag (bool with_push, uint32_t final_index);
47
48         void remove_point (ControlPoint&);
49         AudioRegionView& region_view () { return rv; }
50
51 private:
52         PBD::ScopedConnection _region_changed_connection;
53         void region_changed (const PBD::PropertyChange& what_changed);
54         AudioRegionView& rv;
55 };
56
57 #endif /* __ardour_gtk_region_gain_line_h__ */