diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-03-23 22:38:44 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-03-31 21:05:35 +0200 |
commit | c2997b9b1a5b831e76b1779aa957f2312a6e5089 (patch) | |
tree | 6b53afdabd50daed098891b8d2c3de0770ccae18 /plugingui/plugingui.h | |
parent | 87e14b57d197a7e917ad55250f132fd50df3ccdc (diff) |
Settings.
Diffstat (limited to 'plugingui/plugingui.h')
-rw-r--r-- | plugingui/plugingui.h | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/plugingui/plugingui.h b/plugingui/plugingui.h index f441696..ca31c41 100644 --- a/plugingui/plugingui.h +++ b/plugingui/plugingui.h @@ -31,9 +31,7 @@ #include "pluginconfig.h" - -#include "thread.h" -#include "semaphore.h" +#include <settings.h> #include "messagereceiver.h" #include "notifier.h" @@ -68,6 +66,21 @@ public: Notifier<> closeNotifier; + // Setting notifiers: + Notifier<bool> enable_velocity_modifier_notifier; + Notifier<float> velocity_modifier_falloff_notifier; + Notifier<float> velocity_modifier_weight_notifier; + + Notifier<bool> enable_velocity_randomiser_notifier; + Notifier<float> velocity_randomiser_weight_notifier; + + Notifier<double> samplerate_notifier; + + Notifier<bool> enable_resampling_notifier; + + Notifier<float> drumkit_file_progress_notifier; + //Notifier<std::string> current_file_notifier; + // Support old interface a little while longer.. void setWindowClosedCallback(void (*handler)(void*), void* ptr); @@ -80,11 +93,12 @@ private: volatile bool closing{false}; volatile bool initialised{false}; - Semaphore sem{"plugingui"}; - // For the old-style notifier. void (*windowClosedHandler)(void *){nullptr}; void *windowClosedPtr{nullptr}; + + Settings settings; + SettingsGetter getter{settings}; }; } // GUI:: |