diff options
author | falkTX <falktx@gmail.com> | 2015-02-16 16:08:18 +0000 |
---|---|---|
committer | falkTX <falktx@gmail.com> | 2015-02-24 16:39:53 +0000 |
commit | 29042aeca52a8cbe5ace2485084820c59f2ed1c7 (patch) | |
tree | 3c972aa6c8954a6aa8e429a6ad3970fbb57f9630 /distrho/src/DistrhoUIInternal.hpp | |
parent | a23c1f99fd38d394e145a01ffac051b5dad7e13c (diff) |
Allow to receive fileBrowserSelected in plugin UIs
Diffstat (limited to 'distrho/src/DistrhoUIInternal.hpp')
-rw-r--r-- | distrho/src/DistrhoUIInternal.hpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/distrho/src/DistrhoUIInternal.hpp b/distrho/src/DistrhoUIInternal.hpp index a17e2aae..a07719ca 100644 --- a/distrho/src/DistrhoUIInternal.hpp +++ b/distrho/src/DistrhoUIInternal.hpp @@ -170,16 +170,23 @@ public: } protected: + // custom window reshape void onReshape(uint width, uint height) override { DISTRHO_SAFE_ASSERT_RETURN(fUI != nullptr,); - // custom window reshape fUI->d_uiReshape(width, height); - fIsReady = true; } + // custom file-browser selected + void fileBrowserSelected(const char* filename) override + { + DISTRHO_SAFE_ASSERT_RETURN(fUI != nullptr,); + + fUI->d_uiFileBrowserSelected(filename); + } + private: UI* const fUI; bool fIsReady; |