From 6f8cd634501efd70711b148b4ac0e0ce2aa5cc95 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 19 Sep 2008 14:38:46 +0000 Subject: chris goddard's region list patch; port 2.X marker drag/move changes to 3.0; compilation fixes-post-evoral git-svn-id: svn://localhost/ardour2/branches/3.0@3760 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/ardour/automation_control.h | 4 ++-- libs/ardour/ardour/location.h | 19 +++++++++++-------- libs/ardour/ardour/region.h | 1 + 3 files changed, 14 insertions(+), 10 deletions(-) (limited to 'libs/ardour/ardour') diff --git a/libs/ardour/ardour/automation_control.h b/libs/ardour/ardour/automation_control.h index 24d1db3eec..78f4553d87 100644 --- a/libs/ardour/ardour/automation_control.h +++ b/libs/ardour/ardour/automation_control.h @@ -43,7 +43,7 @@ public: boost::shared_ptr, std::string name="unnamed controllable"); - boost::shared_ptr alist() { return boost::dynamic_pointer_cast(_list); } + boost::shared_ptr alist() const { return boost::dynamic_pointer_cast(_list); } void set_list(boost::shared_ptr); @@ -55,7 +55,7 @@ public: return ((ARDOUR::AutomationList*)_list.get())->automation_write(); } - inline AutoState automation_state() { + inline AutoState automation_state() const { return ((ARDOUR::AutomationList*)_list.get())->automation_state(); } diff --git a/libs/ardour/ardour/location.h b/libs/ardour/ardour/location.h index 53d9489823..d5b672a89d 100644 --- a/libs/ardour/ardour/location.h +++ b/libs/ardour/ardour/location.h @@ -100,14 +100,15 @@ class Location : public PBD::StatefulDestructible void set_is_end (bool yn, void* src); void set_is_start (bool yn, void* src); - bool is_auto_punch () { return _flags & IsAutoPunch; } - bool is_auto_loop () { return _flags & IsAutoLoop; } - bool is_mark () { return _flags & IsMark; } - bool is_hidden () { return _flags & IsHidden; } - bool is_cd_marker () { return _flags & IsCDMarker; } - bool is_end() { return _flags & IsEnd; } - bool is_start() { return _flags & IsStart; } - bool is_range_marker() { return _flags & IsRangeMarker; } + bool is_auto_punch () const { return _flags & IsAutoPunch; } + bool is_auto_loop () const { return _flags & IsAutoLoop; } + bool is_mark () const { return _flags & IsMark; } + bool is_hidden () const { return _flags & IsHidden; } + bool is_cd_marker () const { return _flags & IsCDMarker; } + bool is_end() const { return _flags & IsEnd; } + bool is_start() const { return _flags & IsStart; } + bool is_range_marker() const { return _flags & IsRangeMarker; } + bool matches (Flags f) const { return _flags & f; } sigc::signal name_changed; sigc::signal end_changed; @@ -175,6 +176,8 @@ class Locations : public PBD::StatefulDestructible nframes_t first_mark_before (nframes_t, bool include_special_ranges = false); nframes_t first_mark_after (nframes_t, bool include_special_ranges = false); + void find_all_between (nframes64_t start, nframes64_t, LocationList&, Location::Flags); + sigc::signal current_changed; sigc::signal changed; sigc::signal added; diff --git a/libs/ardour/ardour/region.h b/libs/ardour/ardour/region.h index 32f47d42d7..dc81de6374 100644 --- a/libs/ardour/ardour/region.h +++ b/libs/ardour/ardour/region.h @@ -90,6 +90,7 @@ class Region : public Automatable, public boost::enable_shared_from_this static Change HiddenChanged; sigc::signal StateChanged; + static sigc::signal > RegionPropertyChanged; virtual ~Region(); -- cgit v1.2.3