summaryrefslogtreecommitdiff
path: root/plugingui/dgwindow.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2016-03-23 22:38:44 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2016-03-23 22:38:44 +0100
commit569636bbd766710f5ac60a66c402acc70cdf77a8 (patch)
tree95712842bb1550c879796ce8444eaecf0e3741e9 /plugingui/dgwindow.cc
parent571e5a5feab478f6481db96343dfaf566bd2ab6d (diff)
Settings.
Diffstat (limited to 'plugingui/dgwindow.cc')
-rw-r--r--plugingui/dgwindow.cc31
1 files changed, 18 insertions, 13 deletions
diff --git a/plugingui/dgwindow.cc b/plugingui/dgwindow.cc
index 8d9e789..e8dbcfc 100644
--- a/plugingui/dgwindow.cc
+++ b/plugingui/dgwindow.cc
@@ -120,10 +120,11 @@ public:
};
DGWindow::DGWindow(void* native_window, MessageHandler& messageHandler,
- Config& config)
+ Config& config, Settings& settings)
: Window(native_window)
, messageHandler(messageHandler)
, config(config)
+ , settings(settings)
{
int vlineSpacing = 16;
@@ -233,11 +234,12 @@ void DGWindow::repaintEvent(RepaintEvent* repaintEvent)
void DGWindow::attackValueChanged(float value)
{
- ChangeSettingMessage *msg =
- new ChangeSettingMessage(ChangeSettingMessage::velocity_modifier_weight,
- value);
+ //ChangeSettingMessage *msg =
+ // new ChangeSettingMessage(ChangeSettingMessage::velocity_modifier_weight,
+ // value);
+ //messageHandler.sendMessage(MSGRCV_ENGINE, msg);
- messageHandler.sendMessage(MSGRCV_ENGINE, msg);
+ settings.velocity_modifier_weight.store(value);
#ifdef STANDALONE
int i = value * 4;
@@ -253,10 +255,12 @@ void DGWindow::attackValueChanged(float value)
void DGWindow::falloffValueChanged(float value)
{
- ChangeSettingMessage *msg =
- new ChangeSettingMessage(ChangeSettingMessage::velocity_modifier_falloff,
- value);
- messageHandler.sendMessage(MSGRCV_ENGINE, msg);
+ //ChangeSettingMessage *msg =
+ // new ChangeSettingMessage(ChangeSettingMessage::velocity_modifier_falloff,
+ // value);
+ //messageHandler.sendMessage(MSGRCV_ENGINE, msg);
+
+ settings.velocity_modifier_falloff.store(value);
#ifdef STANDALONE
drumkitFileProgress->setProgress(value);
@@ -265,10 +269,11 @@ void DGWindow::falloffValueChanged(float value)
void DGWindow::velocityCheckClick(bool checked)
{
- ChangeSettingMessage *msg =
- new ChangeSettingMessage(ChangeSettingMessage::enable_velocity_modifier,
- checked);
- messageHandler.sendMessage(MSGRCV_ENGINE, msg);
+// ChangeSettingMessage *msg =
+// new ChangeSettingMessage(ChangeSettingMessage::enable_velocity_modifier,
+// checked);
+// messageHandler.sendMessage(MSGRCV_ENGINE, msg);
+ settings.enable_velocity_modifier.store(checked);
}
void DGWindow::kitBrowseClick()