Add enum to configure selection after section cut/copy

This commit is contained in:
Robin Gareus 2023-05-17 23:28:20 +02:00
parent 3bac043043
commit 4cdcdb9ee7
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
3 changed files with 15 additions and 0 deletions

View file

@ -450,6 +450,13 @@ enum RangeSelectionAfterSplit {
ForceSel = 2 // bit 1 ForceSel = 2 // bit 1
}; };
enum TimeSelectionAfterSectionPaste {
SectionSelectNoop = 0,
SectionSelectClear = 1,
SectionSelectRetain = 2,
SectionSelectRetainAndMovePlayhead = 3,
};
enum RegionPoint { enum RegionPoint {
Start, Start,
End, End,

View file

@ -64,6 +64,7 @@ DEFINE_ENUM_CONVERT(ARDOUR::DenormalModel)
DEFINE_ENUM_CONVERT(ARDOUR::FadeShape) DEFINE_ENUM_CONVERT(ARDOUR::FadeShape)
DEFINE_ENUM_CONVERT(ARDOUR::RegionSelectionAfterSplit) DEFINE_ENUM_CONVERT(ARDOUR::RegionSelectionAfterSplit)
DEFINE_ENUM_CONVERT(ARDOUR::RangeSelectionAfterSplit) DEFINE_ENUM_CONVERT(ARDOUR::RangeSelectionAfterSplit)
DEFINE_ENUM_CONVERT(ARDOUR::TimeSelectionAfterSectionPaste)
DEFINE_ENUM_CONVERT(ARDOUR::BufferingPreset) DEFINE_ENUM_CONVERT(ARDOUR::BufferingPreset)
DEFINE_ENUM_CONVERT(ARDOUR::AutoReturnTarget) DEFINE_ENUM_CONVERT(ARDOUR::AutoReturnTarget)
DEFINE_ENUM_CONVERT(ARDOUR::MeterType) DEFINE_ENUM_CONVERT(ARDOUR::MeterType)

View file

@ -109,6 +109,7 @@ setup_enum_writer ()
FadeShape _FadeShape; FadeShape _FadeShape;
RegionSelectionAfterSplit _RegionSelectionAfterSplit; RegionSelectionAfterSplit _RegionSelectionAfterSplit;
RangeSelectionAfterSplit _RangeSelectionAfterSplit; RangeSelectionAfterSplit _RangeSelectionAfterSplit;
TimeSelectionAfterSectionPaste _TimeSelectionAfterSectionPaste;
IOChange _IOChange; IOChange _IOChange;
AutomationType _AutomationType; AutomationType _AutomationType;
AutoState _AutoState; AutoState _AutoState;
@ -572,6 +573,12 @@ setup_enum_writer ()
REGISTER (_RegionSelectionAfterSplit); REGISTER (_RegionSelectionAfterSplit);
REGISTER (_RangeSelectionAfterSplit); REGISTER (_RangeSelectionAfterSplit);
REGISTER_ENUM(SectionSelectNoop);
REGISTER_ENUM(SectionSelectClear);
REGISTER_ENUM(SectionSelectRetain);
REGISTER_ENUM(SectionSelectRetainAndMovePlayhead);
REGISTER (_RangeSelectionAfterSplit);
REGISTER_CLASS_ENUM (DiskIOProcessor, Recordable); REGISTER_CLASS_ENUM (DiskIOProcessor, Recordable);
REGISTER_CLASS_ENUM (DiskIOProcessor, Hidden); REGISTER_CLASS_ENUM (DiskIOProcessor, Hidden);
REGISTER_BITS (_DiskIOProcessor_Flag); REGISTER_BITS (_DiskIOProcessor_Flag);