summaryrefslogtreecommitdiff
path: root/libs/ardour/region.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2006-11-13 22:59:02 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2006-11-13 22:59:02 +0000
commit78e6e3f5ffb9e505f27ec2279fb88ba0265530fa (patch)
tree33debff636a6ac890bf9c1ae902720247f7c8255 /libs/ardour/region.cc
parentc09ce201cda4d3f348878a2ece88925754d19965 (diff)
remove almost everything from region editor, make popup menu more useful and accurate and informative
git-svn-id: svn://localhost/ardour2/trunk@1128 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/region.cc')
-rw-r--r--libs/ardour/region.cc18
1 files changed, 18 insertions, 0 deletions
diff --git a/libs/ardour/region.cc b/libs/ardour/region.cc
index d49ed933c9..5aeecca0e2 100644
--- a/libs/ardour/region.cc
+++ b/libs/ardour/region.cc
@@ -216,6 +216,24 @@ Region::first_edit ()
}
}
+bool
+Region::at_natural_position () const
+{
+ if (!_playlist) {
+ return false;
+ }
+
+ boost::shared_ptr<Region> whole_file_region = get_parent();
+
+ if (whole_file_region) {
+ if (_position == whole_file_region->position() + _start) {
+ return true;
+ }
+ }
+
+ return false;
+}
+
void
Region::move_to_natural_position (void *src)
{