Ardour  8.7-15-gadf511264b
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 #ifndef __audio_region_properties_box_h__
21 #define __audio_region_properties_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 "widgets/ardour_button.h"
33 
34 #include "gtkmm2ext/cairo_packer.h"
35 
36 #include "audio_clock.h"
37 
38 namespace ARDOUR
39 {
40  class Session;
41  class Location;
42 }
43 
45 {
46 public:
49 
50  virtual void set_region (std::shared_ptr<ARDOUR::Region>);
51 
53 
54 protected:
55  std::shared_ptr<ARDOUR::Region> _region;
56 
58 
59 private:
60  void region_changed (const PBD::PropertyChange& what_changed);
61 
63 
66 
69 
71 
73 };
74 
76 {
77 public:
80 
81  virtual void set_region (std::shared_ptr<ARDOUR::Region>);
82 
83 private:
86 
89 };
90 
91 #endif /* __audio_region_properties_box_h__ */
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)