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-31 21:05:35 +0200
commitc2997b9b1a5b831e76b1779aa957f2312a6e5089 (patch)
tree6b53afdabd50daed098891b8d2c3de0770ccae18 /plugingui/dgwindow.cc
parent87e14b57d197a7e917ad55250f132fd50df3ccdc (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 86a985d..25cbdf0 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()