2 Copyright (C) 2016 Paul Davis
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.
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.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 #ifndef __ardour_vca_time_axis_h__
21 #define __ardour_vca_time_axis_h__
23 #include "ardour_button.h"
24 #include "time_axis_view.h"
25 #include "gain_meter.h"
27 namespace ArdourCanvas {
36 class VCATimeAxisView : public TimeAxisView
39 VCATimeAxisView (PublicEditor&, ARDOUR::Session*, ArdourCanvas::Canvas& canvas);
40 virtual ~VCATimeAxisView ();
42 void set_vca (boost::shared_ptr<ARDOUR::VCA>);
43 boost::shared_ptr<ARDOUR::VCA> vca() const { return _vca; }
45 std::string name() const;
46 std::string state_id() const;
48 bool selectable() const { return false; }
51 boost::shared_ptr<ARDOUR::VCA> _vca;
52 ArdourButton solo_button;
53 ArdourButton mute_button;
54 ArdourButton spill_button;
55 ArdourButton drop_button;
56 ArdourButton number_label;
57 GainMeterBase gain_meter;
58 PBD::ScopedConnectionList vca_connections;
60 void parameter_changed (std::string const& p);
61 void vca_property_changed (PBD::PropertyChange const&);
62 void update_vca_name ();
63 void set_button_names ();
64 void update_solo_display ();
65 void update_mute_display ();
66 void update_track_number_visibility ();
67 bool solo_release (GdkEventButton*);
68 bool mute_release (GdkEventButton*);
69 bool spill_release (GdkEventButton*);
70 bool drop_release (GdkEventButton*);
74 #endif /* __ardour_route_time_axis_h__ */