diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2017-05-05 12:31:21 +0100 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2017-05-05 18:56:25 +0100 |
commit | 0c035778e162bd5934fc0070e43a26ffb4c8825a (patch) | |
tree | 0fa5ae935d4d5effc9e3ae372d8b2905f1578110 /libs/ardour/ardour/stripable.h | |
parent | ccd19ed0615bfb300bedc23ac48de7f426a7948e (diff) |
libardour now has CoreSelection object to manage selection status of Stripables and AutomationControls
Diffstat (limited to 'libs/ardour/ardour/stripable.h')
-rw-r--r-- | libs/ardour/ardour/stripable.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/libs/ardour/ardour/stripable.h b/libs/ardour/ardour/stripable.h index 2484c26345..7298a4807e 100644 --- a/libs/ardour/ardour/stripable.h +++ b/libs/ardour/ardour/stripable.h @@ -25,9 +25,11 @@ #include <string> #include <boost/utility.hpp> #include <boost/shared_ptr.hpp> +#include <boost/enable_shared_from_this.hpp> #include "pbd/signals.h" +#include "ardour/automatable.h" #include "ardour/presentation_info.h" #include "ardour/session_object.h" #include "ardour/libardour_visibility.h" @@ -56,10 +58,13 @@ class RecordSafeControl; * and behaviour of the object. */ -class LIBARDOUR_API Stripable : public SessionObject { - public: +class LIBARDOUR_API Stripable : public SessionObject, + public Automatable, + public boost::enable_shared_from_this<Stripable> +{ + public: Stripable (Session& session, std::string const & name, PresentationInfo const &); - virtual ~Stripable () {} + virtual ~Stripable (); /* XXX midi on/off @@ -72,7 +77,7 @@ class LIBARDOUR_API Stripable : public SessionObject { int set_state (XMLNode const&, int); bool is_hidden() const { return _presentation_info.flags() & PresentationInfo::Hidden; } - bool is_selected() const { return _presentation_info.flags() & PresentationInfo::Selected; } + bool is_selected() const; PresentationInfo const & presentation_info () const { return _presentation_info; } PresentationInfo& presentation_info () { return _presentation_info; } |