re-order inheritance
LuaBridge only allows one parent class, others need explicit casts. Allowing RoutUI to be passed as Selectable argument is handy.
This commit is contained in:
parent
febd1d5c88
commit
3780a9526e
@ -575,22 +575,28 @@ LuaInstance::register_classes (lua_State* L)
|
|||||||
.addFunction ("_type", &ArdourMarker::type)
|
.addFunction ("_type", &ArdourMarker::type)
|
||||||
.endClass ()
|
.endClass ()
|
||||||
|
|
||||||
#if 0
|
|
||||||
.beginClass <AxisView> ("AxisView")
|
.beginClass <AxisView> ("AxisView")
|
||||||
.endClass ()
|
.endClass ()
|
||||||
|
|
||||||
.deriveClass <TimeAxisView, AxisView> ("TimeAxisView")
|
.deriveClass <TimeAxisView, AxisView> ("TimeAxisView")
|
||||||
.endClass ()
|
.endClass ()
|
||||||
.deriveClass <RouteTimeAxisView, TimeAxisView> ("RouteTimeAxisView")
|
|
||||||
.endClass ()
|
|
||||||
#endif
|
|
||||||
|
|
||||||
.beginClass <Selectable> ("Selectable")
|
.beginClass <Selectable> ("Selectable")
|
||||||
.endClass ()
|
.endClass ()
|
||||||
|
|
||||||
.deriveClass <TimeAxisViewItem, Selectable> ("TimeAxisViewItem")
|
.deriveClass <TimeAxisViewItem, Selectable> ("TimeAxisViewItem")
|
||||||
.endClass ()
|
.endClass ()
|
||||||
|
|
||||||
.deriveClass <RegionView, TimeAxisViewItem> ("RegionView")
|
.deriveClass <RegionView, TimeAxisViewItem> ("RegionView")
|
||||||
.endClass ()
|
.endClass ()
|
||||||
|
|
||||||
|
.deriveClass <RouteUI, Selectable> ("RouteUI")
|
||||||
|
.endClass ()
|
||||||
|
|
||||||
|
.deriveClass <RouteTimeAxisView, RouteUI> ("RouteTimeAxisView")
|
||||||
|
.addCast<TimeAxisView> ("to_timeaxisview")
|
||||||
|
.endClass ()
|
||||||
|
|
||||||
.beginStdCPtrList <Selectable> ("SelectionList")
|
.beginStdCPtrList <Selectable> ("SelectionList")
|
||||||
.endClass ()
|
.endClass ()
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ class RoutePinWindowProxy : public WM::ProxyBase
|
|||||||
PBD::ScopedConnection going_away_connection;
|
PBD::ScopedConnection going_away_connection;
|
||||||
};
|
};
|
||||||
|
|
||||||
class RouteUI : public virtual ARDOUR::SessionHandlePtr, public virtual PBD::ScopedConnectionList, public virtual Selectable, public virtual sigc::trackable
|
class RouteUI : public virtual Selectable, public virtual ARDOUR::SessionHandlePtr, public virtual PBD::ScopedConnectionList, public virtual sigc::trackable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
RouteUI (ARDOUR::Session*);
|
RouteUI (ARDOUR::Session*);
|
||||||
|
Loading…
Reference in New Issue
Block a user