Update summary when a region is removed.
git-svn-id: svn://localhost/ardour2/branches/3.0@8622 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
f784343e07
commit
66c9e166f8
|
@ -4815,6 +4815,12 @@ Editor::region_view_added (RegionView *)
|
|||
_summary->set_dirty ();
|
||||
}
|
||||
|
||||
void
|
||||
Editor::region_view_removed ()
|
||||
{
|
||||
_summary->set_dirty ();
|
||||
}
|
||||
|
||||
TimeAxisView*
|
||||
Editor::axis_view_from_route (boost::shared_ptr<Route> r) const
|
||||
{
|
||||
|
@ -4880,6 +4886,7 @@ Editor::handle_new_route (RouteList& routes)
|
|||
rtv->effective_gain_display ();
|
||||
|
||||
rtv->view()->RegionViewAdded.connect (sigc::mem_fun (*this, &Editor::region_view_added));
|
||||
rtv->view()->RegionViewRemoved.connect (sigc::mem_fun (*this, &Editor::region_view_removed));
|
||||
}
|
||||
|
||||
_routes->routes_added (new_views);
|
||||
|
|
|
@ -2024,6 +2024,7 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
|
|||
EditorSummary* _summary;
|
||||
|
||||
void region_view_added (RegionView *);
|
||||
void region_view_removed ();
|
||||
|
||||
void update_canvas_now ();
|
||||
|
||||
|
|
|
@ -205,6 +205,8 @@ StreamView::remove_region_view (boost::weak_ptr<Region> weak_r)
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
RegionViewRemoved (); /* EMIT SIGNAL */
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -115,7 +115,8 @@ public:
|
|||
|
||||
void check_record_layers (boost::shared_ptr<ARDOUR::Region>, ARDOUR::framepos_t);
|
||||
|
||||
sigc::signal<void,RegionView*> RegionViewAdded;
|
||||
sigc::signal<void, RegionView*> RegionViewAdded;
|
||||
sigc::signal<void> RegionViewRemoved;
|
||||
|
||||
protected:
|
||||
StreamView (RouteTimeAxisView&, ArdourCanvas::Group* background_group = 0, ArdourCanvas::Group* canvas_group = 0);
|
||||
|
|
Loading…
Reference in New Issue