Ardour  9.0-pre0-582-g084a23a80d
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 #pragma once
20 
21 #include "widgets/ardour_button.h"
23 
24 #include "ardour_window.h"
25 #include "gain_meter.h"
26 #include "io_selector.h"
27 
28 namespace ARDOUR
29 {
30  class PortInsert;
31 }
32 
33 class TimeCtlGUI;
34 class MTDM;
35 
36 class PortInsertUI : public Gtk::VBox
37 {
38 public:
39  PortInsertUI (Gtk::Window*, ARDOUR::Session*, std::shared_ptr<ARDOUR::PortInsert>);
41 
42  void redisplay ();
44 
45 private:
46  void fast_update ();
49 
53  void set_measured_status (MTDM* mtdm = NULL);
54 
60 
61  std::shared_ptr<ARDOUR::PortInsert> _pi;
62 
67 
78 
82 
83  sigc::connection _latency_timeout;
85 
87 };
88 
90 {
91 public:
92  PortInsertWindow (Gtk::Window&, ARDOUR::Session*, std::shared_ptr<ARDOUR::PortInsert>);
93  PortInsertWindow (ARDOUR::Session*, std::shared_ptr<ARDOUR::PortInsert>);
94 
95 private:
97 };
98 
Definition: mtdm.h:28
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