Ardour  8.12
port_insert_ui.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014-2017 Robin Gareus <robin@gareus.org>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  */
18 
19 #ifndef __gtkardour_port_insert_ui_h__
20 #define __gtkardour_port_insert_ui_h__
21 
22 #include "widgets/ardour_button.h"
24 
25 #include "ardour_window.h"
26 #include "gain_meter.h"
27 #include "io_selector.h"
28 
29 namespace ARDOUR
30 {
31  class PortInsert;
32 }
33 
34 class TimeCtlGUI;
35 class MTDM;
36 
37 class PortInsertUI : public Gtk::VBox
38 {
39 public:
40  PortInsertUI (Gtk::Window*, ARDOUR::Session*, std::shared_ptr<ARDOUR::PortInsert>);
42 
43  void redisplay ();
45 
46 private:
47  void fast_update ();
50 
54  void set_measured_status (MTDM* mtdm = NULL);
55 
61 
62  std::shared_ptr<ARDOUR::PortInsert> _pi;
63 
68 
79 
83 
84  sigc::connection _latency_timeout;
86 
88 };
89 
91 {
92 public:
93  PortInsertWindow (Gtk::Window&, ARDOUR::Session*, std::shared_ptr<ARDOUR::PortInsert>);
94  PortInsertWindow (ARDOUR::Session*, std::shared_ptr<ARDOUR::PortInsert>);
95 
96 private:
98 };
99 
100 #endif /* __gtkardour_port_insert_ui_h__ */
Definition: mtdm.h:29
std::shared_ptr< ARDOUR::PortInsert > _pi
TimeCtlGUI * _latency_gui
Gtk::Window * _parent
Gtk::HBox _input_hbox
Gtk::VBox _input_vbox
bool check_latency_measurement()
void set_measured_status(MTDM *mtdm=NULL)
void return_changed(ARDOUR::IOChange, void *)
sigc::connection _latency_timeout
void send_changed(ARDOUR::IOChange, void *)
Gtk::VBox _output_vbox
GainMeter _input_gpm
void finished(IOSelector::Result)
void set_latency_label()
GainMeter _output_gpm
void latency_button_toggled()
void redisplay()
Gtk::Notebook _notebook
ArdourWidgets::StatefulToggleButton _measure_latency_button
Gtk::HBox _latency_hbox
PortInsertUI(Gtk::Window *, ARDOUR::Session *, std::shared_ptr< ARDOUR::PortInsert >)
void fast_update()
bool invert_release(GdkEventButton *ev)
void edit_latency_button_clicked()
bool invert_press(GdkEventButton *ev)
sigc::connection _fast_screen_update_connection
ArdourWindow * _latency_dialog
IOSelector _input_selector
void forget_measuremed_latency()
IOSelector _output_selector
ArdourWidgets::ArdourButton _edit_latency_button
bool measure_latency_press(GdkEventButton *ev)
ArdourWidgets::ArdourButton _invert_button
Gtk::Label _latency_display
PBD::ScopedConnectionList _connections
Gtk::HBox _output_hbox
PortInsertWindow(ARDOUR::Session *, std::shared_ptr< ARDOUR::PortInsert >)
PortInsertWindow(Gtk::Window &, ARDOUR::Session *, std::shared_ptr< ARDOUR::PortInsert >)
PortInsertUI _portinsertui