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-29 22:43:33 +0200 |
commit | 324502145b2a5fec38928509c8b3d9f8eb8bf47d (patch) | |
tree | 393f9e40bf4ae033217df49eacb0ed76b64d475c /plugingui/plugingui.h | |
parent | 253a7fbc4a13d459cb2bd19f51ad578c0e1814f2 (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:: |