Add Lua bindings to query all stripables
This commit is contained in:
parent
1e97c09eed
commit
f80958e168
|
@ -300,6 +300,7 @@ class LIBARDOUR_API Session : public PBD::StatefulDestructible, public PBD::Scop
|
|||
*/
|
||||
|
||||
void get_stripables (StripableList&) const;
|
||||
StripableList get_stripables () const;
|
||||
boost::shared_ptr<RouteList> get_tracks() const;
|
||||
boost::shared_ptr<RouteList> get_routes_with_internal_returns() const;
|
||||
boost::shared_ptr<RouteList> get_routes_with_regions_at (framepos_t const) const;
|
||||
|
|
|
@ -945,6 +945,8 @@ LuaBindings::common (lua_State* L)
|
|||
.addFunction ("color", &PresentationInfo::color)
|
||||
.addFunction ("set_color", &PresentationInfo::set_color)
|
||||
.addFunction ("order", &PresentationInfo::order)
|
||||
.addFunction ("special", &PresentationInfo::special)
|
||||
.addFunction ("flags", &PresentationInfo::flags)
|
||||
.addConst ("max_order", ARDOUR::PresentationInfo::max_order)
|
||||
.endClass ()
|
||||
|
||||
|
@ -1972,6 +1974,7 @@ LuaBindings::common (lua_State* L)
|
|||
.addFunction ("new_midi_route", &Session::new_midi_route)
|
||||
.addFunction ("get_routes", &Session::get_routes)
|
||||
.addFunction ("get_tracks", &Session::get_tracks)
|
||||
.addFunction ("get_stripables", (StripableList (Session::*)() const)&Session::get_stripables)
|
||||
.addFunction ("name", &Session::name)
|
||||
.addFunction ("path", &Session::path)
|
||||
.addFunction ("record_status", &Session::record_status)
|
||||
|
|
|
@ -4276,6 +4276,15 @@ Session::get_stripables (StripableList& sl) const
|
|||
sl.insert (sl.end(), v.begin(), v.end());
|
||||
}
|
||||
|
||||
StripableList
|
||||
Session::get_stripables () const
|
||||
{
|
||||
StripableList rv;
|
||||
Session::get_stripables (rv);
|
||||
rv.sort (Stripable::Sorter ());
|
||||
return rv;
|
||||
}
|
||||
|
||||
boost::shared_ptr<RouteList>
|
||||
Session::get_routes_with_internal_returns() const
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user