Only allow LV2 touch events for control inputs
[ardour.git] / gtk2_ardour / midi_automation_line.h
1 /*
2     Copyright (C) 2010 Paul Davis
3
4     This program is free software; you can redistribute it and/or modify
5     it under the terms of the GNU General Public License as published by
6     the Free Software Foundation; either version 2 of the License, or
7     (at your option) any later version.
8
9     This program is distributed in the hope that it will be useful,
10     but WITHOUT ANY WARRANTY; without even the implied warranty of
11     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12     GNU General Public License for more details.
13
14     You should have received a copy of the GNU General Public License
15     along with this program; if not, write to the Free Software
16     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
18 */
19
20 #include "automation_line.h"
21
22 namespace ARDOUR {
23         class MidiRegion;
24 }
25
26 /** Stub class so that lines for MIDI AutomationRegionViews can use the correct
27  *  MementoCommandBinder.
28  */
29 class MidiAutomationLine : public AutomationLine
30 {
31 public:
32         MidiAutomationLine (const std::string&, TimeAxisView&, ArdourCanvas::Item&,
33                             boost::shared_ptr<ARDOUR::AutomationList>,
34                             boost::shared_ptr<ARDOUR::MidiRegion>,
35                             Evoral::Parameter,
36                             Evoral::TimeConverter<double, ARDOUR::samplepos_t>* converter = 0);
37
38         MementoCommandBinder<ARDOUR::AutomationList>* memento_command_binder ();
39
40         virtual std::string get_verbose_cursor_string (double) const;
41
42 private:
43         boost::shared_ptr<ARDOUR::MidiRegion> _region;
44         Evoral::Parameter _parameter;
45 };