X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Faxis_view.h;h=108d14c1f12f7fb358a5fcedf6bb8e1a89f2d5e5;hb=ad942b104a80c74c689e0c1b5c016d1870850830;hp=9bd39eec3e1bfbe41ed334940f342839cf6b2501;hpb=3b89d9eaa03406a5e03648f47734211f09b89d62;p=ardour.git diff --git a/gtk2_ardour/axis_view.h b/gtk2_ardour/axis_view.h index 9bd39eec3e..108d14c1f1 100644 --- a/gtk2_ardour/axis_view.h +++ b/gtk2_ardour/axis_view.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2003 Paul Davis + Copyright (C) 2003 Paul Davis This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -26,6 +26,10 @@ #include #include "pbd/xml++.h" +#include "pbd/signals.h" + +#include "ardour/session_handle.h" + #include "prompter.h" #include "selectable.h" @@ -37,7 +41,7 @@ namespace ARDOUR { * AxisView defines the abstract base class for time-axis trackviews and routes. * */ -class AxisView : public virtual Selectable +class AxisView : public virtual Selectable, public PBD::ScopedConnectionList, public ARDOUR::SessionHandlePtr { public: /** @@ -47,7 +51,7 @@ class AxisView : public virtual Selectable */ Gdk::Color color() const { return _color; } - ARDOUR::Session& session() const { return _session; } + ARDOUR::Session* session() const { return _session; } virtual std::string name() const = 0; @@ -57,16 +61,14 @@ class AxisView : public virtual Selectable } sigc::signal Hiding; - sigc::signal GoingAway; void set_old_order_key (uint32_t ok) { _old_order_key = ok; } uint32_t old_order_key() const { return _old_order_key; } protected: - AxisView (ARDOUR::Session& sess); + AxisView (ARDOUR::Session* sess); virtual ~AxisView(); - /** * Generate a new random TrackView color, unique from those colors already used. @@ -76,7 +78,6 @@ class AxisView : public virtual Selectable static Gdk::Color unique_random_color(); - ARDOUR::Session& _session; Gdk::Color _color; static std::list used_colors;