summaryrefslogtreecommitdiff
path: root/distrho/src/DistrhoUIInternal.hpp
diff options
context:
space:
mode:
authorfalkTX <falktx@gmail.com>2015-02-16 16:08:18 +0000
committerfalkTX <falktx@gmail.com>2015-02-24 16:39:53 +0000
commit29042aeca52a8cbe5ace2485084820c59f2ed1c7 (patch)
tree3c972aa6c8954a6aa8e429a6ad3970fbb57f9630 /distrho/src/DistrhoUIInternal.hpp
parenta23c1f99fd38d394e145a01ffac051b5dad7e13c (diff)
Allow to receive fileBrowserSelected in plugin UIs
Diffstat (limited to 'distrho/src/DistrhoUIInternal.hpp')
-rw-r--r--distrho/src/DistrhoUIInternal.hpp11
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;