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
Signed by: rgareus
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
};
enum TimeSelectionAfterSectionPaste {
SectionSelectNoop = 0,
SectionSelectClear = 1,
SectionSelectRetain = 2,
SectionSelectRetainAndMovePlayhead = 3,
};
enum RegionPoint {
Start,
End,

View File

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

View File

@ -109,6 +109,7 @@ setup_enum_writer ()
FadeShape _FadeShape;
RegionSelectionAfterSplit _RegionSelectionAfterSplit;
RangeSelectionAfterSplit _RangeSelectionAfterSplit;
TimeSelectionAfterSectionPaste _TimeSelectionAfterSectionPaste;
IOChange _IOChange;
AutomationType _AutomationType;
AutoState _AutoState;
@ -572,6 +573,12 @@ setup_enum_writer ()
REGISTER (_RegionSelectionAfterSplit);
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, Hidden);
REGISTER_BITS (_DiskIOProcessor_Flag);