Ardour  8.7-15-gadf511264b
midi_clip_editor.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2021 Paul Davis <paul@linuxaudiosystems.com>
3  * Copyright (C) 2021 Ben Loftis <ben@harrisonconsoles.com>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  */
19 
20 #ifndef __midi_region_trimmer_box_h__
21 #define __midi_region_trimmer_box_h__
22 
23 #include <map>
24 
25 #include <gtkmm/box.h>
26 #include <gtkmm/label.h>
27 #include <gtkmm/table.h>
28 
29 #include "ardour/ardour.h"
30 #include "ardour/session_handle.h"
31 
32 #include "gtkmm2ext/cairo_packer.h"
33 
34 #include "canvas/canvas.h"
35 #include "canvas/rectangle.h"
36 
37 #include "audio_clip_editor.h"
38 
39 #include "audio_clock.h"
40 
41 namespace ARDOUR
42 {
43  class Session;
44  class Location;
45 }
46 
47 namespace ArdourCanvas
48 {
49  class Text;
50  class Polygon;
51 }
52 
54 {
55 public:
58 
59 private:
61  bool event_handler (GdkEvent* ev);
62 };
63 
65 {
66 public:
69 
71 
72  void set_region (std::shared_ptr<ARDOUR::Region>, ARDOUR::TriggerReference);
73  void region_changed (const PBD::PropertyChange& what_changed);
74 
75 private:
78 
80 
82 
83  std::shared_ptr<ARDOUR::Region> _region;
84 };
85 
86 #endif /* __midi_region_trimmer_box_h__ */
Declaration of the main canvas classes.
PBD::ScopedConnection state_connection
Gtk::Label _header_label
void region_changed(const PBD::PropertyChange &what_changed)
void set_region(std::shared_ptr< ARDOUR::Region >, ARDOUR::TriggerReference)
std::shared_ptr< ARDOUR::Region > _region
void set_session(ARDOUR::Session *)
MidiClipEditor * editor
ArdourCanvas::Rectangle * frame
bool event_handler(GdkEvent *ev)