Browse Source

Add empty implementation so it builds

pull/349/head
falkTX 4 years ago
parent
commit
422ebe2458
2 changed files with 12 additions and 3 deletions
  1. +1
    -0
      distrho/DistrhoUI.hpp
  2. +11
    -3
      distrho/src/DistrhoUI.cpp

+ 1
- 0
distrho/DistrhoUI.hpp View File

@@ -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).


+ 11
- 3
distrho/src/DistrhoUI.cpp View File

@@ -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 */


Loading…
Cancel
Save