Ardour  9.0-pre0-582-g084a23a80d
vca_master_strip.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016-2017 Paul Davis <paul@linuxaudiosystems.com>
3  * Copyright (C) 2016-2017 Robin Gareus <robin@gareus.org>
4  * Copyright (C) 2017-2018 Ben Loftis <ben@harrisonconsoles.com>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License along
17  * with this program; if not, write to the Free Software Foundation, Inc.,
18  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19  */
20 
21 #ifndef __ardour_vca_master_strip__
22 #define __ardour_vca_master_strip__
23 
24 #include <memory>
25 
26 #include <gtkmm/box.h>
27 #include <gtkmm/colorselection.h>
28 #include <gtkmm/menuitem.h>
29 #include <gtkmm/messagedialog.h>
30 
31 #include "widgets/ardour_button.h"
32 
33 #include "axis_view.h"
34 #include "control_slave_ui.h"
35 #include "gain_meter.h"
36 #include "stripable_colorpicker.h"
37 
38 namespace ARDOUR {
39  class GainControl;
40  class VCA;
41 }
42 
43 class FloatingTextEntry;
44 
45 class VCAMasterStrip : public AxisView, public Gtk::EventBox
46 {
47 public:
48  VCAMasterStrip (ARDOUR::Session*, std::shared_ptr<ARDOUR::VCA>);
50 
51  std::shared_ptr<ARDOUR::Stripable> stripable() const;
53 
54  std::string name() const;
55  Gdk::Color color () const;
56  std::string state_id() const;
57  std::shared_ptr<ARDOUR::VCA> vca() const { return _vca; }
58 
60 
61  bool marked_for_display () const;
63 
64 private:
65  std::shared_ptr<ARDOUR::VCA> _vca;
67 
83 
84  void spill ();
85  void spill_change (std::shared_ptr<ARDOUR::Stripable>);
86  void hide_clicked();
88  void set_selected (bool);
91  void set_width (bool wide);
92  void set_solo_text ();
93  void solo_changed ();
94  void mute_changed ();
95  void unassign ();
96  void start_name_edit ();
97  void finish_name_edit (std::string, int);
101  void vca_property_changed (PBD::PropertyChange const & what_changed);
104  void hide_confirmation (int);
105  void self_delete ();
106  void remove ();
110 
111  void parameter_changed (std::string const& p);
114 
117 };
118 
119 
120 #endif /* __ardour_vca_master_strip__ */
std::shared_ptr< ARDOUR::VCA > vca() const
void parameter_changed(std::string const &p)
void assign_all_selected()
ARDOUR::PresentationInfo const & presentation_info() const
Gtk::HBox solo_mute_box
Gtk::Menu * context_menu
void vca_property_changed(PBD::PropertyChange const &what_changed)
void set_solo_text()
Gtk::VBox global_vpacker
void unassign_all_selected()
void update_vca_name()
ArdourWidgets::ArdourButton width_button
bool mute_release(GdkEventButton *)
bool vertical_button_press(GdkEventButton *)
void set_width(bool wide)
void self_delete()
ControlSlaveUI control_slave_ui
ArdourWidgets::ArdourButton color_button
void solo_changed()
void drop_all_slaves()
std::string state_id() const
bool number_button_press(GdkEventButton *)
StripableColorDialog _color_picker
ArdourWidgets::ArdourButton mute_button
ArdourWidgets::ArdourButton solo_button
bool vertical_button_release(GdkEventButton *)
bool set_marked_for_display(bool)
ArdourWidgets::ArdourButton hide_button
Gtk::MessageDialog * delete_dialog
std::shared_ptr< ARDOUR::Stripable > stripable() const
Gdk::Color color() const
PBD::ScopedConnectionList vca_connections
bool solo_release(GdkEventButton *)
void hide_clicked()
void mute_changed()
Gtk::HBox bottom_padding
void set_button_names()
void start_color_edit()
bool marked_for_display() const
void set_selected(bool)
void start_name_edit()
ArdourWidgets::ArdourButton number_label
Gtk::Frame global_frame
static PBD::Signal< void(VCAMasterStrip *)> CatchDeletion
void finish_name_edit(std::string, int)
void spill_change(std::shared_ptr< ARDOUR::Stripable >)
GainMeter gain_meter
void hide_confirmation(int)
std::shared_ptr< ARDOUR::VCA > _vca
bool width_button_pressed(GdkEventButton *)
void update_bottom_padding()
std::string name() const
void build_context_menu()
ArdourWidgets::ArdourButton vertical_button
VCAMasterStrip(ARDOUR::Session *, std::shared_ptr< ARDOUR::VCA >)
DebugBits VCA