diff --git a/gtk2_ardour/luainstance.cc b/gtk2_ardour/luainstance.cc index 1d390e65fe..12189f3977 100644 --- a/gtk2_ardour/luainstance.cc +++ b/gtk2_ardour/luainstance.cc @@ -795,6 +795,11 @@ LuaInstance::register_classes (lua_State* L) .endClass () .deriveClass ("TimeAxisView") + .addFunction ("order", &TimeAxisView::order) + .addFunction ("y_position", &TimeAxisView::y_position) + .addFunction ("effective_height", &TimeAxisView::effective_height) + .addFunction ("current_height", &TimeAxisView::current_height) + .addFunction ("set_height", &TimeAxisView::set_height) .endClass () .deriveClass ("StripableTimeAxisView") @@ -818,11 +823,11 @@ LuaInstance::register_classes (lua_State* L) .endClass () // std::list - .beginStdCPtrList ("SelectionList") + .beginConstStdCPtrList ("SelectionList") .endClass () // std::list - .beginStdCPtrList ("TrackViewStdList") + .beginConstStdCPtrList ("TrackViewStdList") .endClass () @@ -842,7 +847,8 @@ LuaInstance::register_classes (lua_State* L) .deriveClass > ("MarkerSelection") .endClass () - .deriveClass > ("TrackViewList") + .beginClass ("TrackViewList") + .addCast > ("to_tav_list") .addFunction ("contains", &TrackViewList::contains) .addFunction ("routelist", &TrackViewList::routelist) .endClass () @@ -1047,6 +1053,12 @@ LuaInstance::register_classes (lua_State* L) .addConst ("Add", Selection::Operation(Selection::Add)) .endNamespace () + .beginNamespace ("TrackHeightMode") + .addConst ("OnlySelf", TimeAxisView::TrackHeightMode(TimeAxisView::OnlySelf)) + .addConst ("TotalHeight", TimeAxisView::TrackHeightMode(TimeAxisView::TotalHeight)) + .addConst ("HeightPerLane,", TimeAxisView::TrackHeightMode(TimeAxisView::HeightPerLane)) + .endNamespace () + .addCFunction ("actionlist", &lua_actionlist) .endNamespace () // end ArdourUI