From 422ebe24581c715dd31793a65fa0ef9c754de26f Mon Sep 17 00:00:00 2001 From: falkTX Date: Thu, 11 Nov 2021 19:02:52 +0000 Subject: [PATCH] Add empty implementation so it builds --- distrho/DistrhoUI.hpp | 1 + distrho/src/DistrhoUI.cpp | 14 +++++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/distrho/DistrhoUI.hpp b/distrho/DistrhoUI.hpp index dd090430..16a75f05 100644 --- a/distrho/DistrhoUI.hpp +++ b/distrho/DistrhoUI.hpp @@ -343,6 +343,7 @@ protected: */ virtual void uiScaleFactorChanged(double scaleFactor); +#if !DISTRHO_PLUGIN_HAS_EXTERNAL_UI /** Windows focus function, called when the window gains or loses the keyboard focus. This function is for plugin UIs to be able to override Window::onFocus(bool, CrossingMode). diff --git a/distrho/src/DistrhoUI.cpp b/distrho/src/DistrhoUI.cpp index c4797e53..a6418757 100644 --- a/distrho/src/DistrhoUI.cpp +++ b/distrho/src/DistrhoUI.cpp @@ -255,6 +255,14 @@ void UI::sendNote(uint8_t channel, uint8_t note, uint8_t velocity) } #endif +#ifndef DGL_FILE_BROWSER_DISABLED +bool UI::openFileBrowser(const FileBrowserOptions&) +{ + // TODO + return false; +} +#endif + #if DISTRHO_PLUGIN_WANT_DIRECT_ACCESS /* ------------------------------------------------------------------------------------------------------------ * Direct DSP access */ @@ -311,13 +319,13 @@ void UI::uiReshape(uint, uint) // NOTE this must be the same as Window::onReshape pData->fallbackOnResize(); } +#endif // !DISTRHO_PLUGIN_HAS_EXTERNAL_UI -# ifndef DGL_FILE_BROWSER_DISABLED +#ifndef DGL_FILE_BROWSER_DISABLED void UI::uiFileBrowserSelected(const char*) { } -# endif -#endif // !DISTRHO_PLUGIN_HAS_EXTERNAL_UI +#endif /* ------------------------------------------------------------------------------------------------------------ * UI Resize Handling, internal */