Ardour  9.0-pre0-582-g084a23a80d
audio_region_editor.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2011 David Robillard <d@drobilla.net>
3  * Copyright (C) 2006-2013 Paul Davis <paul@linuxaudiosystems.com>
4  * Copyright (C) 2009-2011 Carl Hetherington <carl@carlh.net>
5  * Copyright (C) 2013 John Emmas <john@creativepost.co.uk>
6  * Copyright (C) 2015-2017 Robin Gareus <robin@gareus.org>
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License along
19  * with this program; if not, write to the Free Software Foundation, Inc.,
20  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21  */
22 
23 #pragma once
24 
25 #include <map>
26 
27 #include <gtkmm/label.h>
28 #include <gtkmm/entry.h>
29 #include <gtkmm/box.h>
30 #include <gtkmm/checkbutton.h>
31 #include <gtkmm/button.h>
32 #include <gtkmm/arrow.h>
33 #include <gtkmm/frame.h>
34 #include <gtkmm/table.h>
35 #include <gtkmm/adjustment.h>
36 #include <gtkmm/separator.h>
37 #include <gtkmm/spinbutton.h>
38 
40 
41 #include "pbd/signals.h"
42 #include "pbd/crossthread.h"
43 
44 #include "audio_clock.h"
45 #include "ardour_dialog.h"
46 #include "region_editor.h"
47 
48 namespace ARDOUR {
49  class AudioRegion;
50  class Session;
51 }
52 
53 class AudioRegionView;
54 
56 {
57 public:
60 
62  void on_unmap ();
63 
64 private:
65 
68 
69  void gain_changed ();
71 
74  void show_touched_automation (std::weak_ptr<PBD::Controllable>);
75 
78 
80  std::shared_ptr<ARDOUR::AudioRegion> _audio_region;
81 
85 
88 
90 
93 
96 
99 
102  void peak_amplitude_found (double);
106 };
void peak_amplitude_found(double)
void gain_adjustment_changed()
Gtk::SpinButton gain_entry
void refill_region_line()
ArdourWidgets::ArdourDropdown _region_line
Gtk::CheckButton _show_on_touch
CrossThreadChannel _peak_channel
PBD::ScopedConnection _ctrl_touched_connection
void on_unmap()
This is a default handler for the signal signal_unmap().
AudioRegionEditor(ARDOUR::Session *, AudioRegionView *)
Gtk::Label _peak_amplitude_label
pthread_t _peak_amplitude_thread_handle
PBD::ScopedConnection _peak_amplitude_connection
Gtk::Label _region_line_label
void show_touched_automation(std::weak_ptr< PBD::Controllable >)
void peak_amplitude_thread()
AudioRegionView * _arv
std::shared_ptr< ARDOUR::AudioRegion > _audio_region
void region_changed(PBD::PropertyChange const &)
Gtk::CheckButton _fade_before_fx_toggle
void fade_before_fx_toggle_changed()
Gtk::Adjustment gain_adjustment
void region_fx_changed()
void show_on_touch_changed()
void signal_peak_thread()
PBD::Signal< void(double)> PeakAmplitudeFound
void fade_before_fx_changed()
Gtk::CheckButton _polarity_toggle