Ardour  9.0-pre0-822-g12e3bc5c20
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 <ytkmm/adjustment.h>
28 #include <ytkmm/arrow.h>
29 #include <ytkmm/box.h>
30 #include <ytkmm/button.h>
31 #include <ytkmm/checkbutton.h>
32 #include <ytkmm/entry.h>
33 #include <ytkmm/frame.h>
34 #include <ytkmm/label.h>
35 #include <ytkmm/separator.h>
36 #include <ytkmm/spinbutton.h>
37 #include <ytkmm/table.h>
38 
40 
41 #include "pbd/crossthread.h"
42 #include "pbd/signals.h"
43 
44 #include "ardour_dialog.h"
45 #include "audio_clock.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:
67 
68  void gain_changed ();
70 
73  void show_touched_automation (std::weak_ptr<PBD::Controllable>);
74 
77 
79  std::shared_ptr<ARDOUR::AudioRegion> _audio_region;
80 
81  Gtk::Label _gain_label;
82  Gtk::Adjustment _gain_adjustment;
83  Gtk::SpinButton _gain_entry;
84 
85  Gtk::Label _polarity_label;
86  Gtk::CheckButton _polarity_toggle;
87 
88  Gtk::CheckButton _fade_before_fx_toggle;
89 
91  Gtk::Entry _peak_amplitude;
92 
93  Gtk::Label _region_line_label;
95 
96  Gtk::CheckButton _show_on_touch;
98 
100  void peak_amplitude_found (double);
101 
103 
107 };
void peak_amplitude_found(double)
void gain_adjustment_changed()
void refill_region_line()
ArdourWidgets::ArdourDropdown _region_line
Gtk::CheckButton _show_on_touch
CrossThreadChannel _peak_channel
PBD::ScopedConnection _ctrl_touched_connection
AudioRegionEditor(ARDOUR::Session *, AudioRegionView *)
Gtk::Label _peak_amplitude_label
pthread_t _peak_amplitude_thread_handle
PBD::ScopedConnection _peak_amplitude_connection
Gtk::Adjustment _gain_adjustment
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()
void region_fx_changed()
void show_on_touch_changed()
PBD::Signal< void(double)> PeakAmplitudeFound
Gtk::SpinButton _gain_entry
void signal_peak_thread()
void fade_before_fx_changed()
Gtk::CheckButton _polarity_toggle