Ardour  8.12
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 #ifndef __gtk_ardour_audio_region_edit_h__
24 #define __gtk_ardour_audio_region_edit_h__
25 
26 #include <map>
27 
28 #include <gtkmm/label.h>
29 #include <gtkmm/entry.h>
30 #include <gtkmm/box.h>
31 #include <gtkmm/checkbutton.h>
32 #include <gtkmm/button.h>
33 #include <gtkmm/arrow.h>
34 #include <gtkmm/frame.h>
35 #include <gtkmm/table.h>
36 #include <gtkmm/adjustment.h>
37 #include <gtkmm/separator.h>
38 #include <gtkmm/spinbutton.h>
39 
41 
42 #include "pbd/signals.h"
43 #include "pbd/crossthread.h"
44 
45 #include "audio_clock.h"
46 #include "ardour_dialog.h"
47 #include "region_editor.h"
48 
49 namespace ARDOUR {
50  class AudioRegion;
51  class Session;
52 }
53 
54 class AudioRegionView;
55 
57 {
58 public:
61 
63  void on_unmap ();
64 
65 private:
66 
69 
70  void gain_changed ();
72 
75  void show_touched_automation (std::weak_ptr<PBD::Controllable>);
76 
79 
81  std::shared_ptr<ARDOUR::AudioRegion> _audio_region;
82 
86 
89 
91 
94 
97 
100 
103  void peak_amplitude_found (double);
104  PBD::Signal1<void, double> PeakAmplitudeFound;
107 };
108 
109 #endif /* __gtk_ardour_audio_region_edit_h__ */
void peak_amplitude_found(double)
void gain_adjustment_changed()
Gtk::SpinButton gain_entry
PBD::Signal1< void, double > PeakAmplitudeFound
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()
void fade_before_fx_changed()
Gtk::CheckButton _polarity_toggle