Ardour  9.0-pre0-427-gd2a3450e2f
audio_region_properties_box.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 "widgets/ardour_button.h"
32 
33 #include "gtkmm2ext/cairo_packer.h"
34 
35 #include "audio_clock.h"
36 
37 namespace ARDOUR
38 {
39  class Session;
40  class Location;
41 }
42 
44 {
45 public:
48 
49  virtual void set_region (std::shared_ptr<ARDOUR::Region>);
50 
52 
53 protected:
54  std::shared_ptr<ARDOUR::Region> _region;
55 
57 
58 private:
59  void region_changed (const PBD::PropertyChange& what_changed);
60 
62 
65 
68 
70 
72 };
73 
75 {
76 public:
79 
80  virtual void set_region (std::shared_ptr<ARDOUR::Region>);
81 
82 private:
85 
88 };
89 
virtual void set_region(std::shared_ptr< ARDOUR::Region >)
ArdourWidgets::ArdourButton fade_in_enable_button
ArdourWidgets::ArdourButton stretch_selector
ArdourWidgets::ArdourButton gain_control
ArdourWidgets::ArdourButton fade_out_enable_button
virtual void set_region(std::shared_ptr< ARDOUR::Region >)
ArdourWidgets::ArdourButton bpm_button
void set_session(ARDOUR::Session *s)
ArdourWidgets::ArdourButton bbt_toggle
PBD::ScopedConnection state_connection
ArdourWidgets::ArdourButton metrum_button
std::shared_ptr< ARDOUR::Region > _region
void region_changed(const PBD::PropertyChange &what_changed)