summaryrefslogtreecommitdiff
path: root/plugingui
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-04-26 15:18:22 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2013-04-26 15:18:22 +0200
commit813d802443679a6f937a13680bc0ec3fb11a96b6 (patch)
tree832080cb77616941ede4572fcf845eb4281f59ba /plugingui
parent605dee007b10fbca1a03b0a2b604b4e999ad7c0f (diff)
Add MidimapLoadStatus Message.
Diffstat (limited to 'plugingui')
-rw-r--r--plugingui/plugingui.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/plugingui/plugingui.cc b/plugingui/plugingui.cc
index 864f4d8..8e886ee 100644
--- a/plugingui/plugingui.cc
+++ b/plugingui/plugingui.cc
@@ -250,11 +250,31 @@ void PluginGUI::thread_main()
}
}
break;
+ case Message::LoadStatusMidimap:
+ {
+ LoadStatusMessageMidimap *ls = (LoadStatusMessageMidimap*)msg;
+ DEBUG(gui, "Midimap status (%d)\n",
+ ls->success);
+ progress2->setProgress(1);
+ if(ls->success) {
+ progress2->setState(GUI::ProgressBar::green);
+ } else {
+ progress2->setState(GUI::ProgressBar::red);
+ }
+ }
+ break;
case Message::EngineSettingsMessage:
{
EngineSettingsMessage *settings = (EngineSettingsMessage *)msg;
lineedit->setText(settings->drumkitfile);
lineedit2->setText(settings->midimapfile);
+ if(settings->midimap_loaded) {
+ progress2->setProgress(1);
+ progress2->setState(GUI::ProgressBar::green);
+ } else {
+ progress2->setProgress(0);
+ progress2->setState(GUI::ProgressBar::blue);
+ }
check->setChecked(settings->enable_velocity_modifier);
knob->setValue(settings->velocity_modifier_weight);
knob2->setValue(settings->velocity_modifier_falloff);