Ardour  9.0-pre0-582-g084a23a80d
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 #pragma once
21 
22 #include <map>
23 
24 #include <gtkmm/box.h>
25 #include <gtkmm/label.h>
26 #include <gtkmm/table.h>
27 
28 #include "ardour/ardour.h"
29 #include "ardour/session_handle.h"
30 
31 #include "gtkmm2ext/cairo_packer.h"
32 
33 #include "canvas/canvas.h"
34 #include "canvas/rectangle.h"
35 
36 #include "audio_clip_editor.h"
37 
38 #include "audio_clock.h"
39 
40 namespace ARDOUR
41 {
42  class Session;
43  class Location;
44 }
45 
46 namespace ArdourCanvas
47 {
48  class Text;
49  class Polygon;
50 }
51 
52 class MidiCueEditor;
53 
55 {
56 public:
59 
61 
62  void set_region (std::shared_ptr<ARDOUR::Region>, ARDOUR::TriggerReference);
63  void region_changed (const PBD::PropertyChange& what_changed);
64 
65 private:
68 
70 
72 
73  std::shared_ptr<ARDOUR::Region> _region;
74 };
75 
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 *)
MidiCueEditor * editor