summaryrefslogtreecommitdiff
path: root/plugingui/maintab.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2017-04-17 17:44:05 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2017-04-17 17:44:05 +0200
commitcce58a93617507a4f2e6927de4445e30b7b46617 (patch)
tree5b6fb81171028d46c3a147275a74226444133809 /plugingui/maintab.cc
parent5186102ef5f44b72f655528a45df9f0fa5c49545 (diff)
Connected streaming controls.
Diffstat (limited to 'plugingui/maintab.cc')
-rw-r--r--plugingui/maintab.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugingui/maintab.cc b/plugingui/maintab.cc
index 3e5a816..571bf20 100644
--- a/plugingui/maintab.cc
+++ b/plugingui/maintab.cc
@@ -35,6 +35,7 @@ MainTab::MainTab(Widget* parent,
: Widget(parent)
, drumkitframe_content{this, settings, settings_notifier}
, humanizerframe_content{this, settings, settings_notifier}
+ , diskstreamingframe_content{this, settings, settings_notifier}
, settings(settings)
, settings_notifier(settings_notifier)
{
@@ -74,6 +75,12 @@ MainTab::MainTab(Widget* parent,
CONNECT(&humanizer_frame, onSwitchChangeNotifier,
this, &MainTab::humanizerOnChange);
+
+ CONNECT(this, settings_notifier.disk_cache_enable,
+ &diskstreaming_frame, &FrameWidget::setOnSwitch);
+
+ CONNECT(&diskstreaming_frame, onSwitchChangeNotifier,
+ this, &MainTab::diskStreamingOnChange);
}
void MainTab::humanizerOnChange(bool on)
@@ -81,4 +88,9 @@ void MainTab::humanizerOnChange(bool on)
settings.enable_velocity_modifier.store(on);
}
+void MainTab::diskStreamingOnChange(bool on)
+{
+ settings.disk_cache_enable.store(on);
+}
+
} // GUI::