Implement IEditController2::openHelp

This commit is contained in:
Robbert van der Helm
2020-12-26 00:06:32 +01:00
parent 91a96249fc
commit 3c5700163e
6 changed files with 37 additions and 3 deletions
+9
View File
@@ -262,6 +262,15 @@ bool Vst3Logger::log_request(bool is_host_vst,
});
}
bool Vst3Logger::log_request(bool is_host_vst,
const YaEditController2::OpenHelp& request) {
return log_request_base(is_host_vst, [&](auto& message) {
message << request.instance_id
<< ": IEditController2::openHelp(onlyCheck = "
<< (request.only_check ? "true" : "false") << ")";
});
}
bool Vst3Logger::log_request(
bool is_host_vst,
const YaPlugView::IsPlatformTypeSupported& request) {
+1
View File
@@ -89,6 +89,7 @@ class Vst3Logger {
const YaEditController::SetComponentHandler&);
bool log_request(bool is_host_vst, const YaEditController::CreateView&);
bool log_request(bool is_host_vst, const YaEditController2::SetKnobMode&);
bool log_request(bool is_host_vst, const YaEditController2::OpenHelp&);
bool log_request(bool is_host_vst,
const YaPlugView::IsPlatformTypeSupported&);
bool log_request(bool is_host_vst, const YaPlugView::Attached&);
+1
View File
@@ -82,6 +82,7 @@ using ControlRequest = std::variant<Vst3PlugViewProxy::Destruct,
YaEditController::SetComponentHandler,
YaEditController::CreateView,
YaEditController2::SetKnobMode,
YaEditController2::OpenHelp,
YaPlugView::IsPlatformTypeSupported,
YaPlugView::Attached,
YaPlugView::Removed,
@@ -81,6 +81,25 @@ class YaEditController2 : public Steinberg::Vst::IEditController2 {
virtual tresult PLUGIN_API
setKnobMode(Steinberg::Vst::KnobMode mode) override = 0;
/**
* Message to pass through a call to
* `IEditController2::openHelp(only_check)` to the Wine plugin host.
*/
struct OpenHelp {
using Response = UniversalTResult;
native_size_t instance_id;
TBool only_check;
template <typename S>
void serialize(S& s) {
s.value8b(instance_id);
s.value1b(only_check);
}
};
virtual tresult PLUGIN_API openHelp(TBool onlyCheck) override = 0;
virtual tresult PLUGIN_API openAboutBox(TBool onlyCheck) override = 0;