Ardour  9.0-pre0-582-g084a23a80d
velocity_ghost_region.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2007-2014 David Robillard <d@drobilla.net>
3  * Copyright (C) 2009-2010 Carl Hetherington <carl@carlh.net>
4  * Copyright (C) 2009-2017 Paul Davis <paul@linuxaudiosystems.com>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License along
17  * with this program; if not, write to the Free Software Foundation, Inc.,
18  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19  */
20 
21 #pragma once
22 
23 #include "canvas/poly_line.h"
24 
25 #include "ghostregion.h"
26 #include "velocity_display.h"
27 
28 namespace ArdourCanvas {
29  class Lollipop;
30 }
31 
32 class GhostEvent;
33 
35 {
36  public:
37  VelocityGhostRegion (MidiRegionView&, TimeAxisView& tv, TimeAxisView& source_tv, double initial_unit_pos);
39 
41  void add_note (NoteBase*);
46 
48 
49  void set_colors ();
50  private:
53 };
54 
bool lollevent(GdkEvent *, GhostEvent *)
void note_selected(NoteBase *)
ArdourCanvas::Rectangle & base_item()
void update_contents_height()
void update_note(GhostEvent *)
void update_hit(GhostEvent *)
void add_note(NoteBase *)
VelocityGhostRegion(MidiRegionView &, TimeAxisView &tv, TimeAxisView &source_tv, double initial_unit_pos)
bool base_event(GdkEvent *)
void remove_note(NoteBase *)