Add preference enum for plugin GUI unmap behavior

This commit is contained in:
Robin Gareus
2022-10-08 18:43:33 +02:00
parent f89845e64a
commit 830fe4da2f
4 changed files with 19 additions and 0 deletions

View File

@@ -677,6 +677,12 @@ struct CleanupReport {
size_t space;
};
enum PluginGUIBehavior {
PluginGUIHide,
PluginGUIDestroyAny,
PluginGUIDestroyVST,
};
/** A struct used to describe changes to processors in a route.
* This is useful because objects that respond to a change in processors
* can optimise what work they do based on details of what has changed.

View File

@@ -79,6 +79,7 @@ DEFINE_ENUM_CONVERT(ARDOUR::RegionEquivalence)
DEFINE_ENUM_CONVERT(ARDOUR::WaveformScale)
DEFINE_ENUM_CONVERT(ARDOUR::WaveformShape)
DEFINE_ENUM_CONVERT(ARDOUR::ScreenSaverMode)
DEFINE_ENUM_CONVERT(ARDOUR::PluginGUIBehavior)
DEFINE_ENUM_CONVERT(ARDOUR::VUMeterStandard)
DEFINE_ENUM_CONVERT(ARDOUR::MeterLineUp)
DEFINE_ENUM_CONVERT(ARDOUR::InputMeterLayout)

View File

@@ -143,6 +143,7 @@ setup_enum_writer ()
WaveformScale _WaveformScale;
WaveformShape _WaveformShape;
ScreenSaverMode _ScreenSaverMode;
PluginGUIBehavior _PluginGUIBehavior;
Session::PostTransportWork _Session_PostTransportWork;
MTC_Status _MIDI_MTC_Status;
BufferingPreset _BufferingPreset;
@@ -750,6 +751,11 @@ setup_enum_writer ()
REGISTER_ENUM(InhibitAlways);
REGISTER(_ScreenSaverMode);
REGISTER_ENUM(PluginGUIHide);
REGISTER_ENUM(PluginGUIDestroyAny);
REGISTER_ENUM(PluginGUIDestroyVST);
REGISTER(_PluginGUIBehavior);
REGISTER_ENUM (Small);
REGISTER_ENUM (Medium);
REGISTER_ENUM (Large);

View File

@@ -2549,6 +2549,12 @@ LuaBindings::common (lua_State* L)
.addConst ("InhibitAlways", ARDOUR::ScreenSaverMode(InhibitAlways))
.endNamespace ()
.beginNamespace ("PluginGUIBehavior")
.addConst ("PluginGUIHide", ARDOUR::PluginGUIBehavior(PluginGUIHide))
.addConst ("PluginGUIDestroyAny", ARDOUR::PluginGUIBehavior(PluginGUIDestroyAny))
.addConst ("PluginGUIDestroyVST", ARDOUR::PluginGUIBehavior(PluginGUIDestroyVST))
.endNamespace ()
.beginNamespace ("ClockDeltaMode")
.addConst ("NoDelta", ARDOUR::ClockDeltaMode(NoDelta))
.addConst ("DeltaEditPoint", ARDOUR::ClockDeltaMode(DeltaEditPoint))