-BlankProcessorEntry::BlankProcessorEntry (Width w)
- : ProcessorEntry (boost::shared_ptr<Processor>(), w)
-{
-}
-
-SendProcessorEntry::SendProcessorEntry (boost::shared_ptr<Send> s, Width w)
- : ProcessorEntry (s, w)
- , _send (s)
- , _adjustment (gain_to_slider_position_with_max (1.0, Config->get_max_gain()), 0, 1, 0.01, 0.1)
- , _fader (_slider_pixbuf, &_adjustment, 0, false)
- , _ignore_gain_change (false)
- , _data_type (DataType::AUDIO)
-{
- _fader.set_name ("SendFader");
- _fader.set_controllable (_send->amp()->gain_control ());
- _vbox.pack_start (_fader);
-
- _fader.show ();
-
- _adjustment.signal_value_changed().connect (sigc::mem_fun (*this, &SendProcessorEntry::gain_adjusted));
-
- _send->amp()->gain_control()->Changed.connect (
- _send_connections, invalidator (*this), boost::bind (&SendProcessorEntry::show_gain, this), gui_context()
- );
-
- _send->amp()->ConfigurationChanged.connect (
- _send_connections, invalidator (*this), ui_bind (&SendProcessorEntry::setup_gain_adjustment, this), gui_context ()
- );
-
- setup_gain_adjustment ();
- show_gain ();
-}
-
-void
-SendProcessorEntry::setup_gain_adjustment ()