summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/region.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2007-05-14 16:16:54 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2007-05-14 16:16:54 +0000
commit6cf8026ac37cddb9cf84dbdecba9b7f576641fd8 (patch)
tree5a6fa3a9c23837478800192a950f568bc41ef167 /libs/ardour/ardour/region.h
parentb1b02296d48cd9ed9a529c6b05e0297774131cd3 (diff)
add new "lock position" feature for regions
git-svn-id: svn://localhost/ardour2/trunk@1842 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/region.h')
-rw-r--r--libs/ardour/ardour/region.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/ardour/ardour/region.h b/libs/ardour/ardour/region.h
index 012fd9ce96..9a00498371 100644
--- a/libs/ardour/ardour/region.h
+++ b/libs/ardour/ardour/region.h
@@ -66,6 +66,7 @@ class Region : public PBD::StatefulDestructible, public boost::enable_shared_fro
RightOfSplit = 0x8000,
Hidden = 0x10000,
DoNotSaveState = 0x20000,
+ PositionLocked = 0x40000,
//
range_guarantoor = USHRT_MAX
};
@@ -111,9 +112,11 @@ class Region : public PBD::StatefulDestructible, public boost::enable_shared_fro
bool muted() const { return _flags & Muted; }
bool opaque () const { return _flags & Opaque; }
bool locked() const { return _flags & Locked; }
+ bool position_locked() const { return _flags & PositionLocked; }
bool automatic() const { return _flags & Automatic; }
bool whole_file() const { return _flags & WholeFile ; }
bool captured() const { return !(_flags & (Region::Flag (Region::Import|Region::External))); }
+ bool can_move() const { return !(_flags & (Locked|PositionLocked)); }
virtual bool should_save_state () const { return !(_flags & DoNotSaveState); };
@@ -163,6 +166,7 @@ class Region : public PBD::StatefulDestructible, public boost::enable_shared_fro
void set_muted (bool yn);
void set_opaque (bool yn);
void set_locked (bool yn);
+ void set_position_locked (bool yn);
virtual uint32_t read_data_count() const { return _read_data_count; }