[AudioSystem] Allow audio engines to provide widgets for modifying connection properties. (#6303)

Signed-off-by: Maxim Ivanov <imginimg@gmail.com>
This commit is contained in:
Maxim Ivanov
2021-12-13 20:32:24 +03:00
committed by GitHub
parent f2c9a217da
commit eae66b964b
4 changed files with 64 additions and 13 deletions
@@ -16,6 +16,8 @@
#include <ACETypes.h>
class QWidget;
namespace AudioControls
{
class IAudioSystemEditor;
@@ -150,6 +152,12 @@ namespace AudioControls
//! Informs the plugin that the ACE has saved the data in case it needs to do any clean up.
virtual void DataSaved() = 0;
//! Creates a widget for modifying connection properties.
//! The widget must have a "PropertiesChanged()" signal.
//! The widget ownership transferred to the caller.
virtual QWidget* CreateConnectionPropertiesWidget([[maybe_unused]] const TConnectionPtr connection,
[[maybe_unused]] EACEControlType atlControlType) { return nullptr; }
};
} // namespace AudioControls