mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
fix meter-strip session/route-ui events
This commit is contained in:
parent
a7c559fd63
commit
e1d327c5ed
2 changed files with 7 additions and 6 deletions
|
|
@ -115,14 +115,15 @@ MeterStrip::MeterStrip (int metricmode, MeterType mt)
|
||||||
|
|
||||||
MeterStrip::MeterStrip (Session* sess, boost::shared_ptr<ARDOUR::Route> rt)
|
MeterStrip::MeterStrip (Session* sess, boost::shared_ptr<ARDOUR::Route> rt)
|
||||||
: AxisView(sess)
|
: AxisView(sess)
|
||||||
, RouteUI(sess)
|
, RouteUI(0)
|
||||||
, _route(rt)
|
, _route(rt)
|
||||||
, peak_display()
|
, peak_display()
|
||||||
{
|
{
|
||||||
mtr_vbox.set_spacing(2);
|
mtr_vbox.set_spacing(2);
|
||||||
nfo_vbox.set_spacing(2);
|
nfo_vbox.set_spacing(2);
|
||||||
RouteUI::set_route (rt);
|
|
||||||
SessionHandlePtr::set_session (sess);
|
SessionHandlePtr::set_session (sess);
|
||||||
|
RouteUI::init ();
|
||||||
|
RouteUI::set_route (rt);
|
||||||
|
|
||||||
_has_midi = false;
|
_has_midi = false;
|
||||||
_tick_bar = 0;
|
_tick_bar = 0;
|
||||||
|
|
@ -269,7 +270,7 @@ MeterStrip::MeterStrip (Session* sess, boost::shared_ptr<ARDOUR::Route> rt)
|
||||||
}
|
}
|
||||||
|
|
||||||
_route->shared_peak_meter()->ConfigurationChanged.connect (
|
_route->shared_peak_meter()->ConfigurationChanged.connect (
|
||||||
route_connections, invalidator (*this), boost::bind (&MeterStrip::meter_configuration_changed, this, _1), gui_context()
|
meter_route_connections, invalidator (*this), boost::bind (&MeterStrip::meter_configuration_changed, this, _1), gui_context()
|
||||||
);
|
);
|
||||||
|
|
||||||
ResetAllPeakDisplays.connect (sigc::mem_fun(*this, &MeterStrip::reset_peak_display));
|
ResetAllPeakDisplays.connect (sigc::mem_fun(*this, &MeterStrip::reset_peak_display));
|
||||||
|
|
@ -285,8 +286,8 @@ MeterStrip::MeterStrip (Session* sess, boost::shared_ptr<ARDOUR::Route> rt)
|
||||||
meter_ticks1_area.signal_expose_event().connect (sigc::mem_fun(*this, &MeterStrip::meter_ticks1_expose));
|
meter_ticks1_area.signal_expose_event().connect (sigc::mem_fun(*this, &MeterStrip::meter_ticks1_expose));
|
||||||
meter_ticks2_area.signal_expose_event().connect (sigc::mem_fun(*this, &MeterStrip::meter_ticks2_expose));
|
meter_ticks2_area.signal_expose_event().connect (sigc::mem_fun(*this, &MeterStrip::meter_ticks2_expose));
|
||||||
|
|
||||||
_route->DropReferences.connect (route_connections, invalidator (*this), boost::bind (&MeterStrip::self_delete, this), gui_context());
|
_route->DropReferences.connect (meter_route_connections, invalidator (*this), boost::bind (&MeterStrip::self_delete, this), gui_context());
|
||||||
_route->PropertyChanged.connect (route_connections, invalidator (*this), boost::bind (&MeterStrip::strip_property_changed, this, _1), gui_context());
|
_route->PropertyChanged.connect (meter_route_connections, invalidator (*this), boost::bind (&MeterStrip::strip_property_changed, this, _1), gui_context());
|
||||||
|
|
||||||
peak_display.signal_button_release_event().connect (sigc::mem_fun(*this, &MeterStrip::peak_button_release), false);
|
peak_display.signal_button_release_event().connect (sigc::mem_fun(*this, &MeterStrip::peak_button_release), false);
|
||||||
name_label.signal_button_release_event().connect (sigc::mem_fun(*this, &MeterStrip::name_label_button_release), false);
|
name_label.signal_button_release_event().connect (sigc::mem_fun(*this, &MeterStrip::name_label_button_release), false);
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,7 @@ class MeterStrip : public Gtk::VBox, public RouteUI
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
boost::shared_ptr<ARDOUR::Route> _route;
|
boost::shared_ptr<ARDOUR::Route> _route;
|
||||||
PBD::ScopedConnectionList route_connections;
|
PBD::ScopedConnectionList meter_route_connections;
|
||||||
PBD::ScopedConnectionList level_meter_connection;
|
PBD::ScopedConnectionList level_meter_connection;
|
||||||
void self_delete ();
|
void self_delete ();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue