diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-09-22 15:21:06 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-09-22 15:21:06 +0000 |
commit | ded4a143db069785aa33eeb6dc9da02770e3ae8e (patch) | |
tree | d1a2b94e11a4fe4a1d173e7972414cc16ecee7fd /libs/ardour/ardour/trimmable.h | |
parent | d4aaa9c10cd21ef7e1b0f5509963b57c2465302b (diff) |
much craziness with canvas cursors; fix 0 beat cursor text when shortening notes; fix crash when trimming locked regions; don't show trim cursors when region is locked; partial version of enumwriter validation fix from 2.X (less necessary with 3.0; probably more ...
git-svn-id: svn://localhost/ardour2/branches/3.0@7831 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/trimmable.h')
-rw-r--r-- | libs/ardour/ardour/trimmable.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/libs/ardour/ardour/trimmable.h b/libs/ardour/ardour/trimmable.h new file mode 100644 index 0000000000..e053a2deed --- /dev/null +++ b/libs/ardour/ardour/trimmable.h @@ -0,0 +1,36 @@ +#ifndef __libardour_trimmable_h__ +#define __libardour_trimmable_h__ + +namespace ARDOUR { + +class Trimmable { + public: + Trimmable() {} + virtual ~Trimmable() {} + + enum CanTrim { + FrontTrimEarlier, + FrontTrimLater, + EndTrimEarlier, + EndTrimLater, + TopTrimUp, + TopTrimDown, + BottomTrimUp, + BottomTrimDown + } ; + + virtual CanTrim can_trim() const { + return CanTrim (FrontTrimEarlier | + FrontTrimLater | + EndTrimEarlier | + EndTrimLater | + TopTrimUp | + TopTrimDown | + BottomTrimUp | + BottomTrimDown); + } +}; + +} + +#endif /* __libardour_trimmable_h__ */ |