namespace ARDOUR {
class IO;
+ class GainControl;
class Session;
class Route;
class RouteGroup;
virtual void set_controls (boost::shared_ptr<ARDOUR::Route> route,
boost::shared_ptr<ARDOUR::PeakMeter> meter,
- boost::shared_ptr<ARDOUR::Amp> amp);
+ boost::shared_ptr<ARDOUR::Amp> amp,
+ boost::shared_ptr<ARDOUR::GainControl> control);
void update_gain_sensitive ();
void update_meters ();
*/
PBD::Signal1<bool, GdkEventButton *> LevelMeterButtonPress;
+ static std::string astate_string (ARDOUR::AutoState);
+ static std::string short_astate_string (ARDOUR::AutoState);
+ static std::string _astate_string (ARDOUR::AutoState, bool);
+
+ static std::string astyle_string (ARDOUR::AutoStyle);
+ static std::string short_astyle_string (ARDOUR::AutoStyle);
+ static std::string _astyle_string (ARDOUR::AutoStyle, bool);
+
protected:
friend class MixerStrip;
boost::shared_ptr<ARDOUR::Route> _route;
boost::shared_ptr<ARDOUR::PeakMeter> _meter;
boost::shared_ptr<ARDOUR::Amp> _amp;
+ boost::shared_ptr<ARDOUR::GainControl> _control;
std::vector<sigc::connection> connections;
PBD::ScopedConnectionList model_connections;
Gtkmm2ext::SliderController *gain_slider;
Gtk::Adjustment gain_adjustment;
Gtkmm2ext::FocusEntry gain_display;
- ArdourButton peak_display;
+ Gtkmm2ext::FocusEntry peak_display;
+// Gtk::Button peak_display;
Gtk::DrawingArea meter_metric_area;
Gtk::DrawingArea meter_ticks1_area;
Gtk::DrawingArea meter_ticks2_area;
Gtk::Menu gain_astate_menu;
Gtk::Menu gain_astyle_menu;
+ void set_gain_astate (ARDOUR::AutoState);
+ bool gain_astate_propagate;
+ static sigc::signal<void, ARDOUR::AutoState> ChangeGainAutomationState;
+
gint gain_automation_style_button_event (GdkEventButton *);
gint gain_automation_state_button_event (GdkEventButton *);
gint pan_automation_style_button_event (GdkEventButton *);
void gain_automation_style_changed();
void setup_gain_adjustment ();
-
- std::string astate_string (ARDOUR::AutoState);
- std::string short_astate_string (ARDOUR::AutoState);
- std::string _astate_string (ARDOUR::AutoState, bool);
-
- std::string astyle_string (ARDOUR::AutoStyle);
- std::string short_astyle_string (ARDOUR::AutoStyle);
- std::string _astyle_string (ARDOUR::AutoStyle, bool);
-
Width _width;
void show_gain ();
float max_peak;
- void gain_adjusted ();
+ void fader_moved ();
void gain_changed ();
void meter_point_clicked ();
virtual void set_controls (boost::shared_ptr<ARDOUR::Route> route,
boost::shared_ptr<ARDOUR::PeakMeter> meter,
- boost::shared_ptr<ARDOUR::Amp> amp);
+ boost::shared_ptr<ARDOUR::Amp> amp,
+ boost::shared_ptr<ARDOUR::GainControl> control);
int get_gm_width ();
void setup_meters (int len=0);
Gtk::HBox gain_display_box;
Gtk::HBox fader_box;
- Gtk::VBox* fader_vbox;
+ Gtk::VBox fader_vbox;
Gtk::HBox hbox;
Gtk::HBox meter_hbox;
Gtk::Alignment fader_alignment;